Skip to content

Commit

Permalink
Update manage service identity api version (#4492)
Browse files Browse the repository at this point in the history
* directly copy swagger folder from old api version

* update Managed Service Identity api version to 2018-11-30, the differnt from previous api-version is the clientSecretUrl can be null if identity is user assigned

* feedback
  • Loading branch information
wendyNEU authored and amarzavery committed Nov 28, 2018
1 parent 5b818ee commit 0ffb349
Show file tree
Hide file tree
Showing 11 changed files with 815 additions and 1 deletion.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parameters": {
"api-version": "2018-11-30",
"subscriptionId": "subid",
"resourceGroupName": "rgName",
"resourceName": "resourceName",
"parameters": {
"location": "cus",
"tags": {
"key1": "value1",
"key2": "value2"
}
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName",
"location": "cus",
"name": "identityName",
"properties": {
"clientId": "clientGUID",
"principalId": "identityObjectID",
"tenantId": "tenantGUID"
},
"tags": {
"key1": "value1",
"key2": "value2"
},
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
}
},
"200": {
"body": {
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName",
"location": "cus",
"name": "identityName",
"properties": {
"clientId": "clientGUID",
"principalId": "identityObjectID",
"tenantId": "tenantGUID"
},
"tags": {
"key1": "value1",
"key2": "value2"
},
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"api-version": "2018-11-30",
"subscriptionId": "subid",
"resourceGroupName": "rgName",
"resourceName": "resourceName"
},
"responses": {
"200": {
"body": ""
},
"204": {
"body": ""
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"api-version": "2018-11-30",
"subscriptionId": "subid",
"resourceGroupName": "rgName",
"resourceName": "resourceName"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName",
"location": "cus",
"name": "identityName",
"properties": {
"clientId": "clientGUID",
"principalId": "identityObjectID",
"tenantId": "tenantGUID"
},
"tags": {
"key1": "value1",
"key2": "value2"
},
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2018-11-30",
"subscriptionId": "subid",
"resourceGroupName": "rgName"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName",
"location": "cus",
"name": "identityName",
"properties": {
"clientId": "clientGUID",
"principalId": "identityObjectID",
"tenantId": "tenantGUID"
},
"tags": {
"key1": "value1",
"key2": "value2"
},
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
}
],
"nextLink": "https://serviceRoot/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities?api-version=2018-11-30&$skiptoken=X'12345'"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"api-version": "2018-11-30",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName",
"location": "cus",
"name": "identityName",
"properties": {
"clientId": "clientGUID",
"principalId": "identityObjectID",
"tenantId": "tenantGUID"
},
"tags": {
"key1": "value1",
"key2": "value2"
},
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
}
],
"nextLink": "https://serviceRoot/subscriptions/subId/providers/Microsoft.ManagedIdentity/userAssignedIdentities?api-version=2018-11-30&$skiptoken=X'12345'"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2018-11-30",
"subscriptionId": "subid",
"resourceGroupName": "rgName",
"resourceName": "resourceName",
"parameters": {
"location": "cus",
"tags": {
"key1": "value1",
"key2": "value2"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName",
"location": "cus",
"name": "identityName",
"properties": {
"clientId": "clientGUID",
"principalId": "identityObjectID",
"tenantId": "tenantGUID"
},
"tags": {
"key1": "value1",
"key2": "value2"
},
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"parameters": {
"api-version": "2018-11-30"
},
"responses": {
"200": {
"body": {
"value": [
{
"display": {
"description": "Gets an existing user assigned identity",
"operation": "Get User Assigned Identity",
"resource": "User Assigned Identities",
"provider": "Managed Service Identity"
},
"name": "Microsoft.ManagedIdentity/userAssignedIdentities/read"
},
{
"display": {
"description": "Creates a new user assigned identity or updates the tags associated with an existing user assigned identity",
"operation": "Create/Update User Assigned Identity",
"resource": "User Assigned Identities",
"provider": "Managed Service Identity"
},
"name": "Microsoft.ManagedIdentity/userAssignedIdentities/write"
},
{
"display": {
"description": "Deletes an existing user assigned identity",
"operation": "Delete User Assigned Identity",
"resource": "User Assigned Identities",
"provider": "Managed Service Identity"
},
"name": "Microsoft.ManagedIdentity/userAssignedIdentities/delete"
}
],
"nextLink": "https://serviceRoot/providers/Microsoft.ManagedIdentity/operations?api-version=2018-11-30&$skiptoken=X'12345'"
}
}
}
}
10 changes: 10 additions & 0 deletions specification/msi/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,19 @@ go:
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2018-11-30
- tag: package-2015-08-31-preview
```
### Tag: package-2018-11-30 and go
These settings apply only when `--tag=package-2018-11-30 --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2018-11-30' && $(go)
output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2018-11-30/$(namespace)
```

### Tag: package-2015-08-31-preview and go

These settings apply only when `--tag=package-2015-08-31-preview --go` is specified on the command line.
Expand Down
24 changes: 23 additions & 1 deletion specification/msi/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,17 @@ These are the global settings for the Managed Service Identity API.

``` yaml
openapi-type: arm
tag: package-2015-08-31-preview
tag: package-2018-11-30
```
### Tag: package-2018-11-30
These settings apply only when `--tag=package-2018-11-30` is specified on the command line.

``` yaml $(tag) == 'package-2018-11-30'
input-file:
- Microsoft.ManagedIdentity/2018-11-30/ManagedIdentity.json
```

### Tag: package-2015-08-31-preview

Expand Down Expand Up @@ -120,9 +128,23 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-msi

``` yaml $(java) && $(multiapi)
batch:
- tag: package-2018-11-30
- tag: package-2015-08-31-preview
```

### Tag: package-2018-11-30 and java

These settings apply only when `--tag=package-2018-11-30 --java` is specified on the command line.
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.

``` yaml $(tag) == 'package-2018-11-30' && $(java) && $(multiapi)
java:
namespace: com.microsoft.azure.management.managedserviceidentity.v2018-11-30
output-folder: $(azure-libraries-for-java-folder)/managedserviceidentity/resource-manager/v2018-11-30
regenerate-manager: true
generate-interface: true
```

### Tag: package-2015-08-31-preview and java

These settings apply only when `--tag=package-2015-08-31-preview --java` is specified on the command line.
Expand Down
11 changes: 11 additions & 0 deletions specification/msi/resource-manager/readme.ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,20 @@ azure-arm: true
``` yaml $(ruby) && $(multiapi)
batch:
- tag: package-2018-11-30
- tag: package-2015-08-31-preview
```
### Tag: package-2018-11-30 and ruby
These settings apply only when `--tag=package-2018-11-30 --ruby` is specified on the command line.
Please also specify `--ruby-sdks-folder=<path to the root directory of your azure-sdk-for-ruby clone>`.

``` yaml $(tag) == 'package-2018-11-30' && $(ruby)
namespace: "Azure::ManagedServiceIdentity::Mgmt::V2018-11-30"
output-folder: $(ruby-sdks-folder)/management/azure_mgmt_msi/lib
```

### Tag: package-2015-08-31-preview and ruby

These settings apply only when `--tag=package-2015-08-31-preview --ruby` is specified on the command line.
Expand Down

0 comments on commit 0ffb349

Please sign in to comment.