From 990ba8775294e99064646cf0e5842708f84bf523 Mon Sep 17 00:00:00 2001 From: Helen Gao Date: Mon, 9 Dec 2024 14:36:56 -0800 Subject: [PATCH 01/26] Update Getting-started-with-TypeSpec-specifications.md (#31813) --- documentation/Getting-started-with-TypeSpec-specifications.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/Getting-started-with-TypeSpec-specifications.md b/documentation/Getting-started-with-TypeSpec-specifications.md index ee2add8f0212..d6e1acea042a 100644 --- a/documentation/Getting-started-with-TypeSpec-specifications.md +++ b/documentation/Getting-started-with-TypeSpec-specifications.md @@ -16,10 +16,10 @@ Within the azure-rest-api-specs repository, the TypeSpec specification serves as #### ARM: - :white_check_mark: TypeSpec folder name should end with `.Management`. -- :white_check_mark: This `tspconfig.yaml` is [standard for ARM](https://github.com/Azure/typespec-azure/blob/main/eng/feeds/arm/tspconfig.yaml). The one thing you may customize is the output json file name for `typespec-autorest` emitter. +- :white_check_mark: Starting from `tspconfig.yaml`[ARM template](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/contosowidgetmanager/Contoso.Management/tspconfig.yaml). The one thing you may customize is the output json file name for `typespec-autorest` emitter. #### Data-Plane: -- :white_check_mark: `tspconfig.yaml` starting template for [Data-plane is here.](https://github.com/Azure/typespec-azure/blob/main/eng/feeds/data-plane/tspconfig.yaml). For `typespec-autorest` emitter, you may only customize the output json file name. For other language SDK emitters' settings, you may override values for TypeSpec direct SDK generation. +- :white_check_mark: `tspconfig.yaml` starting template for [Data-plane](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml). For `typespec-autorest` emitter, you may only customize the output json file name. For other language SDK emitters' settings, you may override values for TypeSpec direct SDK generation. ### Detailed information From 981a44d26823fc6056b30fc1008c23d25beb5aff Mon Sep 17 00:00:00 2001 From: Libba Lawrence Date: Mon, 9 Dec 2024 15:53:49 -0800 Subject: [PATCH 02/26] [EG] remove preview versions (#31801) * version * tsp * update * tsp * just preview --- .../Azure.Messaging.EventGrid/main.tsp | 10 - .../preview/2023-06-01-preview/EventGrid.json | 725 --------------- .../2023-06-01-preview/examples/ack.json | 35 - .../2023-06-01-preview/examples/publish.json | 29 - .../2023-06-01-preview/examples/receive.json | 38 - .../2023-06-01-preview/examples/reject.json | 27 - .../2023-06-01-preview/examples/release.json | 27 - .../preview/2023-10-01-preview/EventGrid.json | 865 ------------------ .../2023-10-01-preview/examples/ack.json | 35 - .../2023-10-01-preview/examples/publish.json | 29 - .../2023-10-01-preview/examples/receive.json | 38 - .../2023-10-01-preview/examples/reject.json | 27 - .../2023-10-01-preview/examples/release.json | 28 - .../examples/renewlock.json | 27 - specification/eventgrid/data-plane/readme.md | 66 -- 15 files changed, 2006 deletions(-) delete mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json delete mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/ack.json delete mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/publish.json delete mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/receive.json delete mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/reject.json delete mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/release.json delete mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/EventGrid.json delete mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/ack.json delete mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/publish.json delete mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/receive.json delete mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/reject.json delete mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/release.json delete mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/renewlock.json diff --git a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp index 38cb94d4dfb1..752a178456e8 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp @@ -47,12 +47,6 @@ namespace Microsoft.EventGrid { using Azure; enum ServiceApiVersions { - @useDependency(Azure.Core.Versions.v1_0_Preview_2) - v2023_06_01_preview: "2023-06-01-preview", - - @useDependency(Azure.Core.Versions.v1_0_Preview_2) - v2023_10_01_preview: "2023-10-01-preview", - @useDependency(Azure.Core.Versions.v1_0_Preview_2) v2023_11_01: "2023-11-01", @@ -315,8 +309,6 @@ namespace Microsoft.EventGrid { { ...ReleaseOptions; - @added(ServiceApiVersions.v2023_10_01_preview) - @removed(ServiceApiVersions.v2023_11_01) @added(ServiceApiVersions.v2024_06_01) @doc("Release cloud events with the specified delay in seconds.") @query @@ -340,8 +332,6 @@ namespace Microsoft.EventGrid { // RenewLock Operation: // POST https://{namespaceName}.{region}.eventgrid.azure.net/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:renewLock?api-version={apiVersion} - @added(ServiceApiVersions.v2023_10_01_preview) - @removed(ServiceApiVersions.v2023_11_01) @added(ServiceApiVersions.v2024_06_01) @doc("Renew locks for a batch of Cloud Events. The response will include the set of successfully renewed lock tokens, along with other failed lock tokens with their corresponding error information. Successfully renewed locks will ensure that the associated event is only available to the consumer that holds the renewed lock.") @action("renewLock") diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json deleted file mode 100644 index b9576d96b25f..000000000000 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json +++ /dev/null @@ -1,725 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure.Messaging.EventGridClient", - "version": "2023-06-01-preview", - "description": "Azure Messaging EventGrid Client", - "x-typespec-generated": [ - { - "emitter": "@azure-tools/typespec-autorest" - } - ] - }, - "schemes": [ - "https" - ], - "x-ms-parameterized-host": { - "hostTemplate": "{endpoint}", - "useSchemePrefix": false, - "parameters": [ - { - "name": "endpoint", - "in": "path", - "description": "The host name of the namespace, e.g. namespaceName1.westus-1.eventgrid.azure.net", - "required": true, - "type": "string", - "format": "uri", - "x-ms-skip-url-encoding": true - } - ] - }, - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ], - "security": [ - { - "OAuth2Auth": [ - "https://eventgrid.azure.net/.default" - ] - } - ], - "securityDefinitions": { - "OAuth2Auth": { - "type": "oauth2", - "flow": "implicit", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "scopes": { - "https://eventgrid.azure.net/.default": "" - } - } - }, - "tags": [], - "paths": { - "/topics/{topicName}:publish": { - "post": { - "operationId": "PublishCloudEvent", - "description": "Publish a single Cloud Event to a namespace topic.", - "consumes": [ - "application/cloudevents+json; charset=utf-8" - ], - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "topicName", - "in": "path", - "description": "Topic Name.", - "required": true, - "type": "string" - }, - { - "name": "event", - "in": "body", - "description": "Single Cloud Event being published.", - "required": true, - "schema": { - "$ref": "#/definitions/CloudEvent" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PublishResult" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - } - } - }, - "/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:receive": { - "post": { - "operationId": "ReceiveCloudEvents", - "description": "Receive a batch of Cloud Events from a subscription.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "topicName", - "in": "path", - "description": "Topic Name.", - "required": true, - "type": "string" - }, - { - "name": "eventSubscriptionName", - "in": "path", - "description": "Event Subscription Name.", - "required": true, - "type": "string" - }, - { - "name": "maxEvents", - "in": "query", - "description": "Max Events count to be received. Minimum value is 1, while maximum value is 100 events. If not specified, the default value is 1.", - "required": false, - "type": "integer", - "format": "int32", - "default": 1, - "minimum": 1, - "maximum": 100 - }, - { - "name": "maxWaitTime", - "in": "query", - "description": "Max wait time value for receive operation in Seconds. It is the time in seconds that the server approximately waits for the availability of an event and responds to the request. If an event is available, the broker responds immediately to the client. Minimum value is 10 seconds, while maximum value is 120 seconds. If not specified, the default value is 60 seconds.", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/ReceiveResult" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - }, - "x-ms-examples": { - "Receive Cloud Event": { - "$ref": "./examples/receive.json" - } - } - } - }, - "/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:acknowledge": { - "post": { - "operationId": "AcknowledgeCloudEvents", - "description": "Acknowledge a batch of Cloud Events. The response will include the set of successfully acknowledged lock tokens, along with other failed lock tokens with their corresponding error information. Successfully acknowledged events will no longer be available to be received by any consumer.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "topicName", - "in": "path", - "description": "Topic Name.", - "required": true, - "type": "string" - }, - { - "name": "eventSubscriptionName", - "in": "path", - "description": "Event Subscription Name.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "lockTokens": { - "type": "array", - "description": "Array of lock tokens.", - "items": { - "type": "string" - } - } - }, - "required": [ - "lockTokens" - ] - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/AcknowledgeResult" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - }, - "x-ms-examples": { - "Acknowledge Cloud Event": { - "$ref": "./examples/ack.json" - } - } - } - }, - "/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:release": { - "post": { - "operationId": "ReleaseCloudEvents", - "description": "Release a batch of Cloud Events. The response will include the set of successfully released lock tokens, along with other failed lock tokens with their corresponding error information. Successfully released events can be received by consumers.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "topicName", - "in": "path", - "description": "Topic Name.", - "required": true, - "type": "string" - }, - { - "name": "eventSubscriptionName", - "in": "path", - "description": "Event Subscription Name.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "lockTokens": { - "type": "array", - "description": "Array of lock tokens.", - "items": { - "type": "string" - } - } - }, - "required": [ - "lockTokens" - ] - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/ReleaseResult" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - }, - "x-ms-examples": { - "Release Cloud Event": { - "$ref": "./examples/release.json" - } - } - } - }, - "/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:reject": { - "post": { - "operationId": "RejectCloudEvents", - "description": "Reject a batch of Cloud Events. The response will include the set of successfully rejected lock tokens, along with other failed lock tokens with their corresponding error information. Successfully rejected events will be dead-lettered and can no longer be received by a consumer.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "topicName", - "in": "path", - "description": "Topic Name.", - "required": true, - "type": "string" - }, - { - "name": "eventSubscriptionName", - "in": "path", - "description": "Event Subscription Name.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "lockTokens": { - "type": "array", - "description": "Array of lock tokens.", - "items": { - "type": "string" - } - } - }, - "required": [ - "lockTokens" - ] - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/RejectResult" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - }, - "x-ms-examples": { - "Reject Cloud Event": { - "$ref": "./examples/reject.json" - } - } - } - } - }, - "x-ms-paths": { - "/topics/{topicName}:publish?_overload=publishCloudEvents": { - "post": { - "operationId": "PublishCloudEvents", - "description": "Publish a batch of Cloud Events to a namespace topic.", - "consumes": [ - "application/cloudevents-batch+json; charset=utf-8" - ], - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "topicName", - "in": "path", - "description": "Topic Name.", - "required": true, - "type": "string" - }, - { - "name": "events", - "in": "body", - "description": "Array of Cloud Events being published.", - "required": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/CloudEvent" - } - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PublishResult" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - }, - "x-ms-examples": { - "Publish Cloud Event": { - "$ref": "./examples/publish.json" - } - } - } - } - }, - "definitions": { - "AcknowledgeResult": { - "type": "object", - "description": "The result of the Acknowledge operation.", - "properties": { - "failedLockTokens": { - "type": "array", - "description": "Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description).", - "items": { - "$ref": "#/definitions/FailedLockToken" - }, - "x-ms-identifiers": [] - }, - "succeededLockTokens": { - "type": "array", - "description": "Array of lock tokens for the successfully acknowledged cloud events.", - "items": { - "type": "string" - } - } - }, - "required": [ - "failedLockTokens", - "succeededLockTokens" - ] - }, - "Azure.Core.Foundations.Error": { - "type": "object", - "description": "The error object.", - "properties": { - "code": { - "type": "string", - "description": "One of a server-defined set of error codes." - }, - "message": { - "type": "string", - "description": "A human-readable representation of the error." - }, - "target": { - "type": "string", - "description": "The target of the error." - }, - "details": { - "type": "array", - "description": "An array of details about specific errors that led to this reported error.", - "items": { - "$ref": "#/definitions/Azure.Core.Foundations.Error" - }, - "x-ms-identifiers": [] - }, - "innererror": { - "$ref": "#/definitions/Azure.Core.Foundations.InnerError", - "description": "An object containing more specific information than the current object about the error." - } - }, - "required": [ - "code", - "message" - ] - }, - "Azure.Core.Foundations.ErrorResponse": { - "type": "object", - "description": "A response containing error details.", - "properties": { - "error": { - "$ref": "#/definitions/Azure.Core.Foundations.Error", - "description": "The error object." - } - }, - "required": [ - "error" - ] - }, - "Azure.Core.Foundations.InnerError": { - "type": "object", - "description": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.", - "properties": { - "code": { - "type": "string", - "description": "One of a server-defined set of error codes." - }, - "innererror": { - "$ref": "#/definitions/Azure.Core.Foundations.InnerError", - "description": "Inner error." - } - } - }, - "BrokerProperties": { - "type": "object", - "description": "Properties of the Event Broker operation.", - "properties": { - "lockToken": { - "type": "string", - "description": "The token of the lock on the event." - }, - "deliveryCount": { - "type": "integer", - "format": "int32", - "description": "The attempt count for delivering the event." - } - }, - "required": [ - "lockToken", - "deliveryCount" - ] - }, - "CloudEvent": { - "type": "object", - "description": "Properties of an event published to an Azure Messaging EventGrid Namespace topic using the CloudEvent 1.0 Schema.", - "properties": { - "id": { - "type": "string", - "description": "An identifier for the event. The combination of id and source must be unique for each distinct event." - }, - "source": { - "type": "string", - "description": "Identifies the context in which an event happened. The combination of id and source must be unique for each distinct event." - }, - "data": { - "description": "Event data specific to the event type." - }, - "data_base64": { - "type": "string", - "format": "byte", - "description": "Event data specific to the event type, encoded as a base64 string." - }, - "type": { - "type": "string", - "description": "Type of event related to the originating occurrence." - }, - "time": { - "type": "string", - "format": "date-time", - "description": "The time (in UTC) the event was generated, in RFC3339 format." - }, - "specversion": { - "type": "string", - "description": "The version of the CloudEvents specification which the event uses." - }, - "dataschema": { - "type": "string", - "description": "Identifies the schema that data adheres to." - }, - "datacontenttype": { - "type": "string", - "description": "Content type of data value." - }, - "subject": { - "type": "string", - "description": "This describes the subject of the event in the context of the event producer (identified by source)." - } - }, - "required": [ - "id", - "source", - "type", - "specversion" - ] - }, - "FailedLockToken": { - "type": "object", - "description": "Failed LockToken information.", - "properties": { - "lockToken": { - "type": "string", - "description": "The lock token of an entry in the request." - }, - "error": { - "$ref": "#/definitions/Azure.Core.Foundations.Error", - "description": "Error information of the failed operation result for the lock token in the request." - } - }, - "required": [ - "lockToken", - "error" - ] - }, - "PublishResult": { - "type": "object", - "description": "The result of the Publish operation." - }, - "ReceiveDetails": { - "type": "object", - "description": "Receive operation details per Cloud Event.", - "properties": { - "brokerProperties": { - "$ref": "#/definitions/BrokerProperties", - "description": "The Event Broker details." - }, - "event": { - "$ref": "#/definitions/CloudEvent", - "description": "Cloud Event details." - } - }, - "required": [ - "brokerProperties", - "event" - ] - }, - "ReceiveResult": { - "type": "object", - "description": "Details of the Receive operation response.", - "properties": { - "value": { - "type": "array", - "description": "Array of receive responses, one per cloud event.", - "items": { - "$ref": "#/definitions/ReceiveDetails" - }, - "x-ms-identifiers": [] - } - }, - "required": [ - "value" - ] - }, - "RejectResult": { - "type": "object", - "description": "The result of the Reject operation.", - "properties": { - "failedLockTokens": { - "type": "array", - "description": "Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description).", - "items": { - "$ref": "#/definitions/FailedLockToken" - }, - "x-ms-identifiers": [] - }, - "succeededLockTokens": { - "type": "array", - "description": "Array of lock tokens for the successfully rejected cloud events.", - "items": { - "type": "string" - } - } - }, - "required": [ - "failedLockTokens", - "succeededLockTokens" - ] - }, - "ReleaseResult": { - "type": "object", - "description": "The result of the Release operation.", - "properties": { - "failedLockTokens": { - "type": "array", - "description": "Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description).", - "items": { - "$ref": "#/definitions/FailedLockToken" - }, - "x-ms-identifiers": [] - }, - "succeededLockTokens": { - "type": "array", - "description": "Array of lock tokens for the successfully released cloud events.", - "items": { - "type": "string" - } - } - }, - "required": [ - "failedLockTokens", - "succeededLockTokens" - ] - } - }, - "parameters": { - "Azure.Core.Foundations.ApiVersionParameter": { - "name": "api-version", - "in": "query", - "description": "The API version to use for this operation.", - "required": true, - "type": "string", - "minLength": 1, - "x-ms-parameter-location": "method", - "x-ms-client-name": "apiVersion" - } - } -} diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/ack.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/ack.json deleted file mode 100644 index 4c4750865f80..000000000000 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/ack.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "operationId": "AcknowledgeCloudEvents", - "title": "Acknowledge Cloud Event", - "parameters": { - "endpoint": "myNamespaceName.westus-1.eventgrid.azure.net", - "topicName": "myTopic", - "eventSubscriptionName": "myEventSubscription", - "content-type": "application/json", - "authorization": "SharedAccessKey 123", - "api-version": "2023-06-01-preview", - "acknowledgeOptions": { - "lockTokens": [ - "CgMKATESCQoHdG9rZW4tMQ==" - ] - } - }, - "responses": { - "200": { - "body": { - "failedLockTokens": [ - { - "lockToken": "CgMKATESCQoHdG9rZW4tMQ==", - "error": { - "code": "BadToken", - "message": "" - } - } - ], - "succeededLockTokens": [ - "CgMKATESCQoHdG9rZW4tMQ==" - ] - } - } - } -} diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/publish.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/publish.json deleted file mode 100644 index c0ab8e874eaf..000000000000 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/publish.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "operationId": "PublishCloudEvents", - "title": "Publish Cloud Event", - "parameters": { - "endpoint": "myNamespaceName.westus-1.eventgrid.azure.net", - "topicName": "myTopic", - "content-type": "application/cloudevents-batch+json", - "authorization": "SharedAccessKey 123", - "api-version": "2023-06-01-preview", - "events": [ - { - "id": "b3ccc7e3-c1cb-49bf-b7c8-0d4e60980616", - "source": "/microsoft/autorest/examples/eventgrid/cloud-events/publish", - "specversion": "1.0", - "data": { - "Property1": "Value1", - "Property2": "Value2" - }, - "type": "Microsoft.Contoso.TestEvent", - "time": "2023-05-04T23:06:09.147165Z" - } - ] - }, - "responses": { - "200": { - "body": {} - } - } -} diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/receive.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/receive.json deleted file mode 100644 index 354944863035..000000000000 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/receive.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "operationId": "ReceiveCloudEvents", - "title": "Receive Cloud Event", - "parameters": { - "endpoint": "myNamespaceName.westus-1.eventgrid.azure.net", - "topicName": "myTopic", - "eventSubscriptionName": "myEventSubscription", - "content-type": "application/json", - "authorization": "SharedAccessKey 123", - "api-version": "2023-06-01-preview", - "maxEvents": 1, - "maxWaitTime": 60 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "brokerProperties": { - "lockToken": "CgMKATESCQoHdG9rZW4tMQ==", - "deliveryCount": 1 - }, - "event": { - "specversion": "1.0", - "type": "demo-started", - "source": "/test", - "subject": "all-hands-0405", - "id": "e770f36b-381a-41db-8b2b-b7199daeb202", - "time": "2023-05-05T17:31:00Z", - "datacontenttype": "application/json", - "data": "test" - } - } - ] - } - } - } -} diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/reject.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/reject.json deleted file mode 100644 index 2994b4613e41..000000000000 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/reject.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "operationId": "RejectCloudEvents", - "title": "Reject Cloud Event", - "parameters": { - "endpoint": "myNamespaceName.westus-1.eventgrid.azure.net", - "topicName": "myTopic", - "eventSubscriptionName": "myEventSubscription", - "content-type": "application/json", - "authorization": "SharedAccessKey 123", - "api-version": "2023-06-01-preview", - "rejectOptions": { - "lockTokens": [ - "CgMKATESCQoHdG9rZW4tMQ==" - ] - } - }, - "responses": { - "200": { - "body": { - "failedLockTokens": [], - "succeededLockTokens": [ - "CgMKATESCQoHdG9rZW4tMQ==" - ] - } - } - } -} diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/release.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/release.json deleted file mode 100644 index be525bf49e83..000000000000 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/release.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "operationId": "ReleaseCloudEvents", - "title": "Release Cloud Event", - "parameters": { - "endpoint": "myNamespaceName.westus-1.eventgrid.azure.net", - "topicName": "myTopic", - "eventSubscriptionName": "myEventSubscription", - "content-type": "application/json", - "authorization": "SharedAccessKey 123", - "api-version": "2023-06-01-preview", - "releaseOptions": { - "lockTokens": [ - "CgMKATESCQoHdG9rZW4tMQ==" - ] - } - }, - "responses": { - "200": { - "body": { - "failedLockTokens": [], - "succeededLockTokens": [ - "CgMKATESCQoHdG9rZW4tMQ==" - ] - } - } - } -} diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/EventGrid.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/EventGrid.json deleted file mode 100644 index ae498f775cfc..000000000000 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/EventGrid.json +++ /dev/null @@ -1,865 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure.Messaging.EventGridClient", - "version": "2023-10-01-preview", - "description": "Azure Messaging EventGrid Client", - "x-typespec-generated": [ - { - "emitter": "@azure-tools/typespec-autorest" - } - ] - }, - "schemes": [ - "https" - ], - "x-ms-parameterized-host": { - "hostTemplate": "{endpoint}", - "useSchemePrefix": false, - "parameters": [ - { - "name": "endpoint", - "in": "path", - "description": "The host name of the namespace, e.g. namespaceName1.westus-1.eventgrid.azure.net", - "required": true, - "type": "string", - "format": "uri", - "x-ms-skip-url-encoding": true - } - ] - }, - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ], - "security": [ - { - "OAuth2Auth": [ - "https://eventgrid.azure.net/.default" - ] - } - ], - "securityDefinitions": { - "OAuth2Auth": { - "type": "oauth2", - "flow": "implicit", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "scopes": { - "https://eventgrid.azure.net/.default": "" - } - } - }, - "tags": [], - "paths": { - "/topics/{topicName}:publish": { - "post": { - "operationId": "PublishCloudEvent", - "description": "Publish a single Cloud Event to a namespace topic.", - "consumes": [ - "application/cloudevents+json; charset=utf-8" - ], - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "topicName", - "in": "path", - "description": "Topic Name.", - "required": true, - "type": "string" - }, - { - "name": "event", - "in": "body", - "description": "Single Cloud Event being published.", - "required": true, - "schema": { - "$ref": "#/definitions/CloudEvent" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PublishResult" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - } - } - }, - "/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:receive": { - "post": { - "operationId": "ReceiveCloudEvents", - "description": "Receive a batch of Cloud Events from a subscription.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "topicName", - "in": "path", - "description": "Topic Name.", - "required": true, - "type": "string" - }, - { - "name": "eventSubscriptionName", - "in": "path", - "description": "Event Subscription Name.", - "required": true, - "type": "string" - }, - { - "name": "maxEvents", - "in": "query", - "description": "Max Events count to be received. Minimum value is 1, while maximum value is 100 events. If not specified, the default value is 1.", - "required": false, - "type": "integer", - "format": "int32", - "default": 1, - "minimum": 1, - "maximum": 100 - }, - { - "name": "maxWaitTime", - "in": "query", - "description": "Max wait time value for receive operation in Seconds. It is the time in seconds that the server approximately waits for the availability of an event and responds to the request. If an event is available, the broker responds immediately to the client. Minimum value is 10 seconds, while maximum value is 120 seconds. If not specified, the default value is 60 seconds.", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/ReceiveResult" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - }, - "x-ms-examples": { - "Receive Cloud Event": { - "$ref": "./examples/receive.json" - } - } - } - }, - "/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:acknowledge": { - "post": { - "operationId": "AcknowledgeCloudEvents", - "description": "Acknowledge a batch of Cloud Events. The response will include the set of successfully acknowledged lock tokens, along with other failed lock tokens with their corresponding error information. Successfully acknowledged events will no longer be available to be received by any consumer.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "topicName", - "in": "path", - "description": "Topic Name.", - "required": true, - "type": "string" - }, - { - "name": "eventSubscriptionName", - "in": "path", - "description": "Event Subscription Name.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "lockTokens": { - "type": "array", - "description": "Array of lock tokens.", - "items": { - "type": "string" - } - } - }, - "required": [ - "lockTokens" - ] - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/AcknowledgeResult" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - }, - "x-ms-examples": { - "Acknowledge Cloud Event": { - "$ref": "./examples/ack.json" - } - } - } - }, - "/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:release": { - "post": { - "operationId": "ReleaseCloudEvents", - "description": "Release a batch of Cloud Events. The response will include the set of successfully released lock tokens, along with other failed lock tokens with their corresponding error information. Successfully released events can be received by consumers.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "topicName", - "in": "path", - "description": "Topic Name.", - "required": true, - "type": "string" - }, - { - "name": "eventSubscriptionName", - "in": "path", - "description": "Event Subscription Name.", - "required": true, - "type": "string" - }, - { - "name": "releaseDelayInSeconds", - "in": "query", - "description": "Release cloud events with the specified delay in seconds.", - "required": false, - "type": "string", - "enum": [ - "0", - "10", - "60", - "600", - "3600" - ], - "x-ms-enum": { - "name": "ReleaseDelay", - "modelAsString": true, - "values": [ - { - "name": "By0Seconds", - "value": "0", - "description": "Release the event after 0 seconds." - }, - { - "name": "By10Seconds", - "value": "10", - "description": "Release the event after 10 seconds." - }, - { - "name": "By60Seconds", - "value": "60", - "description": "Release the event after 60 seconds." - }, - { - "name": "By600Seconds", - "value": "600", - "description": "Release the event after 600 seconds." - }, - { - "name": "By3600Seconds", - "value": "3600", - "description": "Release the event after 3600 seconds." - } - ] - } - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "lockTokens": { - "type": "array", - "description": "Array of lock tokens.", - "items": { - "type": "string" - } - } - }, - "required": [ - "lockTokens" - ] - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/ReleaseResult" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - }, - "x-ms-examples": { - "Release Cloud Event with an optional delay.": { - "$ref": "./examples/release.json" - } - } - } - }, - "/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:reject": { - "post": { - "operationId": "RejectCloudEvents", - "description": "Reject a batch of Cloud Events. The response will include the set of successfully rejected lock tokens, along with other failed lock tokens with their corresponding error information. Successfully rejected events will be dead-lettered and can no longer be received by a consumer.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "topicName", - "in": "path", - "description": "Topic Name.", - "required": true, - "type": "string" - }, - { - "name": "eventSubscriptionName", - "in": "path", - "description": "Event Subscription Name.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "lockTokens": { - "type": "array", - "description": "Array of lock tokens.", - "items": { - "type": "string" - } - } - }, - "required": [ - "lockTokens" - ] - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/RejectResult" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - }, - "x-ms-examples": { - "Reject Cloud Event": { - "$ref": "./examples/reject.json" - } - } - } - }, - "/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:renewLock": { - "post": { - "operationId": "RenewCloudEventLocks", - "description": "Renew locks for a batch of Cloud Events. The response will include the set of successfully renewed lock tokens, along with other failed lock tokens with their corresponding error information. Successfully renewed locks will ensure that the associated event is only available to the consumer that holds the renewed lock.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "topicName", - "in": "path", - "description": "Topic Name.", - "required": true, - "type": "string" - }, - { - "name": "eventSubscriptionName", - "in": "path", - "description": "Event Subscription Name.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "lockTokens": { - "type": "array", - "description": "Array of lock tokens.", - "items": { - "type": "string" - } - } - }, - "required": [ - "lockTokens" - ] - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/RenewCloudEventLocksResult" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - }, - "x-ms-examples": { - "Renew lock for batch of Cloud Events": { - "$ref": "./examples/renewlock.json" - } - } - } - } - }, - "x-ms-paths": { - "/topics/{topicName}:publish?_overload=publishCloudEvents": { - "post": { - "operationId": "PublishCloudEvents", - "description": "Publish a batch of Cloud Events to a namespace topic.", - "consumes": [ - "application/cloudevents-batch+json; charset=utf-8" - ], - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "topicName", - "in": "path", - "description": "Topic Name.", - "required": true, - "type": "string" - }, - { - "name": "events", - "in": "body", - "description": "Array of Cloud Events being published.", - "required": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/CloudEvent" - } - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PublishResult" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - }, - "x-ms-examples": { - "Publish Cloud Event": { - "$ref": "./examples/publish.json" - } - } - } - } - }, - "definitions": { - "AcknowledgeResult": { - "type": "object", - "description": "The result of the Acknowledge operation.", - "properties": { - "failedLockTokens": { - "type": "array", - "description": "Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description).", - "items": { - "$ref": "#/definitions/FailedLockToken" - }, - "x-ms-identifiers": [] - }, - "succeededLockTokens": { - "type": "array", - "description": "Array of lock tokens for the successfully acknowledged cloud events.", - "items": { - "type": "string" - } - } - }, - "required": [ - "failedLockTokens", - "succeededLockTokens" - ] - }, - "Azure.Core.Foundations.Error": { - "type": "object", - "description": "The error object.", - "properties": { - "code": { - "type": "string", - "description": "One of a server-defined set of error codes." - }, - "message": { - "type": "string", - "description": "A human-readable representation of the error." - }, - "target": { - "type": "string", - "description": "The target of the error." - }, - "details": { - "type": "array", - "description": "An array of details about specific errors that led to this reported error.", - "items": { - "$ref": "#/definitions/Azure.Core.Foundations.Error" - }, - "x-ms-identifiers": [] - }, - "innererror": { - "$ref": "#/definitions/Azure.Core.Foundations.InnerError", - "description": "An object containing more specific information than the current object about the error." - } - }, - "required": [ - "code", - "message" - ] - }, - "Azure.Core.Foundations.ErrorResponse": { - "type": "object", - "description": "A response containing error details.", - "properties": { - "error": { - "$ref": "#/definitions/Azure.Core.Foundations.Error", - "description": "The error object." - } - }, - "required": [ - "error" - ] - }, - "Azure.Core.Foundations.InnerError": { - "type": "object", - "description": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.", - "properties": { - "code": { - "type": "string", - "description": "One of a server-defined set of error codes." - }, - "innererror": { - "$ref": "#/definitions/Azure.Core.Foundations.InnerError", - "description": "Inner error." - } - } - }, - "BrokerProperties": { - "type": "object", - "description": "Properties of the Event Broker operation.", - "properties": { - "lockToken": { - "type": "string", - "description": "The token of the lock on the event." - }, - "deliveryCount": { - "type": "integer", - "format": "int32", - "description": "The attempt count for delivering the event." - } - }, - "required": [ - "lockToken", - "deliveryCount" - ] - }, - "CloudEvent": { - "type": "object", - "description": "Properties of an event published to an Azure Messaging EventGrid Namespace topic using the CloudEvent 1.0 Schema.", - "properties": { - "id": { - "type": "string", - "description": "An identifier for the event. The combination of id and source must be unique for each distinct event." - }, - "source": { - "type": "string", - "description": "Identifies the context in which an event happened. The combination of id and source must be unique for each distinct event." - }, - "data": { - "description": "Event data specific to the event type." - }, - "data_base64": { - "type": "string", - "format": "byte", - "description": "Event data specific to the event type, encoded as a base64 string." - }, - "type": { - "type": "string", - "description": "Type of event related to the originating occurrence." - }, - "time": { - "type": "string", - "format": "date-time", - "description": "The time (in UTC) the event was generated, in RFC3339 format." - }, - "specversion": { - "type": "string", - "description": "The version of the CloudEvents specification which the event uses." - }, - "dataschema": { - "type": "string", - "description": "Identifies the schema that data adheres to." - }, - "datacontenttype": { - "type": "string", - "description": "Content type of data value." - }, - "subject": { - "type": "string", - "description": "This describes the subject of the event in the context of the event producer (identified by source)." - } - }, - "required": [ - "id", - "source", - "type", - "specversion" - ] - }, - "FailedLockToken": { - "type": "object", - "description": "Failed LockToken information.", - "properties": { - "lockToken": { - "type": "string", - "description": "The lock token of an entry in the request." - }, - "error": { - "$ref": "#/definitions/Azure.Core.Foundations.Error", - "description": "Error information of the failed operation result for the lock token in the request." - } - }, - "required": [ - "lockToken", - "error" - ] - }, - "PublishResult": { - "type": "object", - "description": "The result of the Publish operation." - }, - "ReceiveDetails": { - "type": "object", - "description": "Receive operation details per Cloud Event.", - "properties": { - "brokerProperties": { - "$ref": "#/definitions/BrokerProperties", - "description": "The Event Broker details." - }, - "event": { - "$ref": "#/definitions/CloudEvent", - "description": "Cloud Event details." - } - }, - "required": [ - "brokerProperties", - "event" - ] - }, - "ReceiveResult": { - "type": "object", - "description": "Details of the Receive operation response.", - "properties": { - "value": { - "type": "array", - "description": "Array of receive responses, one per cloud event.", - "items": { - "$ref": "#/definitions/ReceiveDetails" - }, - "x-ms-identifiers": [] - } - }, - "required": [ - "value" - ] - }, - "RejectResult": { - "type": "object", - "description": "The result of the Reject operation.", - "properties": { - "failedLockTokens": { - "type": "array", - "description": "Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description).", - "items": { - "$ref": "#/definitions/FailedLockToken" - }, - "x-ms-identifiers": [] - }, - "succeededLockTokens": { - "type": "array", - "description": "Array of lock tokens for the successfully rejected cloud events.", - "items": { - "type": "string" - } - } - }, - "required": [ - "failedLockTokens", - "succeededLockTokens" - ] - }, - "ReleaseResult": { - "type": "object", - "description": "The result of the Release operation.", - "properties": { - "failedLockTokens": { - "type": "array", - "description": "Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description).", - "items": { - "$ref": "#/definitions/FailedLockToken" - }, - "x-ms-identifiers": [] - }, - "succeededLockTokens": { - "type": "array", - "description": "Array of lock tokens for the successfully released cloud events.", - "items": { - "type": "string" - } - } - }, - "required": [ - "failedLockTokens", - "succeededLockTokens" - ] - }, - "RenewCloudEventLocksResult": { - "type": "object", - "description": "The result of the RenewLock operation.", - "properties": { - "failedLockTokens": { - "type": "array", - "description": "Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description).", - "items": { - "$ref": "#/definitions/FailedLockToken" - }, - "x-ms-identifiers": [] - }, - "succeededLockTokens": { - "type": "array", - "description": "Array of lock tokens for the successfully renewed locks.", - "items": { - "type": "string" - } - } - }, - "required": [ - "failedLockTokens", - "succeededLockTokens" - ] - } - }, - "parameters": { - "Azure.Core.Foundations.ApiVersionParameter": { - "name": "api-version", - "in": "query", - "description": "The API version to use for this operation.", - "required": true, - "type": "string", - "minLength": 1, - "x-ms-parameter-location": "method", - "x-ms-client-name": "apiVersion" - } - } -} diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/ack.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/ack.json deleted file mode 100644 index f710ba663816..000000000000 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/ack.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "operationId": "AcknowledgeCloudEvents", - "title": "Acknowledge Cloud Event", - "parameters": { - "endpoint": "myNamespaceName.westus-1.eventgrid.azure.net", - "topicName": "myTopic", - "eventSubscriptionName": "myEventSubscription", - "content-type": "application/json", - "authorization": "SharedAccessKey 123", - "api-version": "2023-10-01-preview", - "acknowledgeOptions": { - "lockTokens": [ - "CgMKATESCQoHdG9rZW4tMQ==" - ] - } - }, - "responses": { - "200": { - "body": { - "failedLockTokens": [ - { - "lockToken": "CgMKATESCQoHdG9rZW4tMQ==", - "error": { - "code": "BadToken", - "message": "" - } - } - ], - "succeededLockTokens": [ - "CgMKATESCQoHdG9rZW4tMQ==" - ] - } - } - } -} diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/publish.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/publish.json deleted file mode 100644 index 05601800af31..000000000000 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/publish.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "operationId": "PublishCloudEvents", - "title": "Publish Cloud Event", - "parameters": { - "endpoint": "myNamespaceName.westus-1.eventgrid.azure.net", - "topicName": "myTopic", - "content-type": "application/cloudevents-batch+json", - "authorization": "SharedAccessKey 123", - "api-version": "2023-10-01-preview", - "events": [ - { - "id": "b3ccc7e3-c1cb-49bf-b7c8-0d4e60980616", - "source": "/microsoft/autorest/examples/eventgrid/cloud-events/publish", - "specversion": "1.0", - "data": { - "Property1": "Value1", - "Property2": "Value2" - }, - "type": "Microsoft.Contoso.TestEvent", - "time": "2023-05-04T23:06:09.147165Z" - } - ] - }, - "responses": { - "200": { - "body": {} - } - } -} diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/receive.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/receive.json deleted file mode 100644 index 41d89863c4ed..000000000000 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/receive.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "operationId": "ReceiveCloudEvents", - "title": "Receive Cloud Event", - "parameters": { - "endpoint": "myNamespaceName.westus-1.eventgrid.azure.net", - "topicName": "myTopic", - "eventSubscriptionName": "myEventSubscription", - "content-type": "application/json", - "authorization": "SharedAccessKey 123", - "api-version": "2023-10-01-preview", - "maxEvents": 1, - "maxWaitTime": 60 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "brokerProperties": { - "lockToken": "CgMKATESCQoHdG9rZW4tMQ==", - "deliveryCount": 1 - }, - "event": { - "specversion": "1.0", - "type": "demo-started", - "source": "/test", - "subject": "all-hands-0405", - "id": "e770f36b-381a-41db-8b2b-b7199daeb202", - "time": "2023-05-05T17:31:00Z", - "datacontenttype": "application/json", - "data": "test" - } - } - ] - } - } - } -} diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/reject.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/reject.json deleted file mode 100644 index fb8df1122fb6..000000000000 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/reject.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "operationId": "RejectCloudEvents", - "title": "Reject Cloud Event", - "parameters": { - "endpoint": "myNamespaceName.westus-1.eventgrid.azure.net", - "topicName": "myTopic", - "eventSubscriptionName": "myEventSubscription", - "content-type": "application/json", - "authorization": "SharedAccessKey 123", - "api-version": "2023-10-01-preview", - "rejectOptions": { - "lockTokens": [ - "CgMKATESCQoHdG9rZW4tMQ==" - ] - } - }, - "responses": { - "200": { - "body": { - "failedLockTokens": [], - "succeededLockTokens": [ - "CgMKATESCQoHdG9rZW4tMQ==" - ] - } - } - } -} diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/release.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/release.json deleted file mode 100644 index 839463e041bd..000000000000 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/release.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "operationId": "ReleaseCloudEvents", - "title": "Release Cloud Event with an optional delay.", - "parameters": { - "endpoint": "myNamespaceName.westus-1.eventgrid.azure.net", - "topicName": "myTopic", - "eventSubscriptionName": "myEventSubscription", - "content-type": "application/json", - "authorization": "SharedAccessKey 123", - "api-version": "2023-10-01-preview", - "releaseDelayInSeconds": 10, - "releaseOptions": { - "lockTokens": [ - "CgMKATESCQoHdG9rZW4tMQ==" - ] - } - }, - "responses": { - "200": { - "body": { - "failedLockTokens": [], - "succeededLockTokens": [ - "CgMKATESCQoHdG9rZW4tMQ==" - ] - } - } - } -} diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/renewlock.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/renewlock.json deleted file mode 100644 index 3e66ebf1ffe0..000000000000 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-10-01-preview/examples/renewlock.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "operationId": "RenewCloudEventLocks", - "title": "Renew lock for batch of Cloud Events", - "parameters": { - "endpoint": "myNamespaceName.westus-1.eventgrid.azure.net", - "topicName": "myTopic", - "eventSubscriptionName": "myEventSubscription", - "content-type": "application/json", - "authorization": "SharedAccessKey 123", - "api-version": "2023-10-01-preview", - "renewLockOptions": { - "lockTokens": [ - "CgMKATESCQoHdG9rZW4tMQ==" - ] - } - }, - "responses": { - "200": { - "body": { - "failedLockTokens": [], - "succeededLockTokens": [ - "CgMKATESCQoHdG9rZW4tMQ==" - ] - } - } - } -} diff --git a/specification/eventgrid/data-plane/readme.md b/specification/eventgrid/data-plane/readme.md index 372db9e9e967..fa4c5243e6d0 100644 --- a/specification/eventgrid/data-plane/readme.md +++ b/specification/eventgrid/data-plane/readme.md @@ -147,72 +147,6 @@ input-file: - Microsoft.ApiCenter/stable/2018-01-01/ApiCenter.json ``` -### Tag: package-2023-06-01-preview - -These settings apply only when `--tag=package-2023-06-01-preview` is specified on the command line. - -``` yaml $(tag) == 'package-2023-06-01-preview' -input-file: -- Microsoft.Storage/stable/2018-01-01/Storage.json -- Microsoft.EventHub/stable/2018-01-01/EventHub.json -- Microsoft.Resources/stable/2018-01-01/Resources.json -- Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json -- Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json -- Microsoft.DataBox/stable/2018-01-01/DataBox.json -- Microsoft.Devices/stable/2018-01-01/IotHub.json -- Microsoft.ContainerRegistry/stable/2018-01-01/ContainerRegistry.json -- Microsoft.ServiceBus/stable/2018-01-01/ServiceBus.json -- Microsoft.Media/stable/2018-01-01/MediaServices.json -- Microsoft.Maps/stable/2018-01-01/Maps.json -- Microsoft.AppConfiguration/stable/2018-01-01/AppConfiguration.json -- Microsoft.SignalRService/stable/2018-01-01/SignalRService.json -- Microsoft.KeyVault/stable/2018-01-01/KeyVault.json -- Microsoft.MachineLearningServices/stable/2018-01-01/MachineLearningServices.json -- Microsoft.Cache/stable/2018-01-01/RedisCache.json -- Microsoft.Web/stable/2018-01-01/Web.json -- Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json -- Microsoft.PolicyInsights/stable/2018-01-01/PolicyInsights.json -- Microsoft.ContainerService/stable/2018-01-01/ContainerService.json -- Microsoft.ApiManagement/stable/2018-01-01/APIManagement.json -- Microsoft.HealthcareApis/stable/2018-01-01/HealthcareApis.json -- Microsoft.ResourceNotifications/stable/2018-01-01/common.json -- Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json -- Microsoft.ResourceNotifications/stable/2018-01-01/Resources.json -- Microsoft.AVS/stable/2018-01-01/PrivateCloud.json -``` - -### Tag: package-2023-10-01-preview - -These settings apply only when `--tag=package-2023-10-01-preview` is specified on the command line. - -``` yaml $(tag) == 'package-2023-10-01-preview' -input-file: -- Microsoft.Storage/stable/2018-01-01/Storage.json -- Microsoft.EventHub/stable/2018-01-01/EventHub.json -- Microsoft.Resources/stable/2018-01-01/Resources.json -- Microsoft.EventGrid/preview/2023-10-01-preview/EventGrid.json -- Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json -- Microsoft.DataBox/stable/2018-01-01/DataBox.json -- Microsoft.Devices/stable/2018-01-01/IotHub.json -- Microsoft.ContainerRegistry/stable/2018-01-01/ContainerRegistry.json -- Microsoft.ServiceBus/stable/2018-01-01/ServiceBus.json -- Microsoft.Media/stable/2018-01-01/MediaServices.json -- Microsoft.Maps/stable/2018-01-01/Maps.json -- Microsoft.AppConfiguration/stable/2018-01-01/AppConfiguration.json -- Microsoft.SignalRService/stable/2018-01-01/SignalRService.json -- Microsoft.KeyVault/stable/2018-01-01/KeyVault.json -- Microsoft.MachineLearningServices/stable/2018-01-01/MachineLearningServices.json -- Microsoft.Cache/stable/2018-01-01/RedisCache.json -- Microsoft.Web/stable/2018-01-01/Web.json -- Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json -- Microsoft.PolicyInsights/stable/2018-01-01/PolicyInsights.json -- Microsoft.ContainerService/stable/2018-01-01/ContainerService.json -- Microsoft.ApiManagement/stable/2018-01-01/APIManagement.json -- Microsoft.HealthcareApis/stable/2018-01-01/HealthcareApis.json -- Microsoft.AVS/stable/2018-01-01/PrivateCloud.json - -``` - ### Tag: package-2023-11-01 These settings apply only when `--tag=package-2023-11-01` is specified on the command line. From ac963d75999b84aa26d77f8dd3154b238d67013a Mon Sep 17 00:00:00 2001 From: Nneka Okeke Date: Wed, 27 Nov 2024 12:45:41 -0500 Subject: [PATCH 03/26] update description of routes and remove some properties in stable version --- .../Operations_List_MaximumSet_Gen.json | 4 +- .../Operations_List_MinimumSet_Gen.json | 2 +- ...chinesCancelOperations_MaximumSet_Gen.json | 6 +- ...chinesCancelOperations_MinimumSet_Gen.json | 4 +- ...hinesExecuteDeallocate_MaximumSet_Gen.json | 8 +- ...hinesExecuteDeallocate_MinimumSet_Gen.json | 6 +- ...chinesExecuteHibernate_MaximumSet_Gen.json | 6 +- ...chinesExecuteHibernate_MinimumSet_Gen.json | 6 +- ...alMachinesExecuteStart_MaximumSet_Gen.json | 6 +- ...alMachinesExecuteStart_MinimumSet_Gen.json | 6 +- ...inesGetOperationErrors_MaximumSet_Gen.json | 6 +- ...inesGetOperationErrors_MinimumSet_Gen.json | 4 +- ...inesGetOperationStatus_MaximumSet_Gen.json | 6 +- ...inesGetOperationStatus_MinimumSet_Gen.json | 4 +- ...chinesSubmitDeallocate_MaximumSet_Gen.json | 6 +- ...chinesSubmitDeallocate_MinimumSet_Gen.json | 8 +- ...achinesSubmitHibernate_MaximumSet_Gen.json | 6 +- ...achinesSubmitHibernate_MinimumSet_Gen.json | 8 +- ...ualMachinesSubmitStart_MaximumSet_Gen.json | 6 +- ...ualMachinesSubmitStart_MinimumSet_Gen.json | 8 +- .../Operations_List_MaximumSet_Gen.json | 4 +- .../Operations_List_MinimumSet_Gen.json | 2 +- ...chinesCancelOperations_MaximumSet_Gen.json | 17 +-- ...chinesCancelOperations_MinimumSet_Gen.json | 8 +- ...hinesExecuteDeallocate_MaximumSet_Gen.json | 18 +-- ...hinesExecuteDeallocate_MinimumSet_Gen.json | 8 +- ...chinesExecuteHibernate_MaximumSet_Gen.json | 18 +-- ...chinesExecuteHibernate_MinimumSet_Gen.json | 8 +- ...alMachinesExecuteStart_MaximumSet_Gen.json | 18 +-- ...alMachinesExecuteStart_MinimumSet_Gen.json | 8 +- ...inesGetOperationErrors_MaximumSet_Gen.json | 12 +- ...inesGetOperationErrors_MinimumSet_Gen.json | 6 +- ...inesGetOperationStatus_MaximumSet_Gen.json | 15 +-- ...inesGetOperationStatus_MinimumSet_Gen.json | 8 +- ...chinesSubmitDeallocate_MaximumSet_Gen.json | 24 ++-- ...chinesSubmitDeallocate_MinimumSet_Gen.json | 10 +- ...achinesSubmitHibernate_MaximumSet_Gen.json | 24 ++-- ...achinesSubmitHibernate_MinimumSet_Gen.json | 10 +- ...ualMachinesSubmitStart_MaximumSet_Gen.json | 24 ++-- ...ualMachinesSubmitStart_MinimumSet_Gen.json | 10 +- .../ComputeSchedule.Management/models.tsp | 3 + .../ComputeSchedule.Management/routes.tsp | 18 +-- .../2024-08-15-preview/computeschedule.json | 58 ++++----- .../Operations_List_MaximumSet_Gen.json | 4 +- .../Operations_List_MinimumSet_Gen.json | 2 +- ...chinesCancelOperations_MaximumSet_Gen.json | 6 +- ...chinesCancelOperations_MinimumSet_Gen.json | 4 +- ...hinesExecuteDeallocate_MaximumSet_Gen.json | 8 +- ...hinesExecuteDeallocate_MinimumSet_Gen.json | 6 +- ...chinesExecuteHibernate_MaximumSet_Gen.json | 6 +- ...chinesExecuteHibernate_MinimumSet_Gen.json | 6 +- ...alMachinesExecuteStart_MaximumSet_Gen.json | 6 +- ...alMachinesExecuteStart_MinimumSet_Gen.json | 6 +- ...inesGetOperationErrors_MaximumSet_Gen.json | 6 +- ...inesGetOperationErrors_MinimumSet_Gen.json | 4 +- ...inesGetOperationStatus_MaximumSet_Gen.json | 6 +- ...inesGetOperationStatus_MinimumSet_Gen.json | 4 +- ...chinesSubmitDeallocate_MaximumSet_Gen.json | 6 +- ...chinesSubmitDeallocate_MinimumSet_Gen.json | 8 +- ...achinesSubmitHibernate_MaximumSet_Gen.json | 6 +- ...achinesSubmitHibernate_MinimumSet_Gen.json | 8 +- ...ualMachinesSubmitStart_MaximumSet_Gen.json | 6 +- ...ualMachinesSubmitStart_MinimumSet_Gen.json | 8 +- .../stable/2024-10-01/computeschedule.json | 116 +++++------------- .../Operations_List_MaximumSet_Gen.json | 4 +- .../Operations_List_MinimumSet_Gen.json | 2 +- ...chinesCancelOperations_MaximumSet_Gen.json | 17 +-- ...chinesCancelOperations_MinimumSet_Gen.json | 8 +- ...hinesExecuteDeallocate_MaximumSet_Gen.json | 18 +-- ...hinesExecuteDeallocate_MinimumSet_Gen.json | 8 +- ...chinesExecuteHibernate_MaximumSet_Gen.json | 18 +-- ...chinesExecuteHibernate_MinimumSet_Gen.json | 8 +- ...alMachinesExecuteStart_MaximumSet_Gen.json | 18 +-- ...alMachinesExecuteStart_MinimumSet_Gen.json | 8 +- ...inesGetOperationErrors_MaximumSet_Gen.json | 12 +- ...inesGetOperationErrors_MinimumSet_Gen.json | 6 +- ...inesGetOperationStatus_MaximumSet_Gen.json | 15 +-- ...inesGetOperationStatus_MinimumSet_Gen.json | 8 +- ...chinesSubmitDeallocate_MaximumSet_Gen.json | 24 ++-- ...chinesSubmitDeallocate_MinimumSet_Gen.json | 10 +- ...achinesSubmitHibernate_MaximumSet_Gen.json | 24 ++-- ...achinesSubmitHibernate_MinimumSet_Gen.json | 10 +- ...ualMachinesSubmitStart_MaximumSet_Gen.json | 24 ++-- ...ualMachinesSubmitStart_MinimumSet_Gen.json | 10 +- 84 files changed, 439 insertions(+), 492 deletions(-) diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List_MaximumSet_Gen.json index b1e2c7650def..5527d50cb2aa 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List_MaximumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Operations_ListMax - generated by [MaximumSet] rule", + "title": "Operations_ListMax", "operationId": "Operations_List", "parameters": { "api-version": "2024-08-15-preview" @@ -15,7 +15,7 @@ "provider": "brssqjspiggui", "resource": "aujpznmlzjgsyynq", "operation": "sjldnlycokfcufegoktphlwpvxkx", - "description": "qcifelb" + "description": "kqhh" }, "origin": "user", "actionType": "Internal" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List_MinimumSet_Gen.json index 3be92ede7825..f585eb9b0caf 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List_MinimumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Operations_ListMax - generated by [MinimumSet] rule", + "title": "Operations_ListMin", "operationId": "Operations_List", "parameters": { "api-version": "2024-08-15-preview" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json index 79b32e871f03..1888e9bc1560 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesCancelOperations - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesCancelOperationsMax", "operationId": "ScheduledActions_VirtualMachinesCancelOperations", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "eaappebo", + "locationparameter": "wtd", "requestBody": { "operationIds": [ "23480d2f-1dca-4610-afb4-dd25eec1f34r" @@ -37,7 +37,7 @@ "retryCount": 30, "retryWindowInMinutes": 27 }, - "timeZone": "vrmelzherdxpepkmpcafbhhwksee" + "timeZone": "UTC" } } ] diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json index 707d34b2845e..28eed6e99b0f 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesCancelOperations - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesCancelOperationsMin", "operationId": "ScheduledActions_VirtualMachinesCancelOperations", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "dabadctfcwehizjlf", + "locationparameter": "qbkgothantoheghulvmydskhwy", "requestBody": { "operationIds": [ "23480d2f-1dca-4610-afb4-dd25eec1f34r" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json index 549c68a27d02..eb12485b69c7 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteDeallocate - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteDeallocateMax", "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "yuwcdphhvxpkxuwdbmclxchro", + "locationparameter": "jqifmg", "requestBody": { "executionParameters": { "optimizationPreference": "Cost", @@ -48,11 +48,11 @@ "retryCount": 30, "retryWindowInMinutes": 27 }, - "timeZone": "onovfauvuwcjgpckrvuwnyxvmgbdl" + "timeZone": "UTC" } } ], - "description": "ysxr" + "description": "legcblswxmwppghf" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json index 197032fc466b..43a8e4dc3d82 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteDeallocate - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteDeallocateMin", "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "oaxdvfbmmfqn", + "locationparameter": "kvvocgcciwizculwkaysfcbo", "requestBody": { "executionParameters": {}, "resources": { @@ -20,7 +20,7 @@ "body": { "type": "eokrhxypminzcgplibblmwojvjd", "location": "qbbvrdisvjgxirnzdvdsodkt", - "description": "ysxr" + "description": "legcblswxmwppghf" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json index 1f75f8d0f3d3..9faa0480c970 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteHibernate - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteHibernatMax", "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "bw", + "locationparameter": "sfdfbtqeclpnolvlzjmq", "requestBody": { "executionParameters": { "optimizationPreference": "Cost", @@ -52,7 +52,7 @@ } } ], - "description": "jpmpdupcxch" + "description": "pnetsuntzjjpnonpitsiuupnuun" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json index 788095c95c5f..6bbfeb2077c5 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteHibernate - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteHibernateMin", "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "upuegigdtggnzydvhrq", + "locationparameter": "xoskahjvuakqsphihjinzsxepwtdm", "requestBody": { "executionParameters": {}, "resources": { @@ -20,7 +20,7 @@ "body": { "type": "mkmgbfpkiudefzhdppgjmqztx", "location": "rvlnzczpesuvusbmbcjctzcinzlr", - "description": "jpmpdupcxch" + "description": "pnetsuntzjjpnonpitsiuupnuun" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json index 0fcc427d1c97..e063980e5903 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteStart - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteStartMax", "operationId": "ScheduledActions_VirtualMachinesExecuteStart", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "uslsyt", + "locationparameter": "fmrwbi", "requestBody": { "executionParameters": { "optimizationPreference": "Cost", @@ -52,7 +52,7 @@ } } ], - "description": "prwratqpmdydpwilajfsghlfsq" + "description": "swzesyaila" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json index 9de939495617..f579e5483009 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteStart - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteStartMin", "operationId": "ScheduledActions_VirtualMachinesExecuteStart", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "nlcoqxdqvzwsnno", + "locationparameter": "nruavdkq", "requestBody": { "executionParameters": {}, "resources": { @@ -20,7 +20,7 @@ "body": { "type": "gxmnjtgu", "location": "uvlidhowwv", - "description": "prwratqpmdydpwilajfsghlfsq" + "description": "swzesyaila" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json index afe0fbdaff1d..52a61432cece 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "CS_ScheduledActions_VirtualMachinesGetOperationErrors_Max - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesGetOperationErrors_Max", "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "qkkozkepjoxxrumxggus", + "locationparameter": "p", "requestBody": { "operationIds": [ "DE84A209-5715-43E7-BC76-3E208A9A323" @@ -25,7 +25,7 @@ "errorCode": "nr", "errorDetails": "2024-08-08T19:00:14.771Z", "timeStamp": "2024-11-14T00:31:09.825Z", - "crpOperationId": "yyasyedabhoghmcwkzhgioa" + "crpOperationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } ], "requestErrorCode": "hyfvxj", diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json index 48def82e8045..6a0074c8de52 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "CS_ScheduledActions_VirtualMachinesGetOperationErrors_Max - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesGetOperationErrors_Min", "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "vmvxfwxihd", + "locationparameter": "wnuijjrhtlzemreb", "requestBody": { "operationIds": [ "DE84A209-5715-43E7-BC76-3E208A9A323" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json index cae9ec7d71ea..9becdfff6a2a 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationStatus - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesGetOperationStatusMax", "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "wtonkgyqxtmiiwaopkejk", + "locationparameter": "fbnapoxndbgqbyajf", "requestBody": { "operationIds": [ "01080d2f-1dca-4610-afb4-dd25eec1f3df" @@ -21,7 +21,7 @@ "errorCode": "rqbbptfjkgsues", "errorDetails": "aecbxyqxtkkqpgrvkuzfjra", "operation": { - "operationId": "i", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", "opType": "Unknown", "subscriptionId": "zmflagmslsgiikjcrhmqv", diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json index 730613516a47..57d4550ed363 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationStatus - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesGetOperationStatusMin", "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "llgibopkzdrjkanagxvkbnf", + "locationparameter": "owehibaaueprkldavclvzvxeb", "requestBody": { "operationIds": [ "01080d2f-1dca-4610-afb4-dd25eec1f3df" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json index a2c3789626d4..ca6c48a4f35a 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitDeallocate - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitDeallocateMax", "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "kcbpvyiutojo", + "locationparameter": "mkqjiujnanymni", "requestBody": { "schedule": { "deadlineType": "Unknown", @@ -57,7 +57,7 @@ } } ], - "description": "ysxr" + "description": "legcblswxmwppghf" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json index 89c1fad0bb47..595ddc980c8c 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json @@ -1,14 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitDeallocate - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitDeallocateMin", "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "qwfcdtmshnlownbkyh", + "locationparameter": "hkuyzefoacw", "requestBody": { "schedule": { - "deadLine": "2024-07-12T18:06:53.361Z", - "timeZone": "zlcujrtgxtgyik", "deadlineType": "Unknown" }, "executionParameters": {}, @@ -25,7 +23,7 @@ "body": { "type": "eokrhxypminzcgplibblmwojvjd", "location": "qbbvrdisvjgxirnzdvdsodkt", - "description": "ndhb" + "description": "legcblswxmwppghf" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json index 213f6dfda71d..7c1a918a0edb 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitHibernate - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitHibernate Max", "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "mwvealholuozx", + "locationparameter": "b", "requestBody": { "schedule": { "deadlineType": "Unknown", @@ -57,7 +57,7 @@ } } ], - "description": "jpmpdupcxch" + "description": "pnetsuntzjjpnonpitsiuupnuun" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json index 888c0f730991..c56ced283405 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json @@ -1,14 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitHibernate - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitHibernateMin", "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "fvjciwudfbndlqumcgqs", + "locationparameter": "tr", "requestBody": { "schedule": { - "deadLine": "2024-07-12T18:06:53.361Z", - "timeZone": "zlcujrtgxtgyik", "deadlineType": "Unknown" }, "executionParameters": {}, @@ -25,7 +23,7 @@ "body": { "type": "mkmgbfpkiudefzhdppgjmqztx", "location": "rvlnzczpesuvusbmbcjctzcinzlr", - "description": "wbxeejgkmtwtkcsepidgox" + "description": "pnetsuntzjjpnonpitsiuupnuun" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json index 834c184160fd..d4440c67fa98 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitStart - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitStartMax", "operationId": "ScheduledActions_VirtualMachinesSubmitStart", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "iosacqdhsupcvceljodheflyxdaxs", + "locationparameter": "hrbepqlfyctbhuydklbnuv", "requestBody": { "schedule": { "deadlineType": "Unknown", @@ -57,7 +57,7 @@ } } ], - "description": "prwratqpmdydpwilajfsghlfsq" + "description": "swzesyaila" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json index f2feaacddcaa..4574547e5956 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json @@ -1,14 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitStart - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitStartMin", "operationId": "ScheduledActions_VirtualMachinesSubmitStart", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "httzei", + "locationparameter": "tmokffo", "requestBody": { "schedule": { - "deadLine": "2024-07-12T18:06:53.361Z", - "timeZone": "zlcujrtgxtgyik", "deadlineType": "Unknown" }, "executionParameters": {}, @@ -25,7 +23,7 @@ "body": { "type": "gxmnjtgu", "location": "uvlidhowwv", - "description": "raacd" + "description": "swzesyaila" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List_MaximumSet_Gen.json index f2aeaccf85d8..8ad4071130dd 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List_MaximumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Operations_List_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "Operations_List_MaximumSet_Gen", "operationId": "Operations_List", "parameters": { "api-version": "2024-10-01" @@ -15,7 +15,7 @@ "provider": "vtlhmqtfhlyllnplzpdpq", "resource": "epj", "operation": "tuneyqwanedwnnbztrmq", - "description": "qmz" + "description": "moyje" }, "origin": "user", "actionType": "Internal" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List_MinimumSet_Gen.json index a31d50f509c9..96ae8e889274 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List_MinimumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Operations_List_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "Operations_List_MinimumSet_Gen", "operationId": "Operations_List", "parameters": { "api-version": "2024-10-01" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json index 8ea0d3462ec6..069e61ce2215 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json @@ -1,15 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesCancelOperations", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "crnpkkzzulnvaauupoolqnsgpcfdgr", + "locationparameter": "ouhxsbxzasmmhdn", "requestBody": { "operationIds": [ - "nvynvzydoyplsngbkhpw" + "23480d2f-1dca-4610-afb4-dd25eec1f34r" ], - "correlationid": "wkzyavvbrovkgoxdddfcprnvll" + "correlationid": "23480d2f-1dca-4610-afb4-gg25eec1f34r" } }, "responses": { @@ -21,14 +21,14 @@ "errorCode": "lmpnizhpzc", "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", "operation": { - "operationId": "gkpxdnvesigypvokjdkceyfnnzkxou", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", "opType": "Unknown", - "subscriptionId": "knpnudszcyfuohpctlxkomtqfc", + "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", "deadlineType": "Unknown", "state": "Unknown", - "timezone": "qghruphsrszutvefcmlujlkulmwy", + "timezone": "UTC", "resourceOperationError": { "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", "errorDetails": "tvriinrhdrq" @@ -37,7 +37,8 @@ "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 - } + }, + "timeZone": "UTC" } } ] diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json index 620c5e5842d6..dc7a74b46531 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json @@ -1,15 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesCancelOperations", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "inquvldntqixydxjaf", + "locationparameter": "ppo", "requestBody": { "operationIds": [ - "nvynvzydoyplsngbkhpw" + "23480d2f-1dca-4610-afb4-dd25eec1f34r" ], - "correlationid": "wkzyavvbrovkgoxdddfcprnvll" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eecff34r" } }, "responses": { diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json index 69d31ed4daf5..8f84167a81d7 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json @@ -1,13 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "emghzcdjeqqjwibfeklrsnsrcwbg", + "locationparameter": "cjjdtgxejxbuvznvimztuxqjbqodd", "requestBody": { "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 @@ -18,7 +17,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "exoxgqdgcfiszehwxixjkkgitmnu" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -32,14 +31,14 @@ "errorCode": "lmpnizhpzc", "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", "operation": { - "operationId": "gkpxdnvesigypvokjdkceyfnnzkxou", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", "opType": "Unknown", - "subscriptionId": "knpnudszcyfuohpctlxkomtqfc", + "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", "deadlineType": "Unknown", "state": "Unknown", - "timezone": "qghruphsrszutvefcmlujlkulmwy", + "timezone": "UTC", "resourceOperationError": { "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", "errorDetails": "tvriinrhdrq" @@ -48,11 +47,12 @@ "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 - } + }, + "timeZone": "UTC" } } ], - "description": "dgyzikubvrarwjbhlbakddyr" + "description": "blifqielbaipdypeghebbzlhuwbshl" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json index c7fbadb69e36..95ee81707040 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "t", + "locationparameter": "qgjjdanragigdscdjg", "requestBody": { "executionParameters": {}, "resources": { @@ -12,7 +12,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "exoxgqdgcfiszehwxixjkkgitmnu" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -20,7 +20,7 @@ "body": { "type": "oqht", "location": "klzw", - "description": "dgyzikubvrarwjbhlbakddyr" + "description": "blifqielbaipdypeghebbzlhuwbshl" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json index 2b6e2413c15b..6c1835fb4595 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json @@ -1,13 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "cjlwfuuanpzptgvnzyjthdgajrpp", + "locationparameter": "pgddlgsxnajgok", "requestBody": { "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 @@ -18,7 +17,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "vyhi" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -32,14 +31,14 @@ "errorCode": "lmpnizhpzc", "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", "operation": { - "operationId": "gkpxdnvesigypvokjdkceyfnnzkxou", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", "opType": "Unknown", - "subscriptionId": "knpnudszcyfuohpctlxkomtqfc", + "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", "deadlineType": "Unknown", "state": "Unknown", - "timezone": "qghruphsrszutvefcmlujlkulmwy", + "timezone": "UTC", "resourceOperationError": { "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", "errorDetails": "tvriinrhdrq" @@ -48,11 +47,12 @@ "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 - } + }, + "timeZone": "UTC" } } ], - "description": "wtkkqgpbnmytcplmoroxsn" + "description": "melomnhpdla" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json index 881ec3d941c7..4e0268413867 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "zzrmqofhzmxvuhcd", + "locationparameter": "xnnhrmqdqxd", "requestBody": { "executionParameters": {}, "resources": { @@ -12,7 +12,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "vyhi" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -20,7 +20,7 @@ "body": { "type": "wxomyfujvxevcmciffrwjcgqgwax", "location": "klzw", - "description": "wtkkqgpbnmytcplmoroxsn" + "description": "melomnhpdla" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json index 9ad94da58327..e9aa7dc06373 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json @@ -1,13 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesExecuteStart", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "ejosmxxqdayoihqzbn", + "locationparameter": "mjia", "requestBody": { "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 @@ -18,7 +17,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "czbxgyyxbo" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -32,14 +31,14 @@ "errorCode": "lmpnizhpzc", "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", "operation": { - "operationId": "gkpxdnvesigypvokjdkceyfnnzkxou", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", "opType": "Unknown", - "subscriptionId": "knpnudszcyfuohpctlxkomtqfc", + "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", "deadlineType": "Unknown", "state": "Unknown", - "timezone": "qghruphsrszutvefcmlujlkulmwy", + "timezone": "UTC", "resourceOperationError": { "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", "errorDetails": "tvriinrhdrq" @@ -48,11 +47,12 @@ "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 - } + }, + "timeZone": "UTC" } } ], - "description": "zbkrwqsvesvzoofgzduomvhahmxo" + "description": "awwicktefaaz" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json index 6936e5c82bfa..afedc26dd367 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesExecuteStart", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "rxdfmeqzfejlzdcnmdztiy", + "locationparameter": "qpiinfsykbkc", "requestBody": { "executionParameters": {}, "resources": { @@ -12,7 +12,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "czbxgyyxbo" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -20,7 +20,7 @@ "body": { "type": "vgntivk", "location": "klzw", - "description": "zbkrwqsvesvzoofgzduomvhahmxo" + "description": "awwicktefaaz" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json index 2b2181c88544..182dd39a6e85 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json @@ -1,13 +1,13 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "mravjxzqficqzyifzpk", + "locationparameter": "jjezrypbxkczuyzrosajnnpgw", "requestBody": { "operationIds": [ - "yrldpeepjdodnbwfgr" + "23480d2f-1dca-4610-afb4-dd25eec1f34r" ] } }, @@ -16,7 +16,7 @@ "body": { "results": [ { - "operationId": "phkmafksgwsvcjnjgbpyfevw", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "creationTime": "2024-11-01T17:52:53.999Z", "activationTime": "2024-11-01T17:52:53.999Z", "completedAt": "2024-11-01T17:52:53.999Z", @@ -25,7 +25,9 @@ "errorCode": "thlxqphhzk", "errorDetails": "ytopml", "timestamp": "2024-11-01T17:52:53.999Z", - "azureOperationName": "jsxbqz" + "azureOperationName": "23480d2f-1dca-4610-afb4-dd25eec1f34r", + "timeStamp": "2024-11-27T16:55:03.357Z", + "crpOperationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } ], "requestErrorCode": "j", diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json index 58a4f94ee476..6cd1a2727de4 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json @@ -1,13 +1,13 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "xtcsapbyrdpphsq", + "locationparameter": "aawvznzoilbmjdcplavzia", "requestBody": { "operationIds": [ - "yrldpeepjdodnbwfgr" + "23480d2f-1dca-4610-afb4-dd25eec1f34r" ] } }, diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json index 33239c8740b6..696b4a2bc9d4 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json @@ -1,13 +1,13 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "n", + "locationparameter": "bafldmcspivzxqwrxlxstghebeja", "requestBody": { "operationIds": [ - "bybstwzkfypdufgxvvtaf" + "23480d2f-1dca-4610-afb4-dd25eec1f34r" ], "correlationid": "qdwuijwcpstvx" } @@ -21,14 +21,14 @@ "errorCode": "lmpnizhpzc", "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", "operation": { - "operationId": "gkpxdnvesigypvokjdkceyfnnzkxou", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", "opType": "Unknown", - "subscriptionId": "knpnudszcyfuohpctlxkomtqfc", + "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", "deadlineType": "Unknown", "state": "Unknown", - "timezone": "qghruphsrszutvefcmlujlkulmwy", + "timezone": "UTC", "resourceOperationError": { "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", "errorDetails": "tvriinrhdrq" @@ -37,7 +37,8 @@ "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 - } + }, + "timeZone": "UTC" } } ] diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json index 58d79be25273..bad97b1096aa 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json @@ -1,15 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "doypjz", + "locationparameter": "uuiouyzcjdvpbmrhx", "requestBody": { "operationIds": [ - "bybstwzkfypdufgxvvtaf" + "23480d2f-1dca-4610-afb4-dd25eec1f34r" ], - "correlationid": "qdwuijwcpstvx" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json index f6f8bf581818..e5014ba59543 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json @@ -1,18 +1,19 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "qfjjafnzudpcmtjufvilazetl", + "locationparameter": "pkcbmivarbdfrsirxgdydcfesfu", "requestBody": { "schedule": { "deadline": "2024-11-01T17:52:54.215Z", - "timezone": "csrtkjccrazescylvjzn", - "deadlineType": "Unknown" + "timezone": "UTC", + "deadlineType": "Unknown", + "deadLine": "2024-11-27T16:55:03.357Z", + "timeZone": "UTC" }, "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 @@ -23,7 +24,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "coogaewlllezkrdyjfeilu" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -37,14 +38,14 @@ "errorCode": "lmpnizhpzc", "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", "operation": { - "operationId": "gkpxdnvesigypvokjdkceyfnnzkxou", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", "opType": "Unknown", - "subscriptionId": "knpnudszcyfuohpctlxkomtqfc", + "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", "deadlineType": "Unknown", "state": "Unknown", - "timezone": "qghruphsrszutvefcmlujlkulmwy", + "timezone": "UTC", "resourceOperationError": { "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", "errorDetails": "tvriinrhdrq" @@ -53,11 +54,12 @@ "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 - } + }, + "timeZone": "UTC" } } ], - "description": "dgyzikubvrarwjbhlbakddyr" + "description": "blifqielbaipdypeghebbzlhuwbshl" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json index a341d99b2daf..beb52c3fd315 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json @@ -1,14 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "kfp", + "locationparameter": "qnrurmlploypzzhkdew", "requestBody": { "schedule": { - "deadline": "2024-11-01T17:52:54.215Z", - "timezone": "csrtkjccrazescylvjzn", "deadlineType": "Unknown" }, "executionParameters": {}, @@ -17,7 +15,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "coogaewlllezkrdyjfeilu" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -25,7 +23,7 @@ "body": { "type": "oqht", "location": "klzw", - "description": "dgyzikubvrarwjbhlbakddyr" + "description": "blifqielbaipdypeghebbzlhuwbshl" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json index 597911fe119f..d1eef1f42019 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json @@ -1,18 +1,19 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "zaezoherlpbmujcy", + "locationparameter": "stb", "requestBody": { "schedule": { "deadline": "2024-11-01T17:52:54.215Z", - "timezone": "csrtkjccrazescylvjzn", - "deadlineType": "Unknown" + "timezone": "UTC", + "deadlineType": "Unknown", + "deadLine": "2024-11-27T16:55:03.358Z", + "timeZone": "UTC" }, "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 @@ -23,7 +24,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "gtmbshlh" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -37,14 +38,14 @@ "errorCode": "lmpnizhpzc", "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", "operation": { - "operationId": "gkpxdnvesigypvokjdkceyfnnzkxou", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", "opType": "Unknown", - "subscriptionId": "knpnudszcyfuohpctlxkomtqfc", + "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", "deadlineType": "Unknown", "state": "Unknown", - "timezone": "qghruphsrszutvefcmlujlkulmwy", + "timezone": "UTC", "resourceOperationError": { "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", "errorDetails": "tvriinrhdrq" @@ -53,11 +54,12 @@ "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 - } + }, + "timeZone": "UTC" } } ], - "description": "wtkkqgpbnmytcplmoroxsn" + "description": "melomnhpdla" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json index d7dbff4b6184..b5e34d857e28 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json @@ -1,14 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "hcppcvqhssvzpjbnnac", + "locationparameter": "mpekujwrup", "requestBody": { "schedule": { - "deadline": "2024-11-01T17:52:54.215Z", - "timezone": "csrtkjccrazescylvjzn", "deadlineType": "Unknown" }, "executionParameters": {}, @@ -17,7 +15,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "gtmbshlh" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -25,7 +23,7 @@ "body": { "type": "wxomyfujvxevcmciffrwjcgqgwax", "location": "klzw", - "description": "wtkkqgpbnmytcplmoroxsn" + "description": "melomnhpdla" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json index 581aa046c767..21a9470c4c78 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json @@ -1,18 +1,19 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesSubmitStart", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "wqmhcqilzhjtgphyrtmxd", + "locationparameter": "vludqrjb", "requestBody": { "schedule": { "deadline": "2024-11-01T17:52:54.215Z", - "timezone": "csrtkjccrazescylvjzn", - "deadlineType": "Unknown" + "timezone": "UTC", + "deadlineType": "Unknown", + "deadLine": "2024-11-27T16:55:03.358Z", + "timeZone": "UTC" }, "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 @@ -23,7 +24,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "rtz" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -37,14 +38,14 @@ "errorCode": "lmpnizhpzc", "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", "operation": { - "operationId": "gkpxdnvesigypvokjdkceyfnnzkxou", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", "opType": "Unknown", - "subscriptionId": "knpnudszcyfuohpctlxkomtqfc", + "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", "deadlineType": "Unknown", "state": "Unknown", - "timezone": "qghruphsrszutvefcmlujlkulmwy", + "timezone": "UTC", "resourceOperationError": { "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", "errorDetails": "tvriinrhdrq" @@ -53,11 +54,12 @@ "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 - } + }, + "timeZone": "UTC" } } ], - "description": "zbkrwqsvesvzoofgzduomvhahmxo" + "description": "awwicktefaaz" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json index a5b8a398fc0b..787d127682ef 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json @@ -1,14 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesSubmitStart", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "qgxm", + "locationparameter": "mboyvperbgcixyywe", "requestBody": { "schedule": { - "deadline": "2024-11-01T17:52:54.215Z", - "timezone": "csrtkjccrazescylvjzn", "deadlineType": "Unknown" }, "executionParameters": {}, @@ -17,7 +15,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "rtz" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -25,7 +23,7 @@ "body": { "type": "vgntivk", "location": "klzw", - "description": "zbkrwqsvesvzoofgzduomvhahmxo" + "description": "awwicktefaaz" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/models.tsp b/specification/computeschedule/ComputeSchedule.Management/models.tsp index 6e95fef41de2..370e52ff49bf 100644 --- a/specification/computeschedule/ComputeSchedule.Management/models.tsp +++ b/specification/computeschedule/ComputeSchedule.Management/models.tsp @@ -22,12 +22,14 @@ union DeadlineType { @doc("Initiate the operation at the given deadline.") InitiateAt: "InitiateAt", + @removed(Microsoft.ComputeSchedule.Versions.`2024-10-01`) @doc("Complete the operation by the given deadline.") CompleteBy: "CompleteBy", string, } +@removed(Microsoft.ComputeSchedule.Versions.`2024-10-01`) @doc("The preferences customers can select to optimize their requests to ScheduledActions") union OptimizationPreference { @doc("Optimize while considering cost savings") @@ -145,6 +147,7 @@ model RetryPolicy { @doc("Extra details needed to run the user's request") model ExecutionParameters { + @removed(Microsoft.ComputeSchedule.Versions.`2024-10-01`) @doc("Details that could optimize the user's request") optimizationPreference?: OptimizationPreference; diff --git a/specification/computeschedule/ComputeSchedule.Management/routes.tsp b/specification/computeschedule/ComputeSchedule.Management/routes.tsp index 8c0197c4ca98..355968f6cfe5 100644 --- a/specification/computeschedule/ComputeSchedule.Management/routes.tsp +++ b/specification/computeschedule/ComputeSchedule.Management/routes.tsp @@ -18,7 +18,7 @@ interface Operations extends Azure.ResourceManager.Operations {} #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "Each resource interface must have an @armResourceOperations decorator." interface ScheduledActions { // -------------- Routes ------------- - /** virtualMachinesSubmitDeallocate: submitDeallocate for a virtual machine */ + /** SubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitDeallocate") @post @@ -27,7 +27,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: SubmitDeallocateRequest, ): ArmResponse | ErrorResponse; - /** virtualMachinesSubmitHibernate: submitHibernate for a virtual machine */ + /** SubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in future. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitHibernate") @post @@ -36,7 +36,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: SubmitHibernateRequest, ): ArmResponse | ErrorResponse; - /** virtualMachinesSubmitStart: submitStart for a virtual machine */ + /** SubmitStart: Schedule start operation for a batch of virtual machines at datetime in future. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitStart") @post @@ -45,7 +45,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: SubmitStartRequest, ): ArmResponse | ErrorResponse; - /** virtualMachinesExecuteDeallocate: executeDeallocate for a virtual machine */ + /** ExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDeallocate") @post @@ -54,7 +54,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: ExecuteDeallocateRequest, ): ArmResponse | ErrorResponse; - /** virtualMachinesExecuteHibernate: executeHibernate for a virtual machine */ + /** ExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteHibernate") @post @@ -63,7 +63,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: ExecuteHibernateRequest, ): ArmResponse | ErrorResponse; - /** virtualMachinesExecuteStart: executeStart for a virtual machine */ + /** ExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteStart") @post @@ -72,7 +72,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: ExecuteStartRequest, ): ArmResponse | ErrorResponse; - /** virtualMachinesGetOperationStatus: getOperationStatus for a virtual machine */ + /** GetOperationStatus: Polling endpoint to read status of operations performed on virtual machines */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationStatus") @post @@ -81,7 +81,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: GetOperationStatusRequest, ): ArmResponse | ErrorResponse; - /** virtualMachinesCancelOperations: cancelOperations for a virtual machine */ + /** CancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request for submit-type ComputeSchedule operations */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesCancelOperations") @post @@ -90,7 +90,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: CancelOperationsRequest, ): ArmResponse | ErrorResponse; - /** virtualMachinesGetOperationErrors: getOperationErrors associated with an operation on a virtual machine */ + /** GetOperationErrors: Get operation error details on operation errors (like transient errors encountered, additional logs) if they exist. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationErrors") @post diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json index 3d61e87b0656..9067277f971f 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json @@ -71,10 +71,10 @@ } }, "x-ms-examples": { - "Operations_ListMax - generated by [MaximumSet] rule": { + "Operations_ListMax": { "$ref": "./examples/Operations_List_MaximumSet_Gen.json" }, - "Operations_ListMax - generated by [MinimumSet] rule": { + "Operations_ListMin": { "$ref": "./examples/Operations_List_MinimumSet_Gen.json" } }, @@ -86,7 +86,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesCancelOperations": { "post": { "operationId": "ScheduledActions_VirtualMachinesCancelOperations", - "description": "virtualMachinesCancelOperations: cancelOperations for a virtual machine", + "description": "CancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request for submit-type ComputeSchedule operations", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -127,10 +127,10 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesCancelOperations - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesCancelOperationsMax": { "$ref": "./examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json" }, - "ScheduledActions_VirtualMachinesCancelOperations - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesCancelOperationsMin": { "$ref": "./examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json" } } @@ -139,7 +139,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDeallocate": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", - "description": "virtualMachinesExecuteDeallocate: executeDeallocate for a virtual machine", + "description": "ExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -180,10 +180,10 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesExecuteDeallocate - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesExecuteDeallocateMax": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json" }, - "ScheduledActions_VirtualMachinesExecuteDeallocate - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesExecuteDeallocateMin": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json" } } @@ -192,7 +192,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteHibernate": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", - "description": "virtualMachinesExecuteHibernate: executeHibernate for a virtual machine", + "description": "ExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -233,10 +233,10 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesExecuteHibernate - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesExecuteHibernatMax": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json" }, - "ScheduledActions_VirtualMachinesExecuteHibernate - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesExecuteHibernateMin": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json" } } @@ -245,7 +245,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteStart": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteStart", - "description": "virtualMachinesExecuteStart: executeStart for a virtual machine", + "description": "ExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -286,10 +286,10 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesExecuteStart - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesExecuteStartMax": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json" }, - "ScheduledActions_VirtualMachinesExecuteStart - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesExecuteStartMin": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json" } } @@ -298,7 +298,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationErrors": { "post": { "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", - "description": "virtualMachinesGetOperationErrors: getOperationErrors associated with an operation on a virtual machine", + "description": "GetOperationErrors: Get operation error details on operation errors (like transient errors encountered, additional logs) if they exist.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -339,10 +339,10 @@ } }, "x-ms-examples": { - "CS_ScheduledActions_VirtualMachinesGetOperationErrors_Max - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesGetOperationErrors_Max": { "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json" }, - "CS_ScheduledActions_VirtualMachinesGetOperationErrors_Max - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesGetOperationErrors_Min": { "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json" } } @@ -351,7 +351,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationStatus": { "post": { "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", - "description": "virtualMachinesGetOperationStatus: getOperationStatus for a virtual machine", + "description": "GetOperationStatus: Polling endpoint to read status of operations performed on virtual machines", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -392,10 +392,10 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesGetOperationStatus - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesGetOperationStatusMax": { "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json" }, - "ScheduledActions_VirtualMachinesGetOperationStatus - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesGetOperationStatusMin": { "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json" } } @@ -404,7 +404,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitDeallocate": { "post": { "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", - "description": "virtualMachinesSubmitDeallocate: submitDeallocate for a virtual machine", + "description": "SubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -445,10 +445,10 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesSubmitDeallocate - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesSubmitDeallocateMax": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json" }, - "ScheduledActions_VirtualMachinesSubmitDeallocate - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesSubmitDeallocateMin": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json" } } @@ -457,7 +457,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitHibernate": { "post": { "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", - "description": "virtualMachinesSubmitHibernate: submitHibernate for a virtual machine", + "description": "SubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in future.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -498,10 +498,10 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesSubmitHibernate - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesSubmitHibernate Max": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json" }, - "ScheduledActions_VirtualMachinesSubmitHibernate - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesSubmitHibernateMin": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json" } } @@ -510,7 +510,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitStart": { "post": { "operationId": "ScheduledActions_VirtualMachinesSubmitStart", - "description": "virtualMachinesSubmitStart: submitStart for a virtual machine", + "description": "SubmitStart: Schedule start operation for a batch of virtual machines at datetime in future.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -551,10 +551,10 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesSubmitStart - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesSubmitStartMax": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json" }, - "ScheduledActions_VirtualMachinesSubmitStart - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesSubmitStartMin": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json" } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List_MaximumSet_Gen.json index b1e2c7650def..5527d50cb2aa 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List_MaximumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Operations_ListMax - generated by [MaximumSet] rule", + "title": "Operations_ListMax", "operationId": "Operations_List", "parameters": { "api-version": "2024-08-15-preview" @@ -15,7 +15,7 @@ "provider": "brssqjspiggui", "resource": "aujpznmlzjgsyynq", "operation": "sjldnlycokfcufegoktphlwpvxkx", - "description": "qcifelb" + "description": "kqhh" }, "origin": "user", "actionType": "Internal" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List_MinimumSet_Gen.json index 3be92ede7825..f585eb9b0caf 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List_MinimumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Operations_ListMax - generated by [MinimumSet] rule", + "title": "Operations_ListMin", "operationId": "Operations_List", "parameters": { "api-version": "2024-08-15-preview" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json index 79b32e871f03..1888e9bc1560 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesCancelOperations - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesCancelOperationsMax", "operationId": "ScheduledActions_VirtualMachinesCancelOperations", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "eaappebo", + "locationparameter": "wtd", "requestBody": { "operationIds": [ "23480d2f-1dca-4610-afb4-dd25eec1f34r" @@ -37,7 +37,7 @@ "retryCount": 30, "retryWindowInMinutes": 27 }, - "timeZone": "vrmelzherdxpepkmpcafbhhwksee" + "timeZone": "UTC" } } ] diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json index 707d34b2845e..28eed6e99b0f 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesCancelOperations - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesCancelOperationsMin", "operationId": "ScheduledActions_VirtualMachinesCancelOperations", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "dabadctfcwehizjlf", + "locationparameter": "qbkgothantoheghulvmydskhwy", "requestBody": { "operationIds": [ "23480d2f-1dca-4610-afb4-dd25eec1f34r" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json index 549c68a27d02..eb12485b69c7 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteDeallocate - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteDeallocateMax", "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "yuwcdphhvxpkxuwdbmclxchro", + "locationparameter": "jqifmg", "requestBody": { "executionParameters": { "optimizationPreference": "Cost", @@ -48,11 +48,11 @@ "retryCount": 30, "retryWindowInMinutes": 27 }, - "timeZone": "onovfauvuwcjgpckrvuwnyxvmgbdl" + "timeZone": "UTC" } } ], - "description": "ysxr" + "description": "legcblswxmwppghf" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json index 197032fc466b..43a8e4dc3d82 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteDeallocate - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteDeallocateMin", "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "oaxdvfbmmfqn", + "locationparameter": "kvvocgcciwizculwkaysfcbo", "requestBody": { "executionParameters": {}, "resources": { @@ -20,7 +20,7 @@ "body": { "type": "eokrhxypminzcgplibblmwojvjd", "location": "qbbvrdisvjgxirnzdvdsodkt", - "description": "ysxr" + "description": "legcblswxmwppghf" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json index 1f75f8d0f3d3..9faa0480c970 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteHibernate - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteHibernatMax", "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "bw", + "locationparameter": "sfdfbtqeclpnolvlzjmq", "requestBody": { "executionParameters": { "optimizationPreference": "Cost", @@ -52,7 +52,7 @@ } } ], - "description": "jpmpdupcxch" + "description": "pnetsuntzjjpnonpitsiuupnuun" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json index 788095c95c5f..6bbfeb2077c5 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteHibernate - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteHibernateMin", "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "upuegigdtggnzydvhrq", + "locationparameter": "xoskahjvuakqsphihjinzsxepwtdm", "requestBody": { "executionParameters": {}, "resources": { @@ -20,7 +20,7 @@ "body": { "type": "mkmgbfpkiudefzhdppgjmqztx", "location": "rvlnzczpesuvusbmbcjctzcinzlr", - "description": "jpmpdupcxch" + "description": "pnetsuntzjjpnonpitsiuupnuun" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json index 0fcc427d1c97..e063980e5903 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteStart - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteStartMax", "operationId": "ScheduledActions_VirtualMachinesExecuteStart", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "uslsyt", + "locationparameter": "fmrwbi", "requestBody": { "executionParameters": { "optimizationPreference": "Cost", @@ -52,7 +52,7 @@ } } ], - "description": "prwratqpmdydpwilajfsghlfsq" + "description": "swzesyaila" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json index 9de939495617..f579e5483009 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteStart - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteStartMin", "operationId": "ScheduledActions_VirtualMachinesExecuteStart", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "nlcoqxdqvzwsnno", + "locationparameter": "nruavdkq", "requestBody": { "executionParameters": {}, "resources": { @@ -20,7 +20,7 @@ "body": { "type": "gxmnjtgu", "location": "uvlidhowwv", - "description": "prwratqpmdydpwilajfsghlfsq" + "description": "swzesyaila" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json index afe0fbdaff1d..52a61432cece 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "CS_ScheduledActions_VirtualMachinesGetOperationErrors_Max - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesGetOperationErrors_Max", "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "qkkozkepjoxxrumxggus", + "locationparameter": "p", "requestBody": { "operationIds": [ "DE84A209-5715-43E7-BC76-3E208A9A323" @@ -25,7 +25,7 @@ "errorCode": "nr", "errorDetails": "2024-08-08T19:00:14.771Z", "timeStamp": "2024-11-14T00:31:09.825Z", - "crpOperationId": "yyasyedabhoghmcwkzhgioa" + "crpOperationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } ], "requestErrorCode": "hyfvxj", diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json index 48def82e8045..6a0074c8de52 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "CS_ScheduledActions_VirtualMachinesGetOperationErrors_Max - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesGetOperationErrors_Min", "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "vmvxfwxihd", + "locationparameter": "wnuijjrhtlzemreb", "requestBody": { "operationIds": [ "DE84A209-5715-43E7-BC76-3E208A9A323" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json index cae9ec7d71ea..9becdfff6a2a 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationStatus - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesGetOperationStatusMax", "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "wtonkgyqxtmiiwaopkejk", + "locationparameter": "fbnapoxndbgqbyajf", "requestBody": { "operationIds": [ "01080d2f-1dca-4610-afb4-dd25eec1f3df" @@ -21,7 +21,7 @@ "errorCode": "rqbbptfjkgsues", "errorDetails": "aecbxyqxtkkqpgrvkuzfjra", "operation": { - "operationId": "i", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", "opType": "Unknown", "subscriptionId": "zmflagmslsgiikjcrhmqv", diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json index 730613516a47..57d4550ed363 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationStatus - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesGetOperationStatusMin", "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "llgibopkzdrjkanagxvkbnf", + "locationparameter": "owehibaaueprkldavclvzvxeb", "requestBody": { "operationIds": [ "01080d2f-1dca-4610-afb4-dd25eec1f3df" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json index a2c3789626d4..ca6c48a4f35a 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitDeallocate - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitDeallocateMax", "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "kcbpvyiutojo", + "locationparameter": "mkqjiujnanymni", "requestBody": { "schedule": { "deadlineType": "Unknown", @@ -57,7 +57,7 @@ } } ], - "description": "ysxr" + "description": "legcblswxmwppghf" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json index 89c1fad0bb47..595ddc980c8c 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json @@ -1,14 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitDeallocate - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitDeallocateMin", "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "qwfcdtmshnlownbkyh", + "locationparameter": "hkuyzefoacw", "requestBody": { "schedule": { - "deadLine": "2024-07-12T18:06:53.361Z", - "timeZone": "zlcujrtgxtgyik", "deadlineType": "Unknown" }, "executionParameters": {}, @@ -25,7 +23,7 @@ "body": { "type": "eokrhxypminzcgplibblmwojvjd", "location": "qbbvrdisvjgxirnzdvdsodkt", - "description": "ndhb" + "description": "legcblswxmwppghf" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json index 213f6dfda71d..7c1a918a0edb 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitHibernate - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitHibernate Max", "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "mwvealholuozx", + "locationparameter": "b", "requestBody": { "schedule": { "deadlineType": "Unknown", @@ -57,7 +57,7 @@ } } ], - "description": "jpmpdupcxch" + "description": "pnetsuntzjjpnonpitsiuupnuun" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json index 888c0f730991..c56ced283405 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json @@ -1,14 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitHibernate - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitHibernateMin", "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "fvjciwudfbndlqumcgqs", + "locationparameter": "tr", "requestBody": { "schedule": { - "deadLine": "2024-07-12T18:06:53.361Z", - "timeZone": "zlcujrtgxtgyik", "deadlineType": "Unknown" }, "executionParameters": {}, @@ -25,7 +23,7 @@ "body": { "type": "mkmgbfpkiudefzhdppgjmqztx", "location": "rvlnzczpesuvusbmbcjctzcinzlr", - "description": "wbxeejgkmtwtkcsepidgox" + "description": "pnetsuntzjjpnonpitsiuupnuun" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json index 834c184160fd..d4440c67fa98 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitStart - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitStartMax", "operationId": "ScheduledActions_VirtualMachinesSubmitStart", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "iosacqdhsupcvceljodheflyxdaxs", + "locationparameter": "hrbepqlfyctbhuydklbnuv", "requestBody": { "schedule": { "deadlineType": "Unknown", @@ -57,7 +57,7 @@ } } ], - "description": "prwratqpmdydpwilajfsghlfsq" + "description": "swzesyaila" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json index f2feaacddcaa..4574547e5956 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json @@ -1,14 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitStart - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitStartMin", "operationId": "ScheduledActions_VirtualMachinesSubmitStart", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "httzei", + "locationparameter": "tmokffo", "requestBody": { "schedule": { - "deadLine": "2024-07-12T18:06:53.361Z", - "timeZone": "zlcujrtgxtgyik", "deadlineType": "Unknown" }, "executionParameters": {}, @@ -25,7 +23,7 @@ "body": { "type": "gxmnjtgu", "location": "uvlidhowwv", - "description": "raacd" + "description": "swzesyaila" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json index d684dba78bdf..4c96c40bfc98 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json @@ -71,10 +71,10 @@ } }, "x-ms-examples": { - "Operations_List_MaximumSet_Gen - generated by [MaximumSet] rule": { + "Operations_List_MaximumSet_Gen": { "$ref": "./examples/Operations_List_MaximumSet_Gen.json" }, - "Operations_List_MaximumSet_Gen - generated by [MinimumSet] rule": { + "Operations_List_MinimumSet_Gen": { "$ref": "./examples/Operations_List_MinimumSet_Gen.json" } }, @@ -86,7 +86,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesCancelOperations": { "post": { "operationId": "ScheduledActions_VirtualMachinesCancelOperations", - "description": "virtualMachinesCancelOperations: cancelOperations for a virtual machine", + "description": "CancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request for submit-type ComputeSchedule operations", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -127,10 +127,10 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json" }, - "ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json" } } @@ -139,7 +139,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDeallocate": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", - "description": "virtualMachinesExecuteDeallocate: executeDeallocate for a virtual machine", + "description": "ExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -180,10 +180,10 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json" }, - "ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json" } } @@ -192,7 +192,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteHibernate": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", - "description": "virtualMachinesExecuteHibernate: executeHibernate for a virtual machine", + "description": "ExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -233,10 +233,10 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json" }, - "ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json" } } @@ -245,7 +245,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteStart": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteStart", - "description": "virtualMachinesExecuteStart: executeStart for a virtual machine", + "description": "ExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -286,10 +286,10 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json" }, - "ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json" } } @@ -298,7 +298,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationErrors": { "post": { "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", - "description": "virtualMachinesGetOperationErrors: getOperationErrors associated with an operation on a virtual machine", + "description": "GetOperationErrors: Get operation error details on operation errors (like transient errors encountered, additional logs) if they exist.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -339,10 +339,10 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json" }, - "ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json" } } @@ -351,7 +351,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationStatus": { "post": { "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", - "description": "virtualMachinesGetOperationStatus: getOperationStatus for a virtual machine", + "description": "GetOperationStatus: Polling endpoint to read status of operations performed on virtual machines", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -392,10 +392,10 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json" }, - "ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json" } } @@ -404,7 +404,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitDeallocate": { "post": { "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", - "description": "virtualMachinesSubmitDeallocate: submitDeallocate for a virtual machine", + "description": "SubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -445,10 +445,10 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json" }, - "ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json" } } @@ -457,7 +457,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitHibernate": { "post": { "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", - "description": "virtualMachinesSubmitHibernate: submitHibernate for a virtual machine", + "description": "SubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in future.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -498,10 +498,10 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json" }, - "ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json" } } @@ -510,7 +510,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitStart": { "post": { "operationId": "ScheduledActions_VirtualMachinesSubmitStart", - "description": "virtualMachinesSubmitStart: submitStart for a virtual machine", + "description": "SubmitStart: Schedule start operation for a batch of virtual machines at datetime in future.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -551,10 +551,10 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen - generated by [MaximumSet] rule": { + "ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json" }, - "ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen - generated by [MinimumSet] rule": { + "ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json" } } @@ -611,8 +611,7 @@ "description": "The types of deadlines supported by ScheduledActions", "enum": [ "Unknown", - "InitiateAt", - "CompleteBy" + "InitiateAt" ], "x-ms-enum": { "name": "DeadlineType", @@ -627,11 +626,6 @@ "name": "InitiateAt", "value": "InitiateAt", "description": "Initiate the operation at the given deadline." - }, - { - "name": "CompleteBy", - "value": "CompleteBy", - "description": "Complete the operation by the given deadline." } ] } @@ -746,10 +740,6 @@ "type": "object", "description": "Extra details needed to run the user's request", "properties": { - "optimizationPreference": { - "$ref": "#/definitions/OptimizationPreference", - "description": "Details that could optimize the user's request" - }, "retryPolicy": { "$ref": "#/definitions/RetryPolicy", "description": "Retry policy the user can pass" @@ -1011,36 +1001,6 @@ ] } }, - "OptimizationPreference": { - "type": "string", - "description": "The preferences customers can select to optimize their requests to ScheduledActions", - "enum": [ - "Cost", - "Availability", - "CostAvailabilityBalanced" - ], - "x-ms-enum": { - "name": "OptimizationPreference", - "modelAsString": true, - "values": [ - { - "name": "Cost", - "value": "Cost", - "description": "Optimize while considering cost savings" - }, - { - "name": "Availability", - "value": "Availability", - "description": "Optimize while considering availability of resources" - }, - { - "name": "CostAvailabilityBalanced", - "value": "CostAvailabilityBalanced", - "description": "Optimize while considering a balance of cost and availability" - } - ] - } - }, "ResourceOperation": { "type": "object", "description": "High level response from an operation on a resource", @@ -1129,8 +1089,7 @@ "default": "Unknown", "enum": [ "Unknown", - "InitiateAt", - "CompleteBy" + "InitiateAt" ], "x-ms-enum": { "name": "DeadlineType", @@ -1145,11 +1104,6 @@ "name": "InitiateAt", "value": "InitiateAt", "description": "Initiate the operation at the given deadline." - }, - { - "name": "CompleteBy", - "value": "CompleteBy", - "description": "Complete the operation by the given deadline." } ] } @@ -1363,8 +1317,7 @@ "default": "Unknown", "enum": [ "Unknown", - "InitiateAt", - "CompleteBy" + "InitiateAt" ], "x-ms-enum": { "name": "DeadlineType", @@ -1379,11 +1332,6 @@ "name": "InitiateAt", "value": "InitiateAt", "description": "Initiate the operation at the given deadline." - }, - { - "name": "CompleteBy", - "value": "CompleteBy", - "description": "Complete the operation by the given deadline." } ] } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List_MaximumSet_Gen.json index f2aeaccf85d8..8ad4071130dd 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List_MaximumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Operations_List_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "Operations_List_MaximumSet_Gen", "operationId": "Operations_List", "parameters": { "api-version": "2024-10-01" @@ -15,7 +15,7 @@ "provider": "vtlhmqtfhlyllnplzpdpq", "resource": "epj", "operation": "tuneyqwanedwnnbztrmq", - "description": "qmz" + "description": "moyje" }, "origin": "user", "actionType": "Internal" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List_MinimumSet_Gen.json index a31d50f509c9..96ae8e889274 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List_MinimumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "Operations_List_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "Operations_List_MinimumSet_Gen", "operationId": "Operations_List", "parameters": { "api-version": "2024-10-01" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json index 8ea0d3462ec6..069e61ce2215 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json @@ -1,15 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesCancelOperations", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "crnpkkzzulnvaauupoolqnsgpcfdgr", + "locationparameter": "ouhxsbxzasmmhdn", "requestBody": { "operationIds": [ - "nvynvzydoyplsngbkhpw" + "23480d2f-1dca-4610-afb4-dd25eec1f34r" ], - "correlationid": "wkzyavvbrovkgoxdddfcprnvll" + "correlationid": "23480d2f-1dca-4610-afb4-gg25eec1f34r" } }, "responses": { @@ -21,14 +21,14 @@ "errorCode": "lmpnizhpzc", "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", "operation": { - "operationId": "gkpxdnvesigypvokjdkceyfnnzkxou", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", "opType": "Unknown", - "subscriptionId": "knpnudszcyfuohpctlxkomtqfc", + "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", "deadlineType": "Unknown", "state": "Unknown", - "timezone": "qghruphsrszutvefcmlujlkulmwy", + "timezone": "UTC", "resourceOperationError": { "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", "errorDetails": "tvriinrhdrq" @@ -37,7 +37,8 @@ "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 - } + }, + "timeZone": "UTC" } } ] diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json index 620c5e5842d6..dc7a74b46531 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json @@ -1,15 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesCancelOperations", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "inquvldntqixydxjaf", + "locationparameter": "ppo", "requestBody": { "operationIds": [ - "nvynvzydoyplsngbkhpw" + "23480d2f-1dca-4610-afb4-dd25eec1f34r" ], - "correlationid": "wkzyavvbrovkgoxdddfcprnvll" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eecff34r" } }, "responses": { diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json index 69d31ed4daf5..8f84167a81d7 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json @@ -1,13 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "emghzcdjeqqjwibfeklrsnsrcwbg", + "locationparameter": "cjjdtgxejxbuvznvimztuxqjbqodd", "requestBody": { "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 @@ -18,7 +17,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "exoxgqdgcfiszehwxixjkkgitmnu" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -32,14 +31,14 @@ "errorCode": "lmpnizhpzc", "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", "operation": { - "operationId": "gkpxdnvesigypvokjdkceyfnnzkxou", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", "opType": "Unknown", - "subscriptionId": "knpnudszcyfuohpctlxkomtqfc", + "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", "deadlineType": "Unknown", "state": "Unknown", - "timezone": "qghruphsrszutvefcmlujlkulmwy", + "timezone": "UTC", "resourceOperationError": { "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", "errorDetails": "tvriinrhdrq" @@ -48,11 +47,12 @@ "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 - } + }, + "timeZone": "UTC" } } ], - "description": "dgyzikubvrarwjbhlbakddyr" + "description": "blifqielbaipdypeghebbzlhuwbshl" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json index c7fbadb69e36..95ee81707040 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "t", + "locationparameter": "qgjjdanragigdscdjg", "requestBody": { "executionParameters": {}, "resources": { @@ -12,7 +12,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "exoxgqdgcfiszehwxixjkkgitmnu" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -20,7 +20,7 @@ "body": { "type": "oqht", "location": "klzw", - "description": "dgyzikubvrarwjbhlbakddyr" + "description": "blifqielbaipdypeghebbzlhuwbshl" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json index 2b6e2413c15b..6c1835fb4595 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json @@ -1,13 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "cjlwfuuanpzptgvnzyjthdgajrpp", + "locationparameter": "pgddlgsxnajgok", "requestBody": { "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 @@ -18,7 +17,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "vyhi" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -32,14 +31,14 @@ "errorCode": "lmpnizhpzc", "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", "operation": { - "operationId": "gkpxdnvesigypvokjdkceyfnnzkxou", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", "opType": "Unknown", - "subscriptionId": "knpnudszcyfuohpctlxkomtqfc", + "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", "deadlineType": "Unknown", "state": "Unknown", - "timezone": "qghruphsrszutvefcmlujlkulmwy", + "timezone": "UTC", "resourceOperationError": { "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", "errorDetails": "tvriinrhdrq" @@ -48,11 +47,12 @@ "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 - } + }, + "timeZone": "UTC" } } ], - "description": "wtkkqgpbnmytcplmoroxsn" + "description": "melomnhpdla" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json index 881ec3d941c7..4e0268413867 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "zzrmqofhzmxvuhcd", + "locationparameter": "xnnhrmqdqxd", "requestBody": { "executionParameters": {}, "resources": { @@ -12,7 +12,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "vyhi" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -20,7 +20,7 @@ "body": { "type": "wxomyfujvxevcmciffrwjcgqgwax", "location": "klzw", - "description": "wtkkqgpbnmytcplmoroxsn" + "description": "melomnhpdla" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json index 9ad94da58327..e9aa7dc06373 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json @@ -1,13 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesExecuteStart", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "ejosmxxqdayoihqzbn", + "locationparameter": "mjia", "requestBody": { "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 @@ -18,7 +17,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "czbxgyyxbo" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -32,14 +31,14 @@ "errorCode": "lmpnizhpzc", "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", "operation": { - "operationId": "gkpxdnvesigypvokjdkceyfnnzkxou", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", "opType": "Unknown", - "subscriptionId": "knpnudszcyfuohpctlxkomtqfc", + "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", "deadlineType": "Unknown", "state": "Unknown", - "timezone": "qghruphsrszutvefcmlujlkulmwy", + "timezone": "UTC", "resourceOperationError": { "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", "errorDetails": "tvriinrhdrq" @@ -48,11 +47,12 @@ "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 - } + }, + "timeZone": "UTC" } } ], - "description": "zbkrwqsvesvzoofgzduomvhahmxo" + "description": "awwicktefaaz" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json index 6936e5c82bfa..afedc26dd367 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesExecuteStart", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "rxdfmeqzfejlzdcnmdztiy", + "locationparameter": "qpiinfsykbkc", "requestBody": { "executionParameters": {}, "resources": { @@ -12,7 +12,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "czbxgyyxbo" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -20,7 +20,7 @@ "body": { "type": "vgntivk", "location": "klzw", - "description": "zbkrwqsvesvzoofgzduomvhahmxo" + "description": "awwicktefaaz" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json index 2b2181c88544..182dd39a6e85 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json @@ -1,13 +1,13 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "mravjxzqficqzyifzpk", + "locationparameter": "jjezrypbxkczuyzrosajnnpgw", "requestBody": { "operationIds": [ - "yrldpeepjdodnbwfgr" + "23480d2f-1dca-4610-afb4-dd25eec1f34r" ] } }, @@ -16,7 +16,7 @@ "body": { "results": [ { - "operationId": "phkmafksgwsvcjnjgbpyfevw", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "creationTime": "2024-11-01T17:52:53.999Z", "activationTime": "2024-11-01T17:52:53.999Z", "completedAt": "2024-11-01T17:52:53.999Z", @@ -25,7 +25,9 @@ "errorCode": "thlxqphhzk", "errorDetails": "ytopml", "timestamp": "2024-11-01T17:52:53.999Z", - "azureOperationName": "jsxbqz" + "azureOperationName": "23480d2f-1dca-4610-afb4-dd25eec1f34r", + "timeStamp": "2024-11-27T16:55:03.357Z", + "crpOperationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } ], "requestErrorCode": "j", diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json index 58a4f94ee476..6cd1a2727de4 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json @@ -1,13 +1,13 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "xtcsapbyrdpphsq", + "locationparameter": "aawvznzoilbmjdcplavzia", "requestBody": { "operationIds": [ - "yrldpeepjdodnbwfgr" + "23480d2f-1dca-4610-afb4-dd25eec1f34r" ] } }, diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json index 33239c8740b6..696b4a2bc9d4 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json @@ -1,13 +1,13 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "n", + "locationparameter": "bafldmcspivzxqwrxlxstghebeja", "requestBody": { "operationIds": [ - "bybstwzkfypdufgxvvtaf" + "23480d2f-1dca-4610-afb4-dd25eec1f34r" ], "correlationid": "qdwuijwcpstvx" } @@ -21,14 +21,14 @@ "errorCode": "lmpnizhpzc", "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", "operation": { - "operationId": "gkpxdnvesigypvokjdkceyfnnzkxou", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", "opType": "Unknown", - "subscriptionId": "knpnudszcyfuohpctlxkomtqfc", + "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", "deadlineType": "Unknown", "state": "Unknown", - "timezone": "qghruphsrszutvefcmlujlkulmwy", + "timezone": "UTC", "resourceOperationError": { "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", "errorDetails": "tvriinrhdrq" @@ -37,7 +37,8 @@ "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 - } + }, + "timeZone": "UTC" } } ] diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json index 58d79be25273..bad97b1096aa 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json @@ -1,15 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "doypjz", + "locationparameter": "uuiouyzcjdvpbmrhx", "requestBody": { "operationIds": [ - "bybstwzkfypdufgxvvtaf" + "23480d2f-1dca-4610-afb4-dd25eec1f34r" ], - "correlationid": "qdwuijwcpstvx" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json index f6f8bf581818..e5014ba59543 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json @@ -1,18 +1,19 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "qfjjafnzudpcmtjufvilazetl", + "locationparameter": "pkcbmivarbdfrsirxgdydcfesfu", "requestBody": { "schedule": { "deadline": "2024-11-01T17:52:54.215Z", - "timezone": "csrtkjccrazescylvjzn", - "deadlineType": "Unknown" + "timezone": "UTC", + "deadlineType": "Unknown", + "deadLine": "2024-11-27T16:55:03.357Z", + "timeZone": "UTC" }, "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 @@ -23,7 +24,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "coogaewlllezkrdyjfeilu" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -37,14 +38,14 @@ "errorCode": "lmpnizhpzc", "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", "operation": { - "operationId": "gkpxdnvesigypvokjdkceyfnnzkxou", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", "opType": "Unknown", - "subscriptionId": "knpnudszcyfuohpctlxkomtqfc", + "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", "deadlineType": "Unknown", "state": "Unknown", - "timezone": "qghruphsrszutvefcmlujlkulmwy", + "timezone": "UTC", "resourceOperationError": { "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", "errorDetails": "tvriinrhdrq" @@ -53,11 +54,12 @@ "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 - } + }, + "timeZone": "UTC" } } ], - "description": "dgyzikubvrarwjbhlbakddyr" + "description": "blifqielbaipdypeghebbzlhuwbshl" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json index a341d99b2daf..beb52c3fd315 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json @@ -1,14 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "kfp", + "locationparameter": "qnrurmlploypzzhkdew", "requestBody": { "schedule": { - "deadline": "2024-11-01T17:52:54.215Z", - "timezone": "csrtkjccrazescylvjzn", "deadlineType": "Unknown" }, "executionParameters": {}, @@ -17,7 +15,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "coogaewlllezkrdyjfeilu" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -25,7 +23,7 @@ "body": { "type": "oqht", "location": "klzw", - "description": "dgyzikubvrarwjbhlbakddyr" + "description": "blifqielbaipdypeghebbzlhuwbshl" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json index 597911fe119f..d1eef1f42019 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json @@ -1,18 +1,19 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "zaezoherlpbmujcy", + "locationparameter": "stb", "requestBody": { "schedule": { "deadline": "2024-11-01T17:52:54.215Z", - "timezone": "csrtkjccrazescylvjzn", - "deadlineType": "Unknown" + "timezone": "UTC", + "deadlineType": "Unknown", + "deadLine": "2024-11-27T16:55:03.358Z", + "timeZone": "UTC" }, "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 @@ -23,7 +24,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "gtmbshlh" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -37,14 +38,14 @@ "errorCode": "lmpnizhpzc", "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", "operation": { - "operationId": "gkpxdnvesigypvokjdkceyfnnzkxou", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", "opType": "Unknown", - "subscriptionId": "knpnudszcyfuohpctlxkomtqfc", + "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", "deadlineType": "Unknown", "state": "Unknown", - "timezone": "qghruphsrszutvefcmlujlkulmwy", + "timezone": "UTC", "resourceOperationError": { "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", "errorDetails": "tvriinrhdrq" @@ -53,11 +54,12 @@ "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 - } + }, + "timeZone": "UTC" } } ], - "description": "wtkkqgpbnmytcplmoroxsn" + "description": "melomnhpdla" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json index d7dbff4b6184..b5e34d857e28 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json @@ -1,14 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "hcppcvqhssvzpjbnnac", + "locationparameter": "mpekujwrup", "requestBody": { "schedule": { - "deadline": "2024-11-01T17:52:54.215Z", - "timezone": "csrtkjccrazescylvjzn", "deadlineType": "Unknown" }, "executionParameters": {}, @@ -17,7 +15,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "gtmbshlh" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -25,7 +23,7 @@ "body": { "type": "wxomyfujvxevcmciffrwjcgqgwax", "location": "klzw", - "description": "wtkkqgpbnmytcplmoroxsn" + "description": "melomnhpdla" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json index 581aa046c767..21a9470c4c78 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json @@ -1,18 +1,19 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen - generated by [MaximumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesSubmitStart", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "wqmhcqilzhjtgphyrtmxd", + "locationparameter": "vludqrjb", "requestBody": { "schedule": { "deadline": "2024-11-01T17:52:54.215Z", - "timezone": "csrtkjccrazescylvjzn", - "deadlineType": "Unknown" + "timezone": "UTC", + "deadlineType": "Unknown", + "deadLine": "2024-11-27T16:55:03.358Z", + "timeZone": "UTC" }, "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 @@ -23,7 +24,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "rtz" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -37,14 +38,14 @@ "errorCode": "lmpnizhpzc", "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", "operation": { - "operationId": "gkpxdnvesigypvokjdkceyfnnzkxou", + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", "opType": "Unknown", - "subscriptionId": "knpnudszcyfuohpctlxkomtqfc", + "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", "deadlineType": "Unknown", "state": "Unknown", - "timezone": "qghruphsrszutvefcmlujlkulmwy", + "timezone": "UTC", "resourceOperationError": { "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", "errorDetails": "tvriinrhdrq" @@ -53,11 +54,12 @@ "retryPolicy": { "retryCount": 27, "retryWindowInMinutes": 27 - } + }, + "timeZone": "UTC" } } ], - "description": "zbkrwqsvesvzoofgzduomvhahmxo" + "description": "awwicktefaaz" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json index a5b8a398fc0b..787d127682ef 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json @@ -1,14 +1,12 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen - generated by [MinimumSet] rule", + "title": "ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen", "operationId": "ScheduledActions_VirtualMachinesSubmitStart", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "qgxm", + "locationparameter": "mboyvperbgcixyywe", "requestBody": { "schedule": { - "deadline": "2024-11-01T17:52:54.215Z", - "timezone": "csrtkjccrazescylvjzn", "deadlineType": "Unknown" }, "executionParameters": {}, @@ -17,7 +15,7 @@ "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" ] }, - "correlationid": "rtz" + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -25,7 +23,7 @@ "body": { "type": "vgntivk", "location": "klzw", - "description": "zbkrwqsvesvzoofgzduomvhahmxo" + "description": "awwicktefaaz" } } } From ca41bc15bb0fb5a5428284bb4a5568dcfa222ea7 Mon Sep 17 00:00:00 2001 From: Nneka Okeke Date: Wed, 27 Nov 2024 12:47:06 -0500 Subject: [PATCH 04/26] edit description --- .../computeschedule/ComputeSchedule.Management/routes.tsp | 2 +- .../preview/2024-08-15-preview/computeschedule.json | 2 +- .../stable/2024-10-01/computeschedule.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/computeschedule/ComputeSchedule.Management/routes.tsp b/specification/computeschedule/ComputeSchedule.Management/routes.tsp index 355968f6cfe5..ac80f654f4ce 100644 --- a/specification/computeschedule/ComputeSchedule.Management/routes.tsp +++ b/specification/computeschedule/ComputeSchedule.Management/routes.tsp @@ -90,7 +90,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: CancelOperationsRequest, ): ArmResponse | ErrorResponse; - /** GetOperationErrors: Get operation error details on operation errors (like transient errors encountered, additional logs) if they exist. */ + /** GetOperationErrors: Get error details on operation errors (like transient errors encountered, additional logs) if they exist. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationErrors") @post diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json index 9067277f971f..c42f6042146c 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json @@ -298,7 +298,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationErrors": { "post": { "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", - "description": "GetOperationErrors: Get operation error details on operation errors (like transient errors encountered, additional logs) if they exist.", + "description": "GetOperationErrors: Get error details on operation errors (like transient errors encountered, additional logs) if they exist.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json index 4c96c40bfc98..50bd24d68eb4 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json @@ -298,7 +298,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationErrors": { "post": { "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", - "description": "GetOperationErrors: Get operation error details on operation errors (like transient errors encountered, additional logs) if they exist.", + "description": "GetOperationErrors: Get error details on operation errors (like transient errors encountered, additional logs) if they exist.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" From a0f0a321a3698b716b15cbdf29d051b2aad83c1a Mon Sep 17 00:00:00 2001 From: Nneka Okeke Date: Wed, 27 Nov 2024 12:52:10 -0500 Subject: [PATCH 05/26] fix typespec validation failure --- .../computeschedule/ComputeSchedule.Management/routes.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/computeschedule/ComputeSchedule.Management/routes.tsp b/specification/computeschedule/ComputeSchedule.Management/routes.tsp index ac80f654f4ce..10b8735cc6d7 100644 --- a/specification/computeschedule/ComputeSchedule.Management/routes.tsp +++ b/specification/computeschedule/ComputeSchedule.Management/routes.tsp @@ -18,7 +18,7 @@ interface Operations extends Azure.ResourceManager.Operations {} #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "Each resource interface must have an @armResourceOperations decorator." interface ScheduledActions { // -------------- Routes ------------- - /** SubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future. */ + /** SubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitDeallocate") @post From b5e3032919ace739f4e75588eccbf5612e339744 Mon Sep 17 00:00:00 2001 From: Nneka Okeke Date: Tue, 3 Dec 2024 14:15:58 -0500 Subject: [PATCH 06/26] updates to fix validation errors --- custom-words.txt | 1 + ...chinesExecuteHibernate_MaximumSet_Gen.json | 2 +- .../ComputeSchedule.Management/models.tsp | 2 - .../ComputeSchedule.Management/routes.tsp | 6 +- .../2024-08-15-preview/computeschedule.json | 8 +-- ...chinesExecuteHibernate_MaximumSet_Gen.json | 2 +- .../stable/2024-10-01/computeschedule.json | 60 +++++++++++++++++-- 7 files changed, 64 insertions(+), 17 deletions(-) diff --git a/custom-words.txt b/custom-words.txt index 4e9a549f7749..5ee2bd97bf10 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -554,6 +554,7 @@ compilationjobs compilefile compositeentities computervision +Computeschedule computeusage concurrentappend conda diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json index 9faa0480c970..99172530178c 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteHibernatMax", + "title": "ScheduledActions_VirtualMachinesExecuteHibernateMax", "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", "parameters": { "api-version": "2024-08-15-preview", diff --git a/specification/computeschedule/ComputeSchedule.Management/models.tsp b/specification/computeschedule/ComputeSchedule.Management/models.tsp index 370e52ff49bf..dacb575160fd 100644 --- a/specification/computeschedule/ComputeSchedule.Management/models.tsp +++ b/specification/computeschedule/ComputeSchedule.Management/models.tsp @@ -22,14 +22,12 @@ union DeadlineType { @doc("Initiate the operation at the given deadline.") InitiateAt: "InitiateAt", - @removed(Microsoft.ComputeSchedule.Versions.`2024-10-01`) @doc("Complete the operation by the given deadline.") CompleteBy: "CompleteBy", string, } -@removed(Microsoft.ComputeSchedule.Versions.`2024-10-01`) @doc("The preferences customers can select to optimize their requests to ScheduledActions") union OptimizationPreference { @doc("Optimize while considering cost savings") diff --git a/specification/computeschedule/ComputeSchedule.Management/routes.tsp b/specification/computeschedule/ComputeSchedule.Management/routes.tsp index 10b8735cc6d7..af4eab319502 100644 --- a/specification/computeschedule/ComputeSchedule.Management/routes.tsp +++ b/specification/computeschedule/ComputeSchedule.Management/routes.tsp @@ -45,7 +45,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: SubmitStartRequest, ): ArmResponse | ErrorResponse; - /** ExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it. */ + /** ExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDeallocate") @post @@ -54,7 +54,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: ExecuteDeallocateRequest, ): ArmResponse | ErrorResponse; - /** ExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it. */ + /** ExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteHibernate") @post @@ -63,7 +63,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: ExecuteHibernateRequest, ): ArmResponse | ErrorResponse; - /** ExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it. */ + /** ExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteStart") @post diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json index c42f6042146c..5431fe484663 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json @@ -139,7 +139,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDeallocate": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", - "description": "ExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.", + "description": "ExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -192,7 +192,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteHibernate": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", - "description": "ExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.", + "description": "ExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -233,7 +233,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesExecuteHibernatMax": { + "ScheduledActions_VirtualMachinesExecuteHibernateMax": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json" }, "ScheduledActions_VirtualMachinesExecuteHibernateMin": { @@ -245,7 +245,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteStart": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteStart", - "description": "ExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.", + "description": "ExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json index 9faa0480c970..99172530178c 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json @@ -1,5 +1,5 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteHibernatMax", + "title": "ScheduledActions_VirtualMachinesExecuteHibernateMax", "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", "parameters": { "api-version": "2024-08-15-preview", diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json index 50bd24d68eb4..7d8c14b8977f 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json @@ -139,7 +139,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDeallocate": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", - "description": "ExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.", + "description": "ExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -192,7 +192,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteHibernate": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", - "description": "ExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.", + "description": "ExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -245,7 +245,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteStart": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteStart", - "description": "ExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.", + "description": "ExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -611,7 +611,8 @@ "description": "The types of deadlines supported by ScheduledActions", "enum": [ "Unknown", - "InitiateAt" + "InitiateAt", + "CompleteBy" ], "x-ms-enum": { "name": "DeadlineType", @@ -626,6 +627,11 @@ "name": "InitiateAt", "value": "InitiateAt", "description": "Initiate the operation at the given deadline." + }, + { + "name": "CompleteBy", + "value": "CompleteBy", + "description": "Complete the operation by the given deadline." } ] } @@ -1001,6 +1007,36 @@ ] } }, + "OptimizationPreference": { + "type": "string", + "description": "The preferences customers can select to optimize their requests to ScheduledActions", + "enum": [ + "Cost", + "Availability", + "CostAvailabilityBalanced" + ], + "x-ms-enum": { + "name": "OptimizationPreference", + "modelAsString": true, + "values": [ + { + "name": "Cost", + "value": "Cost", + "description": "Optimize while considering cost savings" + }, + { + "name": "Availability", + "value": "Availability", + "description": "Optimize while considering availability of resources" + }, + { + "name": "CostAvailabilityBalanced", + "value": "CostAvailabilityBalanced", + "description": "Optimize while considering a balance of cost and availability" + } + ] + } + }, "ResourceOperation": { "type": "object", "description": "High level response from an operation on a resource", @@ -1089,7 +1125,8 @@ "default": "Unknown", "enum": [ "Unknown", - "InitiateAt" + "InitiateAt", + "CompleteBy" ], "x-ms-enum": { "name": "DeadlineType", @@ -1104,6 +1141,11 @@ "name": "InitiateAt", "value": "InitiateAt", "description": "Initiate the operation at the given deadline." + }, + { + "name": "CompleteBy", + "value": "CompleteBy", + "description": "Complete the operation by the given deadline." } ] } @@ -1317,7 +1359,8 @@ "default": "Unknown", "enum": [ "Unknown", - "InitiateAt" + "InitiateAt", + "CompleteBy" ], "x-ms-enum": { "name": "DeadlineType", @@ -1332,6 +1375,11 @@ "name": "InitiateAt", "value": "InitiateAt", "description": "Initiate the operation at the given deadline." + }, + { + "name": "CompleteBy", + "value": "CompleteBy", + "description": "Complete the operation by the given deadline." } ] } From cb532a69193b1f4deda0ace191945d6a7aaad401 Mon Sep 17 00:00:00 2001 From: Nneka Okeke Date: Tue, 3 Dec 2024 14:19:46 -0500 Subject: [PATCH 07/26] remove removed tag on optimizationpreferences --- .../computeschedule/ComputeSchedule.Management/models.tsp | 1 - .../stable/2024-10-01/computeschedule.json | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/specification/computeschedule/ComputeSchedule.Management/models.tsp b/specification/computeschedule/ComputeSchedule.Management/models.tsp index dacb575160fd..6e95fef41de2 100644 --- a/specification/computeschedule/ComputeSchedule.Management/models.tsp +++ b/specification/computeschedule/ComputeSchedule.Management/models.tsp @@ -145,7 +145,6 @@ model RetryPolicy { @doc("Extra details needed to run the user's request") model ExecutionParameters { - @removed(Microsoft.ComputeSchedule.Versions.`2024-10-01`) @doc("Details that could optimize the user's request") optimizationPreference?: OptimizationPreference; diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json index 7d8c14b8977f..e65de91607ae 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json @@ -746,6 +746,10 @@ "type": "object", "description": "Extra details needed to run the user's request", "properties": { + "optimizationPreference": { + "$ref": "#/definitions/OptimizationPreference", + "description": "Details that could optimize the user's request" + }, "retryPolicy": { "$ref": "#/definitions/RetryPolicy", "description": "Retry policy the user can pass" From 4d3204fcea6bb6e8d62c1f5e3f209b8511e8db23 Mon Sep 17 00:00:00 2001 From: Nneka Okeke Date: Wed, 4 Dec 2024 09:05:43 -0800 Subject: [PATCH 08/26] edit names --- .../ComputeSchedule.Management/routes.tsp | 18 +++++++++--------- .../2024-08-15-preview/computeschedule.json | 18 +++++++++--------- .../stable/2024-10-01/computeschedule.json | 18 +++++++++--------- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/specification/computeschedule/ComputeSchedule.Management/routes.tsp b/specification/computeschedule/ComputeSchedule.Management/routes.tsp index af4eab319502..c3c0a3d4ede6 100644 --- a/specification/computeschedule/ComputeSchedule.Management/routes.tsp +++ b/specification/computeschedule/ComputeSchedule.Management/routes.tsp @@ -18,7 +18,7 @@ interface Operations extends Azure.ResourceManager.Operations {} #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "Each resource interface must have an @armResourceOperations decorator." interface ScheduledActions { // -------------- Routes ------------- - /** SubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future. */ + /** VirtualMachinesSubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitDeallocate") @post @@ -27,7 +27,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: SubmitDeallocateRequest, ): ArmResponse | ErrorResponse; - /** SubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in future. */ + /** VirtualMachinesSubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in future. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitHibernate") @post @@ -36,7 +36,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: SubmitHibernateRequest, ): ArmResponse | ErrorResponse; - /** SubmitStart: Schedule start operation for a batch of virtual machines at datetime in future. */ + /** VirtualMachinesSubmitStart: Schedule start operation for a batch of virtual machines at datetime in future. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitStart") @post @@ -45,7 +45,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: SubmitStartRequest, ): ArmResponse | ErrorResponse; - /** ExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it. */ + /** VirtualMachinesExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDeallocate") @post @@ -54,7 +54,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: ExecuteDeallocateRequest, ): ArmResponse | ErrorResponse; - /** ExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it. */ + /** VirtualMachinesExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteHibernate") @post @@ -63,7 +63,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: ExecuteHibernateRequest, ): ArmResponse | ErrorResponse; - /** ExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it. */ + /** VirtualMachinesExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteStart") @post @@ -72,7 +72,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: ExecuteStartRequest, ): ArmResponse | ErrorResponse; - /** GetOperationStatus: Polling endpoint to read status of operations performed on virtual machines */ + /** VirtualMachinesGetOperationStatus: Polling endpoint to read status of operations performed on virtual machines */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationStatus") @post @@ -81,7 +81,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: GetOperationStatusRequest, ): ArmResponse | ErrorResponse; - /** CancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request for submit-type ComputeSchedule operations */ + /** VirtualMachinesCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesCancelOperations") @post @@ -90,7 +90,7 @@ interface ScheduledActions { @body @doc("The request body") requestBody: CancelOperationsRequest, ): ArmResponse | ErrorResponse; - /** GetOperationErrors: Get error details on operation errors (like transient errors encountered, additional logs) if they exist. */ + /** VirtualMachinesGetOperationErrors: Get error details on operation errors (like transient errors encountered, additional logs) if they exist. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationErrors") @post diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json index 5431fe484663..e415b2931647 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json @@ -86,7 +86,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesCancelOperations": { "post": { "operationId": "ScheduledActions_VirtualMachinesCancelOperations", - "description": "CancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request for submit-type ComputeSchedule operations", + "description": "VirtualMachinesCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -139,7 +139,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDeallocate": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", - "description": "ExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", + "description": "VirtualMachinesExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -192,7 +192,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteHibernate": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", - "description": "ExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", + "description": "VirtualMachinesExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -245,7 +245,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteStart": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteStart", - "description": "ExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", + "description": "VirtualMachinesExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -298,7 +298,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationErrors": { "post": { "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", - "description": "GetOperationErrors: Get error details on operation errors (like transient errors encountered, additional logs) if they exist.", + "description": "VirtualMachinesGetOperationErrors: Get error details on operation errors (like transient errors encountered, additional logs) if they exist.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -351,7 +351,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationStatus": { "post": { "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", - "description": "GetOperationStatus: Polling endpoint to read status of operations performed on virtual machines", + "description": "VirtualMachinesGetOperationStatus: Polling endpoint to read status of operations performed on virtual machines", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -404,7 +404,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitDeallocate": { "post": { "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", - "description": "SubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future.", + "description": "VirtualMachinesSubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -457,7 +457,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitHibernate": { "post": { "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", - "description": "SubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in future.", + "description": "VirtualMachinesSubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in future.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -510,7 +510,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitStart": { "post": { "operationId": "ScheduledActions_VirtualMachinesSubmitStart", - "description": "SubmitStart: Schedule start operation for a batch of virtual machines at datetime in future.", + "description": "VirtualMachinesSubmitStart: Schedule start operation for a batch of virtual machines at datetime in future.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json index e65de91607ae..9b8b4bf7948d 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json @@ -86,7 +86,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesCancelOperations": { "post": { "operationId": "ScheduledActions_VirtualMachinesCancelOperations", - "description": "CancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request for submit-type ComputeSchedule operations", + "description": "VirtualMachinesCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -139,7 +139,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDeallocate": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", - "description": "ExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", + "description": "VirtualMachinesExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -192,7 +192,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteHibernate": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", - "description": "ExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", + "description": "VirtualMachinesExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -245,7 +245,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteStart": { "post": { "operationId": "ScheduledActions_VirtualMachinesExecuteStart", - "description": "ExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", + "description": "VirtualMachinesExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -298,7 +298,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationErrors": { "post": { "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", - "description": "GetOperationErrors: Get error details on operation errors (like transient errors encountered, additional logs) if they exist.", + "description": "VirtualMachinesGetOperationErrors: Get error details on operation errors (like transient errors encountered, additional logs) if they exist.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -351,7 +351,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationStatus": { "post": { "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", - "description": "GetOperationStatus: Polling endpoint to read status of operations performed on virtual machines", + "description": "VirtualMachinesGetOperationStatus: Polling endpoint to read status of operations performed on virtual machines", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -404,7 +404,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitDeallocate": { "post": { "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", - "description": "SubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future.", + "description": "VirtualMachinesSubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -457,7 +457,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitHibernate": { "post": { "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", - "description": "SubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in future.", + "description": "VirtualMachinesSubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in future.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -510,7 +510,7 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitStart": { "post": { "operationId": "ScheduledActions_VirtualMachinesSubmitStart", - "description": "SubmitStart: Schedule start operation for a batch of virtual machines at datetime in future.", + "description": "VirtualMachinesSubmitStart: Schedule start operation for a batch of virtual machines at datetime in future.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" From 351a64c9c19040145e34e9909d0a67f5797b5cf5 Mon Sep 17 00:00:00 2001 From: Nneka Okeke Date: Mon, 9 Dec 2024 08:03:18 -0800 Subject: [PATCH 09/26] edit example names --- ...ximumSet_Gen.json => Operations_List.json} | 0 .../Operations_List_MinimumSet_Gen.json | 12 ----- ...ions_VirtualMachinesCancelOperations.json} | 0 ...chinesCancelOperations_MinimumSet_Gen.json | 24 --------- ...ons_VirtualMachinesExecuteDeallocate.json} | 0 ...hinesExecuteDeallocate_MinimumSet_Gen.json | 27 ---------- ...ions_VirtualMachinesExecuteHibernate.json} | 0 ...chinesExecuteHibernate_MinimumSet_Gen.json | 27 ---------- ...dActions_VirtualMachinesExecuteStart.json} | 0 ...alMachinesExecuteStart_MinimumSet_Gen.json | 27 ---------- ...ns_VirtualMachinesGetOperationErrors.json} | 0 ...inesGetOperationErrors_MinimumSet_Gen.json | 23 --------- ...ns_VirtualMachinesGetOperationStatus.json} | 0 ...inesGetOperationStatus_MinimumSet_Gen.json | 24 --------- ...ions_VirtualMachinesSubmitDeallocate.json} | 0 ...chinesSubmitDeallocate_MinimumSet_Gen.json | 30 ----------- ...tions_VirtualMachinesSubmitHibernate.json} | 0 ...achinesSubmitHibernate_MinimumSet_Gen.json | 30 ----------- ...edActions_VirtualMachinesSubmitStart.json} | 0 ...ualMachinesSubmitStart_MinimumSet_Gen.json | 30 ----------- ...ximumSet_Gen.json => Operations_List.json} | 0 .../Operations_List_MinimumSet_Gen.json | 12 ----- ...ions_VirtualMachinesCancelOperations.json} | 0 ...chinesCancelOperations_MinimumSet_Gen.json | 24 --------- ...ons_VirtualMachinesExecuteDeallocate.json} | 0 ...hinesExecuteDeallocate_MinimumSet_Gen.json | 27 ---------- ...ions_VirtualMachinesExecuteHibernate.json} | 0 ...chinesExecuteHibernate_MinimumSet_Gen.json | 27 ---------- ...dActions_VirtualMachinesExecuteStart.json} | 0 ...alMachinesExecuteStart_MinimumSet_Gen.json | 27 ---------- ...ns_VirtualMachinesGetOperationErrors.json} | 0 ...inesGetOperationErrors_MinimumSet_Gen.json | 23 --------- ...ns_VirtualMachinesGetOperationStatus.json} | 0 ...inesGetOperationStatus_MinimumSet_Gen.json | 24 --------- ...ions_VirtualMachinesSubmitDeallocate.json} | 0 ...chinesSubmitDeallocate_MinimumSet_Gen.json | 30 ----------- ...tions_VirtualMachinesSubmitHibernate.json} | 0 ...achinesSubmitHibernate_MinimumSet_Gen.json | 30 ----------- ...edActions_VirtualMachinesSubmitStart.json} | 0 ...ualMachinesSubmitStart_MinimumSet_Gen.json | 30 ----------- .../2024-08-15-preview/computeschedule.json | 50 ++++--------------- ...ximumSet_Gen.json => Operations_List.json} | 0 .../Operations_List_MinimumSet_Gen.json | 12 ----- ...ions_VirtualMachinesCancelOperations.json} | 0 ...chinesCancelOperations_MinimumSet_Gen.json | 24 --------- ...ons_VirtualMachinesExecuteDeallocate.json} | 0 ...hinesExecuteDeallocate_MinimumSet_Gen.json | 27 ---------- ...ions_VirtualMachinesExecuteHibernate.json} | 0 ...chinesExecuteHibernate_MinimumSet_Gen.json | 27 ---------- ...dActions_VirtualMachinesExecuteStart.json} | 0 ...alMachinesExecuteStart_MinimumSet_Gen.json | 27 ---------- ...ns_VirtualMachinesGetOperationErrors.json} | 0 ...inesGetOperationErrors_MinimumSet_Gen.json | 23 --------- ...ns_VirtualMachinesGetOperationStatus.json} | 0 ...inesGetOperationStatus_MinimumSet_Gen.json | 24 --------- ...ions_VirtualMachinesSubmitDeallocate.json} | 0 ...chinesSubmitDeallocate_MinimumSet_Gen.json | 30 ----------- ...tions_VirtualMachinesSubmitHibernate.json} | 0 ...achinesSubmitHibernate_MinimumSet_Gen.json | 30 ----------- ...edActions_VirtualMachinesSubmitStart.json} | 0 ...ualMachinesSubmitStart_MinimumSet_Gen.json | 30 ----------- .../stable/2024-10-01/computeschedule.json | 50 ++++--------------- ...ximumSet_Gen.json => Operations_List.json} | 0 .../Operations_List_MinimumSet_Gen.json | 12 ----- ...ions_VirtualMachinesCancelOperations.json} | 0 ...chinesCancelOperations_MinimumSet_Gen.json | 24 --------- ...ons_VirtualMachinesExecuteDeallocate.json} | 0 ...hinesExecuteDeallocate_MinimumSet_Gen.json | 27 ---------- ...ions_VirtualMachinesExecuteHibernate.json} | 0 ...chinesExecuteHibernate_MinimumSet_Gen.json | 27 ---------- ...dActions_VirtualMachinesExecuteStart.json} | 0 ...alMachinesExecuteStart_MinimumSet_Gen.json | 27 ---------- ...ns_VirtualMachinesGetOperationErrors.json} | 0 ...inesGetOperationErrors_MinimumSet_Gen.json | 23 --------- ...ns_VirtualMachinesGetOperationStatus.json} | 0 ...inesGetOperationStatus_MinimumSet_Gen.json | 24 --------- ...ions_VirtualMachinesSubmitDeallocate.json} | 0 ...chinesSubmitDeallocate_MinimumSet_Gen.json | 30 ----------- ...tions_VirtualMachinesSubmitHibernate.json} | 0 ...achinesSubmitHibernate_MinimumSet_Gen.json | 30 ----------- ...edActions_VirtualMachinesSubmitStart.json} | 0 ...ualMachinesSubmitStart_MinimumSet_Gen.json | 30 ----------- 82 files changed, 20 insertions(+), 1096 deletions(-) rename specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/{Operations_List_MaximumSet_Gen.json => Operations_List.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/{ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesCancelOperations.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/{ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesExecuteDeallocate.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/{ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesExecuteHibernate.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/{ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesExecuteStart.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/{ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesGetOperationErrors.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/{ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesGetOperationStatus.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/{ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesSubmitDeallocate.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/{ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesSubmitHibernate.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/{ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesSubmitStart.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/{Operations_List_MaximumSet_Gen.json => Operations_List.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/{ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesCancelOperations.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/{ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesExecuteDeallocate.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/{ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesExecuteHibernate.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/{ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesExecuteStart.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/{ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesGetOperationErrors.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/{ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesGetOperationStatus.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/{ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesSubmitDeallocate.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/{ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesSubmitHibernate.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json rename specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/{ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesSubmitStart.json} (100%) delete mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/{Operations_List_MaximumSet_Gen.json => Operations_List.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/{ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesCancelOperations.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/{ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesExecuteDeallocate.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/{ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesExecuteHibernate.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/{ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesExecuteStart.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/{ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesGetOperationErrors.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/{ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesGetOperationStatus.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/{ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesSubmitDeallocate.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/{ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesSubmitHibernate.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/{ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesSubmitStart.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/{Operations_List_MaximumSet_Gen.json => Operations_List.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/{ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesCancelOperations.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/{ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesExecuteDeallocate.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/{ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesExecuteHibernate.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/{ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesExecuteStart.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/{ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesGetOperationErrors.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/{ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesGetOperationStatus.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/{ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesSubmitDeallocate.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/{ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesSubmitHibernate.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json rename specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/{ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json => ScheduledActions_VirtualMachinesSubmitStart.json} (100%) delete mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List_MinimumSet_Gen.json deleted file mode 100644 index f585eb9b0caf..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List_MinimumSet_Gen.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Operations_ListMin", - "operationId": "Operations_List", - "parameters": { - "api-version": "2024-08-15-preview" - }, - "responses": { - "200": { - "body": {} - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json deleted file mode 100644 index 28eed6e99b0f..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesCancelOperationsMin", - "operationId": "ScheduledActions_VirtualMachinesCancelOperations", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "qbkgothantoheghulvmydskhwy", - "requestBody": { - "operationIds": [ - "23480d2f-1dca-4610-afb4-dd25eec1f34r" - ], - "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" - } - }, - "responses": { - "200": { - "body": { - "results": [ - {} - ] - } - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json deleted file mode 100644 index 43a8e4dc3d82..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesExecuteDeallocateMin", - "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "kvvocgcciwizculwkaysfcbo", - "requestBody": { - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2" - ] - }, - "correlationid": "01080d2f-1dca-4610-afb4-dd25eddf1f3c1" - } - }, - "responses": { - "200": { - "body": { - "type": "eokrhxypminzcgplibblmwojvjd", - "location": "qbbvrdisvjgxirnzdvdsodkt", - "description": "legcblswxmwppghf" - } - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json deleted file mode 100644 index 6bbfeb2077c5..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesExecuteHibernateMin", - "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "xoskahjvuakqsphihjinzsxepwtdm", - "requestBody": { - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" - ] - }, - "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" - } - }, - "responses": { - "200": { - "body": { - "type": "mkmgbfpkiudefzhdppgjmqztx", - "location": "rvlnzczpesuvusbmbcjctzcinzlr", - "description": "pnetsuntzjjpnonpitsiuupnuun" - } - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json deleted file mode 100644 index f579e5483009..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesExecuteStartMin", - "operationId": "ScheduledActions_VirtualMachinesExecuteStart", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "nruavdkq", - "requestBody": { - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4" - ] - }, - "correlationid": "23230d2f-1dca-4610-afb4-dd25eec1f34" - } - }, - "responses": { - "200": { - "body": { - "type": "gxmnjtgu", - "location": "uvlidhowwv", - "description": "swzesyaila" - } - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json deleted file mode 100644 index 6a0074c8de52..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesGetOperationErrors_Min", - "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "wnuijjrhtlzemreb", - "requestBody": { - "operationIds": [ - "DE84A209-5715-43E7-BC76-3E208A9A323" - ] - } - }, - "responses": { - "200": { - "body": { - "results": [ - {} - ] - } - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json deleted file mode 100644 index 57d4550ed363..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesGetOperationStatusMin", - "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "owehibaaueprkldavclvzvxeb", - "requestBody": { - "operationIds": [ - "01080d2f-1dca-4610-afb4-dd25eec1f3df" - ], - "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" - } - }, - "responses": { - "200": { - "body": { - "results": [ - {} - ] - } - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json deleted file mode 100644 index 595ddc980c8c..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesSubmitDeallocateMin", - "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "hkuyzefoacw", - "requestBody": { - "schedule": { - "deadlineType": "Unknown" - }, - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2" - ] - }, - "correlationid": "23519o2f-1dca-4610-afb4-dd25eec1f34" - } - }, - "responses": { - "200": { - "body": { - "type": "eokrhxypminzcgplibblmwojvjd", - "location": "qbbvrdisvjgxirnzdvdsodkt", - "description": "legcblswxmwppghf" - } - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json deleted file mode 100644 index c56ced283405..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesSubmitHibernateMin", - "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "tr", - "requestBody": { - "schedule": { - "deadlineType": "Unknown" - }, - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" - ] - }, - "correlationid": "23519o2f-1dca-4610-afb4-dd25eec1f34" - } - }, - "responses": { - "200": { - "body": { - "type": "mkmgbfpkiudefzhdppgjmqztx", - "location": "rvlnzczpesuvusbmbcjctzcinzlr", - "description": "pnetsuntzjjpnonpitsiuupnuun" - } - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json deleted file mode 100644 index 4574547e5956..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesSubmitStartMin", - "operationId": "ScheduledActions_VirtualMachinesSubmitStart", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "tmokffo", - "requestBody": { - "schedule": { - "deadlineType": "Unknown" - }, - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4" - ] - }, - "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34" - } - }, - "responses": { - "200": { - "body": { - "type": "gxmnjtgu", - "location": "uvlidhowwv", - "description": "swzesyaila" - } - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List_MinimumSet_Gen.json deleted file mode 100644 index 96ae8e889274..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List_MinimumSet_Gen.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Operations_List_MinimumSet_Gen", - "operationId": "Operations_List", - "parameters": { - "api-version": "2024-10-01" - }, - "responses": { - "200": { - "body": {} - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json deleted file mode 100644 index dc7a74b46531..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesCancelOperations", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "ppo", - "requestBody": { - "operationIds": [ - "23480d2f-1dca-4610-afb4-dd25eec1f34r" - ], - "correlationid": "23480d2f-1dca-4610-afb4-dd25eecff34r" - } - }, - "responses": { - "200": { - "body": { - "results": [ - {} - ] - } - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json deleted file mode 100644 index 95ee81707040..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "qgjjdanragigdscdjg", - "requestBody": { - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" - ] - }, - "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" - } - }, - "responses": { - "200": { - "body": { - "type": "oqht", - "location": "klzw", - "description": "blifqielbaipdypeghebbzlhuwbshl" - } - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json deleted file mode 100644 index 4e0268413867..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "xnnhrmqdqxd", - "requestBody": { - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" - ] - }, - "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" - } - }, - "responses": { - "200": { - "body": { - "type": "wxomyfujvxevcmciffrwjcgqgwax", - "location": "klzw", - "description": "melomnhpdla" - } - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json deleted file mode 100644 index afedc26dd367..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesExecuteStart", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "qpiinfsykbkc", - "requestBody": { - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" - ] - }, - "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" - } - }, - "responses": { - "200": { - "body": { - "type": "vgntivk", - "location": "klzw", - "description": "awwicktefaaz" - } - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json deleted file mode 100644 index 6cd1a2727de4..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "aawvznzoilbmjdcplavzia", - "requestBody": { - "operationIds": [ - "23480d2f-1dca-4610-afb4-dd25eec1f34r" - ] - } - }, - "responses": { - "200": { - "body": { - "results": [ - {} - ] - } - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json deleted file mode 100644 index bad97b1096aa..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "uuiouyzcjdvpbmrhx", - "requestBody": { - "operationIds": [ - "23480d2f-1dca-4610-afb4-dd25eec1f34r" - ], - "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" - } - }, - "responses": { - "200": { - "body": { - "results": [ - {} - ] - } - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json deleted file mode 100644 index beb52c3fd315..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "qnrurmlploypzzhkdew", - "requestBody": { - "schedule": { - "deadlineType": "Unknown" - }, - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" - ] - }, - "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" - } - }, - "responses": { - "200": { - "body": { - "type": "oqht", - "location": "klzw", - "description": "blifqielbaipdypeghebbzlhuwbshl" - } - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json deleted file mode 100644 index b5e34d857e28..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "mpekujwrup", - "requestBody": { - "schedule": { - "deadlineType": "Unknown" - }, - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" - ] - }, - "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" - } - }, - "responses": { - "200": { - "body": { - "type": "wxomyfujvxevcmciffrwjcgqgwax", - "location": "klzw", - "description": "melomnhpdla" - } - } - } -} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart.json similarity index 100% rename from specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json rename to specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart.json diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json deleted file mode 100644 index 787d127682ef..000000000000 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesSubmitStart", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "mboyvperbgcixyywe", - "requestBody": { - "schedule": { - "deadlineType": "Unknown" - }, - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" - ] - }, - "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" - } - }, - "responses": { - "200": { - "body": { - "type": "vgntivk", - "location": "klzw", - "description": "awwicktefaaz" - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json index e415b2931647..dcf6d01d4a5e 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json @@ -72,10 +72,7 @@ }, "x-ms-examples": { "Operations_ListMax": { - "$ref": "./examples/Operations_List_MaximumSet_Gen.json" - }, - "Operations_ListMin": { - "$ref": "./examples/Operations_List_MinimumSet_Gen.json" + "$ref": "./examples/Operations_List.json" } }, "x-ms-pageable": { @@ -128,10 +125,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesCancelOperationsMax": { - "$ref": "./examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesCancelOperationsMin": { - "$ref": "./examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesCancelOperations.json" } } } @@ -181,10 +175,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesExecuteDeallocateMax": { - "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesExecuteDeallocateMin": { - "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json" } } } @@ -234,10 +225,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesExecuteHibernateMax": { - "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesExecuteHibernateMin": { - "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteHibernate.json" } } } @@ -287,10 +275,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesExecuteStartMax": { - "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesExecuteStartMin": { - "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteStart.json" } } } @@ -340,10 +325,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesGetOperationErrors_Max": { - "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesGetOperationErrors_Min": { - "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationErrors.json" } } } @@ -393,10 +375,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesGetOperationStatusMax": { - "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesGetOperationStatusMin": { - "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationStatus.json" } } } @@ -446,10 +425,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesSubmitDeallocateMax": { - "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesSubmitDeallocateMin": { - "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json" } } } @@ -499,10 +475,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesSubmitHibernate Max": { - "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesSubmitHibernateMin": { - "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitHibernate.json" } } } @@ -552,10 +525,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesSubmitStartMax": { - "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesSubmitStartMin": { - "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitStart.json" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List_MinimumSet_Gen.json deleted file mode 100644 index f585eb9b0caf..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List_MinimumSet_Gen.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Operations_ListMin", - "operationId": "Operations_List", - "parameters": { - "api-version": "2024-08-15-preview" - }, - "responses": { - "200": { - "body": {} - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json deleted file mode 100644 index 28eed6e99b0f..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesCancelOperationsMin", - "operationId": "ScheduledActions_VirtualMachinesCancelOperations", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "qbkgothantoheghulvmydskhwy", - "requestBody": { - "operationIds": [ - "23480d2f-1dca-4610-afb4-dd25eec1f34r" - ], - "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" - } - }, - "responses": { - "200": { - "body": { - "results": [ - {} - ] - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json deleted file mode 100644 index 43a8e4dc3d82..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesExecuteDeallocateMin", - "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "kvvocgcciwizculwkaysfcbo", - "requestBody": { - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2" - ] - }, - "correlationid": "01080d2f-1dca-4610-afb4-dd25eddf1f3c1" - } - }, - "responses": { - "200": { - "body": { - "type": "eokrhxypminzcgplibblmwojvjd", - "location": "qbbvrdisvjgxirnzdvdsodkt", - "description": "legcblswxmwppghf" - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json deleted file mode 100644 index 6bbfeb2077c5..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesExecuteHibernateMin", - "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "xoskahjvuakqsphihjinzsxepwtdm", - "requestBody": { - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" - ] - }, - "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" - } - }, - "responses": { - "200": { - "body": { - "type": "mkmgbfpkiudefzhdppgjmqztx", - "location": "rvlnzczpesuvusbmbcjctzcinzlr", - "description": "pnetsuntzjjpnonpitsiuupnuun" - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json deleted file mode 100644 index f579e5483009..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesExecuteStartMin", - "operationId": "ScheduledActions_VirtualMachinesExecuteStart", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "nruavdkq", - "requestBody": { - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4" - ] - }, - "correlationid": "23230d2f-1dca-4610-afb4-dd25eec1f34" - } - }, - "responses": { - "200": { - "body": { - "type": "gxmnjtgu", - "location": "uvlidhowwv", - "description": "swzesyaila" - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json deleted file mode 100644 index 6a0074c8de52..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesGetOperationErrors_Min", - "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "wnuijjrhtlzemreb", - "requestBody": { - "operationIds": [ - "DE84A209-5715-43E7-BC76-3E208A9A323" - ] - } - }, - "responses": { - "200": { - "body": { - "results": [ - {} - ] - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json deleted file mode 100644 index 57d4550ed363..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesGetOperationStatusMin", - "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "owehibaaueprkldavclvzvxeb", - "requestBody": { - "operationIds": [ - "01080d2f-1dca-4610-afb4-dd25eec1f3df" - ], - "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" - } - }, - "responses": { - "200": { - "body": { - "results": [ - {} - ] - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json deleted file mode 100644 index 595ddc980c8c..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesSubmitDeallocateMin", - "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "hkuyzefoacw", - "requestBody": { - "schedule": { - "deadlineType": "Unknown" - }, - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2" - ] - }, - "correlationid": "23519o2f-1dca-4610-afb4-dd25eec1f34" - } - }, - "responses": { - "200": { - "body": { - "type": "eokrhxypminzcgplibblmwojvjd", - "location": "qbbvrdisvjgxirnzdvdsodkt", - "description": "legcblswxmwppghf" - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json deleted file mode 100644 index c56ced283405..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesSubmitHibernateMin", - "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "tr", - "requestBody": { - "schedule": { - "deadlineType": "Unknown" - }, - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" - ] - }, - "correlationid": "23519o2f-1dca-4610-afb4-dd25eec1f34" - } - }, - "responses": { - "200": { - "body": { - "type": "mkmgbfpkiudefzhdppgjmqztx", - "location": "rvlnzczpesuvusbmbcjctzcinzlr", - "description": "pnetsuntzjjpnonpitsiuupnuun" - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json deleted file mode 100644 index 4574547e5956..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesSubmitStartMin", - "operationId": "ScheduledActions_VirtualMachinesSubmitStart", - "parameters": { - "api-version": "2024-08-15-preview", - "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "tmokffo", - "requestBody": { - "schedule": { - "deadlineType": "Unknown" - }, - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4" - ] - }, - "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34" - } - }, - "responses": { - "200": { - "body": { - "type": "gxmnjtgu", - "location": "uvlidhowwv", - "description": "swzesyaila" - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json index 9b8b4bf7948d..8afa7d71d116 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json @@ -72,10 +72,7 @@ }, "x-ms-examples": { "Operations_List_MaximumSet_Gen": { - "$ref": "./examples/Operations_List_MaximumSet_Gen.json" - }, - "Operations_List_MinimumSet_Gen": { - "$ref": "./examples/Operations_List_MinimumSet_Gen.json" + "$ref": "./examples/Operations_List.json" } }, "x-ms-pageable": { @@ -128,10 +125,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesCancelOperations.json" } } } @@ -181,10 +175,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json" } } } @@ -234,10 +225,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteHibernate.json" } } } @@ -287,10 +275,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteStart.json" } } } @@ -340,10 +325,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationErrors.json" } } } @@ -393,10 +375,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationStatus.json" } } } @@ -446,10 +425,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json" } } } @@ -499,10 +475,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitHibernate.json" } } } @@ -552,10 +525,7 @@ }, "x-ms-examples": { "ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json" - }, - "ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen": { - "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json" + "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitStart.json" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List_MinimumSet_Gen.json deleted file mode 100644 index 96ae8e889274..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List_MinimumSet_Gen.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Operations_List_MinimumSet_Gen", - "operationId": "Operations_List", - "parameters": { - "api-version": "2024-10-01" - }, - "responses": { - "200": { - "body": {} - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json deleted file mode 100644 index dc7a74b46531..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesCancelOperations", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "ppo", - "requestBody": { - "operationIds": [ - "23480d2f-1dca-4610-afb4-dd25eec1f34r" - ], - "correlationid": "23480d2f-1dca-4610-afb4-dd25eecff34r" - } - }, - "responses": { - "200": { - "body": { - "results": [ - {} - ] - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json deleted file mode 100644 index 95ee81707040..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "qgjjdanragigdscdjg", - "requestBody": { - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" - ] - }, - "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" - } - }, - "responses": { - "200": { - "body": { - "type": "oqht", - "location": "klzw", - "description": "blifqielbaipdypeghebbzlhuwbshl" - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json deleted file mode 100644 index 4e0268413867..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "xnnhrmqdqxd", - "requestBody": { - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" - ] - }, - "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" - } - }, - "responses": { - "200": { - "body": { - "type": "wxomyfujvxevcmciffrwjcgqgwax", - "location": "klzw", - "description": "melomnhpdla" - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json deleted file mode 100644 index afedc26dd367..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesExecuteStart", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "qpiinfsykbkc", - "requestBody": { - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" - ] - }, - "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" - } - }, - "responses": { - "200": { - "body": { - "type": "vgntivk", - "location": "klzw", - "description": "awwicktefaaz" - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json deleted file mode 100644 index 6cd1a2727de4..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "aawvznzoilbmjdcplavzia", - "requestBody": { - "operationIds": [ - "23480d2f-1dca-4610-afb4-dd25eec1f34r" - ] - } - }, - "responses": { - "200": { - "body": { - "results": [ - {} - ] - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json deleted file mode 100644 index bad97b1096aa..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "uuiouyzcjdvpbmrhx", - "requestBody": { - "operationIds": [ - "23480d2f-1dca-4610-afb4-dd25eec1f34r" - ], - "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" - } - }, - "responses": { - "200": { - "body": { - "results": [ - {} - ] - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json deleted file mode 100644 index beb52c3fd315..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "qnrurmlploypzzhkdew", - "requestBody": { - "schedule": { - "deadlineType": "Unknown" - }, - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" - ] - }, - "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" - } - }, - "responses": { - "200": { - "body": { - "type": "oqht", - "location": "klzw", - "description": "blifqielbaipdypeghebbzlhuwbshl" - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json deleted file mode 100644 index b5e34d857e28..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "mpekujwrup", - "requestBody": { - "schedule": { - "deadlineType": "Unknown" - }, - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" - ] - }, - "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" - } - }, - "responses": { - "200": { - "body": { - "type": "wxomyfujvxevcmciffrwjcgqgwax", - "location": "klzw", - "description": "melomnhpdla" - } - } - } -} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart.json similarity index 100% rename from specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json rename to specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart.json diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json deleted file mode 100644 index 787d127682ef..000000000000 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "title": "ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen", - "operationId": "ScheduledActions_VirtualMachinesSubmitStart", - "parameters": { - "api-version": "2024-10-01", - "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "mboyvperbgcixyywe", - "requestBody": { - "schedule": { - "deadlineType": "Unknown" - }, - "executionParameters": {}, - "resources": { - "ids": [ - "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" - ] - }, - "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34r" - } - }, - "responses": { - "200": { - "body": { - "type": "vgntivk", - "location": "klzw", - "description": "awwicktefaaz" - } - } - } -} From 4e404d07f4b1c82252f3031f9082b4a0dbb86f01 Mon Sep 17 00:00:00 2001 From: Nneka Okeke Date: Mon, 9 Dec 2024 08:38:57 -0800 Subject: [PATCH 10/26] real values in examples --- .../2024-08-15-preview/Operations_List.json | 2 +- ...tions_VirtualMachinesCancelOperations.json | 18 +++++------ ...ions_VirtualMachinesExecuteDeallocate.json | 24 +++++++-------- ...tions_VirtualMachinesExecuteHibernate.json | 26 ++++++++-------- ...edActions_VirtualMachinesExecuteStart.json | 26 ++++++++-------- ...ons_VirtualMachinesGetOperationErrors.json | 10 +++---- ...ons_VirtualMachinesGetOperationStatus.json | 22 +++++++------- ...tions_VirtualMachinesSubmitDeallocate.json | 30 +++++++++---------- ...ctions_VirtualMachinesSubmitHibernate.json | 30 +++++++++---------- ...ledActions_VirtualMachinesSubmitStart.json | 30 +++++++++---------- .../examples/2024-10-01/Operations_List.json | 2 +- ...tions_VirtualMachinesCancelOperations.json | 14 ++++----- ...ions_VirtualMachinesExecuteDeallocate.json | 24 +++++++-------- ...tions_VirtualMachinesExecuteHibernate.json | 24 +++++++-------- ...edActions_VirtualMachinesExecuteStart.json | 24 +++++++-------- ...ons_VirtualMachinesGetOperationErrors.json | 12 ++++---- ...ons_VirtualMachinesGetOperationStatus.json | 20 ++++++------- ...tions_VirtualMachinesSubmitDeallocate.json | 28 ++++++++--------- ...ctions_VirtualMachinesSubmitHibernate.json | 28 ++++++++--------- ...ledActions_VirtualMachinesSubmitStart.json | 28 ++++++++--------- .../2024-08-15-preview/computeschedule.json | 20 ++++++------- .../examples/Operations_List.json | 2 +- ...tions_VirtualMachinesCancelOperations.json | 18 +++++------ ...ions_VirtualMachinesExecuteDeallocate.json | 24 +++++++-------- ...tions_VirtualMachinesExecuteHibernate.json | 26 ++++++++-------- ...edActions_VirtualMachinesExecuteStart.json | 26 ++++++++-------- ...ons_VirtualMachinesGetOperationErrors.json | 10 +++---- ...ons_VirtualMachinesGetOperationStatus.json | 22 +++++++------- ...tions_VirtualMachinesSubmitDeallocate.json | 30 +++++++++---------- ...ctions_VirtualMachinesSubmitHibernate.json | 30 +++++++++---------- ...ledActions_VirtualMachinesSubmitStart.json | 30 +++++++++---------- .../stable/2024-10-01/computeschedule.json | 20 ++++++------- .../2024-10-01/examples/Operations_List.json | 2 +- ...tions_VirtualMachinesCancelOperations.json | 14 ++++----- ...ions_VirtualMachinesExecuteDeallocate.json | 24 +++++++-------- ...tions_VirtualMachinesExecuteHibernate.json | 24 +++++++-------- ...edActions_VirtualMachinesExecuteStart.json | 24 +++++++-------- ...ons_VirtualMachinesGetOperationErrors.json | 12 ++++---- ...ons_VirtualMachinesGetOperationStatus.json | 20 ++++++------- ...tions_VirtualMachinesSubmitDeallocate.json | 28 ++++++++--------- ...ctions_VirtualMachinesSubmitHibernate.json | 28 ++++++++--------- ...ledActions_VirtualMachinesSubmitStart.json | 28 ++++++++--------- 42 files changed, 436 insertions(+), 448 deletions(-) diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List.json index 5527d50cb2aa..f0061bcf464a 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/Operations_List.json @@ -1,5 +1,5 @@ { - "title": "Operations_ListMax", + "title": "Operations_List", "operationId": "Operations_List", "parameters": { "api-version": "2024-08-15-preview" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations.json index 1888e9bc1560..d3ba04c40135 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesCancelOperationsMax", + "title": "ScheduledActions_VirtualMachinesCancelOperations", "operationId": "ScheduledActions_VirtualMachinesCancelOperations", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "wtd", + "locationparameter": "eastus2euap", "requestBody": { "operationIds": [ "23480d2f-1dca-4610-afb4-dd25eec1f34r" @@ -18,19 +18,19 @@ "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource1", - "errorCode": "pliurpaykwv", - "errorDetails": "mbqwkpxl", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource1", - "opType": "Unknown", + "opType": "Deallocate", "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", "deadline": "2024-07-12T18:06:52.974Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Cancelled", "resourceOperationError": { - "errorCode": "fticyqukvkillwd", - "errorDetails": "yimgxqrkp" + "errorCode": "OperationCancelled", + "errorDetails": "Operation cancelled by user" }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate.json index eb12485b69c7..ea0ba257817c 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteDeallocateMax", + "title": "ScheduledActions_VirtualMachinesExecuteDeallocate", "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "jqifmg", + "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { "optimizationPreference": "Cost", @@ -24,24 +24,24 @@ "responses": { "200": { "body": { - "type": "eokrhxypminzcgplibblmwojvjd", - "location": "qbbvrdisvjgxirnzdvdsodkt", + "type": "VirtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", - "errorCode": "pliurpaykwv", - "errorDetails": "mbqwkpxl", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", - "opType": "Unknown", + "opType": "Deallocate", "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", "deadline": "2024-07-12T18:06:52.974Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "resourceOperationError": { - "errorCode": "fticyqukvkillwd", - "errorDetails": "yimgxqrkp" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { @@ -52,7 +52,7 @@ } } ], - "description": "legcblswxmwppghf" + "description": "Deallocate Resource request" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate.json index 99172530178c..956c580ec737 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteHibernateMax", + "title": "ScheduledActions_VirtualMachinesExecuteHibernate", "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "sfdfbtqeclpnolvlzjmq", + "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { "optimizationPreference": "Cost", @@ -24,35 +24,35 @@ "responses": { "200": { "body": { - "type": "mkmgbfpkiudefzhdppgjmqztx", - "location": "rvlnzczpesuvusbmbcjctzcinzlr", + "type": "VirtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "pliurpaykwv", - "errorDetails": "mbqwkpxl", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Hibernate", "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", "deadline": "2024-07-12T18:06:52.974Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "resourceOperationError": { - "errorCode": "fticyqukvkillwd", - "errorDetails": "yimgxqrkp" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { "retryCount": 30, "retryWindowInMinutes": 27 }, - "timeZone": "snzbejbwmajvtgkh" + "timeZone": "UTC" } } ], - "description": "pnetsuntzjjpnonpitsiuupnuun" + "description": "Hibernate Resource request" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart.json index e063980e5903..4b4c2d179948 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteStartMax", + "title": "ScheduledActions_VirtualMachinesExecuteStart", "operationId": "ScheduledActions_VirtualMachinesExecuteStart", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "fmrwbi", + "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { "optimizationPreference": "Cost", @@ -24,35 +24,35 @@ "responses": { "200": { "body": { - "type": "gxmnjtgu", - "location": "uvlidhowwv", + "type": "VirtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4", - "errorCode": "pliurpaykwv", - "errorDetails": "mbqwkpxl", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4", - "opType": "Unknown", + "opType": "Start", "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", "deadline": "2024-07-12T18:06:52.974Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "resourceOperationError": { - "errorCode": "fticyqukvkillwd", - "errorDetails": "yimgxqrkp" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { "retryCount": 30, "retryWindowInMinutes": 27 }, - "timeZone": "ccgybymveyrqnfwwjy" + "timeZone": "UTC" } } ], - "description": "swzesyaila" + "description": "Start Resource request" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors.json index 52a61432cece..1115317cf466 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors.json @@ -1,5 +1,5 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationErrors_Max", + "title": "ScheduledActions_VirtualMachinesGetOperationErrors", "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", "parameters": { "api-version": "2024-08-15-preview", @@ -22,14 +22,14 @@ "completedAt": "2024-08-08T19:00:14.771Z", "operationErrors": [ { - "errorCode": "nr", - "errorDetails": "2024-08-08T19:00:14.771Z", + "errorCode": "null", + "errorDetails": "null", "timeStamp": "2024-11-14T00:31:09.825Z", "crpOperationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } ], - "requestErrorCode": "hyfvxj", - "requestErrorDetails": "heqpzxzbtrimbxalapqypezeflkyo" + "requestErrorCode": "null", + "requestErrorDetails": "null" } ] } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus.json index 9becdfff6a2a..79bcc181d790 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationStatusMax", + "title": "ScheduledActions_VirtualMachinesGetOperationStatus", "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "fbnapoxndbgqbyajf", + "locationparameter": "eastus2euap", "requestBody": { "operationIds": [ "01080d2f-1dca-4610-afb4-dd25eec1f3df" @@ -18,26 +18,26 @@ "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", - "errorCode": "rqbbptfjkgsues", - "errorDetails": "aecbxyqxtkkqpgrvkuzfjra", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", - "opType": "Unknown", - "subscriptionId": "zmflagmslsgiikjcrhmqv", + "opType": "Deallocate", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", "deadline": "2024-11-01T19:03:38.035Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Failed", "resourceOperationError": { - "errorCode": "ksz", - "errorDetails": "utovc" + "errorCode": "DeallocateTimedOut", + "errorDetails": "DeallocateTimedOut Details" }, "completedAt": "2024-11-01T19:03:38.036Z", "retryPolicy": { "retryCount": 29, "retryWindowInMinutes": 3 }, - "timeZone": "yjfqyiqocoghexbkl" + "timeZone": "UTC" } } ] diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate.json index ca6c48a4f35a..2cfa1f025478 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate.json @@ -1,15 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitDeallocateMax", + "title": "ScheduledActions_VirtualMachinesSubmitDeallocate", "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "mkqjiujnanymni", + "locationparameter": "eastus2euap", "requestBody": { "schedule": { - "deadlineType": "Unknown", + "deadlineType": "InitiateAt", "deadLine": "2024-11-14T00:31:09.826Z", - "timeZone": "aovpxkkce" + "timeZone": "UTC" }, "executionParameters": { "optimizationPreference": "Cost", @@ -29,35 +29,35 @@ "responses": { "200": { "body": { - "type": "eokrhxypminzcgplibblmwojvjd", - "location": "qbbvrdisvjgxirnzdvdsodkt", + "type": "VirtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", - "errorCode": "pliurpaykwv", - "errorDetails": "mbqwkpxl", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", - "opType": "Unknown", + "opType": "Deallocate", "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", "deadline": "2024-07-12T18:06:52.974Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "resourceOperationError": { - "errorCode": "fticyqukvkillwd", - "errorDetails": "yimgxqrkp" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { "retryCount": 30, "retryWindowInMinutes": 27 }, - "timeZone": "onovfauvuwcjgpckrvuwnyxvmgbdl" + "timeZone": "UTC" } } ], - "description": "legcblswxmwppghf" + "description": "Deallocate Resource request" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate.json index 7c1a918a0edb..0a63b25debd4 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate.json @@ -1,15 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitHibernate Max", + "title": "ScheduledActions_VirtualMachinesSubmitHibernate", "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "b", + "locationparameter": "eastus2euap", "requestBody": { "schedule": { - "deadlineType": "Unknown", + "deadlineType": "InitiateAt", "deadLine": "2024-11-14T00:31:09.826Z", - "timeZone": "bnlyryuvlxhpgkixtlzqg" + "timeZone": "UTC" }, "executionParameters": { "optimizationPreference": "Cost", @@ -29,35 +29,35 @@ "responses": { "200": { "body": { - "type": "mkmgbfpkiudefzhdppgjmqztx", - "location": "rvlnzczpesuvusbmbcjctzcinzlr", + "type": "VirtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "pliurpaykwv", - "errorDetails": "mbqwkpxl", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Hibernate", "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", "deadline": "2024-07-12T18:06:52.974Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "resourceOperationError": { - "errorCode": "fticyqukvkillwd", - "errorDetails": "yimgxqrkp" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { "retryCount": 30, "retryWindowInMinutes": 27 }, - "timeZone": "snzbejbwmajvtgkh" + "timeZone": "UTC" } } ], - "description": "pnetsuntzjjpnonpitsiuupnuun" + "description": "Hibernate Resource request" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart.json index d4440c67fa98..69baddb2cd6f 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart.json @@ -1,15 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitStartMax", + "title": "ScheduledActions_VirtualMachinesSubmitStart", "operationId": "ScheduledActions_VirtualMachinesSubmitStart", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "hrbepqlfyctbhuydklbnuv", + "locationparameter": "eastus2euap", "requestBody": { "schedule": { - "deadlineType": "Unknown", + "deadlineType": "InitiateAt", "deadLine": "2024-11-14T00:31:09.827Z", - "timeZone": "zxbhdntlqpbkbnyenyjup" + "timeZone": "UTC" }, "executionParameters": { "optimizationPreference": "Cost", @@ -29,35 +29,35 @@ "responses": { "200": { "body": { - "type": "gxmnjtgu", - "location": "uvlidhowwv", + "type": "virtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4", - "errorCode": "pliurpaykwv", - "errorDetails": "mbqwkpxl", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4", - "opType": "Unknown", + "opType": "Start", "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", "deadline": "2024-07-12T18:06:52.974Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "resourceOperationError": { - "errorCode": "fticyqukvkillwd", - "errorDetails": "yimgxqrkp" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { "retryCount": 30, "retryWindowInMinutes": 27 }, - "timeZone": "ccgybymveyrqnfwwjy" + "timeZone": "UTC" } } ], - "description": "swzesyaila" + "description": "Start Resource Request" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List.json index 8ad4071130dd..97d12f1703c1 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/Operations_List.json @@ -1,5 +1,5 @@ { - "title": "Operations_List_MaximumSet_Gen", + "title": "Operations_List", "operationId": "Operations_List", "parameters": { "api-version": "2024-10-01" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations.json index 069e61ce2215..31e33c2fe61a 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesCancelOperations", "operationId": "ScheduledActions_VirtualMachinesCancelOperations", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "ouhxsbxzasmmhdn", + "locationparameter": "eastus2euap", "requestBody": { "operationIds": [ "23480d2f-1dca-4610-afb4-dd25eec1f34r" @@ -23,15 +23,15 @@ "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Deallocate", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Cancelled", "timezone": "UTC", "resourceOperationError": { - "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", - "errorDetails": "tvriinrhdrq" + "errorCode": "OperationCancelled", + "errorDetails": "Operation cancelled by user" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate.json index 8f84167a81d7..1fe8a9d488ce 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesExecuteDeallocate", "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "cjjdtgxejxbuvznvimztuxqjbqodd", + "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { "retryPolicy": { @@ -23,25 +23,25 @@ "responses": { "200": { "body": { - "type": "oqht", - "location": "klzw", + "type": "VirtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "lmpnizhpzc", - "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Deallocate", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "timezone": "UTC", "resourceOperationError": { - "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", - "errorDetails": "tvriinrhdrq" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { @@ -52,7 +52,7 @@ } } ], - "description": "blifqielbaipdypeghebbzlhuwbshl" + "description": "Deallocate Resource Request" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate.json index 6c1835fb4595..2526259b0df5 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesExecuteHibernate", "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "pgddlgsxnajgok", + "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { "retryPolicy": { @@ -23,25 +23,25 @@ "responses": { "200": { "body": { - "type": "wxomyfujvxevcmciffrwjcgqgwax", - "location": "klzw", + "type": "VirtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "lmpnizhpzc", - "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Hibernate", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "timezone": "UTC", "resourceOperationError": { - "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", - "errorDetails": "tvriinrhdrq" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { @@ -52,7 +52,7 @@ } } ], - "description": "melomnhpdla" + "description": "Hibernate Resource Request" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart.json index e9aa7dc06373..90736e6021da 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesExecuteStart", "operationId": "ScheduledActions_VirtualMachinesExecuteStart", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "mjia", + "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { "retryPolicy": { @@ -23,25 +23,25 @@ "responses": { "200": { "body": { - "type": "vgntivk", - "location": "klzw", + "type": "virtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "lmpnizhpzc", - "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Start", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "timezone": "UTC", "resourceOperationError": { - "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", - "errorDetails": "tvriinrhdrq" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { @@ -52,7 +52,7 @@ } } ], - "description": "awwicktefaaz" + "description": "Start Resource Request" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors.json index 182dd39a6e85..50dfa46f78c4 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationErrors.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesGetOperationErrors", "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "jjezrypbxkczuyzrosajnnpgw", + "locationparameter": "eastus2euap", "requestBody": { "operationIds": [ "23480d2f-1dca-4610-afb4-dd25eec1f34r" @@ -22,16 +22,16 @@ "completedAt": "2024-11-01T17:52:53.999Z", "operationErrors": [ { - "errorCode": "thlxqphhzk", - "errorDetails": "ytopml", + "errorCode": "null", + "errorDetails": "null", "timestamp": "2024-11-01T17:52:53.999Z", "azureOperationName": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "timeStamp": "2024-11-27T16:55:03.357Z", "crpOperationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } ], - "requestErrorCode": "j", - "requestErrorDetails": "hrbkrkpxqcheicjyktzrvlpnmbpimw" + "requestErrorCode": "null", + "requestErrorDetails": "null" } ] } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus.json index 696b4a2bc9d4..e87a442482fe 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus.json @@ -1,15 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesGetOperationStatus", "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "bafldmcspivzxqwrxlxstghebeja", + "locationparameter": "eastus2euap", "requestBody": { "operationIds": [ "23480d2f-1dca-4610-afb4-dd25eec1f34r" ], - "correlationid": "qdwuijwcpstvx" + "correlationid": "35780d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -18,20 +18,20 @@ "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "lmpnizhpzc", - "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Deallocate", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "timezone": "UTC", "resourceOperationError": { - "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", - "errorDetails": "tvriinrhdrq" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate.json index e5014ba59543..0ea2223b7358 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate.json @@ -1,17 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesSubmitDeallocate", "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "pkcbmivarbdfrsirxgdydcfesfu", + "locationparameter": "eastus2euap", "requestBody": { "schedule": { "deadline": "2024-11-01T17:52:54.215Z", "timezone": "UTC", - "deadlineType": "Unknown", - "deadLine": "2024-11-27T16:55:03.357Z", - "timeZone": "UTC" + "deadlineType": "InitiateAt" }, "executionParameters": { "retryPolicy": { @@ -30,25 +28,25 @@ "responses": { "200": { "body": { - "type": "oqht", - "location": "klzw", + "type": "virtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "lmpnizhpzc", - "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Deallocate", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "timezone": "UTC", "resourceOperationError": { - "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", - "errorDetails": "tvriinrhdrq" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { @@ -59,7 +57,7 @@ } } ], - "description": "blifqielbaipdypeghebbzlhuwbshl" + "description": "Deallocate Resource Request" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate.json index d1eef1f42019..8c44fe95b2d0 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate.json @@ -1,17 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesSubmitHibernate", "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "stb", + "locationparameter": "eastus2euap", "requestBody": { "schedule": { "deadline": "2024-11-01T17:52:54.215Z", "timezone": "UTC", - "deadlineType": "Unknown", - "deadLine": "2024-11-27T16:55:03.358Z", - "timeZone": "UTC" + "deadlineType": "InitiateAt" }, "executionParameters": { "retryPolicy": { @@ -30,25 +28,25 @@ "responses": { "200": { "body": { - "type": "wxomyfujvxevcmciffrwjcgqgwax", - "location": "klzw", + "type": "virtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "lmpnizhpzc", - "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Hibernate", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "timezone": "UTC", "resourceOperationError": { - "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", - "errorDetails": "tvriinrhdrq" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { @@ -59,7 +57,7 @@ } } ], - "description": "melomnhpdla" + "description": "Hibernate Resource Request" } } } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart.json index 21a9470c4c78..6878240173af 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart.json @@ -1,17 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesSubmitStart", "operationId": "ScheduledActions_VirtualMachinesSubmitStart", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "vludqrjb", + "locationparameter": "eastus2euap", "requestBody": { "schedule": { "deadline": "2024-11-01T17:52:54.215Z", "timezone": "UTC", - "deadlineType": "Unknown", - "deadLine": "2024-11-27T16:55:03.358Z", - "timeZone": "UTC" + "deadlineType": "InitiateAt" }, "executionParameters": { "retryPolicy": { @@ -30,25 +28,25 @@ "responses": { "200": { "body": { - "type": "vgntivk", - "location": "klzw", + "type": "virtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "lmpnizhpzc", - "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Start", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "timezone": "UTC", "resourceOperationError": { - "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", - "errorDetails": "tvriinrhdrq" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { @@ -59,7 +57,7 @@ } } ], - "description": "awwicktefaaz" + "description": "Start Resource Request" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json index dcf6d01d4a5e..bd1f593131ba 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/computeschedule.json @@ -71,7 +71,7 @@ } }, "x-ms-examples": { - "Operations_ListMax": { + "Operations_List": { "$ref": "./examples/Operations_List.json" } }, @@ -124,7 +124,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesCancelOperationsMax": { + "ScheduledActions_VirtualMachinesCancelOperations": { "$ref": "./examples/ScheduledActions_VirtualMachinesCancelOperations.json" } } @@ -174,7 +174,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesExecuteDeallocateMax": { + "ScheduledActions_VirtualMachinesExecuteDeallocate": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json" } } @@ -224,7 +224,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesExecuteHibernateMax": { + "ScheduledActions_VirtualMachinesExecuteHibernate": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteHibernate.json" } } @@ -274,7 +274,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesExecuteStartMax": { + "ScheduledActions_VirtualMachinesExecuteStart": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteStart.json" } } @@ -324,7 +324,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesGetOperationErrors_Max": { + "ScheduledActions_VirtualMachinesGetOperationErrors": { "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationErrors.json" } } @@ -374,7 +374,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesGetOperationStatusMax": { + "ScheduledActions_VirtualMachinesGetOperationStatus": { "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationStatus.json" } } @@ -424,7 +424,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesSubmitDeallocateMax": { + "ScheduledActions_VirtualMachinesSubmitDeallocate": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json" } } @@ -474,7 +474,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesSubmitHibernate Max": { + "ScheduledActions_VirtualMachinesSubmitHibernate": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitHibernate.json" } } @@ -524,7 +524,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesSubmitStartMax": { + "ScheduledActions_VirtualMachinesSubmitStart": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitStart.json" } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List.json index 5527d50cb2aa..f0061bcf464a 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/Operations_List.json @@ -1,5 +1,5 @@ { - "title": "Operations_ListMax", + "title": "Operations_List", "operationId": "Operations_List", "parameters": { "api-version": "2024-08-15-preview" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations.json index 1888e9bc1560..d3ba04c40135 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesCancelOperationsMax", + "title": "ScheduledActions_VirtualMachinesCancelOperations", "operationId": "ScheduledActions_VirtualMachinesCancelOperations", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "wtd", + "locationparameter": "eastus2euap", "requestBody": { "operationIds": [ "23480d2f-1dca-4610-afb4-dd25eec1f34r" @@ -18,19 +18,19 @@ "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource1", - "errorCode": "pliurpaykwv", - "errorDetails": "mbqwkpxl", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource1", - "opType": "Unknown", + "opType": "Deallocate", "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", "deadline": "2024-07-12T18:06:52.974Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Cancelled", "resourceOperationError": { - "errorCode": "fticyqukvkillwd", - "errorDetails": "yimgxqrkp" + "errorCode": "OperationCancelled", + "errorDetails": "Operation cancelled by user" }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json index eb12485b69c7..ea0ba257817c 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteDeallocateMax", + "title": "ScheduledActions_VirtualMachinesExecuteDeallocate", "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "jqifmg", + "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { "optimizationPreference": "Cost", @@ -24,24 +24,24 @@ "responses": { "200": { "body": { - "type": "eokrhxypminzcgplibblmwojvjd", - "location": "qbbvrdisvjgxirnzdvdsodkt", + "type": "VirtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", - "errorCode": "pliurpaykwv", - "errorDetails": "mbqwkpxl", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", - "opType": "Unknown", + "opType": "Deallocate", "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", "deadline": "2024-07-12T18:06:52.974Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "resourceOperationError": { - "errorCode": "fticyqukvkillwd", - "errorDetails": "yimgxqrkp" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { @@ -52,7 +52,7 @@ } } ], - "description": "legcblswxmwppghf" + "description": "Deallocate Resource request" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json index 99172530178c..956c580ec737 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteHibernateMax", + "title": "ScheduledActions_VirtualMachinesExecuteHibernate", "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "sfdfbtqeclpnolvlzjmq", + "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { "optimizationPreference": "Cost", @@ -24,35 +24,35 @@ "responses": { "200": { "body": { - "type": "mkmgbfpkiudefzhdppgjmqztx", - "location": "rvlnzczpesuvusbmbcjctzcinzlr", + "type": "VirtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "pliurpaykwv", - "errorDetails": "mbqwkpxl", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Hibernate", "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", "deadline": "2024-07-12T18:06:52.974Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "resourceOperationError": { - "errorCode": "fticyqukvkillwd", - "errorDetails": "yimgxqrkp" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { "retryCount": 30, "retryWindowInMinutes": 27 }, - "timeZone": "snzbejbwmajvtgkh" + "timeZone": "UTC" } } ], - "description": "pnetsuntzjjpnonpitsiuupnuun" + "description": "Hibernate Resource request" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart.json index e063980e5903..4b4c2d179948 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteStartMax", + "title": "ScheduledActions_VirtualMachinesExecuteStart", "operationId": "ScheduledActions_VirtualMachinesExecuteStart", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "fmrwbi", + "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { "optimizationPreference": "Cost", @@ -24,35 +24,35 @@ "responses": { "200": { "body": { - "type": "gxmnjtgu", - "location": "uvlidhowwv", + "type": "VirtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4", - "errorCode": "pliurpaykwv", - "errorDetails": "mbqwkpxl", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4", - "opType": "Unknown", + "opType": "Start", "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", "deadline": "2024-07-12T18:06:52.974Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "resourceOperationError": { - "errorCode": "fticyqukvkillwd", - "errorDetails": "yimgxqrkp" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { "retryCount": 30, "retryWindowInMinutes": 27 }, - "timeZone": "ccgybymveyrqnfwwjy" + "timeZone": "UTC" } } ], - "description": "swzesyaila" + "description": "Start Resource request" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors.json index 52a61432cece..1115317cf466 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors.json @@ -1,5 +1,5 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationErrors_Max", + "title": "ScheduledActions_VirtualMachinesGetOperationErrors", "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", "parameters": { "api-version": "2024-08-15-preview", @@ -22,14 +22,14 @@ "completedAt": "2024-08-08T19:00:14.771Z", "operationErrors": [ { - "errorCode": "nr", - "errorDetails": "2024-08-08T19:00:14.771Z", + "errorCode": "null", + "errorDetails": "null", "timeStamp": "2024-11-14T00:31:09.825Z", "crpOperationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } ], - "requestErrorCode": "hyfvxj", - "requestErrorDetails": "heqpzxzbtrimbxalapqypezeflkyo" + "requestErrorCode": "null", + "requestErrorDetails": "null" } ] } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json index 9becdfff6a2a..79bcc181d790 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationStatusMax", + "title": "ScheduledActions_VirtualMachinesGetOperationStatus", "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "fbnapoxndbgqbyajf", + "locationparameter": "eastus2euap", "requestBody": { "operationIds": [ "01080d2f-1dca-4610-afb4-dd25eec1f3df" @@ -18,26 +18,26 @@ "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", - "errorCode": "rqbbptfjkgsues", - "errorDetails": "aecbxyqxtkkqpgrvkuzfjra", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", - "opType": "Unknown", - "subscriptionId": "zmflagmslsgiikjcrhmqv", + "opType": "Deallocate", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", "deadline": "2024-11-01T19:03:38.035Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Failed", "resourceOperationError": { - "errorCode": "ksz", - "errorDetails": "utovc" + "errorCode": "DeallocateTimedOut", + "errorDetails": "DeallocateTimedOut Details" }, "completedAt": "2024-11-01T19:03:38.036Z", "retryPolicy": { "retryCount": 29, "retryWindowInMinutes": 3 }, - "timeZone": "yjfqyiqocoghexbkl" + "timeZone": "UTC" } } ] diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json index ca6c48a4f35a..2cfa1f025478 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json @@ -1,15 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitDeallocateMax", + "title": "ScheduledActions_VirtualMachinesSubmitDeallocate", "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "mkqjiujnanymni", + "locationparameter": "eastus2euap", "requestBody": { "schedule": { - "deadlineType": "Unknown", + "deadlineType": "InitiateAt", "deadLine": "2024-11-14T00:31:09.826Z", - "timeZone": "aovpxkkce" + "timeZone": "UTC" }, "executionParameters": { "optimizationPreference": "Cost", @@ -29,35 +29,35 @@ "responses": { "200": { "body": { - "type": "eokrhxypminzcgplibblmwojvjd", - "location": "qbbvrdisvjgxirnzdvdsodkt", + "type": "VirtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", - "errorCode": "pliurpaykwv", - "errorDetails": "mbqwkpxl", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", - "opType": "Unknown", + "opType": "Deallocate", "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", "deadline": "2024-07-12T18:06:52.974Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "resourceOperationError": { - "errorCode": "fticyqukvkillwd", - "errorDetails": "yimgxqrkp" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { "retryCount": 30, "retryWindowInMinutes": 27 }, - "timeZone": "onovfauvuwcjgpckrvuwnyxvmgbdl" + "timeZone": "UTC" } } ], - "description": "legcblswxmwppghf" + "description": "Deallocate Resource request" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json index 7c1a918a0edb..0a63b25debd4 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json @@ -1,15 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitHibernate Max", + "title": "ScheduledActions_VirtualMachinesSubmitHibernate", "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "b", + "locationparameter": "eastus2euap", "requestBody": { "schedule": { - "deadlineType": "Unknown", + "deadlineType": "InitiateAt", "deadLine": "2024-11-14T00:31:09.826Z", - "timeZone": "bnlyryuvlxhpgkixtlzqg" + "timeZone": "UTC" }, "executionParameters": { "optimizationPreference": "Cost", @@ -29,35 +29,35 @@ "responses": { "200": { "body": { - "type": "mkmgbfpkiudefzhdppgjmqztx", - "location": "rvlnzczpesuvusbmbcjctzcinzlr", + "type": "VirtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "pliurpaykwv", - "errorDetails": "mbqwkpxl", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Hibernate", "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", "deadline": "2024-07-12T18:06:52.974Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "resourceOperationError": { - "errorCode": "fticyqukvkillwd", - "errorDetails": "yimgxqrkp" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { "retryCount": 30, "retryWindowInMinutes": 27 }, - "timeZone": "snzbejbwmajvtgkh" + "timeZone": "UTC" } } ], - "description": "pnetsuntzjjpnonpitsiuupnuun" + "description": "Hibernate Resource request" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart.json index d4440c67fa98..69baddb2cd6f 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart.json @@ -1,15 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitStartMax", + "title": "ScheduledActions_VirtualMachinesSubmitStart", "operationId": "ScheduledActions_VirtualMachinesSubmitStart", "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "hrbepqlfyctbhuydklbnuv", + "locationparameter": "eastus2euap", "requestBody": { "schedule": { - "deadlineType": "Unknown", + "deadlineType": "InitiateAt", "deadLine": "2024-11-14T00:31:09.827Z", - "timeZone": "zxbhdntlqpbkbnyenyjup" + "timeZone": "UTC" }, "executionParameters": { "optimizationPreference": "Cost", @@ -29,35 +29,35 @@ "responses": { "200": { "body": { - "type": "gxmnjtgu", - "location": "uvlidhowwv", + "type": "virtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4", - "errorCode": "pliurpaykwv", - "errorDetails": "mbqwkpxl", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4", - "opType": "Unknown", + "opType": "Start", "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", "deadline": "2024-07-12T18:06:52.974Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "resourceOperationError": { - "errorCode": "fticyqukvkillwd", - "errorDetails": "yimgxqrkp" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { "retryCount": 30, "retryWindowInMinutes": 27 }, - "timeZone": "ccgybymveyrqnfwwjy" + "timeZone": "UTC" } } ], - "description": "swzesyaila" + "description": "Start Resource Request" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json index 8afa7d71d116..531aa41ba1d3 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/computeschedule.json @@ -71,7 +71,7 @@ } }, "x-ms-examples": { - "Operations_List_MaximumSet_Gen": { + "Operations_List": { "$ref": "./examples/Operations_List.json" } }, @@ -124,7 +124,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen": { + "ScheduledActions_VirtualMachinesCancelOperations": { "$ref": "./examples/ScheduledActions_VirtualMachinesCancelOperations.json" } } @@ -174,7 +174,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen": { + "ScheduledActions_VirtualMachinesExecuteDeallocate": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json" } } @@ -224,7 +224,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen": { + "ScheduledActions_VirtualMachinesExecuteHibernate": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteHibernate.json" } } @@ -274,7 +274,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen": { + "ScheduledActions_VirtualMachinesExecuteStart": { "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteStart.json" } } @@ -324,7 +324,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen": { + "ScheduledActions_VirtualMachinesGetOperationErrors": { "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationErrors.json" } } @@ -374,7 +374,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen": { + "ScheduledActions_VirtualMachinesGetOperationStatus": { "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationStatus.json" } } @@ -424,7 +424,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen": { + "ScheduledActions_VirtualMachinesSubmitDeallocate": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json" } } @@ -474,7 +474,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen": { + "ScheduledActions_VirtualMachinesSubmitHibernate": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitHibernate.json" } } @@ -524,7 +524,7 @@ } }, "x-ms-examples": { - "ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen": { + "ScheduledActions_VirtualMachinesSubmitStart": { "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitStart.json" } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List.json index 8ad4071130dd..97d12f1703c1 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/Operations_List.json @@ -1,5 +1,5 @@ { - "title": "Operations_List_MaximumSet_Gen", + "title": "Operations_List", "operationId": "Operations_List", "parameters": { "api-version": "2024-10-01" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations.json index 069e61ce2215..31e33c2fe61a 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesCancelOperations", "operationId": "ScheduledActions_VirtualMachinesCancelOperations", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "ouhxsbxzasmmhdn", + "locationparameter": "eastus2euap", "requestBody": { "operationIds": [ "23480d2f-1dca-4610-afb4-dd25eec1f34r" @@ -23,15 +23,15 @@ "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Deallocate", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Cancelled", "timezone": "UTC", "resourceOperationError": { - "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", - "errorDetails": "tvriinrhdrq" + "errorCode": "OperationCancelled", + "errorDetails": "Operation cancelled by user" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json index 8f84167a81d7..1fe8a9d488ce 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesExecuteDeallocate", "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "cjjdtgxejxbuvznvimztuxqjbqodd", + "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { "retryPolicy": { @@ -23,25 +23,25 @@ "responses": { "200": { "body": { - "type": "oqht", - "location": "klzw", + "type": "VirtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "lmpnizhpzc", - "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Deallocate", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "timezone": "UTC", "resourceOperationError": { - "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", - "errorDetails": "tvriinrhdrq" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { @@ -52,7 +52,7 @@ } } ], - "description": "blifqielbaipdypeghebbzlhuwbshl" + "description": "Deallocate Resource Request" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json index 6c1835fb4595..2526259b0df5 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesExecuteHibernate", "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "pgddlgsxnajgok", + "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { "retryPolicy": { @@ -23,25 +23,25 @@ "responses": { "200": { "body": { - "type": "wxomyfujvxevcmciffrwjcgqgwax", - "location": "klzw", + "type": "VirtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "lmpnizhpzc", - "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Hibernate", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "timezone": "UTC", "resourceOperationError": { - "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", - "errorDetails": "tvriinrhdrq" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { @@ -52,7 +52,7 @@ } } ], - "description": "melomnhpdla" + "description": "Hibernate Resource Request" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart.json index e9aa7dc06373..90736e6021da 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesExecuteStart", "operationId": "ScheduledActions_VirtualMachinesExecuteStart", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "mjia", + "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { "retryPolicy": { @@ -23,25 +23,25 @@ "responses": { "200": { "body": { - "type": "vgntivk", - "location": "klzw", + "type": "virtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "lmpnizhpzc", - "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Start", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "timezone": "UTC", "resourceOperationError": { - "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", - "errorDetails": "tvriinrhdrq" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { @@ -52,7 +52,7 @@ } } ], - "description": "awwicktefaaz" + "description": "Start Resource Request" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors.json index 182dd39a6e85..50dfa46f78c4 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationErrors.json @@ -1,10 +1,10 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesGetOperationErrors", "operationId": "ScheduledActions_VirtualMachinesGetOperationErrors", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "jjezrypbxkczuyzrosajnnpgw", + "locationparameter": "eastus2euap", "requestBody": { "operationIds": [ "23480d2f-1dca-4610-afb4-dd25eec1f34r" @@ -22,16 +22,16 @@ "completedAt": "2024-11-01T17:52:53.999Z", "operationErrors": [ { - "errorCode": "thlxqphhzk", - "errorDetails": "ytopml", + "errorCode": "null", + "errorDetails": "null", "timestamp": "2024-11-01T17:52:53.999Z", "azureOperationName": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "timeStamp": "2024-11-27T16:55:03.357Z", "crpOperationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r" } ], - "requestErrorCode": "j", - "requestErrorDetails": "hrbkrkpxqcheicjyktzrvlpnmbpimw" + "requestErrorCode": "null", + "requestErrorDetails": "null" } ] } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json index 696b4a2bc9d4..e87a442482fe 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json @@ -1,15 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesGetOperationStatus", "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "bafldmcspivzxqwrxlxstghebeja", + "locationparameter": "eastus2euap", "requestBody": { "operationIds": [ "23480d2f-1dca-4610-afb4-dd25eec1f34r" ], - "correlationid": "qdwuijwcpstvx" + "correlationid": "35780d2f-1dca-4610-afb4-dd25eec1f34r" } }, "responses": { @@ -18,20 +18,20 @@ "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "lmpnizhpzc", - "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Deallocate", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "timezone": "UTC", "resourceOperationError": { - "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", - "errorDetails": "tvriinrhdrq" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json index e5014ba59543..0ea2223b7358 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json @@ -1,17 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesSubmitDeallocate", "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "pkcbmivarbdfrsirxgdydcfesfu", + "locationparameter": "eastus2euap", "requestBody": { "schedule": { "deadline": "2024-11-01T17:52:54.215Z", "timezone": "UTC", - "deadlineType": "Unknown", - "deadLine": "2024-11-27T16:55:03.357Z", - "timeZone": "UTC" + "deadlineType": "InitiateAt" }, "executionParameters": { "retryPolicy": { @@ -30,25 +28,25 @@ "responses": { "200": { "body": { - "type": "oqht", - "location": "klzw", + "type": "virtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "lmpnizhpzc", - "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Deallocate", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "timezone": "UTC", "resourceOperationError": { - "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", - "errorDetails": "tvriinrhdrq" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { @@ -59,7 +57,7 @@ } } ], - "description": "blifqielbaipdypeghebbzlhuwbshl" + "description": "Deallocate Resource Request" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json index d1eef1f42019..8c44fe95b2d0 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json @@ -1,17 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesSubmitHibernate", "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "stb", + "locationparameter": "eastus2euap", "requestBody": { "schedule": { "deadline": "2024-11-01T17:52:54.215Z", "timezone": "UTC", - "deadlineType": "Unknown", - "deadLine": "2024-11-27T16:55:03.358Z", - "timeZone": "UTC" + "deadlineType": "InitiateAt" }, "executionParameters": { "retryPolicy": { @@ -30,25 +28,25 @@ "responses": { "200": { "body": { - "type": "wxomyfujvxevcmciffrwjcgqgwax", - "location": "klzw", + "type": "virtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "lmpnizhpzc", - "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Hibernate", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "timezone": "UTC", "resourceOperationError": { - "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", - "errorDetails": "tvriinrhdrq" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { @@ -59,7 +57,7 @@ } } ], - "description": "melomnhpdla" + "description": "Hibernate Resource Request" } } } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart.json index 21a9470c4c78..6878240173af 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart.json @@ -1,17 +1,15 @@ { - "title": "ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen", + "title": "ScheduledActions_VirtualMachinesSubmitStart", "operationId": "ScheduledActions_VirtualMachinesSubmitStart", "parameters": { "api-version": "2024-10-01", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", - "locationparameter": "vludqrjb", + "locationparameter": "eastus2euap", "requestBody": { "schedule": { "deadline": "2024-11-01T17:52:54.215Z", "timezone": "UTC", - "deadlineType": "Unknown", - "deadLine": "2024-11-27T16:55:03.358Z", - "timeZone": "UTC" + "deadlineType": "InitiateAt" }, "executionParameters": { "retryPolicy": { @@ -30,25 +28,25 @@ "responses": { "200": { "body": { - "type": "vgntivk", - "location": "klzw", + "type": "virtualMachine", + "location": "eastus2euap", "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "lmpnizhpzc", - "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "opType": "Unknown", + "opType": "Start", "subscriptionId": "D8E30CC0-2763-4FCC-84A8-3C5659281032", "deadline": "2024-11-01T17:52:53.667Z", - "deadlineType": "Unknown", - "state": "Unknown", + "deadlineType": "InitiateAt", + "state": "Succeeded", "timezone": "UTC", "resourceOperationError": { - "errorCode": "mrjqlbiixviipmcutslqjcxpqeio", - "errorDetails": "tvriinrhdrq" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { @@ -59,7 +57,7 @@ } } ], - "description": "awwicktefaaz" + "description": "Start Resource Request" } } } From f036d24f61b6576202f8c894b129c1900b45a928 Mon Sep 17 00:00:00 2001 From: Nneka Okeke Date: Mon, 9 Dec 2024 09:30:25 -0800 Subject: [PATCH 11/26] added renaming changes for .net sdk --- .../computeschedule/ComputeSchedule.Management/client.tsp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/computeschedule/ComputeSchedule.Management/client.tsp b/specification/computeschedule/ComputeSchedule.Management/client.tsp index 60ef54dbebce..00b5be17eeb7 100644 --- a/specification/computeschedule/ComputeSchedule.Management/client.tsp +++ b/specification/computeschedule/ComputeSchedule.Management/client.tsp @@ -91,3 +91,7 @@ using Microsoft.ComputeSchedule; "csharp" ); @@clientName(CancelOperationsRequest.correlationid, "correlationId", "csharp"); +@@clientName(Schedule.deadLine, "userRequestDeadline", "csharp"); +@@clientName(Schedule.timeZone, "userRequestTimezone", "csharp"); +@@clientName(ResourceOperationDetails.timeZone, "operationTimezone", "csharp"); +@@clientName(OperationErrorDetails.timeStamp, "errorDetailsTimestamp", "csharp"); \ No newline at end of file From 2acf2296f48b0661a1f9f2efc2e3bb34eb91bc9f Mon Sep 17 00:00:00 2001 From: Nneka Okeke Date: Mon, 9 Dec 2024 09:33:52 -0800 Subject: [PATCH 12/26] fix validation error --- .../computeschedule/ComputeSchedule.Management/client.tsp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/specification/computeschedule/ComputeSchedule.Management/client.tsp b/specification/computeschedule/ComputeSchedule.Management/client.tsp index 00b5be17eeb7..a235c1db02fa 100644 --- a/specification/computeschedule/ComputeSchedule.Management/client.tsp +++ b/specification/computeschedule/ComputeSchedule.Management/client.tsp @@ -94,4 +94,7 @@ using Microsoft.ComputeSchedule; @@clientName(Schedule.deadLine, "userRequestDeadline", "csharp"); @@clientName(Schedule.timeZone, "userRequestTimezone", "csharp"); @@clientName(ResourceOperationDetails.timeZone, "operationTimezone", "csharp"); -@@clientName(OperationErrorDetails.timeStamp, "errorDetailsTimestamp", "csharp"); \ No newline at end of file +@@clientName(OperationErrorDetails.timeStamp, + "errorDetailsTimestamp", + "csharp" +); From f2d5285b2034c49a517545ac550cfbc3f85e67f0 Mon Sep 17 00:00:00 2001 From: Nneka Okeke Date: Mon, 9 Dec 2024 12:05:41 -0800 Subject: [PATCH 13/26] update examples --- ...heduledActions_VirtualMachinesCancelOperations.json | 6 +++--- ...eduledActions_VirtualMachinesExecuteDeallocate.json | 5 ++--- ...heduledActions_VirtualMachinesExecuteHibernate.json | 5 ++--- .../ScheduledActions_VirtualMachinesExecuteStart.json | 5 ++--- ...duledActions_VirtualMachinesGetOperationErrors.json | 2 +- ...duledActions_VirtualMachinesGetOperationStatus.json | 10 +++++----- ...heduledActions_VirtualMachinesSubmitDeallocate.json | 5 ++--- ...cheduledActions_VirtualMachinesSubmitHibernate.json | 5 ++--- .../ScheduledActions_VirtualMachinesSubmitStart.json | 5 ++--- ...heduledActions_VirtualMachinesCancelOperations.json | 6 +++--- ...eduledActions_VirtualMachinesExecuteDeallocate.json | 2 +- ...heduledActions_VirtualMachinesExecuteHibernate.json | 2 +- .../ScheduledActions_VirtualMachinesExecuteStart.json | 2 +- ...duledActions_VirtualMachinesGetOperationStatus.json | 2 +- ...heduledActions_VirtualMachinesSubmitDeallocate.json | 4 ++-- ...cheduledActions_VirtualMachinesSubmitHibernate.json | 4 ++-- .../ScheduledActions_VirtualMachinesSubmitStart.json | 4 ++-- ...heduledActions_VirtualMachinesCancelOperations.json | 6 +++--- ...eduledActions_VirtualMachinesExecuteDeallocate.json | 5 ++--- ...heduledActions_VirtualMachinesExecuteHibernate.json | 5 ++--- .../ScheduledActions_VirtualMachinesExecuteStart.json | 5 ++--- ...duledActions_VirtualMachinesGetOperationErrors.json | 2 +- ...duledActions_VirtualMachinesGetOperationStatus.json | 10 +++++----- ...heduledActions_VirtualMachinesSubmitDeallocate.json | 5 ++--- ...cheduledActions_VirtualMachinesSubmitHibernate.json | 5 ++--- .../ScheduledActions_VirtualMachinesSubmitStart.json | 5 ++--- ...heduledActions_VirtualMachinesCancelOperations.json | 6 +++--- ...eduledActions_VirtualMachinesExecuteDeallocate.json | 2 +- ...heduledActions_VirtualMachinesExecuteHibernate.json | 2 +- .../ScheduledActions_VirtualMachinesExecuteStart.json | 2 +- ...duledActions_VirtualMachinesGetOperationStatus.json | 2 +- ...heduledActions_VirtualMachinesSubmitDeallocate.json | 4 ++-- ...cheduledActions_VirtualMachinesSubmitHibernate.json | 4 ++-- .../ScheduledActions_VirtualMachinesSubmitStart.json | 4 ++-- 34 files changed, 68 insertions(+), 80 deletions(-) diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations.json index d3ba04c40135..bd1a153666fa 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesCancelOperations.json @@ -29,12 +29,12 @@ "deadlineType": "InitiateAt", "state": "Cancelled", "resourceOperationError": { - "errorCode": "OperationCancelled", - "errorDetails": "Operation cancelled by user" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { - "retryCount": 30, + "retryCount": 3, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate.json index ea0ba257817c..d3497606e8b3 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate.json @@ -7,9 +7,8 @@ "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { - "retryCount": 30, + "retryCount": 3, "retryWindowInMinutes": 27 } }, @@ -45,7 +44,7 @@ }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { - "retryCount": 30, + "retryCount": 3, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate.json index 956c580ec737..02ce50e2e354 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate.json @@ -7,9 +7,8 @@ "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { - "retryCount": 30, + "retryCount": 1, "retryWindowInMinutes": 27 } }, @@ -45,7 +44,7 @@ }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { - "retryCount": 30, + "retryCount": 1, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart.json index 4b4c2d179948..f4a44a62f4fe 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesExecuteStart.json @@ -7,9 +7,8 @@ "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { - "retryCount": 30, + "retryCount": 6, "retryWindowInMinutes": 27 } }, @@ -45,7 +44,7 @@ }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { - "retryCount": 30, + "retryCount": 6, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors.json index 1115317cf466..4094edbcd06b 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors.json @@ -4,7 +4,7 @@ "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "p", + "locationparameter": "eastus2euap", "requestBody": { "operationIds": [ "DE84A209-5715-43E7-BC76-3E208A9A323" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus.json index 79bcc181d790..efa467464a60 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus.json @@ -27,15 +27,15 @@ "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", "deadline": "2024-11-01T19:03:38.035Z", "deadlineType": "InitiateAt", - "state": "Failed", + "state": "Succeeded", "resourceOperationError": { - "errorCode": "DeallocateTimedOut", - "errorDetails": "DeallocateTimedOut Details" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T19:03:38.036Z", "retryPolicy": { - "retryCount": 29, - "retryWindowInMinutes": 3 + "retryCount": 6, + "retryWindowInMinutes": 30 }, "timeZone": "UTC" } diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate.json index 2cfa1f025478..92f08ba761c3 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate.json @@ -12,9 +12,8 @@ "timeZone": "UTC" }, "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { - "retryCount": 30, + "retryCount": 4, "retryWindowInMinutes": 27 } }, @@ -50,7 +49,7 @@ }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { - "retryCount": 30, + "retryCount": 4, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate.json index 0a63b25debd4..fd926e0cbc9a 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate.json @@ -12,9 +12,8 @@ "timeZone": "UTC" }, "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { - "retryCount": 30, + "retryCount": 4, "retryWindowInMinutes": 27 } }, @@ -50,7 +49,7 @@ }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { - "retryCount": 30, + "retryCount": 4, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart.json index 69baddb2cd6f..b1e922368125 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-08-15-preview/ScheduledActions_VirtualMachinesSubmitStart.json @@ -12,9 +12,8 @@ "timeZone": "UTC" }, "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { - "retryCount": 30, + "retryCount": 4, "retryWindowInMinutes": 27 } }, @@ -50,7 +49,7 @@ }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { - "retryCount": 30, + "retryCount": 4, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations.json index 31e33c2fe61a..e56739c495b3 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations.json @@ -30,12 +30,12 @@ "state": "Cancelled", "timezone": "UTC", "resourceOperationError": { - "errorCode": "OperationCancelled", - "errorDetails": "Operation cancelled by user" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { - "retryCount": 27, + "retryCount": 4, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate.json index 1fe8a9d488ce..6a6bc6dba0a6 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteDeallocate.json @@ -45,7 +45,7 @@ }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { - "retryCount": 27, + "retryCount": 4, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate.json index 2526259b0df5..d2acec1f0ce9 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteHibernate.json @@ -45,7 +45,7 @@ }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { - "retryCount": 27, + "retryCount": 5, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart.json index 90736e6021da..9748aa0b148c 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart.json @@ -45,7 +45,7 @@ }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { - "retryCount": 27, + "retryCount": 2, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus.json index e87a442482fe..39b86a192bd8 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesGetOperationStatus.json @@ -35,7 +35,7 @@ }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { - "retryCount": 27, + "retryCount": 4, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate.json index 0ea2223b7358..d8c5f8a78614 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitDeallocate.json @@ -13,7 +13,7 @@ }, "executionParameters": { "retryPolicy": { - "retryCount": 27, + "retryCount": 4, "retryWindowInMinutes": 27 } }, @@ -50,7 +50,7 @@ }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { - "retryCount": 27, + "retryCount": 4, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate.json index 8c44fe95b2d0..ca345e87563f 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitHibernate.json @@ -13,7 +13,7 @@ }, "executionParameters": { "retryPolicy": { - "retryCount": 27, + "retryCount": 2, "retryWindowInMinutes": 27 } }, @@ -50,7 +50,7 @@ }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { - "retryCount": 27, + "retryCount": 2, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart.json index 6878240173af..bab62b9fe22a 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesSubmitStart.json @@ -13,7 +13,7 @@ }, "executionParameters": { "retryPolicy": { - "retryCount": 27, + "retryCount": 5, "retryWindowInMinutes": 27 } }, @@ -50,7 +50,7 @@ }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { - "retryCount": 27, + "retryCount": 5, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations.json index d3ba04c40135..bd1a153666fa 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesCancelOperations.json @@ -29,12 +29,12 @@ "deadlineType": "InitiateAt", "state": "Cancelled", "resourceOperationError": { - "errorCode": "OperationCancelled", - "errorDetails": "Operation cancelled by user" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { - "retryCount": 30, + "retryCount": 3, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json index ea0ba257817c..d3497606e8b3 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json @@ -7,9 +7,8 @@ "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { - "retryCount": 30, + "retryCount": 3, "retryWindowInMinutes": 27 } }, @@ -45,7 +44,7 @@ }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { - "retryCount": 30, + "retryCount": 3, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json index 956c580ec737..02ce50e2e354 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json @@ -7,9 +7,8 @@ "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { - "retryCount": 30, + "retryCount": 1, "retryWindowInMinutes": 27 } }, @@ -45,7 +44,7 @@ }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { - "retryCount": 30, + "retryCount": 1, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart.json index 4b4c2d179948..f4a44a62f4fe 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesExecuteStart.json @@ -7,9 +7,8 @@ "locationparameter": "eastus2euap", "requestBody": { "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { - "retryCount": 30, + "retryCount": 6, "retryWindowInMinutes": 27 } }, @@ -45,7 +44,7 @@ }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { - "retryCount": 30, + "retryCount": 6, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors.json index 1115317cf466..4094edbcd06b 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationErrors.json @@ -4,7 +4,7 @@ "parameters": { "api-version": "2024-08-15-preview", "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", - "locationparameter": "p", + "locationparameter": "eastus2euap", "requestBody": { "operationIds": [ "DE84A209-5715-43E7-BC76-3E208A9A323" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json index 79bcc181d790..efa467464a60 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json @@ -27,15 +27,15 @@ "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", "deadline": "2024-11-01T19:03:38.035Z", "deadlineType": "InitiateAt", - "state": "Failed", + "state": "Succeeded", "resourceOperationError": { - "errorCode": "DeallocateTimedOut", - "errorDetails": "DeallocateTimedOut Details" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T19:03:38.036Z", "retryPolicy": { - "retryCount": 29, - "retryWindowInMinutes": 3 + "retryCount": 6, + "retryWindowInMinutes": 30 }, "timeZone": "UTC" } diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json index 2cfa1f025478..92f08ba761c3 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json @@ -12,9 +12,8 @@ "timeZone": "UTC" }, "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { - "retryCount": 30, + "retryCount": 4, "retryWindowInMinutes": 27 } }, @@ -50,7 +49,7 @@ }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { - "retryCount": 30, + "retryCount": 4, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json index 0a63b25debd4..fd926e0cbc9a 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json @@ -12,9 +12,8 @@ "timeZone": "UTC" }, "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { - "retryCount": 30, + "retryCount": 4, "retryWindowInMinutes": 27 } }, @@ -50,7 +49,7 @@ }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { - "retryCount": 30, + "retryCount": 4, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart.json index 69baddb2cd6f..b1e922368125 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-08-15-preview/examples/ScheduledActions_VirtualMachinesSubmitStart.json @@ -12,9 +12,8 @@ "timeZone": "UTC" }, "executionParameters": { - "optimizationPreference": "Cost", "retryPolicy": { - "retryCount": 30, + "retryCount": 4, "retryWindowInMinutes": 27 } }, @@ -50,7 +49,7 @@ }, "completedAt": "2024-07-12T18:06:52.974Z", "retryPolicy": { - "retryCount": 30, + "retryCount": 4, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations.json index 31e33c2fe61a..e56739c495b3 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations.json @@ -30,12 +30,12 @@ "state": "Cancelled", "timezone": "UTC", "resourceOperationError": { - "errorCode": "OperationCancelled", - "errorDetails": "Operation cancelled by user" + "errorCode": "null", + "errorDetails": "null" }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { - "retryCount": 27, + "retryCount": 4, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json index 1fe8a9d488ce..6a6bc6dba0a6 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteDeallocate.json @@ -45,7 +45,7 @@ }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { - "retryCount": 27, + "retryCount": 4, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json index 2526259b0df5..d2acec1f0ce9 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteHibernate.json @@ -45,7 +45,7 @@ }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { - "retryCount": 27, + "retryCount": 5, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart.json index 90736e6021da..9748aa0b148c 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart.json @@ -45,7 +45,7 @@ }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { - "retryCount": 27, + "retryCount": 2, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json index e87a442482fe..39b86a192bd8 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesGetOperationStatus.json @@ -35,7 +35,7 @@ }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { - "retryCount": 27, + "retryCount": 4, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json index 0ea2223b7358..d8c5f8a78614 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitDeallocate.json @@ -13,7 +13,7 @@ }, "executionParameters": { "retryPolicy": { - "retryCount": 27, + "retryCount": 4, "retryWindowInMinutes": 27 } }, @@ -50,7 +50,7 @@ }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { - "retryCount": 27, + "retryCount": 4, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json index 8c44fe95b2d0..ca345e87563f 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitHibernate.json @@ -13,7 +13,7 @@ }, "executionParameters": { "retryPolicy": { - "retryCount": 27, + "retryCount": 2, "retryWindowInMinutes": 27 } }, @@ -50,7 +50,7 @@ }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { - "retryCount": 27, + "retryCount": 2, "retryWindowInMinutes": 27 }, "timeZone": "UTC" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart.json index 6878240173af..bab62b9fe22a 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesSubmitStart.json @@ -13,7 +13,7 @@ }, "executionParameters": { "retryPolicy": { - "retryCount": 27, + "retryCount": 5, "retryWindowInMinutes": 27 } }, @@ -50,7 +50,7 @@ }, "completedAt": "2024-11-01T17:52:53.668Z", "retryPolicy": { - "retryCount": 27, + "retryCount": 5, "retryWindowInMinutes": 27 }, "timeZone": "UTC" From 300ff7c27c481d7074af06cd95a152aaea80ed2b Mon Sep 17 00:00:00 2001 From: Nneka Okeke Date: Mon, 9 Dec 2024 18:21:56 -0500 Subject: [PATCH 14/26] edit examples --- .../ScheduledActions_VirtualMachinesCancelOperations.json | 4 ++-- .../ScheduledActions_VirtualMachinesExecuteStart.json | 2 +- .../ScheduledActions_VirtualMachinesCancelOperations.json | 4 ++-- .../ScheduledActions_VirtualMachinesExecuteStart.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations.json index e56739c495b3..2d5eb59d194e 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesCancelOperations.json @@ -18,8 +18,8 @@ "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "lmpnizhpzc", - "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart.json index 9748aa0b148c..d4049b18d625 100644 --- a/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart.json +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-10-01/ScheduledActions_VirtualMachinesExecuteStart.json @@ -8,7 +8,7 @@ "requestBody": { "executionParameters": { "retryPolicy": { - "retryCount": 27, + "retryCount": 2, "retryWindowInMinutes": 27 } }, diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations.json index e56739c495b3..2d5eb59d194e 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesCancelOperations.json @@ -18,8 +18,8 @@ "results": [ { "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", - "errorCode": "lmpnizhpzc", - "errorDetails": "ckwwuqccfquprmfgsirkdzecmsfcd", + "errorCode": "null", + "errorDetails": "null", "operation": { "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34r", "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart.json index 9748aa0b148c..d4049b18d625 100644 --- a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart.json +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/stable/2024-10-01/examples/ScheduledActions_VirtualMachinesExecuteStart.json @@ -8,7 +8,7 @@ "requestBody": { "executionParameters": { "retryPolicy": { - "retryCount": 27, + "retryCount": 2, "retryWindowInMinutes": 27 } }, From c39acac0b3b7ceeee03b594a7b49c9bad6b8e9f2 Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Tue, 10 Dec 2024 09:38:29 +0800 Subject: [PATCH 15/26] Update PlaywrightTesting client settings for .Net SDK release (#31795) --- .../PlaywrightTesting.Management/client.tsp | 46 +++++++++++++++++++ .../tspconfig.yaml | 6 +++ 2 files changed, 52 insertions(+) diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/client.tsp b/specification/playwrighttesting/PlaywrightTesting.Management/client.tsp index cf450f6d3704..cfc0d0b53b2d 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/client.tsp +++ b/specification/playwrighttesting/PlaywrightTesting.Management/client.tsp @@ -1,9 +1,55 @@ import "./main.tsp"; import "@azure-tools/typespec-client-generator-core"; +import "@azure-tools/typespec-azure-resource-manager"; using Azure.ClientGenerator.Core; +using Microsoft.AzurePlaywrightService; @@clientName(Microsoft.AzurePlaywrightService, "PlaywrightTestingMgmt", "python" ); + +@@clientName(Azure.ResourceManager.CommonTypes.CheckNameAvailabilityResponse, + "PlaywrightTestingNameAvailabilityResult", + "csharp" +); +@@clientName(Azure.ResourceManager.CommonTypes.CheckNameAvailabilityResponse.nameAvailable, + "IsNameAvailable", + "csharp" +); +@@clientName(Azure.ResourceManager.CommonTypes.CheckNameAvailabilityRequest, + "PlaywrightTestingNameAvailabilityRequest", + "csharp" +); +@@clientName(Azure.ResourceManager.CommonTypes.CheckNameAvailabilityReason, + "PlaywrightTestingNameUnavailableReason", + "csharp" +); +@@clientName(Accounts.checkNameAvailability, + "CheckPlaywrightTestingNameAvailability", + "csharp" +); + +@@clientName(Quota, "PlaywrightTestingQuotas", "csharp"); +@@clientName(QuotaProperties, "PlaywrightTestingQuotaProperties", "csharp"); +@@clientName(QuotaNames, "PlaywrightTestingQuotaNames", "csharp"); +@@clientName(Account, "PlaywrightTestingAccount", "csharp"); +@@clientName(AccountProperties, "PlaywrightTestingAccountProperties", "csharp"); +@@clientName(AccountFreeTrialProperties, + "PlaywrightTestingAccountFreeTrialProperties", + "csharp" +); +@@clientName(AccountQuota, "PlaywrightTestingAccountQuotas", "csharp"); +@@clientName(AccountQuotaProperties, + "PlaywrightTestingAccountQuotaProperties", + "csharp" +); +@@clientName(ProvisioningState, "PlaywrightTestingProvisioningState", "csharp"); +@@clientName(EnablementStatus, "PlaywrightTestingEnablementStatus", "csharp"); +@@clientName(FreeTrialProperties, + "PlaywrightTestingFreeTrialProperties", + "csharp" +); +@@clientName(FreeTrialState, "PlaywrightTestingFreeTrialState", "csharp"); +@@clientName(OfferingType, "PlaywrightTestingOfferingType", "csharp"); diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml b/specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml index e6cec2cb0794..70ea56495714 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml +++ b/specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml @@ -42,3 +42,9 @@ options: flavor: "azure" generate-test: true generate-sample: true + "@azure-tools/typespec-csharp": + package-dir: "Azure.ResourceManager.PlaywrightTesting" + flavor: azure + clear-output-folder: true + use-write-core: true + namespace: "{package-dir}" From e6bf6e8f8ff8b3325aa2618b712d5c3bad770631 Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Mon, 9 Dec 2024 17:49:15 -0800 Subject: [PATCH 16/26] [TypeSpecRequirement] Add upgrade notice to brownfield specs (#31814) - add-label-artifact: Composite action to upload an artifact representing an issue label - update-labels: Compose action and workflow to add/remove labels based on artifact names - Runs in `workflow_run` context with write permissions - context.js: Shared code to extract inputs from different types of github context - .github/package.json: Dev dependencies to provide intellisense and formatting when editing github-script - typespec-requirement.yaml: Call add-label-artifact to add label "brownfield" (to be used by other automation) - TypeSpec-Requirement.ps1: Log notice and set GITHUB_OUTPUT to add label --- .../actions/add-label-artifact/action.yaml | 27 + .github/actions/context.js | 95 ++++ .github/actions/update-labels/action.js | 103 ++++ .github/actions/update-labels/action.yaml | 33 ++ .github/package-lock.json | 475 ++++++++++++++++++ .github/package.json | 8 + .github/workflows/typespec-requirement.yaml | 40 +- .github/workflows/update-labels.yaml | 54 ++ .gitignore | 4 +- eng/scripts/TypeSpec-Requirement.ps1 | 8 + .../test/typespec-requirement.test.ts | 2 + 11 files changed, 830 insertions(+), 19 deletions(-) create mode 100644 .github/actions/add-label-artifact/action.yaml create mode 100644 .github/actions/context.js create mode 100644 .github/actions/update-labels/action.js create mode 100644 .github/actions/update-labels/action.yaml create mode 100644 .github/package-lock.json create mode 100644 .github/package.json create mode 100644 .github/workflows/update-labels.yaml diff --git a/.github/actions/add-label-artifact/action.yaml b/.github/actions/add-label-artifact/action.yaml new file mode 100644 index 000000000000..28c4b294655c --- /dev/null +++ b/.github/actions/add-label-artifact/action.yaml @@ -0,0 +1,27 @@ +name: Add Label Artifact +description: Uploads an empty artifact named `label-${name}=${value}`, that's consumed by action "update-labels" + +inputs: + name: + description: Name + required: true + value: + description: Value ("true" or "false") + required: true + +runs: + using: composite + + steps: + - name: Create empty file to upload artifact + run: "> $RUNNER_TEMP/empty.txt" + shell: bash + + # The maximum length is reported to be 260 characters. A full list of invalid artifact name characters is documented here: + # https://github.com/actions/toolkit/blob/main/packages/artifact/src/internal/upload/path-and-artifact-name-validation.ts + - uses: actions/upload-artifact@v4 + with: + name: label-${{ inputs.name }}=${{ inputs.value }} + path: ${{ runner.temp }}/empty.txt + if-no-files-found: error + overwrite: true diff --git a/.github/actions/context.js b/.github/actions/context.js new file mode 100644 index 000000000000..8dce041c2f22 --- /dev/null +++ b/.github/actions/context.js @@ -0,0 +1,95 @@ +// @ts-check + +/** + * Extracts inputs from context based on event name and properties. + * run_id is only defined for "workflow_run:completed" events. + * + * @param {import('github-script').AsyncFunctionArguments['github']} github + * @param {import('github-script').AsyncFunctionArguments['context']} context + * @param {import('github-script').AsyncFunctionArguments['core']} core + * @returns {Promise<{owner: string, repo: string, head_sha: string, issue_number: number, run_id: number }>} + */ +async function extractInputs(github, context, core) { + core.info(`extractInputs(${context.eventName}, ${context.payload.action})`); + + // Add support for more event types as needed + if (context.eventName === "pull_request") { + const payload = + /** @type {import("@octokit/webhooks-types").PullRequestEvent} */ ( + context.payload + ); + + const inputs = { + owner: payload.repository.owner.login, + repo: payload.repository.name, + head_sha: payload.pull_request.head.sha, + issue_number: payload.number, + run_id: NaN + }; + + core.info(`inputs: ${JSON.stringify(inputs)}`); + + return inputs; + } else if ( + context.eventName === "workflow_run" && + context.payload.action === "completed" + ) { + const payload = + /** @type {import("@octokit/webhooks-types").WorkflowRunCompletedEvent} */ ( + context.payload + ); + + let issue_number; + + const pull_requests = payload.workflow_run.pull_requests; + if (pull_requests && pull_requests.length > 0) { + // For non-fork PRs, we should be able to extract the PR number from the payload, which avoids an + // unnecessary API call. The listPullRequestsAssociatedWithCommit() API also seems to return + // empty for non-fork PRs. + issue_number = pull_requests[0].number; + } else { + // For fork PRs, we must call an API in the head repository to get the PR number in the target repository + + // Owner and repo for the PR head (may differ from target for fork PRs) + const head_owner = payload.workflow_run.head_repository.owner.login; + const head_repo = payload.workflow_run.head_repository.name; + const head_sha = payload.workflow_run.head_sha; + + core.info( + `listPullRequestsAssociatedWithCommit(${head_owner}, ${head_repo}, ${head_sha})`, + ); + const { data: pullRequests } = + await github.rest.repos.listPullRequestsAssociatedWithCommit({ + owner: head_owner, + repo: head_repo, + commit_sha: head_sha, + }); + + if (pullRequests.length === 1) { + issue_number = pullRequests[0].number; + } else { + throw new Error( + `Unexpected number of pull requests associated with commit '${head_sha}'. Expected: '1'. Actual '${pullRequests.length}'.`, + ); + } + } + + const inputs = { + owner: payload.workflow_run.repository.owner.login, + repo: payload.workflow_run.repository.name, + head_sha: payload.workflow_run.head_sha, + issue_number: issue_number, + run_id: payload.workflow_run.id, + }; + + core.info(`inputs: ${JSON.stringify(inputs)}`); + + return inputs; + } else { + throw new Error( + `Invalid context: '${context.eventName}:${context.payload.action}'. Expected 'workflow_run:completed'.`, + ); + } +} + +module.exports = { extractInputs }; diff --git a/.github/actions/update-labels/action.js b/.github/actions/update-labels/action.js new file mode 100644 index 000000000000..ffd734584b14 --- /dev/null +++ b/.github/actions/update-labels/action.js @@ -0,0 +1,103 @@ +// @ts-check + +const { extractInputs } = require("../context"); + +/** + * @param {import('github-script').AsyncFunctionArguments} AsyncFunctionArguments + */ +module.exports = async ({ github, context, core }) => { + let owner = process.env.OWNER; + let repo = process.env.REPO; + let issue_number = parseInt(process.env.ISSUE_NUMBER || ""); + let run_id = parseInt(process.env.RUN_ID || ""); + + if (!owner || !repo || !(issue_number || run_id)) { + let inputs = await extractInputs(github, context, core); + owner = owner || inputs.owner; + repo = repo || inputs.repo; + issue_number = issue_number || inputs.issue_number; + run_id = run_id || inputs.run_id; + } + + /** @type {string[]} */ + let artifactNames = []; + + if (run_id) { + // List artifacts from a single run_id + core.info(`listWorkflowRunArtifacts(${owner}, ${repo}, ${run_id})`); + const artifacts = await github.rest.actions.listWorkflowRunArtifacts({ + owner: owner, + repo: repo, + run_id: run_id, + }); + + artifactNames = artifacts.data.artifacts.map((a) => a.name); + } else { + // TODO: List all artifacts of all workflows associated with issue_number + throw new Error("Required input 'run_id' not found in env or context"); + } + + core.info(`artifactNames: ${JSON.stringify(artifactNames)}`); + + /** @type {string[]} */ + const labelsToAdd = []; + + /** @type {string[]} */ + const labelsToRemove = []; + + for (const artifactName of artifactNames) { + // If artifactName has format "label-name=true|false", add or remove the label + // Else, if artifactName has format "label-name=other-string", throw an error + // Else, if artifactName does not start with "label-", ignore it + const firstEquals = artifactName.indexOf("="); + if (firstEquals !== -1) { + const key = artifactName.substring(0, firstEquals); + const value = artifactName.substring(firstEquals + 1); + + if (key.startsWith("label-")) { + const name = key.substring("label-".length); + if (value === "true") { + labelsToAdd.push(name); + } else if (value === "false") { + labelsToRemove.push(name); + } else { + throw new Error( + `Invalid value for label '${name}': ${value}. Expected "true" or "false".`, + ); + } + } + } + } + + core.info(`labelsToAdd: ${JSON.stringify(labelsToAdd)}`); + core.info(`labelsToRemove: ${JSON.stringify(labelsToRemove)}`); + + if (labelsToAdd.length > 0) { + await github.rest.issues.addLabels({ + owner: owner, + repo: repo, + issue_number: issue_number, + labels: labelsToAdd, + }); + } + + if (labelsToRemove.length > 0) { + // Must loop over labelsToRemove ourselves, since GitHub doesn't expose a REST API to remove in bulk. + for (const name of labelsToRemove) { + try { + await github.rest.issues.removeLabel({ + owner: owner, + repo: repo, + issue_number: issue_number, + name: name, + }); + } catch (error) { + if (error.status === 404) { + core.info(`Ignoring error: ${error.status} - ${error.message}`); + } else { + throw error; + } + } + } + } +}; diff --git a/.github/actions/update-labels/action.yaml b/.github/actions/update-labels/action.yaml new file mode 100644 index 000000000000..d87902dcba48 --- /dev/null +++ b/.github/actions/update-labels/action.yaml @@ -0,0 +1,33 @@ +name: Update Labels +description: Adds or removes labels to set state matching artifact names + +# If any inputs are not set, we will attempt to extract them from the event context +inputs: + owner: + description: The account owner of the repository. The name is not case sensitive. + required: false + repo: + description: The name of the repository without the .git extension. The name is not case sensitive. + required: false + issue_number: + description: The issue that should have its labels updated. + required: false + run_id: + description: Updates labels from a single completed workflow. + required: false + +runs: + using: composite + + steps: + - name: Set Label + uses: actions/github-script@v7 + env: + OWNER: ${{ inputs.owner }} + REPO: ${{ inputs.repo }} + ISSUE_NUMBER: ${{ inputs.issue_number }} + RUN_ID: ${{ inputs.run_id }} + with: + script: | + const action = require('./.github/actions/update-labels/action.js') + await action({ github, context, core }); diff --git a/.github/package-lock.json b/.github/package-lock.json new file mode 100644 index 000000000000..9bf44423ccfa --- /dev/null +++ b/.github/package-lock.json @@ -0,0 +1,475 @@ +{ + "name": "scripts", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "devDependencies": { + "@octokit/webhooks-types": "^7.5.1", + "@types/github-script": "github:actions/github-script", + "@types/node": "^20.0.0", + "prettier": "^3.3.3" + } + }, + "node_modules/@actions/core": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.11.1.tgz", + "integrity": "sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@actions/exec": "^1.1.1", + "@actions/http-client": "^2.0.1" + } + }, + "node_modules/@actions/exec": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.1.1.tgz", + "integrity": "sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@actions/io": "^1.0.1" + } + }, + "node_modules/@actions/github": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@actions/github/-/github-6.0.0.tgz", + "integrity": "sha512-alScpSVnYmjNEXboZjarjukQEzgCRmjMv6Xj47fsdnqGS73bjJNDpiiXmp8jr0UZLdUB6d9jW63IcmddUP+l0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@actions/http-client": "^2.2.0", + "@octokit/core": "^5.0.1", + "@octokit/plugin-paginate-rest": "^9.0.0", + "@octokit/plugin-rest-endpoint-methods": "^10.0.0" + } + }, + "node_modules/@actions/glob": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@actions/glob/-/glob-0.4.0.tgz", + "integrity": "sha512-+eKIGFhsFa4EBwaf/GMyzCdWrXWymGXfFmZU3FHQvYS8mPcHtTtZONbkcqqUMzw9mJ/pImEBFET1JNifhqGsAQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@actions/core": "^1.9.1", + "minimatch": "^3.0.4" + } + }, + "node_modules/@actions/http-client": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.2.3.tgz", + "integrity": "sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==", + "dev": true, + "license": "MIT", + "dependencies": { + "tunnel": "^0.0.6", + "undici": "^5.25.4" + } + }, + "node_modules/@actions/io": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.3.tgz", + "integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@fastify/busboy": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz", + "integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + } + }, + "node_modules/@octokit/auth-token": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz", + "integrity": "sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/core": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.0.tgz", + "integrity": "sha512-1LFfa/qnMQvEOAdzlQymH0ulepxbxnCYAKJZfMci/5XJyIHWgEYnDmgnKakbTh7CH2tFQ5O60oYDvns4i9RAIg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/auth-token": "^4.0.0", + "@octokit/graphql": "^7.1.0", + "@octokit/request": "^8.3.1", + "@octokit/request-error": "^5.1.0", + "@octokit/types": "^13.0.0", + "before-after-hook": "^2.2.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/endpoint": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-9.0.5.tgz", + "integrity": "sha512-ekqR4/+PCLkEBF6qgj8WqJfvDq65RH85OAgrtnVp1mSxaXF03u2xW/hUdweGS5654IlC0wkNYC18Z50tSYTAFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/types": "^13.1.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/graphql": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-7.1.0.tgz", + "integrity": "sha512-r+oZUH7aMFui1ypZnAvZmn0KSqAUgE1/tUXIWaqUCa1758ts/Jio84GZuzsvUkme98kv0WFY8//n0J1Z+vsIsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/request": "^8.3.0", + "@octokit/types": "^13.0.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/openapi-types": { + "version": "22.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz", + "integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@octokit/plugin-paginate-rest": { + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.2.1.tgz", + "integrity": "sha512-wfGhE/TAkXZRLjksFXuDZdmGnJQHvtU/joFQdweXUgzo1XwvBCD4o4+75NtFfjfLK5IwLf9vHTfSiU3sLRYpRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/types": "^12.6.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": "5" + } + }, + "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/openapi-types": { + "version": "20.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", + "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": { + "version": "12.6.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", + "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^20.0.0" + } + }, + "node_modules/@octokit/plugin-request-log": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-4.0.1.tgz", + "integrity": "sha512-GihNqNpGHorUrO7Qa9JbAl0dbLnqJVrV8OXe2Zm5/Y4wFkZQDfTreBzVmiRfJVfE4mClXdihHnbpyyO9FSX4HA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": "5" + } + }, + "node_modules/@octokit/plugin-rest-endpoint-methods": { + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.4.1.tgz", + "integrity": "sha512-xV1b+ceKV9KytQe3zCVqjg+8GTGfDYwaT1ATU5isiUyVtlVAO3HNdzpS4sr4GBx4hxQ46s7ITtZrAsxG22+rVg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/types": "^12.6.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": "5" + } + }, + "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/openapi-types": { + "version": "20.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", + "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types": { + "version": "12.6.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", + "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^20.0.0" + } + }, + "node_modules/@octokit/plugin-retry": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-retry/-/plugin-retry-6.0.1.tgz", + "integrity": "sha512-SKs+Tz9oj0g4p28qkZwl/topGcb0k0qPNX/i7vBKmDsjoeqnVfFUquqrE/O9oJY7+oLzdCtkiWSXLpLjvl6uog==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/request-error": "^5.0.0", + "@octokit/types": "^12.0.0", + "bottleneck": "^2.15.3" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": ">=5" + } + }, + "node_modules/@octokit/plugin-retry/node_modules/@octokit/openapi-types": { + "version": "20.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", + "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@octokit/plugin-retry/node_modules/@octokit/types": { + "version": "12.6.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", + "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^20.0.0" + } + }, + "node_modules/@octokit/request": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-8.4.0.tgz", + "integrity": "sha512-9Bb014e+m2TgBeEJGEbdplMVWwPmL1FPtggHQRkV+WVsMggPtEkLKPlcVYm/o8xKLkpJ7B+6N8WfQMtDLX2Dpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/endpoint": "^9.0.1", + "@octokit/request-error": "^5.1.0", + "@octokit/types": "^13.1.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/request-error": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-5.1.0.tgz", + "integrity": "sha512-GETXfE05J0+7H2STzekpKObFe765O5dlAKUTLNGeH+x47z7JjXHfsHKo5z21D/o/IOZTUEI6nyWyR+bZVP/n5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/types": "^13.1.0", + "deprecation": "^2.0.0", + "once": "^1.4.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/types": { + "version": "13.6.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.6.1.tgz", + "integrity": "sha512-PHZE9Z+kWXb23Ndik8MKPirBPziOc0D2/3KH1P+6jK5nGWe96kadZuE4jev2/Jq7FvIfTlT2Ltg8Fv2x1v0a5g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^22.2.0" + } + }, + "node_modules/@octokit/webhooks-types": { + "version": "7.6.1", + "resolved": "https://registry.npmjs.org/@octokit/webhooks-types/-/webhooks-types-7.6.1.tgz", + "integrity": "sha512-S8u2cJzklBC0FgTwWVLaM8tMrDuDMVE4xiTK4EYXM9GntyvrdbSoxqDQa+Fh57CCNApyIpyeqPhhFEmHPfrXgw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/github-script": { + "name": "github-script", + "version": "7.0.1", + "resolved": "git+ssh://git@github.com/actions/github-script.git#660ec11d825b714d112a6bb9727086bc2cc500b2", + "dev": true, + "license": "MIT", + "dependencies": { + "@actions/core": "^1.10.1", + "@actions/exec": "^1.1.1", + "@actions/github": "^6.0.0", + "@actions/glob": "^0.4.0", + "@actions/io": "^1.1.3", + "@octokit/core": "^5.0.1", + "@octokit/plugin-request-log": "^4.0.0", + "@octokit/plugin-retry": "^6.0.1", + "@types/node": "^20.9.0" + }, + "engines": { + "node": ">=20.0.0 <21.0.0" + } + }, + "node_modules/@types/node": { + "version": "20.17.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.3.tgz", + "integrity": "sha512-tSQrmKKatLDGnG92h40GD7FzUt0MjahaHwOME4VAFeeA/Xopayq5qLyQRy7Jg/pjgKIFBXuKcGhJo+UdYG55jQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.19.2" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/before-after-hook": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", + "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/bottleneck": { + "version": "2.19.5", + "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", + "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==", + "dev": true, + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/deprecation": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", + "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/prettier": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/tunnel": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", + "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.6.11 <=0.7.0 || >=0.7.3" + } + }, + "node_modules/undici": { + "version": "5.28.4", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.28.4.tgz", + "integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@fastify/busboy": "^2.0.0" + }, + "engines": { + "node": ">=14.0" + } + }, + "node_modules/undici-types": { + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "dev": true, + "license": "MIT" + }, + "node_modules/universal-user-agent": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz", + "integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true, + "license": "ISC" + } + } +} diff --git a/.github/package.json b/.github/package.json new file mode 100644 index 000000000000..87598b90e726 --- /dev/null +++ b/.github/package.json @@ -0,0 +1,8 @@ +{ + "devDependencies": { + "@types/node": "^20.0.0", + "@types/github-script": "github:actions/github-script", + "@octokit/webhooks-types": "^7.5.1", + "prettier": "^3.3.3" + } +} diff --git a/.github/workflows/typespec-requirement.yaml b/.github/workflows/typespec-requirement.yaml index 3f3b4c9831b6..47909f268cfd 100644 --- a/.github/workflows/typespec-requirement.yaml +++ b/.github/workflows/typespec-requirement.yaml @@ -5,25 +5,29 @@ on: pull_request jobs: TypeSpec-Requirement: name: TypeSpec Requirement - strategy: - fail-fast: false - matrix: - spec-type: [data-plane, resource-manager] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - # Required since "HEAD^" is passed to TypeSpec-Requirement.ps1 - fetch-depth: 2 - - - name: Setup Node and run `npm ci` - uses: ./.github/actions/setup-node-npm-ci - - - run: | - eng/scripts/TypeSpec-Requirement.ps1 ` - -BaseCommitish HEAD^ ` - -TargetCommitish HEAD ` - -SpecType ${{ matrix.spec-type }} - shell: pwsh + - uses: actions/checkout@v4 + with: + # Required since "HEAD^" is passed to TypeSpec-Requirement.ps1 + fetch-depth: 2 + + - name: Setup Node and run `npm ci` + uses: ./.github/actions/setup-node-npm-ci + + - run: | + eng/scripts/TypeSpec-Requirement.ps1 ` + -BaseCommitish HEAD^ ` + -TargetCommitish HEAD ` + id: tsr-ps1 + shell: pwsh + + # Always add label artifact, even if "brownfield=false", to ensure label is removed when necessary + - uses: ./.github/actions/add-label-artifact + name: Upload artifact with results + with: + name: "brownfield" + value: "${{ steps.tsr-ps1.outputs.brownfield == 'true' }}" + diff --git a/.github/workflows/update-labels.yaml b/.github/workflows/update-labels.yaml new file mode 100644 index 000000000000..d1663f57ae8c --- /dev/null +++ b/.github/workflows/update-labels.yaml @@ -0,0 +1,54 @@ +name: Update Labels + +on: + # TODO: If a pull request is manually labeled or unlabeled, get all artifacts associated with PR, and update labels + # pull_request: + # types: [labeled, unlabeled] + # If an upstream workflow if completed, get only the artifacts from that workflow, and update labels + workflow_run: + workflows: ["TypeSpec Requirement"] + types: [completed] + workflow_dispatch: + inputs: + owner: + description: The account owner of the repository. The name is not case sensitive. + required: true + type: string + repo: + description: The name of the repository without the .git extension. The name is not case sensitive. + required: true + type: string + # simulate pull_request trigger + issue_number: + description: The number that identifies the issue. + required: false + type: number + # simulate workflow_run trigger + run_id: + description: The unique identifier of the workflow run. + required: false + type: number + +jobs: + update-labels: + name: Update Labels + + permissions: + contents: read + pull-requests: write + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: | + .github + + - name: Update Labels + uses: ./.github/actions/update-labels + with: + owner: ${{ inputs.owner }} + repo: ${{ inputs.repo }} + issue_number: ${{ inputs.issue_number }} + run_id: ${{ inputs.run_id }} diff --git a/.gitignore b/.gitignore index 937f93a4aa54..b07c3b3ae14e 100644 --- a/.gitignore +++ b/.gitignore @@ -118,6 +118,7 @@ warnings.txt # Blanket ignores *.js +!.github/**/*.js *.d.ts *.js.map *.d.ts.map @@ -131,9 +132,10 @@ eng/tools/**/dist # TypeScript cache *.tsbuildinfo -# No package-lock.json files should be commited except the top-level. +# No package-lock.json files should be commited except the top-level and .github **/package-lock.json !/package-lock.json +!/.github/package-lock.json # No Armstrong outputs should be commited except the tf files. **/terraform/**/*.json diff --git a/eng/scripts/TypeSpec-Requirement.ps1 b/eng/scripts/TypeSpec-Requirement.ps1 index d1ea69b4914a..6e0e0eb74971 100644 --- a/eng/scripts/TypeSpec-Requirement.ps1 +++ b/eng/scripts/TypeSpec-Requirement.ps1 @@ -168,6 +168,14 @@ else { if ($responseStatus -eq 200) { LogInfo " Branch 'main' contains path '$servicePath/stable', so spec already exists and is not required to use TypeSpec" + + $notice = "Brownfield services will soon be required to convert from OpenAPI to TypeSpec. See https://aka.ms/azsdk/typespec." + LogNoticeForFile $file $notice + + if ($env:GITHUB_OUTPUT) { + # Set output to be used later in /.github/workflows/TypeSpec-Requirement.yaml + Add-Content -Path $env:GITHUB_OUTPUT -Value "brownfield=true" + } } elseif ($responseStatus -eq 404) { LogInfo " Branch 'main' does not contain path '$servicePath/stable', so spec is new and must use TypeSpec" diff --git a/eng/tools/typespec-requirement/test/typespec-requirement.test.ts b/eng/tools/typespec-requirement/test/typespec-requirement.test.ts index fa01dffde1e1..e4872dcef5c9 100644 --- a/eng/tools/typespec-requirement/test/typespec-requirement.test.ts +++ b/eng/tools/typespec-requirement/test/typespec-requirement.test.ts @@ -57,6 +57,8 @@ test.concurrent("Hand-written, exists in main", async ({ expect }) => { expect(stdout).toContain("was not generated from TypeSpec"); expect(stdout).toContain("'main' contains path"); + expect(stdout.toLowerCase()).toContain("notice"); + expect(stdout).toContain("will soon be required to convert"); expect(exitCode).toBe(0); }); From 30844aa19c4f21b13fc224f3fa9645136b62fac1 Mon Sep 17 00:00:00 2001 From: "Hong Li(MSFT)" <74638143+v-hongli1@users.noreply.github.com> Date: Tue, 10 Dec 2024 10:58:50 +0800 Subject: [PATCH 17/26] Add api version for java (#31805) * Add api version for java * Add clientNamespace and clientName for java * fix comments and format client.tsp --- .../deviceregistry/DeviceRegistry.Management/client.tsp | 8 ++++++++ .../DeviceRegistry.Management/tspconfig.yaml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/specification/deviceregistry/DeviceRegistry.Management/client.tsp b/specification/deviceregistry/DeviceRegistry.Management/client.tsp index 73168e30aa9d..7eca65bd94e7 100644 --- a/specification/deviceregistry/DeviceRegistry.Management/client.tsp +++ b/specification/deviceregistry/DeviceRegistry.Management/client.tsp @@ -3,4 +3,12 @@ import "@azure-tools/typespec-client-generator-core"; using Azure.ClientGenerator.Core; +@@clientNamespace(Microsoft.DeviceRegistry, + "com.azure.resourcemanager.deviceregistry", + "java" +); @@clientName(Microsoft.DeviceRegistry, "DeviceRegistryMgmt", "python"); +@@clientName(Microsoft.DeviceRegistry, + "DeviceRegistryManagementClient", + "java" +); diff --git a/specification/deviceregistry/DeviceRegistry.Management/tspconfig.yaml b/specification/deviceregistry/DeviceRegistry.Management/tspconfig.yaml index 03c74318c3e0..7801cdcb63a8 100644 --- a/specification/deviceregistry/DeviceRegistry.Management/tspconfig.yaml +++ b/specification/deviceregistry/DeviceRegistry.Management/tspconfig.yaml @@ -16,8 +16,8 @@ options: "@azure-tools/typespec-java": package-dir: "azure-resourcemanager-deviceregistry" flavor: "azure" - namespace: "com.azure.resourcemanager.deviceregistry" service-name: "Device Registry" + api-version: "2024-09-01-preview" "@azure-tools/typespec-ts": azureSdkForJs: true isModularLibrary: true From fd102c4a14bf65096a17688fd5a283e511db3c14 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:08:34 -0800 Subject: [PATCH 18/26] bump proxy PR (#31816) Co-authored-by: Scott Beddall --- eng/common/testproxy/target_version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/testproxy/target_version.txt b/eng/common/testproxy/target_version.txt index 1f111a027853..f03a3d234d5c 100644 --- a/eng/common/testproxy/target_version.txt +++ b/eng/common/testproxy/target_version.txt @@ -1 +1 @@ -1.0.0-dev.20241101.1 +1.0.0-dev.20241209.1 From bd37988c515821dcd48192ec1db5cb39c39e3c97 Mon Sep 17 00:00:00 2001 From: Dan Liu Date: Tue, 10 Dec 2024 14:39:24 +0800 Subject: [PATCH 19/26] [Script][Snowflake] Added swagger to suppport multi-resultset (#31674) * [Script][Snowflake] Added swagger to suppport multi-resultset * Resolved comment * Bypass spell check due to data contract * Added description --------- Co-authored-by: Dan Liu Co-authored-by: Ruoxuan Wang <52271048+ruowan@users.noreply.github.com> --- cSpell.json | 12 ++++++++++++ .../stable/2018-06-01/entityTypes/Pipeline.json | 5 +++++ .../stable/2020-12-01/entityTypes/Pipeline.json | 4 ++++ 3 files changed, 21 insertions(+) diff --git a/cSpell.json b/cSpell.json index cc18875e8637..85f300876e01 100644 --- a/cSpell.json +++ b/cSpell.json @@ -710,6 +710,18 @@ "Exprired" ] }, + { + "filename": "**/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json", + "words": [ + "Multistatement" + ] + }, + { + "filename": "**/specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/entityTypes/Pipeline.json", + "words": [ + "Multistatement" + ] + }, { "filename": "**/specification/synapse/resource-manager/Microsoft.Synapse/stable/2020-12-01/integrationRuntime.json", "words": [ diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json index 47572261546c..e1161baae473 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json @@ -8574,6 +8574,11 @@ "required": [ "logDestination" ] + }, + "returnMultistatementResult": { + "type": "object", + "x-ms-format": "dfe-bool", + "description": "Enable to retrieve result sets from multiple SQL statements and the number of rows affected by the DML statement. Supported connector: SnowflakeV2. Type: boolean (or Expression with resultType boolean)." } } }, diff --git a/specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/entityTypes/Pipeline.json b/specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/entityTypes/Pipeline.json index 5e10280cc1ad..21b1cd6e075d 100644 --- a/specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/entityTypes/Pipeline.json +++ b/specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/entityTypes/Pipeline.json @@ -7569,6 +7569,10 @@ "required": [ "logDestination" ] + }, + "returnMultistatementResult": { + "type": "object", + "description": "Enable to retrieve result sets from multiple SQL statements and the number of rows affected by the DML statement. Supported connector: SnowflakeV2. Type: boolean (or Expression with resultType boolean)." } } }, From 9069559e0fe5ed52b884ddc658fa539ec67c7ef8 Mon Sep 17 00:00:00 2001 From: davidcho23 <94467694+davidcho23@users.noreply.github.com> Date: Tue, 10 Dec 2024 10:51:06 -0500 Subject: [PATCH 20/26] Review request for Microsoft.Resources to add version stable/2024-11-01 (#31006) * Initial commit of new API version with resources.json file from previous API version * Adding properties for WhatIfChange * Adding better descriptions for new properties * npx prettier * Adding same examples folder from version 2024-07-01 * Updating api version for examples files * Corrected swagger version * Added readme * Expose ValidationLevel property Update to ProviderWithoutWritePermissionChecks * Move ValidationLevel documentation to each value Update to ProviderNoRbac * Add 200 to deployment delete. * Update deployment delete description. * Fix deployment delete description. * Revert changes to deployments delete. * Updated common types * Updated description for identifiers. * Revert back to v1 for CloudError definitions * Fix some references * Reverting change to use v6 common types for ApiVersionParameter, ScopeParameter, and SubscriptionIdParameter * Remove DeploymentValidationError type * Remove 400 response status from validate examples * One more change to revert back to v1 for ErrorResponse * Adding suppression for TrackedExtensionResourcesAreNotAllowed --------- Co-authored-by: Tate Smalligan Co-authored-by: lwang2016 --- .../examples/CalculateTemplateHash.json | 46 + .../examples/CreateResourceGroup.json | 32 + .../examples/DeleteTagsResource.json | 17 + .../examples/DeleteTagsSubscription.json | 17 + .../examples/ExportResourceGroup.json | 68 + .../examples/ExportResourceGroupAsBicep.json | 31 + .../ExportResourceGroupWithFiltering.json | 46 + .../ForceDeleteVMsAndVMSSInResourceGroup.json | 19 + .../ForceDeleteVMsInResourceGroup.json | 19 + .../examples/GetNamedProviderAtTenant.json | 253 + .../2024-11-01/examples/GetProvider.json | 51 + .../examples/GetProviderPermissions.json | 37 + .../examples/GetProviderResourceTypes.json | 47 + .../2024-11-01/examples/GetProviders.json | 175 + .../2024-11-01/examples/GetTagsResource.json | 19 + .../examples/GetTagsSubscription.json | 19 + .../examples/PatchTagsResource.json | 34 + .../examples/PatchTagsSubscription.json | 34 + ...stDeploymentValidateOnManagementGroup.json | 80 + ...PostDeploymentValidateOnResourceGroup.json | 81 + .../PostDeploymentValidateOnScope.json | 80 + .../PostDeploymentValidateOnSubscription.json | 80 + .../PostDeploymentValidateOnTenant.json | 79 + ...PostDeploymentWhatIfOnManagementGroup.json | 89 + .../PostDeploymentWhatIfOnResourceGroup.json | 75 + .../PostDeploymentWhatIfOnSubscription.json | 86 + .../PostDeploymentWhatIfOnTenant.json | 42 + .../PutDeploymentAtManagementGroup.json | 139 + .../examples/PutDeploymentAtScope.json | 151 + .../examples/PutDeploymentAtTenant.json | 150 + .../examples/PutDeploymentResourceGroup.json | 93 + ...ymentResourceGroupTemplateSpecsWithId.json | 92 + ...oymentSubscriptionTemplateSpecsWithId.json | 66 + ...ntWithOnErrorDeploymentLastSuccessful.json | 168 + ...thOnErrorDeploymentSpecificDeployment.json | 169 + .../2024-11-01/examples/PutTagsResource.json | 33 + .../examples/PutTagsSubscription.json | 33 + .../stable/2024-11-01/resources.json | 6893 +++++++++++++++++ .../resources/resource-manager/readme.md | 16 + 39 files changed, 9659 insertions(+) create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/CalculateTemplateHash.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/CreateResourceGroup.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/DeleteTagsResource.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/DeleteTagsSubscription.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ExportResourceGroup.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ExportResourceGroupAsBicep.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ExportResourceGroupWithFiltering.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ForceDeleteVMsAndVMSSInResourceGroup.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ForceDeleteVMsInResourceGroup.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetNamedProviderAtTenant.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetProvider.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetProviderPermissions.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetProviderResourceTypes.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetProviders.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetTagsResource.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetTagsSubscription.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PatchTagsResource.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PatchTagsSubscription.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnManagementGroup.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnResourceGroup.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnScope.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnSubscription.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnTenant.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentWhatIfOnManagementGroup.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentWhatIfOnResourceGroup.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentWhatIfOnSubscription.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentWhatIfOnTenant.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentAtManagementGroup.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentAtScope.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentAtTenant.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentResourceGroup.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentResourceGroupTemplateSpecsWithId.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentSubscriptionTemplateSpecsWithId.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutTagsResource.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutTagsSubscription.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/resources.json diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/CalculateTemplateHash.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/CalculateTemplateHash.json new file mode 100644 index 000000000000..640029d56e30 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/CalculateTemplateHash.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2024-11-01", + "template": { + "$schema": "http://schemas.management.azure.com/deploymentTemplate?api-version=2014-04-01-preview", + "contentVersion": "1.0.0.0", + "parameters": { + "string": { + "type": "string" + } + }, + "variables": { + "string": "string", + "int": 42, + "bool": true, + "array": [ + 1, + 2, + 3, + 4 + ], + "object": { + "object": { + "vmSize": "Large", + "location": "West US" + } + } + }, + "resources": [], + "outputs": { + "string": { + "type": "string", + "value": "myvalue" + } + } + } + }, + "responses": { + "200": { + "body": { + "minifiedTemplate": "{\"$SCHEMA\":\"HTTP://SCHEMAS.MANAGEMENT.AZURE.COM/DEPLOYMENTTEMPLATE?API-VERSION=2014-04-01-PREVIEW\",\"CONTENTVERSION\":\"1.0.0.0\",\"PARAMETERS\":{\"STRING\":{\"TYPE\":\"STRING\"}},\"VARIABLES\":{\"STRING\":\"STRING\",\"INT\":42,\"BOOL\":TRUE,\"ARRAY\":[1,2,3,4],\"OBJECT\":{\"OBJECT\":{\"VMSIZE\":\"LARGE\",\"LOCATION\":\"WEST US\"}}},\"RESOURCES\":[],\"OUTPUTS\":{\"STRING\":{\"TYPE\":\"STRING\",\"VALUE\":\"MYVALUE\"}}}", + "templateHash": "695440707931307747" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/CreateResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/CreateResourceGroup.json new file mode 100644 index 000000000000..bb80f1f54b90 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/CreateResourceGroup.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "my-resource-group", + "api-version": "2024-11-01", + "parameters": { + "location": "eastus" + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group", + "name": "my-resource-group", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group", + "name": "my-resource-group", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/DeleteTagsResource.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/DeleteTagsResource.json new file mode 100644 index 000000000000..7b4ed881c945 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/DeleteTagsResource.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/myPRNameSpace/VM/myVm", + "api-version": "2024-11-01" + }, + "responses": { + "200": { + "description": "Tags successfully deleted." + }, + "202": { + "description": "Accepted", + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/DeleteTagsSubscription.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/DeleteTagsSubscription.json new file mode 100644 index 000000000000..ecda9f5e228e --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/DeleteTagsSubscription.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "api-version": "2024-11-01" + }, + "responses": { + "200": { + "description": "Tags successfully deleted." + }, + "202": { + "description": "Accepted", + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ExportResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ExportResourceGroup.json new file mode 100644 index 000000000000..a4e098246200 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ExportResourceGroup.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "my-resource-group", + "api-version": "2024-11-01", + "parameters": { + "resources": [ + "*" + ], + "options": "IncludeParameterDefaultValue,IncludeComments" + } + }, + "responses": { + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + } + }, + "200": { + "body": { + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "myResourceType_myFirstResource_name": { + "defaultValue": "myFirstResource", + "type": "String" + }, + "myResourceType_mySecondResource_name": { + "defaultValue": "mySecondResource", + "type": "String" + }, + "myResourceType_myFirstResource_secret": { + "defaultValue": null, + "type": "SecureString" + } + }, + "variables": {}, + "resources": [ + { + "type": "My.RP/myResourceType", + "apiVersion": "2019-01-01", + "name": "[parameters('myResourceType_myFirstResource_name')]", + "location": "West US", + "properties": { + "secret": "[parameters('myResourceType_myFirstResource_secret')]" + } + }, + { + "type": "My.RP/myResourceType", + "apiVersion": "2019-01-01", + "name": "[parameters('myResourceType_mySecondResource_name')]", + "location": "West US", + "properties": { + "customProperty": "hello!" + } + } + ] + }, + "error": { + "code": "ExportTemplateCompletedWithErrors", + "message": "Export template operation completed with errors. Some resources were not exported. Please see details for more information.", + "details": [] + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ExportResourceGroupAsBicep.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ExportResourceGroupAsBicep.json new file mode 100644 index 000000000000..576a5c39e4c9 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ExportResourceGroupAsBicep.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "my-resource-group", + "api-version": "2024-11-01", + "parameters": { + "resources": [ + "*" + ], + "options": "IncludeParameterDefaultValue,IncludeComments", + "outputFormat": "Bicep" + } + }, + "responses": { + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + } + }, + "200": { + "body": { + "output": "\nparam myResourceType_myFirstResource_name string = 'myFirstResource'\nparam myResourceType_mySecondResource_name string = 'mySecondResource'\n\n@secure()\nparam myResourceType_myFirstResource_secret string = null\n\nresource myResourceType_myFirstResource_name_resource 'My.RP/myResourceType@2019-01-01' = {\n name: myResourceType_myFirstResource_name\n location: 'West US'\n properties: {\n secret: myResourceType_myFirstResource_secret\n }\n}\n\nresource myResourceType_mySecondResource_name_resource 'My.RP/myResourceType@2019-01-01' = {\n name: myResourceType_mySecondResource_name\n location: 'West US'\n properties: {\n customProperty: 'hello!'\n }\n}\n", + "error": { + "code": "ExportTemplateCompletedWithErrors", + "message": "Export template operation completed with errors. Some resources were not exported. Please see details for more information.", + "details": [] + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ExportResourceGroupWithFiltering.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ExportResourceGroupWithFiltering.json new file mode 100644 index 000000000000..0bd06621dd9f --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ExportResourceGroupWithFiltering.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "my-resource-group", + "api-version": "2024-11-01", + "parameters": { + "resources": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/My.RP/myResourceType/myFirstResource" + ], + "options": "SkipResourceNameParameterization" + } + }, + "responses": { + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + } + }, + "200": { + "body": { + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "myResourceType_myFirstResource_secret": { + "defaultValue": null, + "type": "SecureString" + } + }, + "variables": {}, + "resources": [ + { + "type": "My.RP/myResourceType", + "apiVersion": "2019-01-01", + "name": "myFirstResource", + "location": "West US", + "properties": { + "secret": "[parameters('myResourceType_myFirstResource_secret')]" + } + } + ] + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ForceDeleteVMsAndVMSSInResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ForceDeleteVMsAndVMSSInResourceGroup.json new file mode 100644 index 000000000000..89ab6d9927bd --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ForceDeleteVMsAndVMSSInResourceGroup.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "my-resource-group", + "forceDeletionTypes": "Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets", + "api-version": "2024-11-01" + }, + "responses": { + "202": { + "description": "Accepted", + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + } + }, + "200": { + "description": "OK" + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ForceDeleteVMsInResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ForceDeleteVMsInResourceGroup.json new file mode 100644 index 000000000000..22f9da99b2ff --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/ForceDeleteVMsInResourceGroup.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "my-resource-group", + "forceDeletionTypes": "Microsoft.Compute/virtualMachines", + "api-version": "2024-11-01" + }, + "responses": { + "202": { + "description": "Accepted", + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + } + }, + "200": { + "description": "OK" + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetNamedProviderAtTenant.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetNamedProviderAtTenant.json new file mode 100644 index 000000000000..beed0f96796d --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetNamedProviderAtTenant.json @@ -0,0 +1,253 @@ +{ + "parameters": { + "$expand": "resourceTypes/aliases", + "resourceProviderNamespace": "Microsoft.Storage", + "api-version": "2024-11-01" + }, + "responses": { + "200": { + "body": { + "namespace": "Microsoft.Storage", + "resourceTypes": [ + { + "resourceType": "storageAccounts", + "locations": [ + "East US", + "East US 2", + "East US 2 (Stage)", + "West US", + "West Europe", + "East Asia", + "Southeast Asia", + "Japan East", + "Japan West", + "North Central US", + "South Central US", + "Central US", + "North Europe", + "Brazil South", + "Australia East", + "Australia Southeast", + "South India", + "Central India", + "West India", + "Canada East", + "Canada Central", + "West US 2", + "West Central US", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "East US 2 EUAP", + "Central US EUAP", + "France Central", + "France South", + "Australia Central", + "Australia Central 2", + "South Africa West", + "South Africa North", + "UAE Central", + "UAE North", + "Switzerland North", + "Switzerland West", + "Germany West Central", + "Germany North", + "Norway East", + "Norway West", + "South Central US STG", + "Brazil Southeast" + ], + "apiVersions": [ + "2019-06-01", + "2019-04-01", + "2018-11-01", + "2018-07-01", + "2018-03-01-preview", + "2018-02-01", + "2017-10-01", + "2017-06-01", + "2016-12-01", + "2016-05-01", + "2016-01-01", + "2015-06-15", + "2015-05-01-preview" + ], + "defaultApiVersion": "2019-06-01", + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2017-10-01" + }, + { + "profileVersion": "2017-03-09-profile", + "apiVersion": "2016-01-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-01-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2017-10-01" + } + ], + "aliases": [ + { + "name": "Microsoft.Storage/storageAccounts/accountType", + "paths": [ + { + "path": "properties.accountType", + "apiVersions": [ + "2015-06-15", + "2015-05-01-preview" + ] + }, + { + "path": "sku.name", + "apiVersions": [ + "2018-11-01", + "2018-11-09", + "2018-07-01", + "2018-03-01-Preview", + "2018-02-01", + "2017-10-01", + "2017-06-01", + "2016-12-01", + "2016-05-01", + "2016-01-01" + ] + } + ], + "defaultPath": "sku.name" + }, + { + "name": "Microsoft.Storage/storageAccounts/sku.name", + "paths": [ + { + "path": "properties.accountType", + "apiVersions": [ + "2015-06-15", + "2015-05-01-preview" + ] + }, + { + "path": "sku.name", + "apiVersions": [ + "2018-11-01", + "2018-11-09", + "2018-07-01", + "2018-03-01-Preview", + "2018-02-01", + "2017-10-01", + "2017-06-01", + "2016-12-01", + "2016-05-01", + "2016-01-01" + ] + } + ], + "defaultPath": "sku.name" + }, + { + "name": "Microsoft.Storage/storageAccounts/accessTier", + "paths": [ + { + "path": "properties.accessTier", + "apiVersions": [ + "2018-11-01", + "2018-11-09", + "2018-07-01", + "2018-03-01-Preview", + "2018-02-01", + "2017-10-01", + "2017-06-01", + "2016-12-01", + "2016-05-01", + "2016-01-01", + "2015-06-15", + "2015-05-01-preview" + ] + } + ], + "defaultPath": "properties.accessTier" + }, + { + "name": "Microsoft.Storage/storageAccounts/enableBlobEncryption", + "paths": [ + { + "path": "properties.encryption.services.blob.enabled", + "apiVersions": [ + "2018-11-01", + "2018-11-09", + "2018-07-01", + "2018-03-01-Preview", + "2018-02-01", + "2017-10-01", + "2017-06-01", + "2016-12-01", + "2016-05-01", + "2016-01-01", + "2015-06-15", + "2015-05-01-preview" + ] + } + ], + "defaultPath": "properties.encryption.services.blob.enabled" + }, + { + "name": "Microsoft.Storage/storageAccounts/enableFileEncryption", + "paths": [ + { + "path": "properties.encryption.services.file.enabled", + "apiVersions": [ + "2018-11-01", + "2018-11-09", + "2018-07-01", + "2018-03-01-Preview", + "2018-02-01", + "2017-10-01", + "2017-06-01", + "2016-12-01", + "2016-05-01", + "2016-01-01", + "2015-06-15", + "2015-05-01-preview" + ] + } + ], + "defaultPath": "properties.encryption.services.file.enabled" + }, + { + "name": "Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly", + "paths": [ + { + "path": "properties.supportsHttpsTrafficOnly", + "apiVersions": [ + "2018-11-09", + "2018-03-01-Preview", + "2016-05-01", + "2016-01-01", + "2015-06-15", + "2015-05-01-preview" + ], + "metadata": { + "type": "NotSpecified", + "attributes": "None" + } + } + ], + "defaultPath": "properties.supportsHttpsTrafficOnly", + "defaultMetadata": { + "type": "Boolean", + "attributes": "Modifiable" + } + } + ], + "capabilities": "SupportsTags, SupportsLocation" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetProvider.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetProvider.json new file mode 100644 index 000000000000..52a1e17f9621 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetProvider.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceProviderNamespace": "Microsoft.TestRP1", + "api-version": "2024-11-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.TestRP1", + "namespace": "Microsoft.TestRP1", + "registrationState": "Registering", + "registrationPolicy": "RegistrationRequired", + "resourceTypes": [ + { + "resourceType": "TestResourceType", + "locations": [ + "West US" + ], + "apiVersions": [ + "2018-01-01", + "2015-05-01" + ], + "locationMappings": [ + { + "location": "West US", + "type": "EdgeZone", + "extendedLocations": [ + "LosAngeles", + "LosAngeles2" + ] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "TestResourceTypeSibling", + "locations": [ + "West US" + ], + "apiVersions": [ + "2018-01-01", + "2015-05-01" + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetProviderPermissions.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetProviderPermissions.json new file mode 100644 index 000000000000..faf5e98b87f0 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetProviderPermissions.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceProviderNamespace": "Microsoft.TestRP", + "api-version": "2024-11-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "applicationId": "00000000-0000-0000-0000-000000000000", + "roleDefinition": { + "id": "00000000000000000000000000000000", + "name": "Contoso service role", + "isServiceRole": true, + "permissions": [ + { + "actions": [ + "Microsoft.Contoso/*" + ], + "notActions": [], + "dataActions": [], + "notDataActions": [] + } + ], + "scopes": [ + "/" + ] + }, + "providerAuthorizationConsentState": "Consented" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetProviderResourceTypes.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetProviderResourceTypes.json new file mode 100644 index 000000000000..c1512519cffa --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetProviderResourceTypes.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceProviderNamespace": "Microsoft.TestRP", + "api-version": "2024-11-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "resourceType": "TestResourceType", + "locations": [ + "West US" + ], + "apiVersions": [ + "2018-01-01", + "2015-05-01" + ], + "locationMappings": [ + { + "location": "West US", + "type": "EdgeZone", + "extendedLocations": [ + "LosAngeles", + "LosAngeles2" + ] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "TestResourceTypeSibling", + "locations": [ + "West US" + ], + "apiVersions": [ + "2018-01-01", + "2015-05-01" + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetProviders.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetProviders.json new file mode 100644 index 000000000000..bf7269bf2136 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetProviders.json @@ -0,0 +1,175 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "api-version": "2024-11-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.TestRP1", + "namespace": "Microsoft.TestRP1", + "registrationState": "Registering", + "registrationPolicy": "RegistrationRequired", + "resourceTypes": [ + { + "resourceType": "TestResourceType", + "locations": [ + "West US" + ], + "apiVersions": [ + "2018-01-01", + "2015-05-01" + ], + "locationMappings": [ + { + "location": "West US", + "type": "EdgeZone", + "extendedLocations": [ + "LosAngeles", + "LosAngeles2" + ] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "TestResourceTypeSibling", + "locations": [ + "West US" + ], + "apiVersions": [ + "2018-01-01", + "2015-05-01" + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + } + ] + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources", + "namespace": "Microsoft.Resources", + "registrationState": "Registered", + "registrationPolicy": "RegistrationFree", + "resourceTypes": [ + { + "resourceType": "subscriptions", + "locations": [ + "eastus", + "eastus2", + "westus" + ], + "apiVersions": [ + "2016-09-01", + "2014-04-01-preview" + ], + "aliases": [], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "resourceGroups", + "locations": [ + "centralus", + "eastasia", + "southeastasia" + ], + "apiVersions": [ + "2016-09-01", + "2014-04-01-preview" + ], + "aliases": [], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "subscriptions/resourceGroups", + "locations": [ + "eastus", + "eastus2", + "westus" + ], + "apiVersions": [ + "2016-09-01", + "2014-04-01-preview" + ], + "aliases": [], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "bulkDelete", + "locations": [ + "centralus", + "eastasia" + ], + "apiVersions": [ + "2014-04-01-preview" + ], + "aliases": [], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "deployments", + "locations": [], + "apiVersions": [ + "2017-08-01", + "2017-06-01" + ], + "aliases": [], + "capabilities": "SupportsTags" + }, + { + "resourceType": "tags", + "locations": [ + "DevFabric" + ], + "apiVersions": [], + "aliases": [], + "capabilities": "SupportsExtension" + } + ] + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.TestRP2", + "namespace": "Microsoft.TestRP2", + "registrationState": "NotRegistered", + "registrationPolicy": "RegistrationRequired", + "resourceTypes": [ + { + "resourceType": "TestResourceType", + "locations": [ + "West US" + ], + "apiVersions": [ + "2018-01-01", + "2015-05-01" + ], + "locationMappings": [ + { + "location": "West US", + "type": "EdgeZone", + "extendedLocations": [ + "LosAngeles", + "LosAngeles2" + ] + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + }, + { + "resourceType": "TestResourceTypeSibling", + "locations": [ + "West US" + ], + "apiVersions": [ + "2018-01-01", + "2015-05-01" + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation" + } + ] + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetTagsResource.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetTagsResource.json new file mode 100644 index 000000000000..f0cb418342ff --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetTagsResource.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/myPRNameSpace/VM/myVm", + "api-version": "2024-11-01" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/myPRNameSpace/VM/myVm", + "properties": { + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetTagsSubscription.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetTagsSubscription.json new file mode 100644 index 000000000000..2827458405d4 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/GetTagsSubscription.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "api-version": "2024-11-01" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/00000000-0000-0000-0000-000000000000", + "properties": { + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PatchTagsResource.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PatchTagsResource.json new file mode 100644 index 000000000000..4974cf4ad35f --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PatchTagsResource.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/myPRNameSpace/VM/myVm", + "api-version": "2024-11-01", + "parameters": { + "operation": "Replace", + "properties": { + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/myPRNameSpace/VM/myVm", + "properties": { + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + } + }, + "202": { + "description": "Accepted", + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PatchTagsSubscription.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PatchTagsSubscription.json new file mode 100644 index 000000000000..58691d1a468e --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PatchTagsSubscription.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "api-version": "2024-11-01", + "parameters": { + "operation": "Replace", + "properties": { + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/00000000-0000-0000-0000-000000000000", + "properties": { + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + } + }, + "202": { + "description": "Accepted", + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnManagementGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnManagementGroup.json new file mode 100644 index 000000000000..e2e226a0561c --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnManagementGroup.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "groupId": "my-management-group-id", + "deploymentName": "my-deployment", + "api-version": "2024-11-01", + "parameters": { + "location": "eastus", + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json" + }, + "parameters": {}, + "mode": "Incremental" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json", + "contentVersion": "1.0.0.0" + }, + "templateHash": "0000000000000000000", + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Succeeded", + "timestamp": "2020-06-05T01:20:01.723776Z", + "duration": "PT22.8356799S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Authorization", + "resourceTypes": [ + { + "resourceType": "policyAssignments", + "locations": [ + null + ] + } + ] + } + ], + "dependencies": [], + "validatedResources": [ + { + "id": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment" + } + ], + "diagnostics": [ + { + "level": "Warning", + "code": "NestedDeploymentShortCircuited", + "message": "A nested deployment got short-circuited and all its resources got skipped from validation. This is due to a nested template having a parameter that was not fully evaluated (e.g. contains a reference() function)." + }, + { + "level": "Warning", + "code": "NestedDeploymentSkippedFromInternalExpansion", + "message": "When nested deployments are expanded, all its inner resources are retrieved for further validation. This process is performed in batch of: '10' at a time. Nested deployments exceeding this batch count are skipped from expansion." + }, + { + "level": "Warning", + "code": "NestedDeploymentExpansionLimitReached", + "message": "Nested deployments are expanded up to: '50' in total. Nested deployments exceeding this count are skipped from expansion." + } + ] + } + } + }, + "202": { + "headers": { + "Location": "/providers/Microsoft.Resources/operationResults/XXXXXXXXXXXXXXX?api-version=2024-11-01" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnResourceGroup.json new file mode 100644 index 000000000000..7fe924dc02fe --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnResourceGroup.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000001", + "resourceGroupName": "my-resource-group", + "deploymentName": "my-deployment", + "api-version": "2024-11-01", + "parameters": { + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json", + "queryString": "sv=2019-02-02&st=2019-04-29T22%3A18%3A26Z&se=2019-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=xxxxxxxx0xxxxxxxxxxxxx%2bxxxxxxxxxxxxxxxxxxxx%3d" + }, + "parameters": {}, + "mode": "Incremental" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "properties": { + "templateLink": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1", + "contentVersion": "1.0.0.0" + }, + "templateHash": "0000000000000000000", + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Succeeded", + "timestamp": "2020-06-05T01:20:01.723776Z", + "duration": "PT22.8356799S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Storage", + "resourceTypes": [ + { + "resourceType": "storageAccounts", + "locations": [ + "eastus" + ] + } + ] + } + ], + "dependencies": [], + "validatedResources": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/my-storage-account" + } + ], + "diagnostics": [ + { + "level": "Warning", + "code": "NestedDeploymentShortCircuited", + "message": "A nested deployment got short-circuited and all its resources got skipped from validation. This is due to a nested template having a parameter that was not fully evaluated (e.g. contains a reference() function)." + }, + { + "level": "Warning", + "code": "NestedDeploymentSkippedFromInternalExpansion", + "message": "When nested deployments are expanded, all its inner resources are retrieved for further validation. This process is performed in batch of: '10' at a time. Nested deployments exceeding this batch count are skipped from expansion." + }, + { + "level": "Warning", + "code": "NestedDeploymentExpansionLimitReached", + "message": "Nested deployments are expanded up to: '50' in total. Nested deployments exceeding this count are skipped from expansion." + } + ] + } + } + }, + "202": { + "headers": { + "Location": "/subscriptions/00000000-0000-0000-0000-000000000001/operationResults/XXXXXXXXXXXXXXX?api-version=2024-11-01" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnScope.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnScope.json new file mode 100644 index 000000000000..b2ac839abaa5 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnScope.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group", + "deploymentName": "my-deployment", + "api-version": "2024-11-01", + "parameters": { + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json", + "queryString": "sv=2019-02-02&st=2019-04-29T22%3A18%3A26Z&se=2019-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=xxxxxxxx0xxxxxxxxxxxxx%2bxxxxxxxxxxxxxxxxxxxx%3d" + }, + "parameters": {}, + "mode": "Incremental" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "properties": { + "templateLink": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1", + "contentVersion": "1.0.0.0" + }, + "templateHash": "0000000000000000000", + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Succeeded", + "timestamp": "2020-06-05T01:20:01.723776Z", + "duration": "PT22.8356799S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Storage", + "resourceTypes": [ + { + "resourceType": "storageAccounts", + "locations": [ + "eastus" + ] + } + ] + } + ], + "dependencies": [], + "validatedResources": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/my-storage-account" + } + ], + "diagnostics": [ + { + "level": "Warning", + "code": "NestedDeploymentShortCircuited", + "message": "A nested deployment got short-circuited and all its resources got skipped from validation. This is due to a nested template having a parameter that was not fully evaluated (e.g. contains a reference() function)." + }, + { + "level": "Warning", + "code": "NestedDeploymentSkippedFromInternalExpansion", + "message": "When nested deployments are expanded, all its inner resources are retrieved for further validation. This process is performed in batch of: '10' at a time. Nested deployments exceeding this batch count are skipped from expansion." + }, + { + "level": "Warning", + "code": "NestedDeploymentExpansionLimitReached", + "message": "Nested deployments are expanded up to: '50' in total. Nested deployments exceeding this count are skipped from expansion." + } + ] + } + } + }, + "202": { + "headers": { + "Location": "/subscriptions/00000000-0000-0000-0000-000000000001/operationResults/XXXXXXXXXXXXXXX?api-version=2024-11-01" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnSubscription.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnSubscription.json new file mode 100644 index 000000000000..183f24c46555 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnSubscription.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000001", + "deploymentName": "my-deployment", + "api-version": "2024-11-01", + "parameters": { + "location": "eastus", + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json" + }, + "parameters": {}, + "mode": "Incremental" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json", + "contentVersion": "1.0.0.0" + }, + "templateHash": "0000000000000000000", + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Succeeded", + "timestamp": "2020-06-05T01:20:01.723776Z", + "duration": "PT22.8356799S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Resources", + "resourceTypes": [ + { + "resourceType": "resourceGroups", + "locations": [ + "eastus" + ] + } + ] + } + ], + "dependencies": [], + "validatedResources": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group2" + } + ], + "diagnostics": [ + { + "level": "Warning", + "code": "NestedDeploymentShortCircuited", + "message": "A nested deployment got short-circuited and all its resources got skipped from validation. This is due to a nested template having a parameter that was not fully evaluated (e.g. contains a reference() function)." + }, + { + "level": "Warning", + "code": "NestedDeploymentSkippedFromInternalExpansion", + "message": "When nested deployments are expanded, all its inner resources are retrieved for further validation. This process is performed in batch of: '10' at a time. Nested deployments exceeding this batch count are skipped from expansion." + }, + { + "level": "Warning", + "code": "NestedDeploymentExpansionLimitReached", + "message": "Nested deployments are expanded up to: '50' in total. Nested deployments exceeding this count are skipped from expansion." + } + ] + } + } + }, + "202": { + "headers": { + "Location": "/subscriptions/00000000-0000-0000-0000-000000000001/operationResults/XXXXXXXXXXXXXXX?api-version=2024-11-01" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnTenant.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnTenant.json new file mode 100644 index 000000000000..ac60096111c4 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentValidateOnTenant.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "deploymentName": "my-deployment", + "api-version": "2024-11-01", + "parameters": { + "location": "eastus", + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json" + }, + "parameters": {}, + "mode": "Incremental" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json", + "contentVersion": "1.0.0.0" + }, + "templateHash": "0000000000000000000", + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Succeeded", + "timestamp": "2020-06-05T01:20:01.723776Z", + "duration": "PT22.8356799S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Authorization", + "resourceTypes": [ + { + "resourceType": "policyDefinitions", + "locations": [ + null + ] + } + ] + } + ], + "dependencies": [], + "validatedResources": [ + { + "id": "/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name" + } + ], + "diagnostics": [ + { + "level": "Warning", + "code": "NestedDeploymentShortCircuited", + "message": "A nested deployment got short-circuited and all its resources got skipped from validation. This is due to a nested template having a parameter that was not fully evaluated (e.g. contains a reference() function)." + }, + { + "level": "Warning", + "code": "NestedDeploymentSkippedFromInternalExpansion", + "message": "When nested deployments are expanded, all its inner resources are retrieved for further validation. This process is performed in batch of: '10' at a time. Nested deployments exceeding this batch count are skipped from expansion." + }, + { + "level": "Warning", + "code": "NestedDeploymentExpansionLimitReached", + "message": "Nested deployments are expanded up to: '50' in total. Nested deployments exceeding this count are skipped from expansion." + } + ] + } + } + }, + "202": { + "headers": { + "Location": "/providers/Microsoft.Resources/operationResults/XXXXXXXXXXXXXXX?api-version=2024-11-01" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentWhatIfOnManagementGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentWhatIfOnManagementGroup.json new file mode 100644 index 000000000000..bcd0281b4ed6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentWhatIfOnManagementGroup.json @@ -0,0 +1,89 @@ +{ + "parameters": { + "groupId": "myManagementGruop", + "deploymentName": "exampleDeploymentName", + "api-version": "2024-11-01", + "parameters": { + "location": "eastus", + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json" + }, + "parameters": {}, + "mode": "Incremental" + } + } + }, + "responses": { + "200": { + "body": { + "status": "Succeeded", + "properties": { + "changes": [ + { + "resourceId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment", + "changeType": "Modify", + "before": { + "apiVersion": "2019-06-01", + "id": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment", + "type": "Microsoft.Authorization/policyAssignments", + "name": "myPolicyAssignment", + "location": "westus2", + "properties": { + "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyDefinition", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000001", + "enforcementMode": "Default" + } + }, + "after": { + "resourceId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment", + "changeType": "Modify", + "before": { + "apiVersion": "2019-06-01", + "id": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment", + "type": "Microsoft.Authorization/policyAssignments", + "name": "myPolicyAssignment", + "location": "westus2", + "properties": { + "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyDefinition", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000001", + "enforcementMode": "DoNotEnforce" + } + }, + "delta": [ + { + "path": "properties.enforcementMode", + "propertyChangeType": "Modify", + "before": "Default", + "after": "DoNotEnforce" + } + ] + } + }, + { + "resourceId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment2", + "changeType": "Create", + "after": { + "apiVersion": "2019-06-01", + "id": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment2", + "type": "Microsoft.Authorization/policyAssignments", + "name": "myPolicyAssignment2", + "location": "westus2", + "properties": { + "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyDefinition", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000002", + "enforcementMode": "Default" + } + } + } + ] + } + } + }, + "202": { + "headers": { + "Location": "/subscriptions/4d0ca63b-7939-4c9c-afbe-5fafae501724/operationresults/ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentWhatIfOnResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentWhatIfOnResourceGroup.json new file mode 100644 index 000000000000..27a7fae81cec --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentWhatIfOnResourceGroup.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000001", + "resourceGroupName": "my-resource-group", + "deploymentName": "my-deployment", + "api-version": "2024-11-01", + "parameters": { + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json" + }, + "parameters": {}, + "mode": "Incremental" + } + } + }, + "responses": { + "200": { + "body": { + "status": "Succeeded", + "properties": { + "changes": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity", + "changeType": "Modify", + "before": { + "apiVersion": "2018-11-30", + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "name": "myExistingIdentity", + "location": "westus2" + }, + "after": { + "apiVersion": "2018-11-30", + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "name": "myExistingIdentity", + "location": "westus2", + "tags": { + "myNewTag": "my tag value" + } + }, + "delta": [ + { + "path": "tags.myNewTag", + "propertyChangeType": "Create", + "after": "my tag value" + } + ] + }, + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myNewIdentity", + "changeType": "Create", + "after": { + "apiVersion": "2018-11-30", + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myNewIdentity", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "name": "myNewIdentity", + "location": "eastus", + "tags": { + "myOtherNewTag": "another new tag value" + } + } + } + ] + } + } + }, + "202": { + "headers": { + "Location": "/subscriptions/00000000-0000-0000-0000-000000000000/ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentWhatIfOnSubscription.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentWhatIfOnSubscription.json new file mode 100644 index 000000000000..e442d8c847f7 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentWhatIfOnSubscription.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000001", + "deploymentName": "my-deployment", + "api-version": "2024-11-01", + "parameters": { + "location": "westus", + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json" + }, + "parameters": {}, + "mode": "Incremental" + } + } + }, + "responses": { + "200": { + "body": { + "status": "Succeeded", + "properties": { + "changes": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity", + "changeType": "Modify", + "before": { + "apiVersion": "2018-11-30", + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "name": "myExistingIdentity", + "location": "westus2" + }, + "after": { + "apiVersion": "2018-11-30", + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "name": "myExistingIdentity", + "location": "westus2", + "tags": { + "myNewTag": "my tag value" + } + }, + "delta": [ + { + "path": "tags.myNewTag", + "propertyChangeType": "Create", + "after": "my tag value" + } + ] + }, + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myNewIdentity", + "changeType": "Create", + "after": { + "apiVersion": "2018-11-30", + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myNewIdentity", + "type": "Microsoft.ManagedIdentity/userAssignedIdentities", + "name": "myNewIdentity", + "location": "eastus", + "tags": { + "myOtherNewTag": "another new tag value" + } + } + }, + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group2", + "changeType": "Create", + "after": { + "apiVersion": "2019-03-01", + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group2", + "type": "Microsoft.Resources/resourceGroups", + "name": "my-resource-group2", + "location": "{location3}" + } + } + ] + } + } + }, + "202": { + "headers": { + "Location": "/subscriptions/00000000-0000-0000-0000-000000000000/ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentWhatIfOnTenant.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentWhatIfOnTenant.json new file mode 100644 index 000000000000..314b3416ef84 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PostDeploymentWhatIfOnTenant.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "deploymentName": "exampleDeploymentName", + "api-version": "2024-11-01", + "parameters": { + "location": "eastus", + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json" + }, + "parameters": {}, + "mode": "Incremental" + } + } + }, + "responses": { + "200": { + "body": { + "status": "Succeeded", + "properties": { + "changes": [ + { + "resourceId": "/providers/Microsoft.Management/managementGroups/myManagementGroup", + "changeType": "Create", + "after": { + "id": "/providers/Microsoft.Management/managementGroups/myManagementGroup", + "apiVersion": "2019-11-01", + "type": "Microsoft.Management/managementGroups", + "name": "myManagementGroup" + } + } + ] + } + } + }, + "202": { + "headers": { + "Location": "/subscriptions/4d0ca63b-7939-4c9c-afbe-5fafae501724/operationresults/ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentAtManagementGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentAtManagementGroup.json new file mode 100644 index 000000000000..80af24f6da33 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentAtManagementGroup.json @@ -0,0 +1,139 @@ +{ + "parameters": { + "groupId": "my-management-group-id", + "deploymentName": "my-deployment", + "api-version": "2024-11-01", + "parameters": { + "location": "eastus", + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json" + }, + "parameters": {}, + "mode": "Incremental" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "location": "eastus", + "properties": { + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Accepted", + "timestamp": "2019-04-24T22:52:38.7895563Z", + "duration": "PT1.2970875S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Authorization", + "resourceTypes": [ + { + "resourceType": "policyDefinitions", + "locations": [ + null + ] + }, + { + "resourceType": "policyAssignments", + "locations": [ + null + ] + } + ] + }, + { + "namespace": "Microsoft.Resources", + "resourceTypes": [ + { + "resourceType": "deployments", + "locations": [ + "eastus" + ] + } + ] + } + ], + "dependencies": [ + { + "dependsOn": [ + { + "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name", + "resourceType": "Microsoft.Authorization/policyDefinitions", + "resourceName": "policy-definition-name" + } + ], + "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyAssignments/location-lock", + "resourceType": "Microsoft.Authorization/policyAssignments", + "resourceName": "location-lock" + } + ] + } + } + }, + "201": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "location": "eastus", + "properties": { + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Accepted", + "timestamp": "2019-04-24T22:52:38.7895563Z", + "duration": "PT1.2970875S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Authorization", + "resourceTypes": [ + { + "resourceType": "policyDefinitions", + "locations": [ + null + ] + }, + { + "resourceType": "policyAssignments", + "locations": [ + null + ] + } + ] + }, + { + "namespace": "Microsoft.Resources", + "resourceTypes": [ + { + "resourceType": "deployments", + "locations": [ + "eastus" + ] + } + ] + } + ], + "dependencies": [ + { + "dependsOn": [ + { + "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name", + "resourceType": "Microsoft.Authorization/policyDefinitions", + "resourceName": "policy-definition-name" + } + ], + "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyAssignments/location-lock", + "resourceType": "Microsoft.Authorization/policyAssignments", + "resourceName": "location-lock" + } + ] + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentAtScope.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentAtScope.json new file mode 100644 index 000000000000..fb3c5015a14b --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentAtScope.json @@ -0,0 +1,151 @@ +{ + "parameters": { + "scope": "providers/Microsoft.Management/managementGroups/my-management-group-id", + "deploymentName": "my-deployment", + "api-version": "2024-11-01", + "parameters": { + "location": "eastus", + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json" + }, + "parameters": {}, + "mode": "Incremental" + }, + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "location": "eastus", + "properties": { + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Accepted", + "timestamp": "2019-04-24T22:52:38.7895563Z", + "duration": "PT1.2970875S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Authorization", + "resourceTypes": [ + { + "resourceType": "policyDefinitions", + "locations": [ + null + ] + }, + { + "resourceType": "policyAssignments", + "locations": [ + null + ] + } + ] + }, + { + "namespace": "Microsoft.Resources", + "resourceTypes": [ + { + "resourceType": "deployments", + "locations": [ + "eastus" + ] + } + ] + } + ], + "dependencies": [ + { + "dependsOn": [ + { + "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name", + "resourceType": "Microsoft.Authorization/policyDefinitions", + "resourceName": "policy-definition-name" + } + ], + "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyAssignments/location-lock", + "resourceType": "Microsoft.Authorization/policyAssignments", + "resourceName": "location-lock" + } + ] + }, + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + }, + "201": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "location": "eastus", + "properties": { + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Accepted", + "timestamp": "2019-04-24T22:52:38.7895563Z", + "duration": "PT1.2970875S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Authorization", + "resourceTypes": [ + { + "resourceType": "policyDefinitions", + "locations": [ + null + ] + }, + { + "resourceType": "policyAssignments", + "locations": [ + null + ] + } + ] + }, + { + "namespace": "Microsoft.Resources", + "resourceTypes": [ + { + "resourceType": "deployments", + "locations": [ + "eastus" + ] + } + ] + } + ], + "dependencies": [ + { + "dependsOn": [ + { + "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name", + "resourceType": "Microsoft.Authorization/policyDefinitions", + "resourceName": "policy-definition-name" + } + ], + "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyAssignments/location-lock", + "resourceType": "Microsoft.Authorization/policyAssignments", + "resourceName": "location-lock" + } + ] + }, + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentAtTenant.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentAtTenant.json new file mode 100644 index 000000000000..f330fb6ce888 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentAtTenant.json @@ -0,0 +1,150 @@ +{ + "parameters": { + "deploymentName": "tenant-dep01", + "api-version": "2024-11-01", + "parameters": { + "location": "eastus", + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json" + }, + "parameters": {}, + "mode": "Incremental" + }, + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Resources/deployments/tenant-dep01", + "name": "tenant-dep01", + "type": "Microsoft.Resources/deployments", + "location": "eastus", + "properties": { + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Accepted", + "timestamp": "2019-04-24T22:52:38.7895563Z", + "duration": "PT1.2970875S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Authorization", + "resourceTypes": [ + { + "resourceType": "policyDefinitions", + "locations": [ + null + ] + }, + { + "resourceType": "policyAssignments", + "locations": [ + null + ] + } + ] + }, + { + "namespace": "Microsoft.Resources", + "resourceTypes": [ + { + "resourceType": "deployments", + "locations": [ + "eastus" + ] + } + ] + } + ], + "dependencies": [ + { + "dependsOn": [ + { + "id": "/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name", + "resourceType": "Microsoft.Authorization/policyDefinitions", + "resourceName": "policy-definition-name" + } + ], + "id": "/providers/Microsoft.Authorization/policyAssignments/location-lock", + "resourceType": "Microsoft.Authorization/policyAssignments", + "resourceName": "location-lock" + } + ] + }, + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + }, + "201": { + "body": { + "id": "/providers/Microsoft.Resources/deployments/tenant-dep01", + "name": "tenant-dep01", + "type": "Microsoft.Resources/deployments", + "location": "eastus", + "properties": { + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Accepted", + "timestamp": "2019-04-24T22:52:38.7895563Z", + "duration": "PT1.2970875S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Authorization", + "resourceTypes": [ + { + "resourceType": "policyDefinitions", + "locations": [ + null + ] + }, + { + "resourceType": "policyAssignments", + "locations": [ + null + ] + } + ] + }, + { + "namespace": "Microsoft.Resources", + "resourceTypes": [ + { + "resourceType": "deployments", + "locations": [ + "eastus" + ] + } + ] + } + ], + "dependencies": [ + { + "dependsOn": [ + { + "id": "/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name", + "resourceType": "Microsoft.Authorization/policyDefinitions", + "resourceName": "policy-definition-name" + } + ], + "id": "/providers/Microsoft.Authorization/policyAssignments/location-lock", + "resourceType": "Microsoft.Authorization/policyAssignments", + "resourceName": "location-lock" + } + ] + }, + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentResourceGroup.json new file mode 100644 index 000000000000..3ed7e3173cc5 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentResourceGroup.json @@ -0,0 +1,93 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000001", + "resourceGroupName": "my-resource-group", + "deploymentName": "my-deployment", + "api-version": "2024-11-01", + "parameters": { + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json", + "queryString": "sv=2019-02-02&st=2019-04-29T22%3A18%3A26Z&se=2019-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=xxxxxxxx0xxxxxxxxxxxxx%2bxxxxxxxxxxxxxxxxxxxx%3d" + }, + "parameters": {}, + "mode": "Incremental" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "properties": { + "templateLink": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1", + "contentVersion": "1.0.0.0" + }, + "templateHash": "0000000000000000000", + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Succeeded", + "timestamp": "2020-06-05T01:20:01.723776Z", + "duration": "PT22.8356799S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Storage", + "resourceTypes": [ + { + "resourceType": "storageAccounts", + "locations": [ + "eastus" + ] + } + ] + } + ], + "dependencies": [], + "outputResources": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/my-storage-account" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "properties": { + "templateLink": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1", + "contentVersion": "1.0.0.0" + }, + "templateHash": "0000000000000000000", + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Accepted", + "timestamp": "2020-06-05T01:20:01.723776Z", + "duration": "PT22.8356799S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Storage", + "resourceTypes": [ + { + "resourceType": "storageAccounts", + "locations": [ + "eastus" + ] + } + ] + } + ], + "dependencies": [] + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentResourceGroupTemplateSpecsWithId.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentResourceGroupTemplateSpecsWithId.json new file mode 100644 index 000000000000..a180d3fad3c9 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentResourceGroupTemplateSpecsWithId.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000001", + "resourceGroupName": "my-resource-group", + "deploymentName": "my-deployment", + "api-version": "2024-11-01", + "parameters": { + "properties": { + "templateLink": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1" + }, + "parameters": {}, + "mode": "Incremental" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "properties": { + "templateLink": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1", + "contentVersion": "1.0.0.0" + }, + "templateHash": "0000000000000000000", + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Succeeded", + "timestamp": "2020-06-05T01:20:01.723776Z", + "duration": "PT22.8356799S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Storage", + "resourceTypes": [ + { + "resourceType": "storageAccounts", + "locations": [ + "eastus" + ] + } + ] + } + ], + "dependencies": [], + "outputResources": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/my-storage-account" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "properties": { + "templateLink": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1", + "contentVersion": "1.0.0.0" + }, + "templateHash": "0000000000000000000", + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Accepted", + "timestamp": "2020-06-05T01:20:01.723776Z", + "duration": "PT22.8356799S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Storage", + "resourceTypes": [ + { + "resourceType": "storageAccounts", + "locations": [ + "eastus" + ] + } + ] + } + ], + "dependencies": [] + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentSubscriptionTemplateSpecsWithId.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentSubscriptionTemplateSpecsWithId.json new file mode 100644 index 000000000000..2706bed38031 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentSubscriptionTemplateSpecsWithId.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000001", + "deploymentName": "my-deployment", + "api-version": "2024-11-01", + "parameters": { + "location": "eastus", + "properties": { + "templateLink": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1" + }, + "parameters": {}, + "mode": "Incremental" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "location": "eastus", + "properties": { + "templateLink": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1", + "contentVersion": "1.0.0.0" + }, + "templateHash": "0000000000000000000", + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Succeeded", + "timestamp": "2020-06-05T01:51:58.6288067Z", + "duration": "PT1.2637681S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [], + "dependencies": [], + "outputResources": [] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "location": "eastus", + "properties": { + "templateLink": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1", + "contentVersion": "1.0.0.0" + }, + "templateHash": "0000000000000000000", + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Accepted", + "timestamp": "2020-06-05T01:51:58.6288067Z", + "duration": "PT1.2637681S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [], + "dependencies": [] + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json new file mode 100644 index 000000000000..cb9653004f3c --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json @@ -0,0 +1,168 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "my-resource-group", + "deploymentName": "my-deployment", + "api-version": "2024-11-01", + "parameters": { + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json" + }, + "parameters": {}, + "mode": "Complete", + "onErrorDeployment": { + "type": "LastSuccessful" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json", + "contentVersion": "1.0.0.0" + }, + "parameters": {}, + "mode": "Complete", + "provisioningState": "Accepted", + "timestamp": "2019-03-01T00:00:00.0000000Z", + "duration": "PT0.8204881S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Network", + "resourceTypes": [ + { + "resourceType": "virtualNetworks", + "locations": [ + "centralus" + ] + }, + { + "resourceType": "virtualNetworks/subnets", + "locations": [ + "centralus" + ] + } + ] + } + ], + "dependencies": [ + { + "dependsOn": [ + { + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks", + "resourceName": "VNet1" + } + ], + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks/subnets", + "resourceName": "VNet1/Subnet1" + }, + { + "dependsOn": [ + { + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks", + "resourceName": "VNet1" + }, + { + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks/subnets", + "resourceName": "VNet1/Subnet1" + } + ], + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks/subnets", + "resourceName": "VNet1/Subnet2" + } + ], + "onErrorDeployment": { + "type": "LastSuccessful", + "deploymentName": "{nameOfLastSuccesfulDeployment}" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json", + "contentVersion": "1.0.0.0" + }, + "parameters": {}, + "mode": "Complete", + "provisioningState": "Accepted", + "timestamp": "2019-03-01T00:00:00.0000000Z", + "duration": "PT0.8204881S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Network", + "resourceTypes": [ + { + "resourceType": "virtualNetworks", + "locations": [ + "centralus" + ] + }, + { + "resourceType": "virtualNetworks/subnets", + "locations": [ + "centralus" + ] + } + ] + } + ], + "dependencies": [ + { + "dependsOn": [ + { + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks", + "resourceName": "VNet1" + } + ], + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks/subnets", + "resourceName": "VNet1/Subnet1" + }, + { + "dependsOn": [ + { + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks", + "resourceName": "VNet1" + }, + { + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks/subnets", + "resourceName": "VNet1/Subnet1" + } + ], + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks/subnets", + "resourceName": "VNet1/Subnet2" + } + ], + "onErrorDeployment": { + "type": "LastSuccessful", + "deploymentName": "{nameOfLastSuccesfulDeployment}" + } + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json new file mode 100644 index 000000000000..c124c1b0dda3 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json @@ -0,0 +1,169 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "my-resource-group", + "deploymentName": "my-deployment", + "api-version": "2024-11-01", + "parameters": { + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json" + }, + "parameters": {}, + "mode": "Complete", + "onErrorDeployment": { + "type": "SpecificDeployment", + "deploymentName": "name-of-deployment-to-use" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json", + "contentVersion": "1.0.0.0" + }, + "parameters": {}, + "mode": "Complete", + "provisioningState": "Accepted", + "timestamp": "2019-03-01T00:00:00.0000000Z", + "duration": "PT0.8204881S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Network", + "resourceTypes": [ + { + "resourceType": "virtualNetworks", + "locations": [ + "centralus" + ] + }, + { + "resourceType": "virtualNetworks/subnets", + "locations": [ + "centralus" + ] + } + ] + } + ], + "dependencies": [ + { + "dependsOn": [ + { + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks", + "resourceName": "VNet1" + } + ], + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks/subnets", + "resourceName": "VNet1/Subnet1" + }, + { + "dependsOn": [ + { + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks", + "resourceName": "VNet1" + }, + { + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks/subnets", + "resourceName": "VNet1/Subnet1" + } + ], + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks/subnets", + "resourceName": "VNet1/Subnet2" + } + ], + "onErrorDeployment": { + "type": "SpecificDeployment", + "deploymentName": "name-of-deployment-to-use" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment", + "name": "my-deployment", + "type": "Microsoft.Resources/deployments", + "properties": { + "templateLink": { + "uri": "https://example.com/exampleTemplate.json", + "contentVersion": "1.0.0.0" + }, + "parameters": {}, + "mode": "Complete", + "provisioningState": "Accepted", + "timestamp": "2019-03-01T00:00:00.0000000Z", + "duration": "PT0.8204881S", + "correlationId": "00000000-0000-0000-0000-000000000000", + "providers": [ + { + "namespace": "Microsoft.Network", + "resourceTypes": [ + { + "resourceType": "virtualNetworks", + "locations": [ + "centralus" + ] + }, + { + "resourceType": "virtualNetworks/subnets", + "locations": [ + "centralus" + ] + } + ] + } + ], + "dependencies": [ + { + "dependsOn": [ + { + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks", + "resourceName": "VNet1" + } + ], + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks/subnets", + "resourceName": "VNet1/Subnet1" + }, + { + "dependsOn": [ + { + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks", + "resourceName": "VNet1" + }, + { + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks/subnets", + "resourceName": "VNet1/Subnet1" + } + ], + "id": "{resourceid}", + "resourceType": "Microsoft.Network/virtualNetworks/subnets", + "resourceName": "VNet1/Subnet2" + } + ], + "onErrorDeployment": { + "type": "SpecificDeployment", + "deploymentName": "name-of-deployment-to-use" + } + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutTagsResource.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutTagsResource.json new file mode 100644 index 000000000000..1d2b48b3c791 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutTagsResource.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/myPRNameSpace/VM/myVm", + "api-version": "2024-11-01", + "parameters": { + "properties": { + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/myPRNameSpace/VM/myVm", + "properties": { + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + } + }, + "202": { + "description": "Accepted", + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutTagsSubscription.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutTagsSubscription.json new file mode 100644 index 000000000000..3b61ea017d8d --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/examples/PutTagsSubscription.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "api-version": "2024-11-01", + "parameters": { + "properties": { + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/00000000-0000-0000-0000-000000000000", + "properties": { + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + } + } + } + }, + "202": { + "description": "Accepted", + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/resources.json new file mode 100644 index 000000000000..54919851a1bd --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2024-11-01/resources.json @@ -0,0 +1,6893 @@ +{ + "swagger": "2.0", + "info": { + "title": "ResourceManagementClient", + "version": "2024-11-01", + "description": "Provides operations for working with resources and resource groups." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.Resources/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available Microsoft.Resources REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}": { + "delete": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_DeleteAtScope", + "summary": "Deletes a deployment from the deployment history.", + "description": "A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.", + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "head": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_CheckExistenceAtScope", + "description": "Checks whether the deployment exists.", + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_CreateOrUpdateAtScope", + "summary": "Deploys resources at a given scope.", + "description": "You can provide the template and parameters directly in the request or link to JSON files.", + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Deployment" + }, + "description": "Additional parameters supplied to the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the deployment, including provisioning status.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "201": { + "description": "Created - Returns information about the deployment, including provisioning status.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create deployment at a given scope.": { + "$ref": "./examples/PutDeploymentAtScope.json" + } + } + }, + "get": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_GetAtScope", + "description": "Gets a deployment.", + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the deployment, including provisioning status.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_CancelAtScope", + "summary": "Cancels a currently running template deployment.", + "description": "You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resources partially deployed.", + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/validate": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_ValidateAtScope", + "x-ms-long-running-operation": true, + "description": "Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..", + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Deployment" + }, + "description": "Parameters to validate." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The template deployment validation succeeded. Please inspect 'warnings' property since some resources might have been skipped from validation.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "202": { + "description": "Accepted - The request has been accepted for processing and the operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Validates a template at scope": { + "$ref": "./examples/PostDeploymentValidateOnScope.json" + } + } + } + }, + "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_ExportTemplateAtScope", + "description": "Exports the template used for specified deployment.", + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the template.", + "schema": { + "$ref": "#/definitions/DeploymentExportResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Resources/deployments/": { + "get": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_ListAtScope", + "description": "Get all the deployments at the given scope.", + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The number of results to get. If null is passed, returns all deployments." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of deployments.", + "schema": { + "$ref": "#/definitions/DeploymentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/DeploymentExtendedFilter" + } + }, + "/providers/Microsoft.Resources/deployments/{deploymentName}": { + "delete": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_DeleteAtTenantScope", + "summary": "Deletes a deployment from the deployment history.", + "description": "A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "head": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_CheckExistenceAtTenantScope", + "description": "Checks whether the deployment exists.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_CreateOrUpdateAtTenantScope", + "summary": "Deploys resources at tenant scope.", + "description": "You can provide the template and parameters directly in the request or link to JSON files.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ScopedDeployment" + }, + "description": "Additional parameters supplied to the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the deployment, including provisioning status.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "201": { + "description": "Created - Returns information about the deployment, including provisioning status.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create deployment at tenant scope.": { + "$ref": "./examples/PutDeploymentAtTenant.json" + } + } + }, + "get": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_GetAtTenantScope", + "description": "Gets a deployment.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the deployment, including provisioning status.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/providers/Microsoft.Resources/deployments/{deploymentName}/cancel": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_CancelAtTenantScope", + "summary": "Cancels a currently running template deployment.", + "description": "You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resources partially deployed.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/providers/Microsoft.Resources/deployments/{deploymentName}/validate": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_ValidateAtTenantScope", + "x-ms-long-running-operation": true, + "description": "Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ScopedDeployment" + }, + "description": "Parameters to validate." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The template deployment validation succeeded. Please inspect 'warnings' property since some resources might have been skipped from validation.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "202": { + "description": "Accepted - The request has been accepted for processing and the operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Validates a template at tenant scope": { + "$ref": "./examples/PostDeploymentValidateOnTenant.json" + } + } + } + }, + "/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_WhatIfAtTenantScope", + "description": "Returns changes that will be made by the deployment if executed at the scope of the tenant group.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ScopedDeploymentWhatIf" + }, + "description": "Parameters to validate." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns What-If operation status", + "schema": { + "$ref": "#/definitions/WhatIfOperationResult" + } + }, + "202": { + "description": "Accepted - Returns URL in Location header to query for long-running operation status.", + "headers": { + "Location": { + "type": "string", + "description": "URL to get status of this long-running operation." + }, + "Retry-After": { + "type": "string", + "description": "Number of seconds to wait before polling for status." + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Predict template changes at management group scope": { + "$ref": "./examples/PostDeploymentWhatIfOnTenant.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_ExportTemplateAtTenantScope", + "description": "Exports the template used for specified deployment.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the template.", + "schema": { + "$ref": "#/definitions/DeploymentExportResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/providers/Microsoft.Resources/deployments/": { + "get": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_ListAtTenantScope", + "description": "Get all the deployments at the tenant scope.", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The number of results to get. If null is passed, returns all deployments." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of deployments.", + "schema": { + "$ref": "#/definitions/DeploymentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/DeploymentExtendedFilter" + } + }, + "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}": { + "delete": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_DeleteAtManagementGroupScope", + "summary": "Deletes a deployment from the deployment history.", + "description": "A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "head": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_CheckExistenceAtManagementGroupScope", + "description": "Checks whether the deployment exists.", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_CreateOrUpdateAtManagementGroupScope", + "summary": "Deploys resources at management group scope.", + "description": "You can provide the template and parameters directly in the request or link to JSON files.", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ScopedDeployment" + }, + "description": "Additional parameters supplied to the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the deployment, including provisioning status.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "201": { + "description": "Created - Returns information about the deployment, including provisioning status.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create deployment at management group scope.": { + "$ref": "./examples/PutDeploymentAtManagementGroup.json" + } + } + }, + "get": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_GetAtManagementGroupScope", + "description": "Gets a deployment.", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the deployment, including provisioning status.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_CancelAtManagementGroupScope", + "summary": "Cancels a currently running template deployment.", + "description": "You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resources partially deployed.", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_ValidateAtManagementGroupScope", + "x-ms-long-running-operation": true, + "description": "Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ScopedDeployment" + }, + "description": "Parameters to validate." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The template deployment validation succeeded. Please inspect 'warnings' property since some resources might have been skipped from validation.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "202": { + "description": "Accepted - The request has been accepted for processing and the operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Validates a template at management group scope": { + "$ref": "./examples/PostDeploymentValidateOnManagementGroup.json" + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_WhatIfAtManagementGroupScope", + "description": "Returns changes that will be made by the deployment if executed at the scope of the management group.", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ScopedDeploymentWhatIf" + }, + "description": "Parameters to validate." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns What-If operation status", + "schema": { + "$ref": "#/definitions/WhatIfOperationResult" + } + }, + "202": { + "description": "Accepted - Returns URL in Location header to query for long-running operation status.", + "headers": { + "Location": { + "type": "string", + "description": "URL to get status of this long-running operation." + }, + "Retry-After": { + "type": "string", + "description": "Number of seconds to wait before polling for status." + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Predict template changes at management group scope": { + "$ref": "./examples/PostDeploymentWhatIfOnManagementGroup.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_ExportTemplateAtManagementGroupScope", + "description": "Exports the template used for specified deployment.", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the template.", + "schema": { + "$ref": "#/definitions/DeploymentExportResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/": { + "get": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_ListAtManagementGroupScope", + "description": "Get all the deployments for a management group.", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The number of results to get. If null is passed, returns all deployments." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of deployments.", + "schema": { + "$ref": "#/definitions/DeploymentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/DeploymentExtendedFilter" + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}": { + "delete": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_DeleteAtSubscriptionScope", + "summary": "Deletes a deployment from the deployment history.", + "description": "A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "head": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_CheckExistenceAtSubscriptionScope", + "description": "Checks whether the deployment exists.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_CreateOrUpdateAtSubscriptionScope", + "summary": "Deploys resources at subscription scope.", + "description": "You can provide the template and parameters directly in the request or link to JSON files.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Deployment" + }, + "description": "Additional parameters supplied to the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the deployment, including provisioning status.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "201": { + "description": "Created - Returns information about the deployment, including provisioning status.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Create a deployment that will deploy a templateSpec with the given resourceId": { + "$ref": "./examples/PutDeploymentSubscriptionTemplateSpecsWithId.json" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_GetAtSubscriptionScope", + "description": "Gets a deployment.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the deployment, including provisioning status.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_CancelAtSubscriptionScope", + "summary": "Cancels a currently running template deployment.", + "description": "You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resources partially deployed.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_ValidateAtSubscriptionScope", + "x-ms-long-running-operation": true, + "description": "Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Deployment" + }, + "description": "Parameters to validate." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The template deployment validation succeeded. Please inspect 'warnings' property since some resources might have been skipped from validation.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "202": { + "description": "Accepted - The request has been accepted for processing and the operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Validates a template at subscription scope": { + "$ref": "./examples/PostDeploymentValidateOnSubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_WhatIfAtSubscriptionScope", + "description": "Returns changes that will be made by the deployment if executed at the scope of the subscription.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DeploymentWhatIf" + }, + "description": "Parameters to What If." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns What-If operation status", + "schema": { + "$ref": "#/definitions/WhatIfOperationResult" + } + }, + "202": { + "description": "Accepted - Returns URL in Location header to query for long-running operation status.", + "headers": { + "Location": { + "type": "string", + "description": "URL to get status of this long-running operation." + }, + "Retry-After": { + "type": "string", + "description": "Number of seconds to wait before polling for status." + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Predict template changes at subscription scope": { + "$ref": "./examples/PostDeploymentWhatIfOnSubscription.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_ExportTemplateAtSubscriptionScope", + "description": "Exports the template used for specified deployment.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the template.", + "schema": { + "$ref": "#/definitions/DeploymentExportResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/": { + "get": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_ListAtSubscriptionScope", + "description": "Get all the deployments for a subscription.", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The number of results to get. If null is passed, returns all deployments." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of deployments.", + "schema": { + "$ref": "#/definitions/DeploymentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/DeploymentExtendedFilter" + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}": { + "delete": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_Delete", + "summary": "Deletes a deployment from the deployment history.", + "description": "A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. Deleting a template deployment does not affect the state of the resource group. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group with the deployment to delete. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted - Returns this status until the asynchronous operation has completed." + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "head": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_CheckExistence", + "description": "Checks whether the deployment exists.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group with the deployment to check. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_CreateOrUpdate", + "summary": "Deploys resources to a resource group.", + "description": "You can provide the template and parameters directly in the request or link to JSON files.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Deployment" + }, + "description": "Additional parameters supplied to the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the deployment, including provisioning status.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "201": { + "description": "Created - Returns information about the deployment, including provisioning status.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Create a deployment that will redeploy the last successful deployment on failure": { + "$ref": "./examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json" + }, + "Create a deployment that will redeploy another deployment on failure": { + "$ref": "./examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json" + }, + "Create a deployment that will deploy a templateSpec with the given resourceId": { + "$ref": "./examples/PutDeploymentResourceGroupTemplateSpecsWithId.json" + }, + "Create a deployment that will deploy a template with a uri and queryString": { + "$ref": "./examples/PutDeploymentResourceGroup.json" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_Get", + "description": "Gets a deployment.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the deployment, including provisioning status.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_Cancel", + "summary": "Cancels a currently running template deployment.", + "description": "You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resource group partially deployed.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_Validate", + "x-ms-long-running-operation": true, + "description": "Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group the template will be deployed to. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Deployment" + }, + "description": "Parameters to validate." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The template deployment validation succeeded. Please inspect 'warnings' property since some resources might have been skipped from validation.", + "schema": { + "$ref": "#/definitions/DeploymentExtended" + } + }, + "202": { + "description": "Accepted - The request has been accepted for processing and the operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Validates a template at resource group scope": { + "$ref": "./examples/PostDeploymentValidateOnResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_WhatIf", + "description": "Returns changes that will be made by the deployment if executed at the scope of the resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group the template will be deployed to. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DeploymentWhatIf" + }, + "description": "Parameters to validate." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns What-If operation status", + "schema": { + "$ref": "#/definitions/WhatIfOperationResult" + } + }, + "202": { + "description": "Accepted - Returns URL in Location header to query for long-running operation status.", + "headers": { + "Location": { + "type": "string", + "description": "URL to get status of this long-running operation." + }, + "Retry-After": { + "type": "string", + "description": "Number of seconds to wait before polling for status." + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Predict template changes at resource group scope": { + "$ref": "./examples/PostDeploymentWhatIfOnResourceGroup.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_ExportTemplate", + "description": "Exports the template used for specified deployment.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the template.", + "schema": { + "$ref": "#/definitions/DeploymentExportResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/": { + "get": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_ListByResourceGroup", + "description": "Get all the deployments for a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group with the deployments to get. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The number of results to get. If null is passed, returns all deployments." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of deployments.", + "schema": { + "$ref": "#/definitions/DeploymentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/DeploymentExtendedFilter" + } + }, + "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister": { + "post": { + "tags": [ + "Providers" + ], + "operationId": "Providers_Unregister", + "description": "Unregisters a subscription from a resource provider.", + "parameters": [ + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider to unregister." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the resource provider.", + "schema": { + "$ref": "#/definitions/Provider" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{groupId}/providers/{resourceProviderNamespace}/register": { + "post": { + "tags": [ + "Providers" + ], + "operationId": "Providers_RegisterAtManagementGroupScope", + "description": "Registers a management group with a resource provider. Use this operation to register a resource provider with resource types that can be deployed at the management group scope. It does not recursively register subscriptions within the management group. Instead, you must register subscriptions individually.", + "parameters": [ + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider to register." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/GroupIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the resource provider." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/providerPermissions": { + "get": { + "tags": [ + "Providers" + ], + "operationId": "Providers_ProviderPermissions", + "description": "Get the provider permissions.", + "parameters": [ + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information on the provider permissions.", + "schema": { + "$ref": "#/definitions/ProviderPermissionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get provider resource types.": { + "$ref": "./examples/GetProviderPermissions.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register": { + "post": { + "tags": [ + "Providers" + ], + "operationId": "Providers_Register", + "description": "Registers a subscription with a resource provider.", + "parameters": [ + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider to register." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "properties", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/ProviderRegistrationRequest" + }, + "description": "The third party consent for S2S." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the resource provider.", + "schema": { + "$ref": "#/definitions/Provider" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers": { + "get": { + "tags": [ + "Providers" + ], + "operationId": "Providers_List", + "description": "Gets all resource providers for a subscription.", + "parameters": [ + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The properties to include in the results. For example, use &$expand=metadata in the query string to retrieve resource provider metadata. To include property aliases in response, use $expand=resourceTypes/aliases." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource providers.", + "schema": { + "$ref": "#/definitions/ProviderListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get providers.": { + "$ref": "./examples/GetProviders.json" + } + } + } + }, + "/providers": { + "get": { + "tags": [ + "Providers" + ], + "operationId": "Providers_ListAtTenantScope", + "description": "Gets all resource providers for the tenant.", + "parameters": [ + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The properties to include in the results. For example, use &$expand=metadata in the query string to retrieve resource provider metadata. To include property aliases in response, use $expand=resourceTypes/aliases." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource providers.", + "schema": { + "$ref": "#/definitions/ProviderListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}": { + "get": { + "tags": [ + "Providers" + ], + "operationId": "Providers_Get", + "description": "Gets the specified resource provider.", + "parameters": [ + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The $expand query parameter. For example, to include property aliases in response, use $expand=resourceTypes/aliases." + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the resource provider.", + "schema": { + "$ref": "#/definitions/Provider" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get provider.": { + "$ref": "./examples/GetProvider.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/resourceTypes": { + "get": { + "tags": [ + "Providers" + ], + "operationId": "ProviderResourceTypes_List", + "description": "List the resource types for a specified resource provider.", + "parameters": [ + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The $expand query parameter. For example, to include property aliases in response, use $expand=resourceTypes/aliases." + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns resource types information for the resource provider.", + "schema": { + "$ref": "#/definitions/ProviderResourceTypeListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get provider resource types.": { + "$ref": "./examples/GetProviderResourceTypes.json" + } + } + } + }, + "/providers/{resourceProviderNamespace}": { + "get": { + "tags": [ + "Providers" + ], + "x-ms-examples": { + "Get a resource provider at tenant scope": { + "$ref": "./examples/GetNamedProviderAtTenant.json" + } + }, + "operationId": "Providers_GetAtTenantScope", + "description": "Gets the specified resource provider at the tenant level.", + "parameters": [ + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The $expand query parameter. For example, to include property aliases in response, use $expand=resourceTypes/aliases." + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the resource provider.", + "schema": { + "$ref": "#/definitions/Provider" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources": { + "get": { + "tags": [ + "ResourceGroups" + ], + "operationId": "Resources_ListByResourceGroup", + "description": "Get all the resources for a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group with the resources to get.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation.

The properties you can use for eq (equals) or ne (not equals) are: location, resourceType, name, resourceGroup, identity, identity/principalId, plan, plan/publisher, plan/product, plan/name, plan/version, and plan/promotionCode.

For example, to filter by a resource type, use: $filter=resourceType eq 'Microsoft.Network/virtualNetworks'

You can use substringof(value, property) in the filter. The properties you can use for substring are: name and resourceGroup.

For example, to get all resources with 'demo' anywhere in the name, use: $filter=substringof('demo', name)

You can link more than one substringof together by adding and/or operators.

You can filter by tag names and values. For example, to filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'. When you filter by a tag name and value, the tags for each resource are not returned in the results.

You can use some properties together when filtering. The combinations you can use are: substringof and/or resourceType, plan and plan/publisher and plan/name, identity and identity/principalId." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The number of results to return. If null is passed, returns all resources." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resources", + "schema": { + "$ref": "#/definitions/ResourceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/GenericResourceFilter" + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}": { + "head": { + "tags": [ + "ResourceGroups" + ], + "operationId": "ResourceGroups_CheckExistence", + "description": "Checks whether a resource group exists.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group to check. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "ResourceGroups" + ], + "x-ms-examples": { + "Create or update a resource group": { + "$ref": "./examples/CreateResourceGroup.json" + } + }, + "operationId": "ResourceGroups_CreateOrUpdate", + "description": "Creates or updates a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group to create or update. Can include alphanumeric, underscore, parentheses, hyphen, period (except at end), and Unicode characters that match the allowed characters.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ResourceGroup" + }, + "description": "Parameters supplied to the create or update a resource group." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the new resource group.", + "schema": { + "$ref": "#/definitions/ResourceGroup" + } + }, + "201": { + "description": "Created - Returns information about the new resource group.", + "schema": { + "$ref": "#/definitions/ResourceGroup" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "ResourceGroups" + ], + "operationId": "ResourceGroups_Delete", + "summary": "Deletes a resource group.", + "description": "When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of its template deployments and currently stored operations.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group to delete. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "forceDeletionTypes", + "in": "query", + "required": false, + "type": "string", + "description": "The resource types you want to force delete. Currently, only the following is supported: forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "x-ms-examples": { + "Force delete all the Virtual Machines in a resource group": { + "$ref": "./examples/ForceDeleteVMsInResourceGroup.json" + }, + "Force delete all the Virtual Machines and Virtual Machine Scale Sets in a resource group": { + "$ref": "./examples/ForceDeleteVMsAndVMSSInResourceGroup.json" + } + }, + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted", + "headers": { + "location": { + "type": "string", + "description": "URL to get status of this long-running operation." + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "ResourceGroups" + ], + "operationId": "ResourceGroups_Get", + "description": "Gets a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group to get. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the resource group.", + "schema": { + "$ref": "#/definitions/ResourceGroup" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "patch": { + "tags": [ + "ResourceGroups" + ], + "operationId": "ResourceGroups_Update", + "summary": "Updates a resource group.", + "description": "Resource groups can be updated through a simple PATCH operation to a group address. The format of the request is the same as that for creating a resource group. If a field is unspecified, the current value is retained.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group to update. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ResourceGroupPatchable" + }, + "description": "Parameters supplied to update a resource group." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the resource group.", + "schema": { + "$ref": "#/definitions/ResourceGroup" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate": { + "post": { + "tags": [ + "ResourceGroups" + ], + "operationId": "ResourceGroups_ExportTemplate", + "description": "Captures the specified resource group as a template.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ExportTemplateRequest" + }, + "description": "Parameters for exporting the template." + } + ], + "x-ms-examples": { + "Export a resource group": { + "$ref": "./examples/ExportResourceGroup.json" + }, + "Export a resource group with filtering": { + "$ref": "./examples/ExportResourceGroupWithFiltering.json" + }, + "Export a resource group as Bicep": { + "$ref": "./examples/ExportResourceGroupAsBicep.json" + } + }, + "responses": { + "200": { + "description": "OK - Returns the result of the export.", + "schema": { + "$ref": "#/definitions/ResourceGroupExportResult" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups": { + "get": { + "tags": [ + "ResourceGroups" + ], + "operationId": "ResourceGroups_List", + "description": "Gets all the resource groups for a subscription.", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation.

You can filter by tag names and values. For example, to filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'" + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The number of results to return. If null is passed, returns all resource groups." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource groups.", + "schema": { + "$ref": "#/definitions/ResourceGroupListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/ResourceGroupFilter" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources": { + "post": { + "tags": [ + "Resources" + ], + "operationId": "Resources_MoveResources", + "summary": "Moves resources from one resource group to another resource group.", + "description": "The resources to be moved must be in the same source resource group in the source subscription being used. The target resource group may be in a different subscription. When moving resources, both the source group and the target group are locked for the duration of the operation. Write and delete operations are blocked on the groups until the move completes. ", + "parameters": [ + { + "name": "sourceResourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group from the source subscription containing the resources to be moved.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ResourcesMoveInfo" + }, + "description": "Parameters for moving resources." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/validateMoveResources": { + "post": { + "tags": [ + "Resources" + ], + "operationId": "Resources_ValidateMoveResources", + "summary": "Validates whether resources can be moved from one resource group to another resource group.", + "description": "This operation checks whether the specified resources can be moved to the target. The resources to be moved must be in the same source resource group in the source subscription being used. The target resource group may be in a different subscription. If validation succeeds, it returns HTTP response code 204 (no content). If validation fails, it returns HTTP response code 409 (Conflict) with an error message. Retrieve the URL in the Location header value to check the result of the long-running operation.", + "parameters": [ + { + "name": "sourceResourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group from the source subscription containing the resources to be validated for move.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ResourcesMoveInfo" + }, + "description": "Parameters for moving resources." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resources": { + "get": { + "tags": [ + "Resources" + ], + "operationId": "Resources_List", + "description": "Get all the resources in a subscription.", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation.

Filter comparison operators include `eq` (equals) and `ne` (not equals) and may be used with the following properties: `location`, `resourceType`, `name`, `resourceGroup`, `identity`, `identity/principalId`, `plan`, `plan/publisher`, `plan/product`, `plan/name`, `plan/version`, and `plan/promotionCode`.

For example, to filter by a resource type, use `$filter=resourceType eq 'Microsoft.Network/virtualNetworks'`


`substringof(value, property)` can be used to filter for substrings of the following currently-supported properties: `name` and `resourceGroup`

For example, to get all resources with 'demo' anywhere in the resource name, use `$filter=substringof('demo', name)`

Multiple substring operations can also be combined using `and`/`or` operators.

Note that any truncated number of results queried via `$top` may also not be compatible when using a filter.


Resources can be filtered by tag names and values. For example, to filter for a tag name and value, use `$filter=tagName eq 'tag1' and tagValue eq 'Value1'`. Note that when resources are filtered by tag name and value, the original tags for each resource will not be returned in the results. Any list of additional properties queried via `$expand` may also not be compatible when filtering by tag names/values.

For tag names only, resources can be filtered by prefix using the following syntax: `$filter=startswith(tagName, 'depart')`. This query will return all resources with a tag name prefixed by the phrase `depart` (i.e.`department`, `departureDate`, `departureTime`, etc.)


Note that some properties can be combined when filtering resources, which include the following: `substringof() and/or resourceType`, `plan and plan/publisher and plan/name`, and `identity and identity/principalId`." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The number of recommendations per page if a paged version of this API is being used." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resources.", + "schema": { + "$ref": "#/definitions/ResourceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/GenericResourceFilter" + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}": { + "head": { + "tags": [ + "Resources" + ], + "operationId": "Resources_CheckExistence", + "description": "Checks whether a resource exists.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the resource to check. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The resource provider of the resource to check." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource to check whether it exists." + }, + { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation.", + "x-ms-api-version": false + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "Resources" + ], + "operationId": "Resources_Delete", + "description": "Deletes a resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group that contains the resource to delete. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource to delete." + }, + { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation.", + "x-ms-api-version": false + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Resources" + ], + "operationId": "Resources_CreateOrUpdate", + "description": "Creates a resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group for the resource. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type of the resource to create.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource to create." + }, + { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation.", + "x-ms-api-version": false + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GenericResource" + }, + "description": "Parameters for creating or updating the resource." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the resource.", + "schema": { + "$ref": "#/definitions/GenericResource" + } + }, + "201": { + "description": "Created - Returns information about the resource.", + "schema": { + "$ref": "#/definitions/GenericResource" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Resources" + ], + "operationId": "Resources_Update", + "description": "Updates a resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group for the resource. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type of the resource to update.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource to update." + }, + { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation.", + "x-ms-api-version": false + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GenericResource" + }, + "description": "Parameters for updating the resource." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the resource.", + "schema": { + "$ref": "#/definitions/GenericResource" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Resources" + ], + "operationId": "Resources_Get", + "description": "Gets a resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the resource to get. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type of the resource.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource to get." + }, + { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation.", + "x-ms-api-version": false + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the resource.", + "schema": { + "$ref": "#/definitions/GenericResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/{resourceId}": { + "head": { + "tags": [ + "Resources" + ], + "operationId": "Resources_CheckExistenceById", + "description": "Checks by ID whether a resource exists. This API currently works only for a limited set of Resource providers. In the event that a Resource provider does not implement this API, ARM will respond with a 405. The alternative then is to use the GET API to check for the existence of the resource.", + "parameters": [ + { + "name": "resourceId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation.", + "x-ms-api-version": false + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "Resources" + ], + "operationId": "Resources_DeleteById", + "description": "Deletes a resource by ID.", + "parameters": [ + { + "name": "resourceId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation.", + "x-ms-api-version": false + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "put": { + "tags": [ + "Resources" + ], + "operationId": "Resources_CreateOrUpdateById", + "description": "Create a resource by ID.", + "parameters": [ + { + "name": "resourceId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation.", + "x-ms-api-version": false + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GenericResource" + }, + "description": "Create or update resource parameters." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the resource.", + "schema": { + "$ref": "#/definitions/GenericResource" + } + }, + "201": { + "description": "Created - Returns information about the resource.", + "schema": { + "$ref": "#/definitions/GenericResource" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Resources" + ], + "operationId": "Resources_UpdateById", + "description": "Updates a resource by ID.", + "parameters": [ + { + "name": "resourceId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation.", + "x-ms-api-version": false + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GenericResource" + }, + "description": "Update resource parameters." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the resource.", + "schema": { + "$ref": "#/definitions/GenericResource" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Resources" + ], + "operationId": "Resources_GetById", + "description": "Gets a resource by ID.", + "parameters": [ + { + "name": "resourceId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}", + "x-ms-skip-url-encoding": true + }, + { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation.", + "x-ms-api-version": false + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the resource.", + "schema": { + "$ref": "#/definitions/GenericResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}": { + "delete": { + "tags": [ + "Tags" + ], + "operationId": "Tags_DeleteValue", + "summary": "Deletes a predefined tag value for a predefined tag name.", + "description": "This operation allows deleting a value from the list of predefined values for an existing predefined tag name. The value being deleted must not be in use as a tag value for the given tag name for any resource.", + "parameters": [ + { + "name": "tagName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the tag." + }, + { + "name": "tagValue", + "in": "path", + "required": true, + "type": "string", + "description": "The value of the tag to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Predefined tag value successfully deleted." + }, + "204": { + "description": "Predefined tag value did not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "Tags" + ], + "operationId": "Tags_CreateOrUpdateValue", + "summary": "Creates a predefined value for a predefined tag name.", + "description": "This operation allows adding a value to the list of predefined values for an existing predefined tag name. A tag value can have a maximum of 256 characters.", + "parameters": [ + { + "name": "tagName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the tag." + }, + { + "name": "tagValue", + "in": "path", + "required": true, + "type": "string", + "description": "The value of the tag to create." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Predefined tag value already exists. Returns information about the predefined tag value.", + "schema": { + "$ref": "#/definitions/TagValue" + } + }, + "201": { + "description": "Predefined tag value successfully created. Returns information about the predefined tag value.", + "schema": { + "$ref": "#/definitions/TagValue" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/tagNames/{tagName}": { + "put": { + "tags": [ + "Tags" + ], + "operationId": "Tags_CreateOrUpdate", + "summary": "Creates a predefined tag name.", + "description": "This operation allows adding a name to the list of predefined tag names for the given subscription. A tag name can have a maximum of 512 characters and is case-insensitive. Tag names cannot have the following prefixes which are reserved for Azure use: 'microsoft', 'azure', 'windows'.", + "parameters": [ + { + "name": "tagName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the tag to create." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Predefined tag name already exists. Returns information about the predefined tag name.", + "schema": { + "$ref": "#/definitions/TagDetails" + } + }, + "201": { + "description": "Predefined tag name successfully created. Returns information about the predefined tag name.", + "schema": { + "$ref": "#/definitions/TagDetails" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "Tags" + ], + "operationId": "Tags_Delete", + "summary": "Deletes a predefined tag name.", + "description": "This operation allows deleting a name from the list of predefined tag names for the given subscription. The name being deleted must not be in use as a tag name for any resource. All predefined values for the given name must have already been deleted.", + "parameters": [ + { + "name": "tagName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the tag." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Predefined tag name successfully deleted." + }, + "204": { + "description": "Predefined tag name did not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/tagNames": { + "get": { + "tags": [ + "Tags" + ], + "operationId": "Tags_List", + "summary": "Gets a summary of tag usage under the subscription.", + "description": "This operation performs a union of predefined tags, resource tags, resource group tags and subscription tags, and returns a summary of usage for each tag name and value under the given subscription. In case of a large number of tags, this operation may return a previously cached result.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of tag names and values.", + "schema": { + "$ref": "#/definitions/TagsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}": { + "get": { + "tags": [ + "DeploymentOperations" + ], + "operationId": "DeploymentOperations_GetAtScope", + "description": "Gets a deployments operation.", + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "operationId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the operation to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the deployment operation.", + "schema": { + "$ref": "#/definitions/DeploymentOperation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations": { + "get": { + "tags": [ + "DeploymentOperations" + ], + "operationId": "DeploymentOperations_ListAtScope", + "description": "Gets all deployments operations for a deployment.", + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The number of results to return." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Return an array of deployment operations.", + "schema": { + "$ref": "#/definitions/DeploymentOperationsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}": { + "get": { + "tags": [ + "DeploymentOperations" + ], + "operationId": "DeploymentOperations_GetAtTenantScope", + "description": "Gets a deployments operation.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "operationId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the operation to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the deployment operation.", + "schema": { + "$ref": "#/definitions/DeploymentOperation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/providers/Microsoft.Resources/deployments/{deploymentName}/operations": { + "get": { + "tags": [ + "DeploymentOperations" + ], + "operationId": "DeploymentOperations_ListAtTenantScope", + "description": "Gets all deployments operations for a deployment.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The number of results to return." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Return an array of deployment operations.", + "schema": { + "$ref": "#/definitions/DeploymentOperationsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}": { + "get": { + "tags": [ + "DeploymentOperations" + ], + "operationId": "DeploymentOperations_GetAtManagementGroupScope", + "description": "Gets a deployments operation.", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "operationId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the operation to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the deployment operation.", + "schema": { + "$ref": "#/definitions/DeploymentOperation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations": { + "get": { + "tags": [ + "DeploymentOperations" + ], + "operationId": "DeploymentOperations_ListAtManagementGroupScope", + "description": "Gets all deployments operations for a deployment.", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The number of results to return." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Return an array of deployment operations.", + "schema": { + "$ref": "#/definitions/DeploymentOperationsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}": { + "get": { + "tags": [ + "DeploymentOperations" + ], + "operationId": "DeploymentOperations_GetAtSubscriptionScope", + "description": "Gets a deployments operation.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "operationId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the operation to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the deployment operation.", + "schema": { + "$ref": "#/definitions/DeploymentOperation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations": { + "get": { + "tags": [ + "DeploymentOperations" + ], + "operationId": "DeploymentOperations_ListAtSubscriptionScope", + "description": "Gets all deployments operations for a deployment.", + "parameters": [ + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The number of results to return." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Return an array of deployment operations.", + "schema": { + "$ref": "#/definitions/DeploymentOperationsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}": { + "get": { + "tags": [ + "DeploymentOperations" + ], + "operationId": "DeploymentOperations_Get", + "description": "Gets a deployments operation.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "operationId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the operation to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the deployment operation.", + "schema": { + "$ref": "#/definitions/DeploymentOperation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations": { + "get": { + "tags": [ + "DeploymentOperations" + ], + "operationId": "DeploymentOperations_List", + "description": "Gets all deployments operations for a deployment.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/DeploymentNameParameter" + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The number of results to return." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Return an array of deployment operations.", + "schema": { + "$ref": "#/definitions/DeploymentOperationsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Resources/calculateTemplateHash": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_CalculateTemplateHash", + "description": "Calculate the hash of the given template.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "template", + "in": "body", + "required": true, + "schema": { + "type": "object" + }, + "description": "The template provided to calculate hash." + } + ], + "x-ms-examples": { + "Calculate template hash": { + "$ref": "./examples/CalculateTemplateHash.json" + } + }, + "responses": { + "200": { + "description": "OK - Returns the hash.", + "schema": { + "$ref": "#/definitions/TemplateHashResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Resources/tags/default": { + "put": { + "tags": [ + "Tags" + ], + "operationId": "Tags_CreateOrUpdateAtScope", + "summary": "Creates or updates the entire set of tags on a resource or subscription.", + "description": "This operation allows adding or replacing the entire set of tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags.", + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TagsResource" + } + } + ], + "responses": { + "200": { + "description": "Tags updated successfully. Returns tags from the specified object.", + "schema": { + "$ref": "#/definitions/TagsResource" + } + }, + "202": { + "headers": { + "Location": { + "type": "string", + "description": "URL to get status of this long-running operation." + } + }, + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update tags on a resource": { + "$ref": "./examples/PutTagsResource.json" + }, + "Update tags on a subscription": { + "$ref": "./examples/PutTagsSubscription.json" + } + } + }, + "patch": { + "tags": [ + "Tags" + ], + "operationId": "Tags_UpdateAtScope", + "summary": "Selectively updates the set of tags on a resource or subscription.", + "description": "This operation allows replacing, merging or selectively deleting tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows adding tags with new names and updating the values of tags with existing names. The 'delete' option allows selectively deleting tags based on given names or name/value pairs.", + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TagsPatchResource" + } + } + ], + "responses": { + "200": { + "description": "Tags updated successfully. Returns tags from the specified object.", + "schema": { + "$ref": "#/definitions/TagsResource" + } + }, + "202": { + "headers": { + "Location": { + "type": "string", + "description": "URL to get status of this long-running operation." + } + }, + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update tags on a resource": { + "$ref": "./examples/PatchTagsResource.json" + }, + "Update tags on a subscription": { + "$ref": "./examples/PatchTagsSubscription.json" + } + } + }, + "get": { + "tags": [ + "Tags" + ], + "operationId": "Tags_GetAtScope", + "summary": "Gets the entire set of tags on a resource or subscription.", + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Returns tags from the specified object.", + "schema": { + "$ref": "#/definitions/TagsResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get tags on a resource": { + "$ref": "./examples/GetTagsResource.json" + }, + "Get tags on a subscription": { + "$ref": "./examples/GetTagsSubscription.json" + } + } + }, + "delete": { + "tags": [ + "Tags" + ], + "operationId": "Tags_DeleteAtScope", + "summary": "Deletes the entire set of tags on a resource or subscription.", + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Tags successfully deleted." + }, + "202": { + "headers": { + "Location": { + "type": "string", + "description": "URL to get status of this long-running operation." + } + }, + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update tags on a resource": { + "$ref": "./examples/DeleteTagsResource.json" + }, + "Update tags on a subscription": { + "$ref": "./examples/DeleteTagsSubscription.json" + } + } + } + } + }, + "definitions": { + "DeploymentExtendedFilter": { + "properties": { + "provisioningState": { + "type": "string", + "description": "The provisioning state." + } + }, + "description": "Deployment filter." + }, + "GenericResourceFilter": { + "properties": { + "resourceType": { + "type": "string", + "description": "The resource type." + }, + "tagname": { + "type": "string", + "description": "The tag name." + }, + "tagvalue": { + "type": "string", + "description": "The tag value." + } + }, + "description": "Resource filter." + }, + "ResourceGroupFilter": { + "properties": { + "tagName": { + "type": "string", + "description": "The tag name." + }, + "tagValue": { + "type": "string", + "description": "The tag value." + } + }, + "description": "Resource group filter." + }, + "TemplateLink": { + "properties": { + "uri": { + "type": "string", + "description": "The URI of the template to deploy. Use either the uri or id property, but not both." + }, + "id": { + "type": "string", + "description": "The resource id of a Template Spec. Use either the id or uri property, but not both." + }, + "relativePath": { + "type": "string", + "description": "The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec. If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs" + }, + "contentVersion": { + "type": "string", + "description": "If included, must match the ContentVersion in the template." + }, + "queryString": { + "type": "string", + "description": "The query string (for example, a SAS token) to be used with the templateLink URI." + } + }, + "description": "Entity representing the reference to the template." + }, + "ParametersLink": { + "properties": { + "uri": { + "type": "string", + "description": "The URI of the parameters file." + }, + "contentVersion": { + "type": "string", + "description": "If included, must match the ContentVersion in the template." + } + }, + "required": [ + "uri" + ], + "description": "Entity representing the reference to the deployment parameters." + }, + "DeploymentProperties": { + "properties": { + "template": { + "type": "object", + "description": "The template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both." + }, + "templateLink": { + "$ref": "#/definitions/TemplateLink", + "description": "The URI of the template. Use either the templateLink property or the template property, but not both." + }, + "parameters": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/DeploymentParameter" + }, + "description": "Name and value pairs that define the deployment parameters for the template. You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string." + }, + "parametersLink": { + "$ref": "#/definitions/ParametersLink", + "description": "The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both." + }, + "mode": { + "type": "string", + "description": "The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources.", + "enum": [ + "Incremental", + "Complete" + ], + "x-ms-enum": { + "name": "DeploymentMode", + "modelAsString": false + } + }, + "debugSetting": { + "$ref": "#/definitions/DebugSetting", + "description": "The debug setting of the deployment." + }, + "onErrorDeployment": { + "$ref": "#/definitions/OnErrorDeployment", + "description": "The deployment on error behavior." + }, + "expressionEvaluationOptions": { + "$ref": "#/definitions/ExpressionEvaluationOptions", + "description": "Specifies whether template expressions are evaluated within the scope of the parent template or nested template. Only applicable to nested templates. If not specified, default value is outer." + }, + "validationLevel": { + "$ref": "#/definitions/ValidationLevel", + "description": "The validation level of the deployment" + } + }, + "required": [ + "mode" + ], + "description": "Deployment properties." + }, + "DeploymentParameter": { + "type": "object", + "properties": { + "value": { + "description": "Input value to the parameter ." + }, + "reference": { + "$ref": "#/definitions/KeyVaultParameterReference", + "description": "Azure Key Vault parameter reference." + } + }, + "description": "Deployment parameter for the template." + }, + "KeyVaultParameterReference": { + "type": "object", + "properties": { + "keyVault": { + "$ref": "#/definitions/KeyVaultReference", + "description": "Azure Key Vault reference." + }, + "secretName": { + "type": "string", + "description": "Azure Key Vault secret name." + }, + "secretVersion": { + "type": "string", + "description": "Azure Key Vault secret version." + } + }, + "required": [ + "keyVault", + "secretName" + ], + "description": "Azure Key Vault parameter reference." + }, + "KeyVaultReference": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Azure Key Vault resource id." + } + }, + "required": [ + "id" + ], + "description": "Azure Key Vault reference." + }, + "DebugSetting": { + "properties": { + "detailLevel": { + "type": "string", + "description": "Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment operations." + } + }, + "description": "The debug setting." + }, + "Deployment": { + "properties": { + "location": { + "type": "string", + "description": "The location to store the deployment data." + }, + "properties": { + "$ref": "#/definitions/DeploymentProperties", + "description": "The deployment properties." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Deployment tags" + } + }, + "required": [ + "properties" + ], + "description": "Deployment operation parameters." + }, + "ScopedDeployment": { + "properties": { + "location": { + "type": "string", + "description": "The location to store the deployment data." + }, + "properties": { + "$ref": "#/definitions/DeploymentProperties", + "description": "The deployment properties." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Deployment tags" + } + }, + "required": [ + "location", + "properties" + ], + "description": "Deployment operation parameters." + }, + "DeploymentExportResult": { + "properties": { + "template": { + "type": "object", + "description": "The template content." + } + }, + "description": "The deployment export result. " + }, + "DeploymentWhatIf": { + "properties": { + "location": { + "type": "string", + "description": "The location to store the deployment data." + }, + "properties": { + "$ref": "#/definitions/DeploymentWhatIfProperties", + "description": "The deployment properties." + } + }, + "required": [ + "properties" + ], + "description": "Deployment What-if operation parameters." + }, + "ScopedDeploymentWhatIf": { + "properties": { + "location": { + "type": "string", + "description": "The location to store the deployment data." + }, + "properties": { + "$ref": "#/definitions/DeploymentWhatIfProperties", + "description": "The deployment properties." + } + }, + "required": [ + "location", + "properties" + ], + "description": "Deployment What-if operation parameters." + }, + "DeploymentWhatIfProperties": { + "properties": { + "whatIfSettings": { + "$ref": "#/definitions/DeploymentWhatIfSettings", + "description": "Optional What-If operation settings." + } + }, + "allOf": [ + { + "$ref": "#/definitions/DeploymentProperties" + } + ], + "description": "Deployment What-if properties." + }, + "DeploymentWhatIfSettings": { + "properties": { + "resultFormat": { + "type": "string", + "description": "The format of the What-If results", + "enum": [ + "ResourceIdOnly", + "FullResourcePayloads" + ], + "x-ms-enum": { + "name": "WhatIfResultFormat", + "modelAsString": false + } + } + }, + "description": "Deployment What-If operation settings." + }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "An error response for a resource management request." + }, + "ApiProfile": { + "properties": { + "profileVersion": { + "type": "string", + "readOnly": true, + "description": "The profile version." + }, + "apiVersion": { + "type": "string", + "readOnly": true, + "description": "The API version." + } + } + }, + "AliasPathMetadata": { + "properties": { + "type": { + "type": "string", + "readOnly": true, + "enum": [ + "NotSpecified", + "Any", + "String", + "Object", + "Array", + "Integer", + "Number", + "Boolean" + ], + "x-ms-enum": { + "name": "AliasPathTokenType", + "modelAsString": true, + "values": [ + { + "value": "NotSpecified", + "description": "The token type is not specified." + }, + { + "value": "Any", + "description": "The token type can be anything." + }, + { + "value": "String", + "description": "The token type is string." + }, + { + "value": "Object", + "description": "The token type is object." + }, + { + "value": "Array", + "description": "The token type is array." + }, + { + "value": "Integer", + "description": "The token type is integer." + }, + { + "value": "Number", + "description": "The token type is number." + }, + { + "value": "Boolean", + "description": "The token type is boolean." + } + ] + }, + "description": "The type of the token that the alias path is referring to." + }, + "attributes": { + "type": "string", + "readOnly": true, + "enum": [ + "None", + "Modifiable" + ], + "x-ms-enum": { + "name": "AliasPathAttributes", + "modelAsString": true, + "values": [ + { + "value": "None", + "description": "The token that the alias path is referring to has no attributes." + }, + { + "value": "Modifiable", + "description": "The token that the alias path is referring to is modifiable by policies with 'modify' effect." + } + ] + }, + "description": "The attributes of the token that the alias path is referring to." + } + } + }, + "AliasPath": { + "properties": { + "path": { + "type": "string", + "description": "The path of an alias." + }, + "apiVersions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The API versions." + }, + "pattern": { + "$ref": "#/definitions/AliasPattern", + "description": "The pattern for an alias path." + }, + "metadata": { + "readOnly": true, + "$ref": "#/definitions/AliasPathMetadata", + "description": "The metadata of the alias path. If missing, fall back to the default metadata of the alias." + } + }, + "description": "The type of the paths for alias." + }, + "AliasPattern": { + "properties": { + "phrase": { + "type": "string", + "description": "The alias pattern phrase." + }, + "variable": { + "type": "string", + "description": "The alias pattern variable." + }, + "type": { + "type": "string", + "enum": [ + "NotSpecified", + "Extract" + ], + "x-ms-enum": { + "name": "AliasPatternType", + "modelAsString": false, + "values": [ + { + "value": "NotSpecified", + "description": "NotSpecified is not allowed." + }, + { + "value": "Extract", + "description": "Extract is the only allowed value." + } + ] + }, + "description": "The type of alias pattern" + } + }, + "description": "The type of the pattern for an alias path." + }, + "Alias": { + "properties": { + "name": { + "type": "string", + "description": "The alias name." + }, + "paths": { + "type": "array", + "items": { + "$ref": "#/definitions/AliasPath" + }, + "x-ms-identifiers": [], + "description": "The paths for an alias." + }, + "type": { + "type": "string", + "description": "The type of the alias.", + "enum": [ + "NotSpecified", + "PlainText", + "Mask" + ], + "x-ms-enum": { + "name": "AliasType", + "modelAsString": false, + "values": [ + { + "value": "NotSpecified", + "description": "Alias type is unknown (same as not providing alias type)." + }, + { + "value": "PlainText", + "description": "Alias value is not secret." + }, + { + "value": "Mask", + "description": "Alias value is secret." + } + ] + } + }, + "defaultPath": { + "type": "string", + "description": "The default path for an alias." + }, + "defaultPattern": { + "$ref": "#/definitions/AliasPattern", + "description": "The default pattern for an alias." + }, + "defaultMetadata": { + "readOnly": true, + "$ref": "#/definitions/AliasPathMetadata", + "description": "The default alias path metadata. Applies to the default path and to any alias path that doesn't have metadata" + } + }, + "description": "The alias type. " + }, + "ProviderExtendedLocation": { + "properties": { + "location": { + "type": "string", + "description": "The azure location." + }, + "type": { + "type": "string", + "description": "The extended location type." + }, + "extendedLocations": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The extended locations for the azure location." + } + }, + "description": "The provider extended location. " + }, + "ProviderResourceType": { + "properties": { + "resourceType": { + "type": "string", + "description": "The resource type." + }, + "locations": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The collection of locations where this resource type can be created." + }, + "locationMappings": { + "type": "array", + "items": { + "$ref": "#/definitions/ProviderExtendedLocation" + }, + "x-ms-identifiers": [ + "location", + "type" + ], + "description": "The location mappings that are supported by this resource type." + }, + "aliases": { + "type": "array", + "items": { + "$ref": "#/definitions/Alias" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "The aliases that are supported by this resource type." + }, + "apiVersions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The API version." + }, + "defaultApiVersion": { + "type": "string", + "readOnly": true, + "description": "The default API version." + }, + "zoneMappings": { + "type": "array", + "items": { + "$ref": "#/definitions/ZoneMapping" + }, + "x-ms-identifiers": [ + "location" + ] + }, + "apiProfiles": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ApiProfile" + }, + "x-ms-identifiers": [ + "apiVersion", + "profileVersion" + ], + "description": "The API profiles for the resource provider." + }, + "capabilities": { + "type": "string", + "description": "The additional capabilities offered by this resource type." + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "string", + "description": "The additional properties. " + }, + "description": "The properties." + } + }, + "description": "Resource type managed by the resource provider." + }, + "Provider": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The provider ID." + }, + "namespace": { + "type": "string", + "description": "The namespace of the resource provider." + }, + "registrationState": { + "readOnly": true, + "type": "string", + "description": "The registration state of the resource provider." + }, + "registrationPolicy": { + "readOnly": true, + "type": "string", + "description": "The registration policy of the resource provider." + }, + "resourceTypes": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ProviderResourceType" + }, + "x-ms-identifiers": [ + "resourceType" + ], + "description": "The collection of provider resource types." + }, + "providerAuthorizationConsentState": { + "type": "string", + "enum": [ + "NotSpecified", + "Required", + "NotRequired", + "Consented" + ], + "description": "The provider authorization consent state.", + "x-ms-enum": { + "name": "ProviderAuthorizationConsentState", + "modelAsString": true + } + } + }, + "description": "Resource provider information." + }, + "BasicDependency": { + "properties": { + "id": { + "type": "string", + "description": "The ID of the dependency." + }, + "resourceType": { + "type": "string", + "description": "The dependency resource type." + }, + "resourceName": { + "type": "string", + "description": "The dependency resource name." + } + }, + "description": "Deployment dependency information." + }, + "Dependency": { + "properties": { + "dependsOn": { + "type": "array", + "items": { + "$ref": "#/definitions/BasicDependency" + }, + "description": "The list of dependencies." + }, + "id": { + "type": "string", + "description": "The ID of the dependency." + }, + "resourceType": { + "type": "string", + "description": "The dependency resource type." + }, + "resourceName": { + "type": "string", + "description": "The dependency resource name." + } + }, + "description": "Deployment dependency information." + }, + "DeploymentDiagnosticsDefinition": { + "type": "object", + "required": [ + "level", + "code", + "message" + ], + "properties": { + "level": { + "type": "string", + "readOnly": true, + "description": "Denotes the additional response level.", + "enum": [ + "Warning", + "Info", + "Error" + ], + "x-ms-enum": { + "name": "Level", + "modelAsString": true + } + }, + "code": { + "readOnly": true, + "type": "string", + "description": "The error code." + }, + "message": { + "readOnly": true, + "type": "string", + "description": "The error message." + }, + "target": { + "readOnly": true, + "type": "string", + "description": "The error target." + }, + "additionalInfo": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorAdditionalInfo" + }, + "x-ms-identifiers": [], + "description": "The error additional info." + } + } + }, + "DeploymentPropertiesExtended": { + "properties": { + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "Denotes the state of provisioning.", + "enum": [ + "NotSpecified", + "Accepted", + "Running", + "Ready", + "Creating", + "Created", + "Deleting", + "Deleted", + "Canceled", + "Failed", + "Succeeded", + "Updating" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "correlationId": { + "readOnly": true, + "type": "string", + "description": "The correlation ID of the deployment." + }, + "timestamp": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The timestamp of the template deployment." + }, + "duration": { + "readOnly": true, + "type": "string", + "description": "The duration of the template deployment." + }, + "outputs": { + "readOnly": true, + "type": "object", + "description": "Key/value pairs that represent deployment output." + }, + "providers": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/Provider" + }, + "description": "The list of resource providers needed for the deployment." + }, + "dependencies": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/Dependency" + }, + "description": "The list of deployment dependencies." + }, + "templateLink": { + "readOnly": true, + "$ref": "#/definitions/TemplateLink", + "description": "The URI referencing the template." + }, + "parameters": { + "readOnly": true, + "type": "object", + "description": "Deployment parameters. " + }, + "parametersLink": { + "readOnly": true, + "$ref": "#/definitions/ParametersLink", + "description": "The URI referencing the parameters. " + }, + "mode": { + "readOnly": true, + "type": "string", + "description": "The deployment mode. Possible values are Incremental and Complete.", + "enum": [ + "Incremental", + "Complete" + ], + "x-ms-enum": { + "name": "DeploymentMode", + "modelAsString": false + } + }, + "debugSetting": { + "readOnly": true, + "$ref": "#/definitions/DebugSetting", + "description": "The debug setting of the deployment." + }, + "onErrorDeployment": { + "readOnly": true, + "$ref": "#/definitions/OnErrorDeploymentExtended", + "description": "The deployment on error behavior." + }, + "templateHash": { + "readOnly": true, + "type": "string", + "description": "The hash produced for the template." + }, + "outputResources": { + "readOnly": true, + "type": "array", + "description": "Array of provisioned resources.", + "items": { + "$ref": "#/definitions/ResourceReference", + "description": "Details of provisioned resources." + } + }, + "validatedResources": { + "readOnly": true, + "type": "array", + "description": "Array of validated resources.", + "items": { + "$ref": "#/definitions/ResourceReference", + "description": "Details of validated resources." + } + }, + "error": { + "readOnly": true, + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", + "description": "The deployment error." + }, + "diagnostics": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/DeploymentDiagnosticsDefinition" + }, + "description": "Contains diagnostic information collected during validation process." + }, + "validationLevel": { + "$ref": "#/definitions/ValidationLevel", + "description": "The validation level of the deployment" + } + }, + "description": "Deployment properties with additional details." + }, + "ResourceReference": { + "description": "The resource Id model.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The fully qualified resource Id." + } + } + }, + "OnErrorDeployment": { + "properties": { + "type": { + "type": "string", + "description": "The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment.", + "enum": [ + "LastSuccessful", + "SpecificDeployment" + ], + "x-ms-enum": { + "name": "OnErrorDeploymentType", + "modelAsString": false + } + }, + "deploymentName": { + "type": "string", + "description": "The deployment to be used on error case." + } + }, + "description": "Deployment on error behavior." + }, + "OnErrorDeploymentExtended": { + "properties": { + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The state of the provisioning for the on error deployment." + }, + "type": { + "type": "string", + "description": "The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment.", + "enum": [ + "LastSuccessful", + "SpecificDeployment" + ], + "x-ms-enum": { + "name": "OnErrorDeploymentType", + "modelAsString": false + } + }, + "deploymentName": { + "type": "string", + "description": "The deployment to be used on error case." + } + }, + "description": "Deployment on error behavior with additional details." + }, + "DeploymentExtended": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The ID of the deployment." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the deployment." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the deployment." + }, + "location": { + "type": "string", + "description": "the location of the deployment." + }, + "properties": { + "$ref": "#/definitions/DeploymentPropertiesExtended", + "description": "Deployment properties." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Deployment tags" + } + }, + "x-ms-azure-resource": true, + "description": "Deployment information." + }, + "DeploymentListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentExtended" + }, + "description": "An array of deployments." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of deployments." + }, + "ProviderListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Provider" + }, + "description": "An array of resource providers." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of resource providers." + }, + "ProviderResourceTypeListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ProviderResourceType" + }, + "x-ms-identifiers": [ + "resourceType" + ], + "description": "An array of resource types." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of resource types of a resource provider." + }, + "GenericResource": { + "properties": { + "plan": { + "$ref": "#/definitions/Plan", + "description": "The plan of the resource." + }, + "properties": { + "type": "object", + "description": "The resource properties." + }, + "kind": { + "type": "string", + "description": "The kind of the resource.", + "pattern": "^[-\\w\\._,\\(\\)]+$" + }, + "managedBy": { + "type": "string", + "description": "ID of the resource that manages this resource." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU of the resource." + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The identity of the resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Resource information." + }, + "ExtendedLocation": { + "properties": { + "type": { + "type": "string", + "enum": [ + "EdgeZone" + ], + "x-ms-enum": { + "name": "ExtendedLocationType", + "modelAsString": true + }, + "description": "The extended location type." + }, + "name": { + "type": "string", + "description": "The extended location name." + } + }, + "description": "Resource extended location." + }, + "GenericResourceExpanded": { + "properties": { + "createdTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The created time of the resource. This is only present if requested via the $expand query parameter." + }, + "changedTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The changed time of the resource. This is only present if requested via the $expand query parameter." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the resource. This is only present if requested via the $expand query parameter." + } + }, + "allOf": [ + { + "$ref": "#/definitions/GenericResource" + } + ], + "description": "Resource information." + }, + "Plan": { + "properties": { + "name": { + "type": "string", + "description": "The plan ID." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The offer ID." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + }, + "version": { + "type": "string", + "description": "The plan's version." + } + }, + "description": "Plan for the resource." + }, + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "The SKU name." + }, + "tier": { + "type": "string", + "description": "The SKU tier." + }, + "size": { + "type": "string", + "description": "The SKU size." + }, + "family": { + "type": "string", + "description": "The SKU family." + }, + "model": { + "type": "string", + "description": "The SKU model." + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The SKU capacity." + } + }, + "description": "SKU for the resource." + }, + "Identity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal ID of resource identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant ID of resource." + }, + "type": { + "type": "string", + "description": "The identity type.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "additionalProperties": { + "type": "object", + "x-ms-client-name": "IdentityUserAssignedIdentitiesValue", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "clientId": { + "readOnly": true, + "type": "string", + "description": "The client id of user assigned identity." + } + } + }, + "description": "The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "description": "Identity for the resource." + }, + "ResourceListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GenericResourceExpanded" + }, + "description": "An array of resources." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of resource groups." + }, + "ResourceGroup": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The ID of the resource group." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the resource group." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource group." + }, + "properties": { + "$ref": "#/definitions/ResourceGroupProperties", + "description": "The resource group properties." + }, + "location": { + "type": "string", + "description": "The location of the resource group. It cannot be changed after the resource group has been created. It must be one of the supported Azure locations." + }, + "managedBy": { + "type": "string", + "description": "The ID of the resource that manages this resource group." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string", + "description": "The additional properties. " + }, + "description": "The tags attached to the resource group." + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "Resource group information." + }, + "ResourceGroupPatchable": { + "properties": { + "name": { + "type": "string", + "description": "The name of the resource group." + }, + "properties": { + "$ref": "#/definitions/ResourceGroupProperties", + "description": "The resource group properties." + }, + "managedBy": { + "type": "string", + "description": "The ID of the resource that manages this resource group." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string", + "description": "The additional properties. " + }, + "description": "The tags attached to the resource group." + } + }, + "description": "Resource group information." + }, + "ResourceGroupProperties": { + "properties": { + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state. " + } + }, + "description": "The resource group properties." + }, + "ResourceGroupListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceGroup" + }, + "description": "An array of resource groups." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of resource groups." + }, + "ResourcesMoveInfo": { + "properties": { + "resources": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The IDs of the resources." + }, + "targetResourceGroup": { + "type": "string", + "description": "The target resource group." + } + }, + "description": "Parameters of move resources." + }, + "ExportTemplateRequest": { + "properties": { + "resources": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'." + }, + "options": { + "type": "string", + "description": "The export template options. A CSV-formatted list containing zero or more of the following: 'IncludeParameterDefaultValue', 'IncludeComments', 'SkipResourceNameParameterization', 'SkipAllParameterization'" + }, + "outputFormat": { + "type": "string", + "description": "The output format for the exported resources.", + "enum": [ + "Json", + "Bicep" + ], + "x-ms-enum": { + "name": "ExportTemplateOutputFormat", + "modelAsString": true + } + } + }, + "description": "Export resource group template request parameters." + }, + "TagCount": { + "properties": { + "type": { + "type": "string", + "description": "Type of count." + }, + "value": { + "type": "integer", + "description": "Value of count." + } + }, + "description": "Tag count." + }, + "TagValue": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The tag value ID." + }, + "tagValue": { + "type": "string", + "description": "The tag value." + }, + "count": { + "$ref": "#/definitions/TagCount", + "description": "The tag value count." + } + }, + "x-ms-azure-resource": true, + "description": "Tag information." + }, + "TagDetails": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The tag name ID." + }, + "tagName": { + "type": "string", + "description": "The tag name." + }, + "count": { + "$ref": "#/definitions/TagCount", + "description": "The total number of resources that use the resource tag. When a tag is initially created and has no associated resources, the value is 0." + }, + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/TagValue" + }, + "description": "The list of tag values." + } + }, + "x-ms-azure-resource": true, + "description": "Tag details." + }, + "TagsListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/TagDetails" + }, + "description": "An array of tags." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of subscription tags." + }, + "TargetResource": { + "properties": { + "id": { + "type": "string", + "description": "The ID of the resource." + }, + "resourceName": { + "type": "string", + "description": "The name of the resource." + }, + "resourceType": { + "type": "string", + "description": "The type of the resource." + } + }, + "description": "Target resource." + }, + "HttpMessage": { + "properties": { + "content": { + "type": "object", + "description": "HTTP message content." + } + }, + "description": "HTTP message." + }, + "DeploymentOperationProperties": { + "properties": { + "provisioningOperation": { + "readOnly": true, + "type": "string", + "description": "The name of the current provisioning operation.", + "enum": [ + "NotSpecified", + "Create", + "Delete", + "Waiting", + "AzureAsyncOperationWaiting", + "ResourceCacheWaiting", + "Action", + "Read", + "EvaluateDeploymentOutput", + "DeploymentCleanup" + ], + "x-ms-enum": { + "name": "ProvisioningOperation", + "modelAsString": false, + "values": [ + { + "value": "NotSpecified", + "description": "The provisioning operation is not specified." + }, + { + "value": "Create", + "description": "The provisioning operation is create." + }, + { + "value": "Delete", + "description": "The provisioning operation is delete." + }, + { + "value": "Waiting", + "description": "The provisioning operation is waiting." + }, + { + "value": "AzureAsyncOperationWaiting", + "description": "The provisioning operation is waiting Azure async operation." + }, + { + "value": "ResourceCacheWaiting", + "description": "The provisioning operation is waiting for resource cache." + }, + { + "value": "Action", + "description": "The provisioning operation is action." + }, + { + "value": "Read", + "description": "The provisioning operation is read." + }, + { + "value": "EvaluateDeploymentOutput", + "description": "The provisioning operation is evaluate output." + }, + { + "value": "DeploymentCleanup", + "description": "The provisioning operation is cleanup. This operation is part of the 'complete' mode deployment." + } + ] + } + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The state of the provisioning." + }, + "timestamp": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The date and time of the operation." + }, + "duration": { + "readOnly": true, + "type": "string", + "description": "The duration of the operation." + }, + "serviceRequestId": { + "readOnly": true, + "type": "string", + "description": "Deployment operation service request id." + }, + "statusCode": { + "readOnly": true, + "type": "string", + "description": "Operation status code from the resource provider. This property may not be set if a response has not yet been received." + }, + "statusMessage": { + "readOnly": true, + "description": "Operation status message from the resource provider. This property is optional. It will only be provided if an error was received from the resource provider.", + "$ref": "#/definitions/StatusMessage" + }, + "targetResource": { + "readOnly": true, + "$ref": "#/definitions/TargetResource", + "description": "The target resource." + }, + "request": { + "readOnly": true, + "$ref": "#/definitions/HttpMessage", + "description": "The HTTP request message." + }, + "response": { + "readOnly": true, + "$ref": "#/definitions/HttpMessage", + "description": "The HTTP response message." + } + }, + "description": "Deployment operation properties." + }, + "DeploymentOperation": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Full deployment operation ID." + }, + "operationId": { + "readOnly": true, + "type": "string", + "description": "Deployment operation ID." + }, + "properties": { + "$ref": "#/definitions/DeploymentOperationProperties", + "description": "Deployment properties." + } + }, + "description": "Deployment operation information." + }, + "DeploymentOperationsListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentOperation" + }, + "description": "An array of deployment operations." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of deployment operations." + }, + "ResourceProviderOperationDisplayProperties": { + "properties": { + "publisher": { + "type": "string", + "description": "Operation description." + }, + "provider": { + "type": "string", + "description": "Operation provider." + }, + "resource": { + "type": "string", + "description": "Operation resource." + }, + "operation": { + "type": "string", + "description": "Resource provider operation." + }, + "description": { + "type": "string", + "description": "Operation description." + } + }, + "description": "Resource provider operation's display properties." + }, + "Resource": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "Resource extended location." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "x-ms-azure-resource": true, + "description": "Specified resource." + }, + "SubResource": { + "properties": { + "id": { + "type": "string", + "description": "Resource ID" + } + }, + "x-ms-azure-resource": true, + "description": "Sub-resource." + }, + "ResourceGroupExportResult": { + "properties": { + "template": { + "type": "object", + "description": "The template content. Used if outputFormat is empty or set to 'Json'." + }, + "output": { + "type": "string", + "description": "The formatted export content. Used if outputFormat is set to 'Bicep'." + }, + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", + "description": "The template export error." + } + }, + "description": "Resource group export result." + }, + "Operation": { + "description": "Microsoft.Resources operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Resources", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Profile, endpoint, etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + }, + "description": { + "description": "Description of the operation.", + "type": "string" + } + } + } + } + }, + "OperationListResult": { + "description": "Result of the request to list Microsoft.Resources operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "List of Microsoft.Resources operations." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "TemplateHashResult": { + "description": "Result of the request to calculate template hash. It contains a string of minified template and its hash.", + "properties": { + "minifiedTemplate": { + "type": "string", + "description": "The minified template string." + }, + "templateHash": { + "type": "string", + "description": "The template hash." + } + } + }, + "WhatIfPropertyChange": { + "required": [ + "path", + "propertyChangeType" + ], + "properties": { + "path": { + "type": "string", + "description": "The path of the property." + }, + "propertyChangeType": { + "type": "string", + "description": "The type of property change.", + "enum": [ + "Create", + "Delete", + "Modify", + "Array", + "NoEffect" + ], + "x-ms-enum": { + "name": "PropertyChangeType", + "modelAsString": false, + "values": [ + { + "value": "Create", + "description": "The property does not exist in the current state but is present in the desired state. The property will be created when the deployment is executed." + }, + { + "value": "Delete", + "description": "The property exists in the current state and is missing from the desired state. It will be deleted when the deployment is executed." + }, + { + "value": "Modify", + "description": "The property exists in both current and desired state and is different. The value of the property will change when the deployment is executed." + }, + { + "value": "Array", + "description": "The property is an array and contains nested changes." + }, + { + "value": "NoEffect", + "description": "The property will not be set or updated." + } + ] + } + }, + "before": { + "type": "object", + "description": "The value of the property before the deployment is executed." + }, + "after": { + "type": "object", + "description": "The value of the property after the deployment is executed." + }, + "children": { + "type": "array", + "items": { + "$ref": "#/definitions/WhatIfPropertyChange" + }, + "x-ms-identifiers": [ + "path" + ], + "description": "Nested property changes." + } + }, + "description": "The predicted change to the resource property." + }, + "WhatIfChange": { + "description": "Information about a single resource change predicted by What-If operation.", + "required": [ + "resourceId", + "changeType" + ], + "properties": { + "resourceId": { + "type": "string", + "description": "Resource ID" + }, + "deploymentId": { + "type": "string", + "description": "The resource id of the Deployment responsible for this change." + }, + "symbolicName": { + "type": "string", + "description": "The symbolic name of the resource responsible for this change." + }, + "identifiers": { + "type": "object", + "description": "A subset of properties that uniquely identify a Bicep extensible resource because it lacks a resource id like an Azure resource has." + }, + "changeType": { + "type": "string", + "description": "Type of change that will be made to the resource when the deployment is executed.", + "enum": [ + "Create", + "Delete", + "Ignore", + "Deploy", + "NoChange", + "Modify", + "Unsupported" + ], + "x-ms-enum": { + "name": "ChangeType", + "modelAsString": false, + "values": [ + { + "value": "Create", + "description": "The resource does not exist in the current state but is present in the desired state. The resource will be created when the deployment is executed." + }, + { + "value": "Delete", + "description": "The resource exists in the current state and is missing from the desired state. The resource will be deleted when the deployment is executed." + }, + { + "value": "Ignore", + "description": "The resource exists in the current state and is missing from the desired state. The resource will not be deployed or modified when the deployment is executed." + }, + { + "value": "Deploy", + "description": "The resource exists in the current state and the desired state and will be redeployed when the deployment is executed. The properties of the resource may or may not change." + }, + { + "value": "NoChange", + "description": "The resource exists in the current state and the desired state and will be redeployed when the deployment is executed. The properties of the resource will not change." + }, + { + "value": "Modify", + "description": "The resource exists in the current state and the desired state and will be redeployed when the deployment is executed. The properties of the resource will change." + }, + { + "value": "Unsupported", + "description": "The resource is not supported by What-If." + } + ] + } + }, + "unsupportedReason": { + "type": "string", + "description": "The explanation about why the resource is unsupported by What-If." + }, + "before": { + "type": "object", + "description": "The snapshot of the resource before the deployment is executed." + }, + "after": { + "type": "object", + "description": "The predicted snapshot of the resource after the deployment is executed." + }, + "delta": { + "type": "array", + "items": { + "$ref": "#/definitions/WhatIfPropertyChange" + }, + "x-ms-identifiers": [ + "path" + ], + "description": "The predicted changes to resource properties." + } + } + }, + "WhatIfOperationProperties": { + "description": "Deployment operation properties.", + "properties": { + "changes": { + "type": "array", + "items": { + "$ref": "#/definitions/WhatIfChange" + }, + "x-ms-identifiers": [ + "resourceId", + "changeType" + ], + "description": "List of resource changes predicted by What-If operation." + }, + "potentialChanges": { + "type": "array", + "items": { + "$ref": "#/definitions/WhatIfChange" + }, + "x-ms-identifiers": [ + "resourceId", + "changeType" + ], + "description": "List of resource changes predicted by What-If operation." + }, + "diagnostics": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/DeploymentDiagnosticsDefinition" + }, + "description": "List of resource diagnostics detected by What-If operation." + } + } + }, + "WhatIfOperationResult": { + "description": "Result of the What-If operation. Contains a list of predicted changes and a URL link to get to the next set of results.", + "properties": { + "status": { + "type": "string", + "description": "Status of the What-If operation." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/WhatIfOperationProperties", + "description": "What-If operation properties." + }, + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", + "description": "Error when What-If operation fails." + } + } + }, + "Tags": { + "description": "A dictionary of name and value pairs.", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string", + "description": "The tag value." + } + } + } + }, + "TagsPatchResource": { + "type": "object", + "description": "Wrapper resource for tags patch API request only.", + "properties": { + "operation": { + "type": "string", + "description": "The operation type for the patch API.", + "enum": [ + "Replace", + "Merge", + "Delete" + ], + "x-ms-enum": { + "name": "tagsPatchOperation", + "modelAsString": true, + "values": [ + { + "value": "Replace", + "description": "The 'replace' option replaces the entire set of existing tags with a new set." + }, + { + "value": "Merge", + "description": "The 'merge' option allows adding tags with new names and updating the values of tags with existing names." + }, + { + "value": "Delete", + "description": "The 'delete' option allows selectively deleting tags based on given names or name/value pairs." + } + ] + } + }, + "properties": { + "$ref": "#/definitions/Tags", + "description": "The set of tags." + } + } + }, + "TagsResource": { + "type": "object", + "description": "Wrapper resource for tags API requests and responses.", + "required": [ + "properties" + ], + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The ID of the tags wrapper resource." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the tags wrapper resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the tags wrapper resource." + }, + "properties": { + "$ref": "#/definitions/Tags", + "description": "The set of tags." + } + }, + "x-ms-azure-resource": true + }, + "Permission": { + "type": "object", + "readOnly": true, + "properties": { + "actions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Allowed actions." + }, + "notActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Denied actions." + }, + "dataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Allowed Data actions." + }, + "notDataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Denied Data actions." + } + }, + "description": "Role definition permissions." + }, + "RoleDefinition": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The role definition ID." + }, + "name": { + "type": "string", + "description": "The role definition name." + }, + "isServiceRole": { + "type": "boolean", + "description": "If this is a service role." + }, + "permissions": { + "type": "array", + "items": { + "$ref": "#/definitions/Permission" + }, + "x-ms-identifiers": [], + "description": "Role definition permissions." + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Role definition assignable scopes." + } + }, + "description": "Role definition properties." + }, + "ProviderPermission": { + "type": "object", + "description": "The provider permission", + "properties": { + "applicationId": { + "type": "string", + "description": "The application id." + }, + "roleDefinition": { + "$ref": "#/definitions/RoleDefinition", + "description": "Role definition properties." + }, + "managedByRoleDefinition": { + "$ref": "#/definitions/RoleDefinition", + "description": "Role definition properties." + }, + "providerAuthorizationConsentState": { + "type": "string", + "enum": [ + "NotSpecified", + "Required", + "NotRequired", + "Consented" + ], + "description": "The provider authorization consent state.", + "x-ms-enum": { + "name": "ProviderAuthorizationConsentState", + "modelAsString": true + } + } + } + }, + "ProviderPermissionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ProviderPermission" + }, + "x-ms-identifiers": [], + "description": "An array of provider permissions." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of provider permissions." + }, + "ProviderConsentDefinition": { + "type": "object", + "description": "The provider consent.", + "properties": { + "consentToAuthorization": { + "type": "boolean", + "description": "A value indicating whether authorization is consented or not." + } + } + }, + "ProviderRegistrationRequest": { + "type": "object", + "description": "The provider registration definition.", + "properties": { + "thirdPartyProviderConsent": { + "$ref": "#/definitions/ProviderConsentDefinition", + "description": "The provider consent." + } + } + }, + "StatusMessage": { + "type": "object", + "description": "Operation status message object.", + "properties": { + "status": { + "type": "string", + "description": "Status of the deployment operation." + }, + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", + "description": "The error reported by the operation." + } + } + }, + "ExpressionEvaluationOptions": { + "properties": { + "scope": { + "type": "string", + "description": "The scope to be used for evaluation of parameters, variables and functions in a nested template.", + "enum": [ + "NotSpecified", + "Outer", + "Inner" + ], + "x-ms-enum": { + "name": "ExpressionEvaluationOptionsScopeType", + "modelAsString": true + } + } + }, + "description": "Specifies whether template expressions are evaluated within the scope of the parent template or nested template." + }, + "ZoneMapping": { + "type": "object", + "properties": { + "location": { + "type": "string", + "description": "The location of the zone mapping." + }, + "zones": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ValidationLevel": { + "type": "string", + "description": "The level of validation performed on the deployment.", + "enum": [ + "Template", + "Provider", + "ProviderNoRbac" + ], + "x-ms-enum": { + "name": "ValidationLevel", + "modelAsString": true, + "values": [ + { + "description": "Static analysis of the template is performed.", + "value": "Template" + }, + { + "description": "Static analysis of the template is performed and resource declarations are sent to resource providers for semantic validation. Validates that the caller has RBAC write permissions on each resource.", + "value": "Provider" + }, + { + "description": "Static analysis of the template is performed and resource declarations are sent to resource providers for semantic validation. Skips validating that the caller has RBAC write permissions on each resource.", + "value": "ProviderNoRbac" + } + ] + } + } + }, + "parameters": { + "ScopeParameter": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The resource scope.", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "GroupIdParameter": { + "name": "groupId", + "in": "path", + "required": true, + "type": "string", + "description": "The management group ID.", + "x-ms-parameter-location": "method", + "minLength": 1, + "maxLength": 90 + }, + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Microsoft Azure subscription ID." + }, + "DeploymentNameParameter": { + "name": "deploymentName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "x-ms-parameter-location": "method", + "minLength": 1, + "maxLength": 64, + "description": "The name of the deployment." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for this operation." + } + } +} diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index 97718cbca500..c763e7989803 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -57,6 +57,10 @@ tag: package-resources-2024-03 tag: package-resources-2024-07 ``` +``` yaml $(package-resources) +tag: package-resources-2024-11 +``` + ``` yaml $(package-subscriptions) tag: package-subscriptions-2022-12 ``` @@ -223,6 +227,15 @@ input-file: - Microsoft.Resources/stable/2024-07-01/resources.json ``` +### Tag: package-resources-2024-11 + +These settings apply only when `--tag=package-resources-2024-11` is specified on the command line. + +``` yaml $(tag) == 'package-resources-2024-11' +input-file: + - Microsoft.Resources/stable/2024-11-01/resources.json +``` + ### Tag: package-2022-12 These settings apply only when `--tag=package-2022-12` is specified on the command line. @@ -1599,6 +1612,9 @@ directive: - suppress: TrackedExtensionResourcesAreNotAllowed from: policyAssignments.json reason: "Policy assignments can have a manged identity associated with them. This requires a location." + - suppress: TrackedExtensionResourcesAreNotAllowed + from: resources.json + reason: "The deployments resource type is ProxyOnly." ``` --- From 4146919a2d8f51461707bfcbd0a96e826243d3ff Mon Sep 17 00:00:00 2001 From: Jacky Lui <84883957+jackylui-ms@users.noreply.github.com> Date: Tue, 10 Dec 2024 10:30:10 -0800 Subject: [PATCH 21/26] Add checkGlobalNameAvailability to Microsoft.DevOpsInfrastructure/pools (#31422) * Add checkGlobalNameAvailability --------- Co-authored-by: Chenjie Shi Co-authored-by: Yuchao Yan --- .../client.tsp | 2 - .../Pools_CheckNameAvailability.json | 22 +++ .../main.tsp | 63 +++++++ .../2024-10-19/devopsinfrastructure.json | 157 ++++++++++++++++++ .../examples/Pools_CheckNameAvailability.json | 22 +++ .../resource-manager/readme.md | 1 - 6 files changed, 264 insertions(+), 3 deletions(-) create mode 100644 specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/examples/2024-10-19/Pools_CheckNameAvailability.json create mode 100644 specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/stable/2024-10-19/examples/Pools_CheckNameAvailability.json diff --git a/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/client.tsp b/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/client.tsp index 8b42a2d8a782..ecaaffe96fc7 100644 --- a/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/client.tsp +++ b/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/client.tsp @@ -13,8 +13,6 @@ using Microsoft.DevOpsInfrastructure; "java" ); -@@access(Operations.list, Access.internal); - /* Rename models */ @@clientName(ImageVersion, "DevOpsImageVersion", "csharp"); diff --git a/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/examples/2024-10-19/Pools_CheckNameAvailability.json b/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/examples/2024-10-19/Pools_CheckNameAvailability.json new file mode 100644 index 000000000000..9c911be7cb62 --- /dev/null +++ b/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/examples/2024-10-19/Pools_CheckNameAvailability.json @@ -0,0 +1,22 @@ +{ + "title": "Pools_CheckNameAvailability", + "operationId": "Pools_CheckNameAvailability", + "parameters": { + "subscriptionId": "a2e95d27-c161-4b61-bda4-11512c14c2c2", + "api-version": "2024-10-19", + "body": { + "name": "mydevopspool", + "type": "Microsoft.DevOpsInfrastructure/pools" + } + }, + "responses": { + "200": { + "body": { + "available": "Unavailable", + "message": "Managed DevOps pool mydevopspool is already in use. Please choose a pool name that has not been taken.", + "name": "mydevopspool", + "reason": "AlreadyExists" + } + } + } +} diff --git a/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/main.tsp b/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/main.tsp index f97c686b6005..97b46faeb286 100644 --- a/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/main.tsp +++ b/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/main.tsp @@ -263,6 +263,7 @@ model OsProfile { @doc("Determines how the service should be run. By default, this will be set to Service.") logonType?: LogonType; } + @doc("The secret management settings of the machines in the pool.") model SecretsManagementSettings { @doc("Where to store certificates on the machine.") @@ -274,6 +275,7 @@ model SecretsManagementSettings { @doc("Defines if the key of the certificates should be exportable.") keyExportable: boolean; } + @doc("Determines how the service should be run.") union LogonType { string, @@ -419,6 +421,12 @@ interface Pools { delete is ArmResourceDeleteWithoutOkAsync; listByResourceGroup is ArmResourceListByParent; listBySubscription is ArmListBySubscription; + + @doc("Checks that the pool name is valid and is not already in use.") + checkNameAvailability is checkGlobalNameAvailability< + CheckNameAvailability, + CheckNameAvailabilityResult + >; } @parentResource(Pool) @@ -720,6 +728,23 @@ model Image is ProxyResource { name: string; } +@doc("The type of resource.") +union DevOpsInfrastructureResourceType { + string, + + @doc("DevOpsInfrastructure pool resource.") + "Microsoft.DevOpsInfrastructure/pools", +} + +@doc("The parameters used to check the availability of a resource.") +model CheckNameAvailability { + @doc("The name of the resource.") + name: string; + + @doc("The type of resource that is used as the scope of the availability check.") + type: DevOpsInfrastructureResourceType; +} + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "No ProvisioningState" #suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "Existing use case" @doc("Properties of an image.") @@ -748,3 +773,41 @@ model ImageVersionProperties { interface ImageVersions { listByImage is ArmResourceListByParent; } + +@doc("The reason code explaining why the name is unavailable. Will be null if the name is available.") +union CheckNameAvailabilityReason { + string, + + @doc("The name is invalid.") + "Invalid", + + @doc("The name already exists.") + "AlreadyExists", +} + +@doc("AvailabilityStatus of a name.") +union AvailabilityStatus { + string, + + @doc("The name is available.") + "Available", + + @doc("The name is unavailable") + "Unavailable", +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "No ProvisioningState" +@doc("The CheckNameAvailability operation response.") +model CheckNameAvailabilityResult { + @doc("Availability status of the name.") + available: AvailabilityStatus; + + @doc("A message explaining why the name is unavailable. Will be null if the name is available.") + message: string; + + @doc("The name whose availability was checked.") + name: string; + + @doc("The reason code explaining why the name is unavailable. Will be null if the name is available.") + reason: CheckNameAvailabilityReason; +} diff --git a/specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/stable/2024-10-19/devopsinfrastructure.json b/specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/stable/2024-10-19/devopsinfrastructure.json index be7e89f00470..e6bd3776afcb 100644 --- a/specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/stable/2024-10-19/devopsinfrastructure.json +++ b/specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/stable/2024-10-19/devopsinfrastructure.json @@ -94,6 +94,51 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DevOpsInfrastructure/checkNameAvailability": { + "post": { + "operationId": "Pools_CheckNameAvailability", + "tags": [ + "Pools" + ], + "description": "Checks that the pool name is valid and is not already in use.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "body", + "in": "body", + "description": "The CheckAvailability request", + "required": true, + "schema": { + "$ref": "#/definitions/CheckNameAvailability" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Pools_CheckNameAvailability": { + "$ref": "./examples/Pools_CheckNameAvailability.json" + } + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.DevOpsInfrastructure/locations/{locationName}/skus": { "get": { "operationId": "Sku_ListByLocation", @@ -654,6 +699,30 @@ ], "x-ms-discriminator-value": "Automatic" }, + "AvailabilityStatus": { + "type": "string", + "description": "AvailabilityStatus of a name.", + "enum": [ + "Available", + "Unavailable" + ], + "x-ms-enum": { + "name": "AvailabilityStatus", + "modelAsString": true, + "values": [ + { + "name": "Available", + "value": "Available", + "description": "The name is available." + }, + { + "name": "Unavailable", + "value": "Unavailable", + "description": "The name is unavailable" + } + ] + } + }, "Azure.Core.azureLocation": { "type": "string", "description": "Represents an Azure geography region where supported resource providers live." @@ -772,6 +841,76 @@ ] } }, + "CheckNameAvailability": { + "type": "object", + "description": "The parameters used to check the availability of a resource.", + "properties": { + "name": { + "type": "string", + "description": "The name of the resource." + }, + "type": { + "$ref": "#/definitions/DevOpsInfrastructureResourceType", + "description": "The type of resource that is used as the scope of the availability check." + } + }, + "required": [ + "name", + "type" + ] + }, + "CheckNameAvailabilityReason": { + "type": "string", + "description": "The reason code explaining why the name is unavailable. Will be null if the name is available.", + "enum": [ + "Invalid", + "AlreadyExists" + ], + "x-ms-enum": { + "name": "CheckNameAvailabilityReason", + "modelAsString": true, + "values": [ + { + "name": "Invalid", + "value": "Invalid", + "description": "The name is invalid." + }, + { + "name": "AlreadyExists", + "value": "AlreadyExists", + "description": "The name already exists." + } + ] + } + }, + "CheckNameAvailabilityResult": { + "type": "object", + "description": "The CheckNameAvailability operation response.", + "properties": { + "available": { + "$ref": "#/definitions/AvailabilityStatus", + "description": "Availability status of the name." + }, + "message": { + "type": "string", + "description": "A message explaining why the name is unavailable. Will be null if the name is available." + }, + "name": { + "type": "string", + "description": "The name whose availability was checked." + }, + "reason": { + "$ref": "#/definitions/CheckNameAvailabilityReason", + "description": "The reason code explaining why the name is unavailable. Will be null if the name is available." + } + }, + "required": [ + "available", + "message", + "name", + "reason" + ] + }, "DataDisk": { "type": "object", "description": "The data disk of the VMSS.", @@ -808,6 +947,24 @@ "name" ] }, + "DevOpsInfrastructureResourceType": { + "type": "string", + "description": "The type of resource.", + "enum": [ + "Microsoft.DevOpsInfrastructure/pools" + ], + "x-ms-enum": { + "name": "DevOpsInfrastructureResourceType", + "modelAsString": true, + "values": [ + { + "name": "Microsoft.DevOpsInfrastructure/pools", + "value": "Microsoft.DevOpsInfrastructure/pools", + "description": "DevOpsInfrastructure pool resource." + } + ] + } + }, "FabricProfile": { "type": "object", "description": "Defines the type of fabric the agent will run on.", diff --git a/specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/stable/2024-10-19/examples/Pools_CheckNameAvailability.json b/specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/stable/2024-10-19/examples/Pools_CheckNameAvailability.json new file mode 100644 index 000000000000..9c911be7cb62 --- /dev/null +++ b/specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/stable/2024-10-19/examples/Pools_CheckNameAvailability.json @@ -0,0 +1,22 @@ +{ + "title": "Pools_CheckNameAvailability", + "operationId": "Pools_CheckNameAvailability", + "parameters": { + "subscriptionId": "a2e95d27-c161-4b61-bda4-11512c14c2c2", + "api-version": "2024-10-19", + "body": { + "name": "mydevopspool", + "type": "Microsoft.DevOpsInfrastructure/pools" + } + }, + "responses": { + "200": { + "body": { + "available": "Unavailable", + "message": "Managed DevOps pool mydevopspool is already in use. Please choose a pool name that has not been taken.", + "name": "mydevopspool", + "reason": "AlreadyExists" + } + } + } +} diff --git a/specification/devopsinfrastructure/resource-manager/readme.md b/specification/devopsinfrastructure/resource-manager/readme.md index 05a4876acd68..59ce5fcfe4d0 100644 --- a/specification/devopsinfrastructure/resource-manager/readme.md +++ b/specification/devopsinfrastructure/resource-manager/readme.md @@ -91,7 +91,6 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: - - repo: azure-sdk-for-python - repo: azure-sdk-for-java - repo: azure-sdk-for-go - repo: azure-sdk-for-js From 51f9838e0a4e7c58ff0a2cf7d04bd7491d306398 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 11:01:53 -0800 Subject: [PATCH 22/26] Bump @azure-tools/typespec-client-generator-core (#31820) Bumps the typespec group with 1 update in the / directory: [@azure-tools/typespec-client-generator-core](https://github.com/Azure/typespec-azure). Updates `@azure-tools/typespec-client-generator-core` from 0.48.5 to 0.48.6 - [Release notes](https://github.com/Azure/typespec-azure/releases) - [Commits](https://github.com/Azure/typespec-azure/compare/@azure-tools/typespec-client-generator-core@0.48.5...@azure-tools/typespec-client-generator-core@0.48.6) --- updated-dependencies: - dependency-name: "@azure-tools/typespec-client-generator-core" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: typespec ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 80aa4a61671c..a3af68163892 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@azure-tools/typespec-azure-resource-manager": "0.48.0", "@azure-tools/typespec-azure-rulesets": "0.48.0", "@azure-tools/typespec-client-generator-cli": "0.14.2", - "@azure-tools/typespec-client-generator-core": "0.48.5", + "@azure-tools/typespec-client-generator-core": "0.48.6", "@azure-tools/typespec-liftr-base": "0.6.0", "@azure/avocado": "^0.9.1", "@typespec/compiler": "0.62.0", @@ -787,9 +787,9 @@ } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.48.5", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.48.5.tgz", - "integrity": "sha512-oAGyH99f3FMzTVE82A/hHupMlpDhxBUTL63wCUab9DM6Rqk+liBGobGl/EPdiOxpvcvhm1drEhkFCkqJt6JenA==", + "version": "0.48.6", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.48.6.tgz", + "integrity": "sha512-SVD4JCON52UIs4AogxQs8OrXjFdEf9EJPuK76Ze33VhtYdNNXPLJir2uV1wNJAnNtH2i3IMBkfrq2RjV1HHpdA==", "dev": true, "dependencies": { "change-case": "~5.4.4", diff --git a/package.json b/package.json index 3e45e2fd48f2..e7c4bf03037b 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "@azure-tools/typespec-azure-resource-manager": "0.48.0", "@azure-tools/typespec-azure-rulesets": "0.48.0", "@azure-tools/typespec-client-generator-cli": "0.14.2", - "@azure-tools/typespec-client-generator-core": "0.48.5", + "@azure-tools/typespec-client-generator-core": "0.48.6", "@azure-tools/typespec-liftr-base": "0.6.0", "@azure/avocado": "^0.9.1", "@typespec/compiler": "0.62.0", From 494d37ef9b1ab34ebab08c00da5675302594dc78 Mon Sep 17 00:00:00 2001 From: ritujhams <124942127+ritujhams@users.noreply.github.com> Date: Tue, 10 Dec 2024 12:48:11 -0800 Subject: [PATCH 23/26] Small fix to the description of property for inference pool (#31824) --- .../preview/2024-10-01-preview/mfe.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-preview/mfe.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-preview/mfe.json index 901e8d3a0647..88ca9b0ce76f 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-preview/mfe.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-preview/mfe.json @@ -13859,7 +13859,7 @@ }, "failed": { "format": "int32", - "description": "Gets or sets the number of instances (scale units) which Failed provisioning state and have target group payload.", + "description": "Gets or sets the number of instances (scale units) which have Failed provisioning state and have target group payload.", "default": 0, "type": "integer" }, From 4e2ae4e43acbfc3d560d00a4960b7ecd9d3c7884 Mon Sep 17 00:00:00 2001 From: Nikhil Gupta <52026487+nikhgup@users.noreply.github.com> Date: Wed, 11 Dec 2024 10:06:07 +0530 Subject: [PATCH 24/26] New RP: PineCone.VectorDB from Liftr (#31673) * New RP: PineCone.VectorDB from Liftr * updating readme * Adding package.json * adding .net sdk emitter * removing package.json * updating swagger * Update tspconfig.yaml * Adding suppression * updating swagger --------- Co-authored-by: Arthur Ma --- cSpell.json | 6 + .../Pinecone.VectorDb.Management/.gitignore | 9 + .../Operations_List_MaximumSet_Gen.json | 28 + .../Operations_List_MinimumSet_Gen.json | 12 + ...zations_CreateOrUpdate_MaximumSet_Gen.json | 188 ++++ .../Organizations_Delete_MaximumSet_Gen.json | 18 + .../Organizations_Get_MaximumSet_Gen.json | 76 ++ ...ns_ListByResourceGroup_MaximumSet_Gen.json | 80 ++ ...ons_ListBySubscription_MaximumSet_Gen.json | 79 ++ .../Organizations_Update_MaximumSet_Gen.json | 92 ++ .../Pinecone.VectorDb.Management/main.tsp | 90 ++ .../tspconfig.yaml | 21 + .../Operations_List_MaximumSet_Gen.json | 28 + .../Operations_List_MinimumSet_Gen.json | 12 + ...zations_CreateOrUpdate_MaximumSet_Gen.json | 188 ++++ .../Organizations_Delete_MaximumSet_Gen.json | 18 + .../Organizations_Get_MaximumSet_Gen.json | 76 ++ ...ns_ListByResourceGroup_MaximumSet_Gen.json | 80 ++ ...ons_ListBySubscription_MaximumSet_Gen.json | 79 ++ .../Organizations_Update_MaximumSet_Gen.json | 92 ++ .../preview/2024-10-22-preview/openapi.json | 800 ++++++++++++++++++ .../liftrpinecone/resource-manager/readme.md | 45 + 22 files changed, 2117 insertions(+) create mode 100644 specification/liftrpinecone/Pinecone.VectorDb.Management/.gitignore create mode 100644 specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Operations_List_MaximumSet_Gen.json create mode 100644 specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Operations_List_MinimumSet_Gen.json create mode 100644 specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_CreateOrUpdate_MaximumSet_Gen.json create mode 100644 specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_Delete_MaximumSet_Gen.json create mode 100644 specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_Get_MaximumSet_Gen.json create mode 100644 specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_ListByResourceGroup_MaximumSet_Gen.json create mode 100644 specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_ListBySubscription_MaximumSet_Gen.json create mode 100644 specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_Update_MaximumSet_Gen.json create mode 100644 specification/liftrpinecone/Pinecone.VectorDb.Management/main.tsp create mode 100644 specification/liftrpinecone/Pinecone.VectorDb.Management/tspconfig.yaml create mode 100644 specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Operations_List_MaximumSet_Gen.json create mode 100644 specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Operations_List_MinimumSet_Gen.json create mode 100644 specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json create mode 100644 specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_Delete_MaximumSet_Gen.json create mode 100644 specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_Get_MaximumSet_Gen.json create mode 100644 specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json create mode 100644 specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_ListBySubscription_MaximumSet_Gen.json create mode 100644 specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_Update_MaximumSet_Gen.json create mode 100644 specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/openapi.json create mode 100644 specification/liftrpinecone/resource-manager/readme.md diff --git a/cSpell.json b/cSpell.json index 85f300876e01..d5cd554ffbd1 100644 --- a/cSpell.json +++ b/cSpell.json @@ -1612,6 +1612,12 @@ "spoofface" ] }, + { + "filename": "**/specification/liftrpinecone/**/*.json", + "words": [ + "organizationname" + ] + }, { "filename": "**/specification/developerhub/resource-manager/Microsoft.DevHub/**/*.json", "words": [ diff --git a/specification/liftrpinecone/Pinecone.VectorDb.Management/.gitignore b/specification/liftrpinecone/Pinecone.VectorDb.Management/.gitignore new file mode 100644 index 000000000000..0fe4f7a0b284 --- /dev/null +++ b/specification/liftrpinecone/Pinecone.VectorDb.Management/.gitignore @@ -0,0 +1,9 @@ +# MacOS +.DS_Store + +# Default TypeSpec output +tsp-output/ +dist/ + +# Dependency directories +node_modules/ \ No newline at end of file diff --git a/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Operations_List_MaximumSet_Gen.json b/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Operations_List_MaximumSet_Gen.json new file mode 100644 index 000000000000..a7679858a35a --- /dev/null +++ b/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Operations_List_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List_MaximumSet", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-10-22-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "example-operation-name", + "isDataAction": true, + "display": { + "provider": "Pinecone.Management", + "resource": "organization", + "operation": "Organizations_CreateOrUpdate", + "description": "Example operation description" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Operations_List_MinimumSet_Gen.json b/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Operations_List_MinimumSet_Gen.json new file mode 100644 index 000000000000..0893073b35c2 --- /dev/null +++ b/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Operations_List_MinimumSet_Gen.json @@ -0,0 +1,12 @@ +{ + "title": "Operations_List_MinimumSet", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-10-22-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_CreateOrUpdate_MaximumSet_Gen.json b/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_CreateOrUpdate_MaximumSet_Gen.json new file mode 100644 index 000000000000..ce61c72e555b --- /dev/null +++ b/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_CreateOrUpdate_MaximumSet_Gen.json @@ -0,0 +1,188 @@ +{ + "title": "Organizations_CreateOrUpdate_MaximumSet", + "operationId": "Organizations_CreateOrUpdate", + "parameters": { + "api-version": "2024-10-22-preview", + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "resourceGroupName": "rgopenapi", + "organizationname": "example-organization-name", + "resource": { + "properties": { + "marketplace": { + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "4d194daf-fa20-46a8-bfb4-5b7d96cae009", + "offerId": "013124d0-bf05-4eab-a6bb-01fa83870642", + "planId": "62dda065-5acd-4ac5-b418-8610beed92a2", + "planName": "Freemium", + "termUnit": "der", + "termId": "a2b7ce01-f06d-4874-9f77-6ea4a4875c16" + } + }, + "user": { + "firstName": "Jimmy", + "lastName": "McExample", + "emailAddress": "example.user@example.com", + "upn": "example.user@example.com", + "phoneNumber": "555-555-5555" + }, + "partnerProperties": { + "displayName": "My Example Organization" + }, + "singleSignOnProperties": { + "type": "Saml", + "state": "Initial", + "enterpriseAppId": "44d3fb26-d8d5-41ff-9b9a-769737f22f13", + "url": "https://login.pinecone.io/?sso=true&connection=dfwgsqzkbrjqrglcsa", + "aadDomains": [ + "exampledomain" + ] + } + }, + "identity": { + "type": "None", + "userAssignedIdentities": { + "ident904655400": {} + } + }, + "tags": { + "my-tag": "tag.value" + }, + "location": "us-east" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "marketplace": { + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "4d194daf-fa20-46a8-bfb4-5b7d96cae009", + "offerId": "013124d0-bf05-4eab-a6bb-01fa83870642", + "planId": "62dda065-5acd-4ac5-b418-8610beed92a2", + "planName": "Freemium", + "termUnit": "der", + "termId": "a2b7ce01-f06d-4874-9f77-6ea4a4875c16" + } + }, + "user": { + "firstName": "Jimmy", + "lastName": "McExample", + "emailAddress": "example.user@example.com", + "upn": "example.user@example.com", + "phoneNumber": "555-555-5555" + }, + "provisioningState": "Succeeded", + "partnerProperties": { + "displayName": "My Example Organization" + }, + "singleSignOnProperties": { + "type": "Saml", + "state": "Initial", + "enterpriseAppId": "44d3fb26-d8d5-41ff-9b9a-769737f22f13", + "url": "https://login.pinecone.io/?sso=true&connection=dfwgsqzkbrjqrglcsa", + "aadDomains": [ + "exampledomain" + ] + } + }, + "identity": { + "principalId": "98b0f658-9ee0-4376-9f04-cf211154716c", + "tenantId": "b118e9e0-4179-41b7-a978-a205cd312e56", + "type": "None", + "userAssignedIdentities": { + "ident904655400": { + "principalId": "e6beb013-1d4f-4bc7-b6be-33f05f942ae2", + "clientId": "7d5610d7-5c8c-4360-98e5-1ae67a4b6ebe" + } + } + }, + "tags": { + "my-tag": "tag.value" + }, + "location": "us-east", + "id": "/subscriptions/76a38ef6-c8c1-4f0d-bfe0-00ec782c8077/resourceGroups/rgopenapi/providers/Pinecone/organizations/example-organization-name", + "name": "example-organization-name", + "type": "Pinecone.Management/organization", + "systemData": { + "createdBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "createdByType": "User", + "createdAt": "2024-10-22T20:59:36.290Z", + "lastModifiedBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-22T20:59:36.290Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "marketplace": { + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "4d194daf-fa20-46a8-bfb4-5b7d96cae009", + "offerId": "013124d0-bf05-4eab-a6bb-01fa83870642", + "planId": "62dda065-5acd-4ac5-b418-8610beed92a2", + "planName": "Freemium", + "termUnit": "der", + "termId": "a2b7ce01-f06d-4874-9f77-6ea4a4875c16" + } + }, + "user": { + "firstName": "Jimmy", + "lastName": "McExample", + "emailAddress": "example.user@example.com", + "upn": "example.user@example.com", + "phoneNumber": "555-555-5555" + }, + "provisioningState": "Succeeded", + "partnerProperties": { + "displayName": "My Example Organization" + }, + "singleSignOnProperties": { + "type": "Saml", + "state": "Initial", + "enterpriseAppId": "44d3fb26-d8d5-41ff-9b9a-769737f22f13", + "url": "https://login.pinecone.io/?sso=true&connection=dfwgsqzkbrjqrglcsa", + "aadDomains": [ + "exampledomain" + ] + } + }, + "identity": { + "principalId": "98b0f658-9ee0-4376-9f04-cf211154716c", + "tenantId": "b118e9e0-4179-41b7-a978-a205cd312e56", + "type": "None", + "userAssignedIdentities": { + "ident904655400": { + "principalId": "e6beb013-1d4f-4bc7-b6be-33f05f942ae2", + "clientId": "7d5610d7-5c8c-4360-98e5-1ae67a4b6ebe" + } + } + }, + "tags": { + "my-tag": "tag.value" + }, + "location": "us-east", + "id": "/subscriptions/76a38ef6-c8c1-4f0d-bfe0-00ec782c8077/resourceGroups/rgopenapi/providers/Pinecone/organizations/example-organization-name", + "name": "example-organization-name", + "type": "Pinecone.Management/organization", + "systemData": { + "createdBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "createdByType": "User", + "createdAt": "2024-10-22T20:59:36.290Z", + "lastModifiedBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-22T20:59:36.290Z" + } + } + } + } +} diff --git a/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_Delete_MaximumSet_Gen.json b/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..b55833b4eef9 --- /dev/null +++ b/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_Delete_MaximumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "Organizations_Delete_MaximumSet", + "operationId": "Organizations_Delete", + "parameters": { + "api-version": "2024-10-22-preview", + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "resourceGroupName": "rgopenapi", + "organizationname": "example-organization-name" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_Get_MaximumSet_Gen.json b/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..16c12492f9e0 --- /dev/null +++ b/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_Get_MaximumSet_Gen.json @@ -0,0 +1,76 @@ +{ + "title": "Organizations_Get_MaximumSet", + "operationId": "Organizations_Get", + "parameters": { + "api-version": "2024-10-22-preview", + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "resourceGroupName": "rgopenapi", + "organizationname": "example-organization-name" + }, + "responses": { + "200": { + "body": { + "properties": { + "marketplace": { + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "4d194daf-fa20-46a8-bfb4-5b7d96cae009", + "offerId": "013124d0-bf05-4eab-a6bb-01fa83870642", + "planId": "62dda065-5acd-4ac5-b418-8610beed92a2", + "planName": "Freemium", + "termUnit": "der", + "termId": "a2b7ce01-f06d-4874-9f77-6ea4a4875c16" + } + }, + "user": { + "firstName": "Jimmy", + "lastName": "McExample", + "emailAddress": "example.user@example.com", + "upn": "example.user@example.com", + "phoneNumber": "555-555-5555" + }, + "provisioningState": "Succeeded", + "partnerProperties": { + "displayName": "My Example Organization" + }, + "singleSignOnProperties": { + "type": "Saml", + "state": "Initial", + "enterpriseAppId": "44d3fb26-d8d5-41ff-9b9a-769737f22f13", + "url": "https://login.pinecone.io/?sso=true&connection=dfwgsqzkbrjqrglcsa", + "aadDomains": [ + "exampledomain" + ] + } + }, + "identity": { + "principalId": "98b0f658-9ee0-4376-9f04-cf211154716c", + "tenantId": "b118e9e0-4179-41b7-a978-a205cd312e56", + "type": "None", + "userAssignedIdentities": { + "ident904655400": { + "principalId": "e6beb013-1d4f-4bc7-b6be-33f05f942ae2", + "clientId": "7d5610d7-5c8c-4360-98e5-1ae67a4b6ebe" + } + } + }, + "tags": { + "my-tag": "tag.value" + }, + "location": "us-east", + "id": "/subscriptions/76a38ef6-c8c1-4f0d-bfe0-00ec782c8077/resourceGroups/rgopenapi/providers/Pinecone/organizations/example-organization-name", + "name": "example-organization-name", + "type": "Pinecone.Management/organization", + "systemData": { + "createdBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "createdByType": "User", + "createdAt": "2024-10-22T20:59:36.290Z", + "lastModifiedBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-22T20:59:36.290Z" + } + } + } + } +} diff --git a/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_ListByResourceGroup_MaximumSet_Gen.json b/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_ListByResourceGroup_MaximumSet_Gen.json new file mode 100644 index 000000000000..0491760dd348 --- /dev/null +++ b/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_ListByResourceGroup_MaximumSet_Gen.json @@ -0,0 +1,80 @@ +{ + "title": "Organizations_ListByResourceGroup_MaximumSet", + "operationId": "Organizations_ListByResourceGroup", + "parameters": { + "api-version": "2024-10-22-preview", + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "resourceGroupName": "rgopenapi" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "marketplace": { + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "4d194daf-fa20-46a8-bfb4-5b7d96cae009", + "offerId": "013124d0-bf05-4eab-a6bb-01fa83870642", + "planId": "62dda065-5acd-4ac5-b418-8610beed92a2", + "planName": "Freemium", + "termUnit": "der", + "termId": "a2b7ce01-f06d-4874-9f77-6ea4a4875c16" + } + }, + "user": { + "firstName": "Jimmy", + "lastName": "McExample", + "emailAddress": "example.user@example.com", + "upn": "example.user@example.com", + "phoneNumber": "555-555-5555" + }, + "provisioningState": "Succeeded", + "partnerProperties": { + "displayName": "My Example Organization" + }, + "singleSignOnProperties": { + "type": "Saml", + "state": "Initial", + "enterpriseAppId": "44d3fb26-d8d5-41ff-9b9a-769737f22f13", + "url": "https://login.pinecone.io/?sso=true&connection=dfwgsqzkbrjqrglcsa", + "aadDomains": [ + "exampledomain" + ] + } + }, + "identity": { + "principalId": "98b0f658-9ee0-4376-9f04-cf211154716c", + "tenantId": "b118e9e0-4179-41b7-a978-a205cd312e56", + "type": "None", + "userAssignedIdentities": { + "ident904655400": { + "principalId": "e6beb013-1d4f-4bc7-b6be-33f05f942ae2", + "clientId": "7d5610d7-5c8c-4360-98e5-1ae67a4b6ebe" + } + } + }, + "tags": { + "my-tag": "tag.value" + }, + "location": "us-east", + "id": "/subscriptions/76a38ef6-c8c1-4f0d-bfe0-00ec782c8077/resourceGroups/rgopenapi/providers/Pinecone/organizations/example-organization-name", + "name": "example-organization-name", + "type": "Pinecone.Management/organization", + "systemData": { + "createdBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "createdByType": "User", + "createdAt": "2024-10-22T20:59:36.290Z", + "lastModifiedBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-22T20:59:36.290Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_ListBySubscription_MaximumSet_Gen.json b/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_ListBySubscription_MaximumSet_Gen.json new file mode 100644 index 000000000000..261b952da736 --- /dev/null +++ b/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_ListBySubscription_MaximumSet_Gen.json @@ -0,0 +1,79 @@ +{ + "title": "Organizations_ListBySubscription_MaximumSet", + "operationId": "Organizations_ListBySubscription", + "parameters": { + "api-version": "2024-10-22-preview", + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "marketplace": { + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "4d194daf-fa20-46a8-bfb4-5b7d96cae009", + "offerId": "013124d0-bf05-4eab-a6bb-01fa83870642", + "planId": "62dda065-5acd-4ac5-b418-8610beed92a2", + "planName": "Freemium", + "termUnit": "der", + "termId": "a2b7ce01-f06d-4874-9f77-6ea4a4875c16" + } + }, + "user": { + "firstName": "Jimmy", + "lastName": "McExample", + "emailAddress": "example.user@example.com", + "upn": "example.user@example.com", + "phoneNumber": "555-555-5555" + }, + "provisioningState": "Succeeded", + "partnerProperties": { + "displayName": "My Example Organization" + }, + "singleSignOnProperties": { + "type": "Saml", + "state": "Initial", + "enterpriseAppId": "44d3fb26-d8d5-41ff-9b9a-769737f22f13", + "url": "https://login.pinecone.io/?sso=true&connection=dfwgsqzkbrjqrglcsa", + "aadDomains": [ + "exampledomain" + ] + } + }, + "identity": { + "principalId": "98b0f658-9ee0-4376-9f04-cf211154716c", + "tenantId": "b118e9e0-4179-41b7-a978-a205cd312e56", + "type": "None", + "userAssignedIdentities": { + "ident904655400": { + "principalId": "e6beb013-1d4f-4bc7-b6be-33f05f942ae2", + "clientId": "7d5610d7-5c8c-4360-98e5-1ae67a4b6ebe" + } + } + }, + "tags": { + "my-tag": "tag.value" + }, + "location": "us-east", + "id": "/subscriptions/76a38ef6-c8c1-4f0d-bfe0-00ec782c8077/resourceGroups/rgopenapi/providers/Pinecone/organizations/example-organization-name", + "name": "example-organization-name", + "type": "Pinecone.Management/organization", + "systemData": { + "createdBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "createdByType": "User", + "createdAt": "2024-10-22T20:59:36.290Z", + "lastModifiedBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-22T20:59:36.290Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_Update_MaximumSet_Gen.json b/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..75f02cec3e17 --- /dev/null +++ b/specification/liftrpinecone/Pinecone.VectorDb.Management/examples/2024-10-22-preview/Organizations_Update_MaximumSet_Gen.json @@ -0,0 +1,92 @@ +{ + "title": "Organizations_Update_MaximumSet", + "operationId": "Organizations_Update", + "parameters": { + "api-version": "2024-10-22-preview", + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "resourceGroupName": "rgopenapi", + "organizationname": "example-organization-name", + "properties": { + "tags": { + "new-tag": "new.tag.value" + }, + "identity": { + "type": "None", + "userAssignedIdentities": { + "ident573739201": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "marketplace": { + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "4d194daf-fa20-46a8-bfb4-5b7d96cae009", + "offerId": "013124d0-bf05-4eab-a6bb-01fa83870642", + "planId": "62dda065-5acd-4ac5-b418-8610beed92a2", + "planName": "Freemium", + "termUnit": "der", + "termId": "a2b7ce01-f06d-4874-9f77-6ea4a4875c16" + } + }, + "user": { + "firstName": "Jimmy", + "lastName": "McExample", + "emailAddress": "example.user@example.com", + "upn": "example.user@example.com", + "phoneNumber": "555-555-5555" + }, + "provisioningState": "Succeeded", + "partnerProperties": { + "displayName": "My Example Organization" + }, + "singleSignOnProperties": { + "type": "Saml", + "state": "Initial", + "enterpriseAppId": "44d3fb26-d8d5-41ff-9b9a-769737f22f13", + "url": "https://login.pinecone.io/?sso=true&connection=dfwgsqzkbrjqrglcsa", + "aadDomains": [ + "exampledomain" + ] + } + }, + "identity": { + "principalId": "98b0f658-9ee0-4376-9f04-cf211154716c", + "tenantId": "b118e9e0-4179-41b7-a978-a205cd312e56", + "type": "None", + "userAssignedIdentities": { + "ident904655400": { + "principalId": "e6beb013-1d4f-4bc7-b6be-33f05f942ae2", + "clientId": "7d5610d7-5c8c-4360-98e5-1ae67a4b6ebe" + }, + "ident573739201": { + "principalId": "11825db4-1123-4467-a000-49e399e33f90", + "clientId": "4bd8300e-5c3c-4ca2-8a95-a299df986b8d" + } + } + }, + "tags": { + "my-tag": "tag.value", + "new-tag": "new.tag.value" + }, + "location": "us-east", + "id": "/subscriptions/76a38ef6-c8c1-4f0d-bfe0-00ec782c8077/resourceGroups/rgopenapi/providers/Pinecone/organizations/example-organization-name", + "name": "example-organization-name", + "type": "Pinecone.Management/organization", + "systemData": { + "createdBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "createdByType": "User", + "createdAt": "2024-10-22T20:59:36.290Z", + "lastModifiedBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-22T21:33:13.330Z" + } + } + } + } +} diff --git a/specification/liftrpinecone/Pinecone.VectorDb.Management/main.tsp b/specification/liftrpinecone/Pinecone.VectorDb.Management/main.tsp new file mode 100644 index 000000000000..26dfded63995 --- /dev/null +++ b/specification/liftrpinecone/Pinecone.VectorDb.Management/main.tsp @@ -0,0 +1,90 @@ +import "@typespec/http"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@azure-tools/typespec-liftr-base"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.Core; +using Azure.ResourceManager; +using LiftrBase; + +/* Pinecone Resource Provider management API. */ +@armProviderNamespace +@service({ + title: "Pinecone management service", +}) +@versioned(Pinecone.VectorDb.Versions) +namespace Pinecone.VectorDb; + +/** The available API versions. */ +enum Versions { + /** 2024-10-22-preview version */ + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @useDependency(Azure.Core.Versions.v1_0_Preview_2) + @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5) + @useDependency(LiftrBase.Versions.v1_preview) + v2024_10_22_preview: "2024-10-22-preview", +} + +@doc("Partner's specific Properties") +model PartnerProperties { + @doc("Pinecone Organization Name") + @minLength(1) + @maxLength(512) + @pattern("^[^\\0]+$") + displayName: string; +} + +/** These properties will be sent to your endpoints registered with Liftr during CRUD on resource. + * BaseResourceProperties contains Marketplace, useDetail related properties*/ +@doc("Properties specific to Organization") +model OrganizationProperties is BaseResourceProperties { + @doc("partner properties") + partnerProperties?: PartnerProperties; + + @doc("Single sign-on properties") + singleSignOnProperties?: SingleSignOnPropertiesV2; +} + +model OrganizationResource + is Azure.ResourceManager.TrackedResource { + @key("organizationname") + @pattern("^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$") + @segment("organizations") + @minLength(1) + @maxLength(50) + @doc("Name of the Organization resource") + @path + name: string; + + ...Azure.ResourceManager.ManagedServiceIdentityProperty; +} + +/** + * The type used for update operations of the Organization Resource. + */ +model OrganizationResourceUpdate { + ...Azure.ResourceManager.Foundations.ArmTagsProperty; + + /** Updatable managed service identity */ + ...Azure.ResourceManager.ManagedServiceIdentityProperty; +} + +interface Operations extends Azure.ResourceManager.Operations {} + +@armResourceOperations +interface Organizations { + get is ArmResourceRead; + createOrUpdate is ArmResourceCreateOrReplaceAsync; + update is ArmCustomPatchSync< + OrganizationResource, + OrganizationResourceUpdate + >; + delete is ArmResourceDeleteWithoutOkAsync; + listByResourceGroup is ArmResourceListByParent; + listBySubscription is ArmListBySubscription; +} diff --git a/specification/liftrpinecone/Pinecone.VectorDb.Management/tspconfig.yaml b/specification/liftrpinecone/Pinecone.VectorDb.Management/tspconfig.yaml new file mode 100644 index 000000000000..2c68eef605b1 --- /dev/null +++ b/specification/liftrpinecone/Pinecone.VectorDb.Management/tspconfig.yaml @@ -0,0 +1,21 @@ +emit: + - "@azure-tools/typespec-autorest" +parameters: + "service-dir": + default: "sdk/liftrpinecone" +options: + "@azure-tools/typespec-autorest": + use-read-only-status-schema: true + emitter-output-dir: "{project-root}/.." + azure-resource-provider-folder: "resource-manager" + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json" + examples-dir: "{project-root}/examples" + "@azure-tools/typespec-csharp": + package-dir: "Azure.ResourceManager.PineconeVectorDB" + flavor: azure + clear-output-folder: true + use-write-core: true + namespace: "{package-dir}" +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Operations_List_MaximumSet_Gen.json b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Operations_List_MaximumSet_Gen.json new file mode 100644 index 000000000000..a7679858a35a --- /dev/null +++ b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Operations_List_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List_MaximumSet", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-10-22-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "example-operation-name", + "isDataAction": true, + "display": { + "provider": "Pinecone.Management", + "resource": "organization", + "operation": "Organizations_CreateOrUpdate", + "description": "Example operation description" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Operations_List_MinimumSet_Gen.json b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Operations_List_MinimumSet_Gen.json new file mode 100644 index 000000000000..0893073b35c2 --- /dev/null +++ b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Operations_List_MinimumSet_Gen.json @@ -0,0 +1,12 @@ +{ + "title": "Operations_List_MinimumSet", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-10-22-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json new file mode 100644 index 000000000000..ce61c72e555b --- /dev/null +++ b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json @@ -0,0 +1,188 @@ +{ + "title": "Organizations_CreateOrUpdate_MaximumSet", + "operationId": "Organizations_CreateOrUpdate", + "parameters": { + "api-version": "2024-10-22-preview", + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "resourceGroupName": "rgopenapi", + "organizationname": "example-organization-name", + "resource": { + "properties": { + "marketplace": { + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "4d194daf-fa20-46a8-bfb4-5b7d96cae009", + "offerId": "013124d0-bf05-4eab-a6bb-01fa83870642", + "planId": "62dda065-5acd-4ac5-b418-8610beed92a2", + "planName": "Freemium", + "termUnit": "der", + "termId": "a2b7ce01-f06d-4874-9f77-6ea4a4875c16" + } + }, + "user": { + "firstName": "Jimmy", + "lastName": "McExample", + "emailAddress": "example.user@example.com", + "upn": "example.user@example.com", + "phoneNumber": "555-555-5555" + }, + "partnerProperties": { + "displayName": "My Example Organization" + }, + "singleSignOnProperties": { + "type": "Saml", + "state": "Initial", + "enterpriseAppId": "44d3fb26-d8d5-41ff-9b9a-769737f22f13", + "url": "https://login.pinecone.io/?sso=true&connection=dfwgsqzkbrjqrglcsa", + "aadDomains": [ + "exampledomain" + ] + } + }, + "identity": { + "type": "None", + "userAssignedIdentities": { + "ident904655400": {} + } + }, + "tags": { + "my-tag": "tag.value" + }, + "location": "us-east" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "marketplace": { + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "4d194daf-fa20-46a8-bfb4-5b7d96cae009", + "offerId": "013124d0-bf05-4eab-a6bb-01fa83870642", + "planId": "62dda065-5acd-4ac5-b418-8610beed92a2", + "planName": "Freemium", + "termUnit": "der", + "termId": "a2b7ce01-f06d-4874-9f77-6ea4a4875c16" + } + }, + "user": { + "firstName": "Jimmy", + "lastName": "McExample", + "emailAddress": "example.user@example.com", + "upn": "example.user@example.com", + "phoneNumber": "555-555-5555" + }, + "provisioningState": "Succeeded", + "partnerProperties": { + "displayName": "My Example Organization" + }, + "singleSignOnProperties": { + "type": "Saml", + "state": "Initial", + "enterpriseAppId": "44d3fb26-d8d5-41ff-9b9a-769737f22f13", + "url": "https://login.pinecone.io/?sso=true&connection=dfwgsqzkbrjqrglcsa", + "aadDomains": [ + "exampledomain" + ] + } + }, + "identity": { + "principalId": "98b0f658-9ee0-4376-9f04-cf211154716c", + "tenantId": "b118e9e0-4179-41b7-a978-a205cd312e56", + "type": "None", + "userAssignedIdentities": { + "ident904655400": { + "principalId": "e6beb013-1d4f-4bc7-b6be-33f05f942ae2", + "clientId": "7d5610d7-5c8c-4360-98e5-1ae67a4b6ebe" + } + } + }, + "tags": { + "my-tag": "tag.value" + }, + "location": "us-east", + "id": "/subscriptions/76a38ef6-c8c1-4f0d-bfe0-00ec782c8077/resourceGroups/rgopenapi/providers/Pinecone/organizations/example-organization-name", + "name": "example-organization-name", + "type": "Pinecone.Management/organization", + "systemData": { + "createdBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "createdByType": "User", + "createdAt": "2024-10-22T20:59:36.290Z", + "lastModifiedBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-22T20:59:36.290Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "marketplace": { + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "4d194daf-fa20-46a8-bfb4-5b7d96cae009", + "offerId": "013124d0-bf05-4eab-a6bb-01fa83870642", + "planId": "62dda065-5acd-4ac5-b418-8610beed92a2", + "planName": "Freemium", + "termUnit": "der", + "termId": "a2b7ce01-f06d-4874-9f77-6ea4a4875c16" + } + }, + "user": { + "firstName": "Jimmy", + "lastName": "McExample", + "emailAddress": "example.user@example.com", + "upn": "example.user@example.com", + "phoneNumber": "555-555-5555" + }, + "provisioningState": "Succeeded", + "partnerProperties": { + "displayName": "My Example Organization" + }, + "singleSignOnProperties": { + "type": "Saml", + "state": "Initial", + "enterpriseAppId": "44d3fb26-d8d5-41ff-9b9a-769737f22f13", + "url": "https://login.pinecone.io/?sso=true&connection=dfwgsqzkbrjqrglcsa", + "aadDomains": [ + "exampledomain" + ] + } + }, + "identity": { + "principalId": "98b0f658-9ee0-4376-9f04-cf211154716c", + "tenantId": "b118e9e0-4179-41b7-a978-a205cd312e56", + "type": "None", + "userAssignedIdentities": { + "ident904655400": { + "principalId": "e6beb013-1d4f-4bc7-b6be-33f05f942ae2", + "clientId": "7d5610d7-5c8c-4360-98e5-1ae67a4b6ebe" + } + } + }, + "tags": { + "my-tag": "tag.value" + }, + "location": "us-east", + "id": "/subscriptions/76a38ef6-c8c1-4f0d-bfe0-00ec782c8077/resourceGroups/rgopenapi/providers/Pinecone/organizations/example-organization-name", + "name": "example-organization-name", + "type": "Pinecone.Management/organization", + "systemData": { + "createdBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "createdByType": "User", + "createdAt": "2024-10-22T20:59:36.290Z", + "lastModifiedBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-22T20:59:36.290Z" + } + } + } + } +} diff --git a/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_Delete_MaximumSet_Gen.json b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..b55833b4eef9 --- /dev/null +++ b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_Delete_MaximumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "Organizations_Delete_MaximumSet", + "operationId": "Organizations_Delete", + "parameters": { + "api-version": "2024-10-22-preview", + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "resourceGroupName": "rgopenapi", + "organizationname": "example-organization-name" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_Get_MaximumSet_Gen.json b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..16c12492f9e0 --- /dev/null +++ b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_Get_MaximumSet_Gen.json @@ -0,0 +1,76 @@ +{ + "title": "Organizations_Get_MaximumSet", + "operationId": "Organizations_Get", + "parameters": { + "api-version": "2024-10-22-preview", + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "resourceGroupName": "rgopenapi", + "organizationname": "example-organization-name" + }, + "responses": { + "200": { + "body": { + "properties": { + "marketplace": { + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "4d194daf-fa20-46a8-bfb4-5b7d96cae009", + "offerId": "013124d0-bf05-4eab-a6bb-01fa83870642", + "planId": "62dda065-5acd-4ac5-b418-8610beed92a2", + "planName": "Freemium", + "termUnit": "der", + "termId": "a2b7ce01-f06d-4874-9f77-6ea4a4875c16" + } + }, + "user": { + "firstName": "Jimmy", + "lastName": "McExample", + "emailAddress": "example.user@example.com", + "upn": "example.user@example.com", + "phoneNumber": "555-555-5555" + }, + "provisioningState": "Succeeded", + "partnerProperties": { + "displayName": "My Example Organization" + }, + "singleSignOnProperties": { + "type": "Saml", + "state": "Initial", + "enterpriseAppId": "44d3fb26-d8d5-41ff-9b9a-769737f22f13", + "url": "https://login.pinecone.io/?sso=true&connection=dfwgsqzkbrjqrglcsa", + "aadDomains": [ + "exampledomain" + ] + } + }, + "identity": { + "principalId": "98b0f658-9ee0-4376-9f04-cf211154716c", + "tenantId": "b118e9e0-4179-41b7-a978-a205cd312e56", + "type": "None", + "userAssignedIdentities": { + "ident904655400": { + "principalId": "e6beb013-1d4f-4bc7-b6be-33f05f942ae2", + "clientId": "7d5610d7-5c8c-4360-98e5-1ae67a4b6ebe" + } + } + }, + "tags": { + "my-tag": "tag.value" + }, + "location": "us-east", + "id": "/subscriptions/76a38ef6-c8c1-4f0d-bfe0-00ec782c8077/resourceGroups/rgopenapi/providers/Pinecone/organizations/example-organization-name", + "name": "example-organization-name", + "type": "Pinecone.Management/organization", + "systemData": { + "createdBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "createdByType": "User", + "createdAt": "2024-10-22T20:59:36.290Z", + "lastModifiedBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-22T20:59:36.290Z" + } + } + } + } +} diff --git a/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json new file mode 100644 index 000000000000..0491760dd348 --- /dev/null +++ b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json @@ -0,0 +1,80 @@ +{ + "title": "Organizations_ListByResourceGroup_MaximumSet", + "operationId": "Organizations_ListByResourceGroup", + "parameters": { + "api-version": "2024-10-22-preview", + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "resourceGroupName": "rgopenapi" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "marketplace": { + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "4d194daf-fa20-46a8-bfb4-5b7d96cae009", + "offerId": "013124d0-bf05-4eab-a6bb-01fa83870642", + "planId": "62dda065-5acd-4ac5-b418-8610beed92a2", + "planName": "Freemium", + "termUnit": "der", + "termId": "a2b7ce01-f06d-4874-9f77-6ea4a4875c16" + } + }, + "user": { + "firstName": "Jimmy", + "lastName": "McExample", + "emailAddress": "example.user@example.com", + "upn": "example.user@example.com", + "phoneNumber": "555-555-5555" + }, + "provisioningState": "Succeeded", + "partnerProperties": { + "displayName": "My Example Organization" + }, + "singleSignOnProperties": { + "type": "Saml", + "state": "Initial", + "enterpriseAppId": "44d3fb26-d8d5-41ff-9b9a-769737f22f13", + "url": "https://login.pinecone.io/?sso=true&connection=dfwgsqzkbrjqrglcsa", + "aadDomains": [ + "exampledomain" + ] + } + }, + "identity": { + "principalId": "98b0f658-9ee0-4376-9f04-cf211154716c", + "tenantId": "b118e9e0-4179-41b7-a978-a205cd312e56", + "type": "None", + "userAssignedIdentities": { + "ident904655400": { + "principalId": "e6beb013-1d4f-4bc7-b6be-33f05f942ae2", + "clientId": "7d5610d7-5c8c-4360-98e5-1ae67a4b6ebe" + } + } + }, + "tags": { + "my-tag": "tag.value" + }, + "location": "us-east", + "id": "/subscriptions/76a38ef6-c8c1-4f0d-bfe0-00ec782c8077/resourceGroups/rgopenapi/providers/Pinecone/organizations/example-organization-name", + "name": "example-organization-name", + "type": "Pinecone.Management/organization", + "systemData": { + "createdBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "createdByType": "User", + "createdAt": "2024-10-22T20:59:36.290Z", + "lastModifiedBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-22T20:59:36.290Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_ListBySubscription_MaximumSet_Gen.json b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_ListBySubscription_MaximumSet_Gen.json new file mode 100644 index 000000000000..261b952da736 --- /dev/null +++ b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_ListBySubscription_MaximumSet_Gen.json @@ -0,0 +1,79 @@ +{ + "title": "Organizations_ListBySubscription_MaximumSet", + "operationId": "Organizations_ListBySubscription", + "parameters": { + "api-version": "2024-10-22-preview", + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "marketplace": { + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "4d194daf-fa20-46a8-bfb4-5b7d96cae009", + "offerId": "013124d0-bf05-4eab-a6bb-01fa83870642", + "planId": "62dda065-5acd-4ac5-b418-8610beed92a2", + "planName": "Freemium", + "termUnit": "der", + "termId": "a2b7ce01-f06d-4874-9f77-6ea4a4875c16" + } + }, + "user": { + "firstName": "Jimmy", + "lastName": "McExample", + "emailAddress": "example.user@example.com", + "upn": "example.user@example.com", + "phoneNumber": "555-555-5555" + }, + "provisioningState": "Succeeded", + "partnerProperties": { + "displayName": "My Example Organization" + }, + "singleSignOnProperties": { + "type": "Saml", + "state": "Initial", + "enterpriseAppId": "44d3fb26-d8d5-41ff-9b9a-769737f22f13", + "url": "https://login.pinecone.io/?sso=true&connection=dfwgsqzkbrjqrglcsa", + "aadDomains": [ + "exampledomain" + ] + } + }, + "identity": { + "principalId": "98b0f658-9ee0-4376-9f04-cf211154716c", + "tenantId": "b118e9e0-4179-41b7-a978-a205cd312e56", + "type": "None", + "userAssignedIdentities": { + "ident904655400": { + "principalId": "e6beb013-1d4f-4bc7-b6be-33f05f942ae2", + "clientId": "7d5610d7-5c8c-4360-98e5-1ae67a4b6ebe" + } + } + }, + "tags": { + "my-tag": "tag.value" + }, + "location": "us-east", + "id": "/subscriptions/76a38ef6-c8c1-4f0d-bfe0-00ec782c8077/resourceGroups/rgopenapi/providers/Pinecone/organizations/example-organization-name", + "name": "example-organization-name", + "type": "Pinecone.Management/organization", + "systemData": { + "createdBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "createdByType": "User", + "createdAt": "2024-10-22T20:59:36.290Z", + "lastModifiedBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-22T20:59:36.290Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_Update_MaximumSet_Gen.json b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..75f02cec3e17 --- /dev/null +++ b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/examples/Organizations_Update_MaximumSet_Gen.json @@ -0,0 +1,92 @@ +{ + "title": "Organizations_Update_MaximumSet", + "operationId": "Organizations_Update", + "parameters": { + "api-version": "2024-10-22-preview", + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "resourceGroupName": "rgopenapi", + "organizationname": "example-organization-name", + "properties": { + "tags": { + "new-tag": "new.tag.value" + }, + "identity": { + "type": "None", + "userAssignedIdentities": { + "ident573739201": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "marketplace": { + "subscriptionId": "76a38ef6-c8c1-4f0d-bfe0-00ec782c8077", + "subscriptionStatus": "PendingFulfillmentStart", + "offerDetails": { + "publisherId": "4d194daf-fa20-46a8-bfb4-5b7d96cae009", + "offerId": "013124d0-bf05-4eab-a6bb-01fa83870642", + "planId": "62dda065-5acd-4ac5-b418-8610beed92a2", + "planName": "Freemium", + "termUnit": "der", + "termId": "a2b7ce01-f06d-4874-9f77-6ea4a4875c16" + } + }, + "user": { + "firstName": "Jimmy", + "lastName": "McExample", + "emailAddress": "example.user@example.com", + "upn": "example.user@example.com", + "phoneNumber": "555-555-5555" + }, + "provisioningState": "Succeeded", + "partnerProperties": { + "displayName": "My Example Organization" + }, + "singleSignOnProperties": { + "type": "Saml", + "state": "Initial", + "enterpriseAppId": "44d3fb26-d8d5-41ff-9b9a-769737f22f13", + "url": "https://login.pinecone.io/?sso=true&connection=dfwgsqzkbrjqrglcsa", + "aadDomains": [ + "exampledomain" + ] + } + }, + "identity": { + "principalId": "98b0f658-9ee0-4376-9f04-cf211154716c", + "tenantId": "b118e9e0-4179-41b7-a978-a205cd312e56", + "type": "None", + "userAssignedIdentities": { + "ident904655400": { + "principalId": "e6beb013-1d4f-4bc7-b6be-33f05f942ae2", + "clientId": "7d5610d7-5c8c-4360-98e5-1ae67a4b6ebe" + }, + "ident573739201": { + "principalId": "11825db4-1123-4467-a000-49e399e33f90", + "clientId": "4bd8300e-5c3c-4ca2-8a95-a299df986b8d" + } + } + }, + "tags": { + "my-tag": "tag.value", + "new-tag": "new.tag.value" + }, + "location": "us-east", + "id": "/subscriptions/76a38ef6-c8c1-4f0d-bfe0-00ec782c8077/resourceGroups/rgopenapi/providers/Pinecone/organizations/example-organization-name", + "name": "example-organization-name", + "type": "Pinecone.Management/organization", + "systemData": { + "createdBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "createdByType": "User", + "createdAt": "2024-10-22T20:59:36.290Z", + "lastModifiedBy": "a8006d37-bf85-4ab3-bf9d-2fb4702a1cfb", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-10-22T21:33:13.330Z" + } + } + } + } +} diff --git a/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/openapi.json b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/openapi.json new file mode 100644 index 000000000000..ad980c99f1a5 --- /dev/null +++ b/specification/liftrpinecone/resource-manager/Pinecone.VectorDb/preview/2024-10-22-preview/openapi.json @@ -0,0 +1,800 @@ +{ + "swagger": "2.0", + "info": { + "title": "Pinecone management service", + "version": "2024-10-22-preview", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "Organizations" + } + ], + "paths": { + "/providers/Pinecone.VectorDb/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List_MaximumSet": { + "$ref": "./examples/Operations_List_MaximumSet_Gen.json" + }, + "Operations_List_MinimumSet": { + "$ref": "./examples/Operations_List_MinimumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Pinecone.VectorDb/organizations": { + "get": { + "operationId": "Organizations_ListBySubscription", + "tags": [ + "Organizations" + ], + "description": "List OrganizationResource resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/OrganizationResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Organizations_ListBySubscription_MaximumSet": { + "$ref": "./examples/Organizations_ListBySubscription_MaximumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Pinecone.VectorDb/organizations": { + "get": { + "operationId": "Organizations_ListByResourceGroup", + "tags": [ + "Organizations" + ], + "description": "List OrganizationResource resources by resource group", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/OrganizationResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Organizations_ListByResourceGroup_MaximumSet": { + "$ref": "./examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Pinecone.VectorDb/organizations/{organizationname}": { + "get": { + "operationId": "Organizations_Get", + "tags": [ + "Organizations" + ], + "description": "Get a OrganizationResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "organizationname", + "in": "path", + "description": "Name of the Organization resource", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/OrganizationResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Organizations_Get_MaximumSet": { + "$ref": "./examples/Organizations_Get_MaximumSet_Gen.json" + } + } + }, + "put": { + "operationId": "Organizations_CreateOrUpdate", + "tags": [ + "Organizations" + ], + "description": "Create a OrganizationResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "organizationname", + "in": "path", + "description": "Name of the Organization resource", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/OrganizationResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'OrganizationResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/OrganizationResource" + } + }, + "201": { + "description": "Resource 'OrganizationResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/OrganizationResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Organizations_CreateOrUpdate_MaximumSet": { + "$ref": "./examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Organizations_Update", + "tags": [ + "Organizations" + ], + "description": "Update a OrganizationResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "organizationname", + "in": "path", + "description": "Name of the Organization resource", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/OrganizationResourceUpdate" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/OrganizationResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Organizations_Update_MaximumSet": { + "$ref": "./examples/Organizations_Update_MaximumSet_Gen.json" + } + } + }, + "delete": { + "operationId": "Organizations_Delete", + "tags": [ + "Organizations" + ], + "description": "Delete a OrganizationResource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "organizationname", + "in": "path", + "description": "Name of the Organization resource", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Organizations_Delete_MaximumSet": { + "$ref": "./examples/Organizations_Delete_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityUpdate": { + "type": "object", + "description": "Managed service identity (system assigned and/or user assigned identities)", + "properties": { + "type": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentityType", + "description": "The type of managed identity assigned to this resource." + }, + "userAssignedIdentities": { + "type": "object", + "description": "The identities assigned to this resource by the user.", + "additionalProperties": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/UserAssignedIdentity" + } + ], + "type": "object", + "x-nullable": true + } + } + } + }, + "Azure.ResourceManager.ResourceProvisioningState": { + "type": "string", + "description": "The provisioning state of a resource type.", + "enum": [ + "Succeeded", + "Failed", + "Canceled" + ], + "x-ms-enum": { + "name": "ResourceProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + } + ] + }, + "readOnly": true + }, + "LiftrBase.MarketplaceDetails": { + "type": "object", + "description": "Marketplace details for an organization", + "properties": { + "subscriptionId": { + "type": "string", + "description": "Azure subscription id for the the marketplace offer is purchased from" + }, + "subscriptionStatus": { + "$ref": "#/definitions/LiftrBase.MarketplaceSubscriptionStatus", + "description": "Marketplace subscription status", + "readOnly": true + }, + "offerDetails": { + "$ref": "#/definitions/LiftrBase.OfferDetails", + "description": "Offer details for the marketplace that is selected by the user" + } + }, + "required": [ + "subscriptionId", + "offerDetails" + ] + }, + "LiftrBase.MarketplaceSubscriptionStatus": { + "type": "string", + "description": "Marketplace subscription status of a resource.", + "enum": [ + "PendingFulfillmentStart", + "Subscribed", + "Suspended", + "Unsubscribed" + ], + "x-ms-enum": { + "name": "MarketplaceSubscriptionStatus", + "modelAsString": true, + "values": [ + { + "name": "PendingFulfillmentStart", + "value": "PendingFulfillmentStart", + "description": "Purchased but not yet activated" + }, + { + "name": "Subscribed", + "value": "Subscribed", + "description": "Marketplace subscription is activated" + }, + { + "name": "Suspended", + "value": "Suspended", + "description": "This state indicates that a customer's payment for the Marketplace service was not received" + }, + { + "name": "Unsubscribed", + "value": "Unsubscribed", + "description": "Customer has cancelled the subscription" + } + ] + } + }, + "LiftrBase.OfferDetails": { + "type": "object", + "description": "Offer details for the marketplace that is selected by the user", + "properties": { + "publisherId": { + "type": "string", + "description": "Publisher Id for the marketplace offer" + }, + "offerId": { + "type": "string", + "description": "Offer Id for the marketplace offer" + }, + "planId": { + "type": "string", + "description": "Plan Id for the marketplace offer" + }, + "planName": { + "type": "string", + "description": "Plan Name for the marketplace offer" + }, + "termUnit": { + "type": "string", + "description": "Plan Display Name for the marketplace offer" + }, + "termId": { + "type": "string", + "description": "Plan Display Name for the marketplace offer" + } + }, + "required": [ + "publisherId", + "offerId", + "planId" + ] + }, + "LiftrBase.SingleSignOnPropertiesV2": { + "type": "object", + "description": "Properties specific to Single Sign On Resource", + "properties": { + "type": { + "$ref": "#/definitions/LiftrBase.SingleSignOnType", + "description": "Type of Single Sign-On mechanism being used" + }, + "state": { + "$ref": "#/definitions/LiftrBase.SingleSignOnStates", + "description": "State of the Single Sign On for the resource" + }, + "enterpriseAppId": { + "type": "string", + "description": "AAD enterprise application Id used to setup SSO" + }, + "url": { + "$ref": "#/definitions/LiftrBase.Uri", + "description": "URL for SSO to be used by the partner to redirect the user to their system" + }, + "aadDomains": { + "type": "array", + "description": "List of AAD domains fetched from Microsoft Graph for user.", + "items": { + "type": "string" + } + } + }, + "required": [ + "type" + ] + }, + "LiftrBase.SingleSignOnStates": { + "type": "string", + "description": "Various states of the SSO resource", + "enum": [ + "Initial", + "Enable", + "Disable" + ], + "x-ms-enum": { + "name": "SingleSignOnStates", + "modelAsString": true, + "values": [ + { + "name": "Initial", + "value": "Initial", + "description": "Initial state of the SSO resource" + }, + { + "name": "Enable", + "value": "Enable", + "description": "State of the SSO resource when it is enabled" + }, + { + "name": "Disable", + "value": "Disable", + "description": "State of the SSO resource when it is disabled" + } + ] + } + }, + "LiftrBase.SingleSignOnType": { + "type": "string", + "description": "Defines the type of Single Sign-On (SSO) mechanism being used", + "enum": [ + "Saml", + "OpenId" + ], + "x-ms-enum": { + "name": "SingleSignOnType", + "modelAsString": true, + "values": [ + { + "name": "Saml", + "value": "Saml", + "description": "Security Assertion Markup Language (SAML) based Single Sign-On" + }, + { + "name": "OpenId", + "value": "OpenId", + "description": "OpenID Connect based Single Sign-On." + } + ] + } + }, + "LiftrBase.Uri": { + "type": "string", + "description": "A string that represents a URI." + }, + "LiftrBase.UserDetails": { + "type": "object", + "description": "User details for an organization", + "properties": { + "firstName": { + "type": "string", + "description": "First name of the user" + }, + "lastName": { + "type": "string", + "description": "Last name of the user" + }, + "emailAddress": { + "$ref": "#/definitions/LiftrBase.email", + "description": "Email address of the user" + }, + "upn": { + "type": "string", + "description": "User's principal name" + }, + "phoneNumber": { + "type": "string", + "description": "User's phone number" + } + }, + "required": [ + "firstName", + "lastName", + "emailAddress" + ] + }, + "LiftrBase.email": { + "type": "string", + "description": "Reusable representation of an email address.", + "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$" + }, + "OrganizationProperties": { + "type": "object", + "description": "Properties specific to Organization", + "properties": { + "marketplace": { + "$ref": "#/definitions/LiftrBase.MarketplaceDetails", + "description": "Marketplace details of the resource.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "user": { + "$ref": "#/definitions/LiftrBase.UserDetails", + "description": "Details of the user." + }, + "provisioningState": { + "$ref": "#/definitions/Azure.ResourceManager.ResourceProvisioningState", + "description": "Provisioning state of the resource.", + "readOnly": true + }, + "partnerProperties": { + "$ref": "#/definitions/PartnerProperties", + "description": "partner properties" + }, + "singleSignOnProperties": { + "$ref": "#/definitions/LiftrBase.SingleSignOnPropertiesV2", + "description": "Single sign-on properties" + } + }, + "required": [ + "marketplace", + "user" + ] + }, + "OrganizationResource": { + "type": "object", + "description": "Concrete tracked resource types can be created by aliasing this type using a specific property type.", + "properties": { + "properties": { + "$ref": "#/definitions/OrganizationProperties", + "description": "The resource-specific properties for this resource." + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The managed service identities assigned to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "OrganizationResourceListResult": { + "type": "object", + "description": "The response of a OrganizationResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The OrganizationResource items on this page", + "items": { + "$ref": "#/definitions/OrganizationResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "OrganizationResourceUpdate": { + "type": "object", + "description": "The type used for update operations of the Organization Resource.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "identity": { + "$ref": "#/definitions/Azure.ResourceManager.CommonTypes.ManagedServiceIdentityUpdate", + "description": "The managed service identities assigned to this resource." + } + } + }, + "PartnerProperties": { + "type": "object", + "description": "Partner's specific Properties", + "properties": { + "displayName": { + "type": "string", + "description": "Pinecone Organization Name", + "minLength": 1, + "maxLength": 512, + "pattern": "^[^\\0]+$" + } + }, + "required": [ + "displayName" + ] + } + }, + "parameters": {} +} diff --git a/specification/liftrpinecone/resource-manager/readme.md b/specification/liftrpinecone/resource-manager/readme.md new file mode 100644 index 000000000000..18fa46785202 --- /dev/null +++ b/specification/liftrpinecone/resource-manager/readme.md @@ -0,0 +1,45 @@ +# LiftrBasic.SampleRP RP + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for liftrpinecone service. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the liftrpinecone service. + +```yaml +openapi-type: arm +openapi-subtype: rpaas +tag: package-2024-10-22-preview +suppressions: + - code: AvoidAnonymousTypes + where: + - $.definitions["ManagedServiceIdentityUpdate"].properties["userAssignedIdentities"].additionalProperties + reason: + Issue with common-types +``` +### Tag: package-2024-10-22-preview + +These settings apply only when `--tag=package-2024-10-22-preview` is specified on the command line. + +```yaml $(tag) == 'package-2024-10-22-preview' +input-file: + - Pinecone.VectorDb/preview/2024-10-22-preview/openapi.json +``` \ No newline at end of file From 686e46ec33eefe2a9a436159cc460de0f769cb03 Mon Sep 17 00:00:00 2001 From: Xiaofei Cao <92354331+XiaofeiCao@users.noreply.github.com> Date: Wed, 11 Dec 2024 14:58:19 +0800 Subject: [PATCH 25/26] rename (#31792) --- .../loadtestservice/resource-manager/readme.java.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/specification/loadtestservice/resource-manager/readme.java.md b/specification/loadtestservice/resource-manager/readme.java.md index 472346c01651..00f260bd567e 100644 --- a/specification/loadtestservice/resource-manager/readme.java.md +++ b/specification/loadtestservice/resource-manager/readme.java.md @@ -4,4 +4,9 @@ These settings apply only when `--java` is specified on the command line. ```yaml $(java) property-include-always: EncryptionPropertiesIdentity.resourceId +directive: + from: loadtestservice.json + where: "$.definitions.LoadTestResourceUpdate" + transform: > + $["x-ms-client-name"] = "LoadTestResourcePatchRequestBody"; ``` From faebe07bdf8bab920fbecdef2426772179984932 Mon Sep 17 00:00:00 2001 From: Albert Cheng <38804567+ckairen@users.noreply.github.com> Date: Wed, 11 Dec 2024 09:08:22 -0800 Subject: [PATCH 26/26] Descend from alps (typespec apiview) (#31656) * typespec apiview & get changed filse * file checkpoint * revert change * temp save * initial * testing * telem aroudn impacted typespec * fix get impacted typespec * change swagger into typespec * resource provider * out null * new item force * telem artifacts dir * telem * telem * Fix file path for artifacts * Fix file path for artifacts * Fix file path for artifacts * Syntax * Syntax * shorten dir path * cleanup * readme variables rename * pr udpate: function name chanage + remove tspconfig as changed file * Update eng/scripts/Create-APIView.ps1 Co-authored-by: Mike Harder * add testing to contoso manager * targetting staging * adding scenario for new project without baseline * npm ci at earlier stage * syntax * fix baseline path * Add trailing newline * Update eng/pipelines/typespec-apiview.yml Co-authored-by: Ben Broderick Phillips * spelling * Update eng/scripts/Create-APIView.ps1 Co-authored-by: Wes Haggard * remove get ipmacted typespec * error check * add ignore core * spelling * try finally for git checkout * print out npx command * Update eng/pipelines/typespec-apiview.yml * comment * Update specification/contosowidgetmanager/Contoso.Management/employee.tsp * in case typespec folder is empty * test * remove test * create typeSpecAPIViewArtifactsDirectory * test * remove test * Update eng/scripts/Get-TypeSpec-Folders.ps1 * test * remove test * include all pr as trigger * test * remove test --------- Co-authored-by: Mike Harder Co-authored-by: Ben Broderick Phillips Co-authored-by: Wes Haggard --- eng/pipelines/typespec-apiview.yml | 54 +++++++++ eng/scripts/ChangedFiles-Functions.ps1 | 10 ++ eng/scripts/Create-APIView.ps1 | 152 +++++++++++++++++++++++-- eng/scripts/Get-TypeSpec-Folders.ps1 | 7 +- 4 files changed, 214 insertions(+), 9 deletions(-) create mode 100644 eng/pipelines/typespec-apiview.yml diff --git a/eng/pipelines/typespec-apiview.yml b/eng/pipelines/typespec-apiview.yml new file mode 100644 index 000000000000..53ee3e494aca --- /dev/null +++ b/eng/pipelines/typespec-apiview.yml @@ -0,0 +1,54 @@ +parameters: + - name: APIViewArtifactsDirectoryName + type: string + default: 'TypespecAPIViewArtifacts' + - name: APIViewArtifactsName + type: string + default: 'typeSpecAPIViewArtifacts' + - name: APIViewAPIUri + type: string + default: 'https://apiview.dev/PullRequest/DetectAPIChanges' + # Please use 'https://apiviewstagingtest.com/PullRequest/DetectAPIChanges' for testing purposes + +jobs: +- job: + pool: + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: ubuntu-22.04 + + steps: + - checkout: self + fetchDepth: 0 + + - template: /eng/pipelines/templates/steps/npm-install.yml + + - pwsh: | + . $(Build.SourcesDirectory)/eng/scripts/Create-APIView.ps1 + New-TypeSpecAPIViewTokens ` + -TempDirectory "$(Agent.TempDirectory)" ` + -ArtifactsStagingDirectory "$(Build.ArtifactStagingDirectory)" ` + -APIViewArtifactsDirectoryName "${{ parameters.APIViewArtifactsDirectoryName }}" + displayName: Generate TypeSpec APIView Tokens + + - task: PublishPipelineArtifact@1 + inputs: + targetPath: '$(Build.ArtifactStagingDirectory)/${{ parameters.APIViewArtifactsDirectoryName }}' + artifactName: '${{ parameters.APIViewArtifactsName }}' + publishLocation: 'pipeline' + displayName: 'Publish TypeSpec APIView Artifacts' + condition: and(succeeded(), ne(variables['Agent.JobStatus'], 'SucceededWithIssues')) + + - pwsh: | + . $(Build.SourcesDirectory)/eng/scripts/Create-APIView.ps1 + New-RestSpecsAPIViewReviews ` + -ArtiFactsStagingDirectory $(Build.ArtifactStagingDirectory) ` + -APIViewArtifactsDirectoryName ${{ parameters.APIViewArtifactsDirectoryName }} ` + -APIViewArtifactsName ${{ parameters.APIViewArtifactsName }} ` + -APIViewUri ${{ parameters.APIViewAPIUri }} ` + -BuildId $(Build.BuildId) ` + -RepoName $(Build.Repository.Name) ` + -PullRequestNumber $(System.PullRequest.PullRequestNumber)` + -Language 'TypeSpec' ` + -CommitSha $(Build.SourceVersion) + displayName: Create TypeSpec APIView + condition: and(succeeded(), ne(variables['Agent.JobStatus'], 'SucceededWithIssues')) diff --git a/eng/scripts/ChangedFiles-Functions.ps1 b/eng/scripts/ChangedFiles-Functions.ps1 index 927d4d3156a5..1a84809d4eb5 100644 --- a/eng/scripts/ChangedFiles-Functions.ps1 +++ b/eng/scripts/ChangedFiles-Functions.ps1 @@ -28,6 +28,16 @@ function Get-ChangedSwaggerFiles($changedFiles = (Get-ChangedFiles)) { return $changedSwaggerFiles } +function Get-ChangedTypeSpecFiles($changedFiles = (Get-ChangedFiles)) { + $changedFiles = Get-ChangedFilesUnderSpecification $changedFiles + + $changedTypeSpecFiles = $changedFiles.Where({ + $_.EndsWith(".tsp") + }) + + return $changedTypeSpecFiles +} + function Get-ChangedFilesUnderSpecification($changedFiles = (Get-ChangedFiles)) { $changedFilesUnderSpecification = $changedFiles.Where({ $_.StartsWith("specification") diff --git a/eng/scripts/Create-APIView.ps1 b/eng/scripts/Create-APIView.ps1 index 248f441e5805..987781886e45 100644 --- a/eng/scripts/Create-APIView.ps1 +++ b/eng/scripts/Create-APIView.ps1 @@ -166,6 +166,68 @@ function Invoke-SwaggerAPIViewParser { } } +<# +.DESCRIPTION + Invoke the TypeSpec parser to generate APIView tokens. + +.PARAMETER Type + New or Baseline TypeSpec APIView tokens. + +.PARAMETER ProjectPath + The TypeSpec Project path. + +.PARAMETER ResourceProvider + The ResourceProvider Name. + +.PARAMETER Tag + The Tag to use for generating the APIView Tokens. + +.PARAMETER TokenDirectory + The directory to store the generated APIView Tokens. + +.OUTPUTS + The resource provider name. +#> +function Invoke-TypeSpecAPIViewParser { + param ( + [ValidateSet("New", "Baseline")] + [Parameter(Mandatory = $true)] + [string]$Type, + [Parameter(Mandatory = $true)] + [string]$ProjectPath, + [Parameter(Mandatory = $true)] + [string]$ResourceProvider, + [Parameter(Mandatory = $true)] + [string]$TokenDirectory + ) + $tempWorkingDirectoryName = [guid]::NewGuid().ToString() + $tempWorkingDirectoryPath = [System.IO.Path]::Combine($TempDirectory, $tempWorkingDirectoryName) + New-Item -ItemType Directory -Path $tempWorkingDirectoryPath > $null + + try { + Write-Host "Compiling files and generating '$Type' APIView for '$resourceProvider'..." + Push-Location $ProjectPath + Write-Host "npm exec --no -- tsp compile . --emit=@azure-tools/typespec-apiview --option @azure-tools/typespec-apiview.emitter-output-dir=$tempWorkingDirectoryPath/output/apiview.json" + npm exec --no -- tsp compile . --emit=@azure-tools/typespec-apiview --option @azure-tools/typespec-apiview.emitter-output-dir=$tempWorkingDirectoryPath/output/apiview.json + if ($LASTEXITCODE) { + throw + } + Pop-Location + + $generatedAPIViewTokenFile = Get-ChildItem -File $tempWorkingDirectoryPath/output/apiview.json | Select-Object -First 1 + $apiViewTokensFilePath = [System.IO.Path]::Combine($TokenDirectory, "$resourceProvider.$Type.json") + Write-Host "Moving generated APIView Token file to '$apiViewTokensFilePath'" + Move-Item -Path $generatedAPIViewTokenFile.FullName -Destination $apiViewTokensFilePath -Force > $null + } catch { + LogError " Failed to generate '$Type' APIView Tokens on '$ProjectPath' for '$resourceProvider', please check the detail log and make sure TypeSpec compiler version is the latest." + throw + } finally { + if (Test-Path -Path $tempWorkingDirectoryPath) { + Remove-Item -Path $tempWorkingDirectoryPath -Recurse -Force > $null + } + } +} + <# .DESCRIPTION Generate New and Baseline APIView tokens for the changed swagger files in the PR. @@ -177,7 +239,7 @@ function Invoke-SwaggerAPIViewParser { .PARAMETER TempDirectory Temporary directory for files being processed. Use $(Agent.TempDirectory) on DevOps -.PARAMETER ArtiFactsStagingDirectory +.PARAMETER ArtifactsStagingDirectory The directory where the APIView tokens will be stored. Use $(Build.ArtifactStagingDirectory) on DevOps .PARAMETER APIViewArtifactsDirectoryName @@ -188,7 +250,7 @@ function New-SwaggerAPIViewTokens { [Parameter(Mandatory = $true)] [string]$TempDirectory, [Parameter(Mandatory = $true)] - [string]$ArtiFactsStagingDirectory, + [string]$ArtifactsStagingDirectory, [Parameter(Mandatory = $true)] [string]$APIViewArtifactsDirectoryName ) @@ -230,7 +292,7 @@ function New-SwaggerAPIViewTokens { $currentBranch = git rev-parse --abbrev-ref HEAD - $swaggerAPIViewArtifactsDirectory = [System.IO.Path]::Combine($ArtiFactsStagingDirectory, $APIViewArtifactsDirectoryName) + $swaggerAPIViewArtifactsDirectory = [System.IO.Path]::Combine($ArtifactsStagingDirectory, $APIViewArtifactsDirectoryName) # Generate Swagger APIView Tokens foreach ($entry in $autoRestConfigInfo.GetEnumerator()) { @@ -273,11 +335,87 @@ function New-SwaggerAPIViewTokens { LogGroupEnd } +<# +.DESCRIPTION + Generate New and Baseline APIView tokens for the changed TypeSpec files in the PR. + Detects the TypeSpec files changed in the PR and generates APIView tokens for the TypeSpec files. + New APIView tokens are generated using the default tag on the base branch. + Baseline APIView tokens are generated using the same tag on the target branch. + Script asumes that the merge commit is checked out. Such that Source commit = HEAD^ and Target commit = HEAD. + +.PARAMETER TempDirectory + Temporary directory for files being processed. Use $(Agent.TempDirectory) on DevOps + +.PARAMETER ArtifactsStagingDirectory + The directory where the APIView tokens will be stored. Use $(Build.ArtifactStagingDirectory) on DevOps + +.PARAMETER APIViewArtifactsDirectoryName + Name for the subdirectory where the APIView tokens will be stored. +#> +function New-TypeSpecAPIViewTokens { + param ( + [Parameter(Mandatory = $true)] + [string]$TempDirectory, + [Parameter(Mandatory = $true)] + [string]$ArtifactsStagingDirectory, + [Parameter(Mandatory = $true)] + [string]$APIViewArtifactsDirectoryName + ) + + $SourceCommitId = $(git rev-parse HEAD^) + $TargetCommitId = $(git rev-parse HEAD) + + $typeSpecProjects, $null = &"$PSScriptRoot/Get-TypeSpec-Folders.ps1" ` + -IgnoreCoreFiles:$true ` + -BaseCommitish:$SourceCommitId ` + -TargetCommitish:$TargetCommitId + + LogGroupStart " TypeSpec APIView Tokens will be generated for the following configuration files..." + $typeSpecProjects | ForEach-Object { + LogInfo " - $_" + } + LogGroupEnd + + $currentBranch = git rev-parse --abbrev-ref HEAD + + $typeSpecAPIViewArtifactsDirectory = [System.IO.Path]::Combine($ArtifactsStagingDirectory, $APIViewArtifactsDirectoryName) + New-Item -ItemType Directory -Path $typeSpecAPIViewArtifactsDirectory -Force | Out-Null + + try { + # Generate TypeSpec APIView Tokens + foreach ($typeSpecProject in $typeSpecProjects) { + $tokenDirectory = [System.IO.Path]::Combine($typeSpecAPIViewArtifactsDirectory, $typeSpecProject.split([IO.Path]::DirectorySeparatorChar)[-1]) + New-Item -ItemType Directory -Path $tokenDirectory -Force | Out-Null + + # Generate New APIView Token using default tag on base branch + git checkout $SourceCommitId + Invoke-TypeSpecAPIViewParser -Type "New" -ProjectPath $typeSpecProject -ResourceProvider $($typeSpecProject.split([IO.Path]::DirectorySeparatorChar)[-1]) -TokenDirectory $tokenDirectory + + # Generate BaseLine APIView Token using same tag on target branch + git checkout $TargetCommitId + + # Skip Baseline APIView Token for new projects + if (!(Test-Path -Path $typeSpecProject)) { + Write-Host "TypeSpec project $typeSpecProjectDir is not found in pull request target branch. API review will not have a baseline revision." + } + else { + Invoke-TypeSpecAPIViewParser -Type "Baseline" -ProjectPath $typeSpecProject -ResourceProvider $($typeSpecProject.split([IO.Path]::DirectorySeparatorChar)[-1]) -TokenDirectory $tokenDirectory | Out-Null + } + } + } + finally { + git checkout $currentBranch + LogGroupStart " See all generated TypeSpec APIView Artifacts..." + Get-ChildItem -Path $typeSpecAPIViewArtifactsDirectory -Recurse + LogGroupEnd + } +} + <# .DESCRIPTION Create APIView for the published packages. Send DevOps artifacts information to APIView to create APIView for the published packages. -.PARAMETER ArtiFactsStagingDirectory +.PARAMETER ArtifactsStagingDirectory The DevOps artifacts staging directory. Use $(Build.ArtifactStagingDirectory) on DevOps .PARAMETER APIViewArtifactsDirectoryName Temporary Directory for processing the APIView artifacts @@ -292,14 +430,14 @@ TGhe BuildId of the Run .PARAMETER PullRequestNumber The PR number .PARAMETER Language - The language of the resource provider `Swagger` + The language of the resource provider .PARAMETER CommitSha The commit sha of the current branch. Uusally the merge commit of the PR. #> function New-RestSpecsAPIViewReviews { param ( [Parameter(Mandatory = $true)] - [string]$ArtiFactsStagingDirectory, + [string]$ArtifactsStagingDirectory, [Parameter(Mandatory = $true)] [string]$APIViewArtifactsDirectoryName, [Parameter(Mandatory = $true)] @@ -318,7 +456,7 @@ function New-RestSpecsAPIViewReviews { [string]$CommitSha ) - $apiViewArtifactsDirectory = [System.IO.Path]::Combine($ArtiFactsStagingDirectory, $APIViewArtifactsDirectoryName) + $apiViewArtifactsDirectory = [System.IO.Path]::Combine($ArtifactsStagingDirectory, $APIViewArtifactsDirectoryName) $publishedPackages = Get-ChildItem -Path $apiViewArtifactsDirectory -Directory -ErrorAction SilentlyContinue Write-Host "Published packages: $publishedPackages" diff --git a/eng/scripts/Get-TypeSpec-Folders.ps1 b/eng/scripts/Get-TypeSpec-Folders.ps1 index e667216b0bdb..b7a51a69f169 100644 --- a/eng/scripts/Get-TypeSpec-Folders.ps1 +++ b/eng/scripts/Get-TypeSpec-Folders.ps1 @@ -1,5 +1,6 @@ [CmdletBinding()] param ( + [switch]$IgnoreCoreFiles = $false, [switch]$CheckAll = $false, [string]$BaseCommitish = "HEAD^", [string]$TargetCommitish = "HEAD" @@ -21,7 +22,7 @@ else { $changedFiles = @(Get-ChangedFiles -baseCommitish $BaseCommitish -targetCommitish $TargetCommitish -diffFilter "") $coreChangedFiles = Get-ChangedCoreFiles $changedFiles - if ($coreChangedFiles) { + if ($coreChangedFiles -and !$IgnoreCoreFiles) { Write-Verbose "Found changes to core eng or root files so checking all specs." $changedFiles = $checkAllPath $checkedAll = $true @@ -51,6 +52,8 @@ foreach ($skippedTypespecFolder in $skippedTypespecFolders | Select-Object -Uniq Write-Host "Cannot find directory $skippedTypespecFolder" } -$typespecFolders = $typespecFolders | ForEach-Object { [IO.Path]::GetRelativePath($repoPath, $_) -replace '\\', '/' } | Sort-Object -Unique +if ($typespecFolders.Length) { + $typespecFolders = $typespecFolders | ForEach-Object { [IO.Path]::GetRelativePath($repoPath, $_) -replace '\\', '/' } | Sort-Object -Unique +} return @($typespecFolders, $checkedAll)