Skip to content

Commit

Permalink
Update several common definitions according to arm feedback for conta…
Browse files Browse the repository at this point in the history
…iner service 2022-02-02-preview (#18206)

* update definition of serveral parameters and system data

* update definition of Resource and move property location to sub resources

* add missing tags property for prev Resource

* fix for compatibility

* fix definition name
  • Loading branch information
FumingZhang authored Mar 17, 2022
1 parent 38acb70 commit 81c594c
Showing 1 changed file with 21 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2566,23 +2566,30 @@
"description": "Describes the properties of a Operation Value Display."
},
"Resource": {
"title": "Resource",
"description": "Common fields that are returned in the response for all Azure Resource Manager resources",
"type": "object",
"description": "The Resource model definition.",
"properties": {
"id": {
"readOnly": true,
"type": "string",
"description": "Resource Id"
"description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
},
"name": {
"readOnly": true,
"type": "string",
"description": "Resource name"
"description": "The name of the resource"
},
"type": {
"readOnly": true,
"type": "string",
"description": "Resource type"
"description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\""
},
"systemData": {
"readOnly": true,
"type": "object",
"description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
"$ref": "#/definitions/SystemData"
},
"location": {
"type": "string",
Expand Down Expand Up @@ -3480,7 +3487,7 @@
"createdAt": {
"type": "string",
"format": "date-time",
"description": "The UTC timestamp of resource creation."
"description": "The timestamp of resource creation (UTC)."
},
"lastModifiedBy": {
"type": "string",
Expand All @@ -3503,7 +3510,7 @@
"lastModifiedAt": {
"type": "string",
"format": "date-time",
"description": "The type of identity that last modified the resource."
"description": "The timestamp of resource last modification (UTC)"
}
}
},
Expand Down Expand Up @@ -5844,11 +5851,6 @@
"Snapshot": {
"type": "object",
"properties": {
"systemData": {
"$ref": "#/definitions/SystemData",
"readOnly": true,
"description": "The system metadata relating to this snapshot."
},
"properties": {
"description": "Properties of a snapshot.",
"$ref": "#/definitions/SnapshotProperties",
Expand All @@ -5865,11 +5867,6 @@
"ManagedClusterSnapshot": {
"type": "object",
"properties": {
"systemData": {
"$ref": "#/definitions/SystemData",
"readOnly": true,
"description": "The system metadata relating to this snapshot."
},
"properties": {
"description": "Properties of a managed cluster snapshot.",
"$ref": "#/definitions/ManagedClusterSnapshotProperties",
Expand Down Expand Up @@ -6119,24 +6116,25 @@
"in": "path",
"required": true,
"type": "string",
"description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
"x-ms-parameter-location": "client"
"description": "The ID of the target subscription.",
"minLength": 1
},
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "Client Api Version.",
"x-ms-parameter-location": "client"
"description": "The API version to use for this operation.",
"minLength": 1
},
"ResourceGroupNameParameter": {
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group. The name is case insensitive.",
"minLength": 1,
"description": "The name of the resource group.",
"maxLength": 90,
"x-ms-parameter-location": "method"
},
"ResourceNameParameter": {
Expand All @@ -6155,7 +6153,8 @@
"in": "path",
"required": true,
"type": "string",
"description": "The name of a supported Azure region.",
"description": "The name of Azure region.",
"minLength": 1,
"x-ms-parameter-location": "method"
},
"ResourceTypeParameter": {
Expand Down

0 comments on commit 81c594c

Please sign in to comment.