Skip to content

Commit 48404a9

Browse files
committed
Add Napster companion API commands and resources
- Add napster command specs in Commands/napster/ - Add resource definitions for organizations, activate-saas endpoints - Support create, update, delete, list, link-saas, latest-linked-saas operations - Include identity assignment and removal for organizations
1 parent 5c26aa4 commit 48404a9

27 files changed

Lines changed: 2597 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# [Command] _napster companion-api activate-saas_
2+
3+
Resolve the token to get the SaaS resource ID and activate the SaaS resource
4+
5+
## Versions
6+
7+
### [2025-12-24-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL25hcHN0ZXIuY29tcGFuaW9uYXBpL2FjdGl2YXRlc2Fhcw==/2025-12-24-preview.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/providers/napster.companionapi/activatesaas 2025-12-24-preview -->
10+
11+
#### examples
12+
13+
- SaaSOperationGroup_ActivateResource_MaximumSet - generated by [MaximumSet] rule
14+
```bash
15+
napster companion-api activate-saas --saas-guid a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d --publisher-id contoso
16+
```
17+
18+
- SaaSOperationGroup_ActivateResource_MinimumSet - generated by [MinimumSet] rule
19+
```bash
20+
napster companion-api activate-saas --saas-guid a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d --publisher-id contoso --saas-guid a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d
21+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _napster companion-api organization create_
2+
3+
Create a OrganizationResource
4+
5+
## Versions
6+
7+
### [2025-12-24-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25hcHN0ZXIuY29tcGFuaW9uYXBpL29yZ2FuaXphdGlvbnMve30=/2025-12-24-preview.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/napster.companionapi/organizations/{} 2025-12-24-preview -->
10+
11+
#### examples
12+
13+
- Organizations_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule
14+
```bash
15+
napster companion-api organization create --resource-group rgopenapi --organizationname contosoOrg --marketplace "{subscriptionStatus:PendingFulfillmentStart,subscription-id:a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d,offer-details:{publisher-id:contoso,offer-id:contoso-saas-app,plan-id:standard-plan,plan-name:'Standard Plan',term-unit:P1M,term-id:monthly-term-001},saas-resource-id:/subscriptions/a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d/resourceGroups/rgopenapi/providers/Microsoft.SaaS/resources/contosoSaaS}" --user "{first-name:John,last-name:Doe,email-address:john.doe@contoso.com,upn:john.doe@contoso.com,phone-number:+1-425-555-1234}" --partner-properties "{application:'Contoso App'}" --single-sign-on-properties "{type:Saml,state:Initial,enterprise-app-id:b2c3d4e5-f6a7-4b5c-8d9e-0f1a2b3c4d5e,url:'https://login.contoso.com',aad-domains:[contoso.com]}" --type None --user-assigned-identities "{}" --tags "{}" --location eastus
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _napster companion-api organization delete_
2+
3+
Delete a OrganizationResource
4+
5+
## Versions
6+
7+
### [2025-12-24-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25hcHN0ZXIuY29tcGFuaW9uYXBpL29yZ2FuaXphdGlvbnMve30=/2025-12-24-preview.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/napster.companionapi/organizations/{} 2025-12-24-preview -->
10+
11+
#### examples
12+
13+
- Organizations_Delete_MaximumSet - generated by [MaximumSet] rule
14+
```bash
15+
napster companion-api organization delete --resource-group rgopenapi --organizationname contosoOrg
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _napster companion-api organization latest-linked-saas_
2+
3+
Returns the latest SaaS linked to the Napster organization of the underlying monitor.
4+
5+
## Versions
6+
7+
### [2025-12-24-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25hcHN0ZXIuY29tcGFuaW9uYXBpL29yZ2FuaXphdGlvbnMve30vbGF0ZXN0bGlua2Vkc2Fhcw==/2025-12-24-preview.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/napster.companionapi/organizations/{}/latestlinkedsaas 2025-12-24-preview -->
10+
11+
#### examples
12+
13+
- Organizations_LatestLinkedSaaS_MaximumSet - generated by [MaximumSet] rule
14+
```bash
15+
napster companion-api organization latest-linked-saas --resource-group rgopenapi --organizationname contosoOrg
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _napster companion-api organization link-saas_
2+
3+
Links a new SaaS to the Napster organization of the underlying monitor.
4+
5+
## Versions
6+
7+
### [2025-12-24-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25hcHN0ZXIuY29tcGFuaW9uYXBpL29yZ2FuaXphdGlvbnMve30vbGlua3NhYXM=/2025-12-24-preview.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/napster.companionapi/organizations/{}/linksaas 2025-12-24-preview -->
10+
11+
#### examples
12+
13+
- Organizations_LinkSaaS_MaximumSet - generated by [MaximumSet] rule
14+
```bash
15+
napster companion-api organization link-saas --resource-group rgopenapi --organizationname contosoOrg --saa-s-resource-id /subscriptions/0F0FBCF9-8374-47FC-B189-B79B84033EA3/resourceGroups/rgopenapi/providers/Microsoft.SaaS/resources/contosoSaaS
16+
```
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# [Command] _napster companion-api organization list_
2+
3+
List OrganizationResource resources by subscription ID
4+
5+
## Versions
6+
7+
### [2025-12-24-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL25hcHN0ZXIuY29tcGFuaW9uYXBpL29yZ2FuaXphdGlvbnM=/2025-12-24-preview.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/providers/napster.companionapi/organizations 2025-12-24-preview -->
10+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/napster.companionapi/organizations 2025-12-24-preview -->
11+
12+
#### examples
13+
14+
- Organizations_ListBySubscription_MaximumSet - generated by [MaximumSet] rule
15+
```bash
16+
napster companion-api organization list
17+
```
18+
19+
- Organizations_ListBySubscription_MinimumSet - generated by [MinimumSet] rule
20+
```bash
21+
napster companion-api organization list
22+
```
23+
24+
- Organizations_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule
25+
```bash
26+
napster companion-api organization list --resource-group rgopenapi
27+
```
28+
29+
- Organizations_ListByResourceGroup_MinimumSet - generated by [MinimumSet] rule
30+
```bash
31+
napster companion-api organization list --resource-group rgopenapi --resource-group rgopenapi
32+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _napster companion-api organization show_
2+
3+
Get a OrganizationResource
4+
5+
## Versions
6+
7+
### [2025-12-24-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25hcHN0ZXIuY29tcGFuaW9uYXBpL29yZ2FuaXphdGlvbnMve30=/2025-12-24-preview.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/napster.companionapi/organizations/{} 2025-12-24-preview -->
10+
11+
#### examples
12+
13+
- Organizations_Get_MaximumSet - generated by [MaximumSet] rule
14+
```bash
15+
napster companion-api organization show --resource-group rgopenapi --organizationname contosoOrg
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _napster companion-api organization update_
2+
3+
Update a OrganizationResource
4+
5+
## Versions
6+
7+
### [2025-12-24-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25hcHN0ZXIuY29tcGFuaW9uYXBpL29yZ2FuaXphdGlvbnMve30=/2025-12-24-preview.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/napster.companionapi/organizations/{} 2025-12-24-preview -->
10+
11+
#### examples
12+
13+
- Organizations_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule
14+
```bash
15+
napster companion-api organization update --resource-group rgopenapi --organizationname contosoOrg
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _napster companion-api organization identity assign_
2+
3+
Assign the user or system managed identities.
4+
5+
## Versions
6+
7+
### [2025-12-24-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25hcHN0ZXIuY29tcGFuaW9uYXBpL29yZ2FuaXphdGlvbnMve30=/2025-12-24-preview.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/napster.companionapi/organizations/{} 2025-12-24-preview identity -->
10+
11+
#### examples
12+
13+
- Organizations_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule
14+
```bash
15+
napster companion-api organization identity assign --resource-group rgopenapi --organizationname contosoOrg
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _napster companion-api organization identity remove_
2+
3+
Remove the user or system managed identities.
4+
5+
## Versions
6+
7+
### [2025-12-24-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25hcHN0ZXIuY29tcGFuaW9uYXBpL29yZ2FuaXphdGlvbnMve30=/2025-12-24-preview.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/napster.companionapi/organizations/{} 2025-12-24-preview identity -->
10+
11+
#### examples
12+
13+
- Organizations_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule
14+
```bash
15+
napster companion-api organization identity remove --resource-group rgopenapi --organizationname contosoOrg
16+
```

0 commit comments

Comments
 (0)