Skip to content

Commit 13568d0

Browse files
authored
(ARMSubscription) fixes Azure/azure-sdk-for-go#18620 (#19870)
* (ARMSubscription) fixes Azure/azure-sdk-for-go#18620 fixes #18620 The subscriptions Model struct includes a number of fields, but not all the fields available in the REST API according to the documentation. Specifically, the following fields are missing in the Go struct: tenantId - The subscription tenant ID. tags - The tags attached to the subscription. Note that these fields are returned by the API and are documented here: https://docs.microsoft.com/en-us/rest/api/resources/subscriptions/list?tabs=HTTP#subscription * Update subscriptions.json
1 parent 2a07629 commit 13568d0

File tree

1 file changed

+12
-0
lines changed
  • specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01

1 file changed

+12
-0
lines changed

specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/subscriptions.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,18 @@
240240
"modelAsString": false
241241
}
242242
},
243+
"tenantId": {
244+
"readOnly": true,
245+
"type": "string",
246+
"description": "The tenant ID. For example, 00000000-0000-0000-0000-000000000000."
247+
},
248+
"tags": {
249+
"description": "Tags for the subscription",
250+
"type": "object",
251+
"additionalProperties": {
252+
"type": "string"
253+
}
254+
},
243255
"subscriptionPolicies": {
244256
"$ref": "#/definitions/SubscriptionPolicies",
245257
"description": "The subscription policies."

0 commit comments

Comments
 (0)