From cc9a2c66971f7f2240a3403a18d88ee4d01fac61 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Wed, 20 Sep 2023 13:36:46 -0700 Subject: [PATCH 001/187] initial tsp conversion --- .../devcenter/DevCenter/devbox/main.tsp | 19 + .../devcenter/DevCenter/devbox/models.tsp | 404 +++++++++++++++ .../devcenter/DevCenter/devbox/routes.tsp | 462 ++++++++++++++++++ .../devcenter/DevCenter/devbox/tspconfig.yaml | 14 + .../devcenter/DevCenter/devcenter/main.tsp | 19 + .../devcenter/DevCenter/devcenter/models.tsp | 98 ++++ .../devcenter/DevCenter/devcenter/routes.tsp | 38 ++ .../DevCenter/devcenter/tspconfig.yaml | 14 + .../devcenter/DevCenter/environments/main.tsp | 19 + .../DevCenter/environments/models.tsp | 228 +++++++++ .../DevCenter/environments/routes.tsp | 226 +++++++++ .../DevCenter/environments/tspconfig.yaml | 14 + 12 files changed, 1555 insertions(+) create mode 100644 specification/devcenter/DevCenter/devbox/main.tsp create mode 100644 specification/devcenter/DevCenter/devbox/models.tsp create mode 100644 specification/devcenter/DevCenter/devbox/routes.tsp create mode 100644 specification/devcenter/DevCenter/devbox/tspconfig.yaml create mode 100644 specification/devcenter/DevCenter/devcenter/main.tsp create mode 100644 specification/devcenter/DevCenter/devcenter/models.tsp create mode 100644 specification/devcenter/DevCenter/devcenter/routes.tsp create mode 100644 specification/devcenter/DevCenter/devcenter/tspconfig.yaml create mode 100644 specification/devcenter/DevCenter/environments/main.tsp create mode 100644 specification/devcenter/DevCenter/environments/models.tsp create mode 100644 specification/devcenter/DevCenter/environments/routes.tsp create mode 100644 specification/devcenter/DevCenter/environments/tspconfig.yaml diff --git a/specification/devcenter/DevCenter/devbox/main.tsp b/specification/devcenter/DevCenter/devbox/main.tsp new file mode 100644 index 000000000000..268ba6d7f616 --- /dev/null +++ b/specification/devcenter/DevCenter/devbox/main.tsp @@ -0,0 +1,19 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "./routes.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +@service({ + title: "DevCenter", + version: "2023-04-01", +}) +@server( + "{endpoint}", + "DevBox API.", + { + endpoint: string, + } +) +@doc("DevBox API.") +namespace DevCenter; diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp new file mode 100644 index 000000000000..7cf025691ea8 --- /dev/null +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -0,0 +1,404 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; + +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenter; + +enum OsType { + @doc("The Windows operating system.") Windows, +} + +enum HibernateSupport { + @doc("Hibernate is enabled.") Enabled, + @doc("Hibernate is not enabled.") Disabled, + @doc("Hibernate is not supported by the operating system.") OsUnsupported, +} + +enum LocalAdminStatus { + @doc("Owners of Dev Boxes in the pool are local administrators on the Dev Boxes.") + Enabled, + @doc("Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes.") + Disabled, +} + +enum StopOnDisconnectEnableStatus { + @doc("Stop on disconnect is enabled on the Dev Box.") Enabled, + @doc("Stop on disconnect is not enabled on the Dev Box.") Disabled, +} + +enum PoolHealthStatus { + @doc("The pool health status is not known.") Unknown, + @doc("The pool health status waiting for health checks to run.") Pending, + @doc("The pool health status is healthy.") Healthy, + @doc("The pool health status has one or more warnings.") Warning, + @doc("The pool health status is not healthy.") Unhealthy, +} + +enum ScheduledType { + @doc("The scheduled task will stop impacted Dev Boxes.") StopDevBox, +} + +enum ScheduledFrequency { + @doc("The scheduled task will run every day.") Daily, +} + +enum PowerState { + @doc("The Dev Box power state is not known.") Unknown, + @doc("The Dev Box is running.") Running, + @doc("The Dev Box is deallocated.") Deallocated, + @doc("The Dev Box is powered off.") PoweredOff, + @doc("The Dev Box is hibernated.") Hibernated, +} + +enum DevBoxActionType { + @doc("The action will stop the Dev Box.") Stop, +} + +enum DevBoxActionDelayResultStatus { + @doc("The delay operation succeeded.") Succeeded, + @doc("The delay operation failed.") Failed, +} + +@doc("The Pool list result") +model PoolListResult is Azure.Core.Page; + +@doc("A pool of Dev Boxes.") +model Pool { + @doc("Pool name") + name: string; + + @doc("Azure region where Dev Boxes in the pool are located") + location: string; + + @doc("The operating system type of Dev Boxes in this pool") + osType?: OsType; + + @doc("Hardware settings for the Dev Boxes created in this pool") + hardwareProfile?: HardwareProfile; + + @doc("Indicates whether hibernate is enabled/disabled or unknown.") + hibernateSupport?: HibernateSupport; + + @doc("Storage settings for Dev Box created in this pool") + storageProfile?: StorageProfile; + + @doc("Image settings for Dev Boxes create in this pool") + imageReference?: ImageReference; + + @doc(""" +Indicates whether owners of Dev Boxes in this pool are local administrators on +the Dev Boxes. +""") + localAdministrator?: LocalAdminStatus; + + @doc("Stop on disconnect configuration settings for Dev Boxes created in this pool.") + stopOnDisconnect?: StopOnDisconnectConfiguration; + + @doc(""" +Overall health status of the Pool. Indicates whether or not the Pool is +available to create Dev Boxes. +""") + healthStatus: PoolHealthStatus; +} + +@doc("Hardware specifications for the Dev Box.") +model HardwareProfile { + @doc("The name of the SKU") + @visibility("read") + skuName?: string; + + @doc("The number of vCPUs available for the Dev Box.") + @visibility("read") + vCPUs?: int32; + + @doc("The amount of memory available for the Dev Box.") + @visibility("read") + memoryGB?: int32; +} + +@doc("Storage settings for the Dev Box's disks") +model StorageProfile { + @doc("Settings for the operating system disk.") + osDisk?: OSDisk; +} + +@doc("Settings for the operating system disk.") +model OSDisk { + @doc("The size of the OS Disk in gigabytes.") + @visibility("read") + diskSizeGB?: int32; +} + +@doc("Specifies information about the image used") +model ImageReference { + @doc("The name of the image used.") + @visibility("read") + name?: string; + + @doc("The version of the image.") + @visibility("read") + version?: string; + + @doc("The operating system of the image.") + @visibility("read") + operatingSystem?: string; + + @doc("The operating system build number of the image.") + @visibility("read") + osBuildNumber?: string; + + @doc("The datetime that the backing image version was published.") + @visibility("read") + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + publishedDate?: utcDateTime; +} + +@doc("Stop on disconnect configuration settings for Dev Boxes created in this pool.") +model StopOnDisconnectConfiguration { + @doc(""" +Indicates whether the feature to stop the devbox on disconnect once the grace +period has lapsed is enabled. +""") + status: StopOnDisconnectEnableStatus; + + @doc(""" +The specified time in minutes to wait before stopping a Dev Box once disconnect +is detected. +""") + gracePeriodMinutes?: int32; +} + +@doc("An error response from the service.") +@error +model CloudError { + @doc("Error body") + error: CloudErrorBody; +} + +@doc("An error response from the service.") +model CloudErrorBody { + @doc(""" +An identifier for the error. Codes are invariant and are intended to be +consumed programmatically. +""") + code: string; + + @doc(""" +A message describing the error, intended to be suitable for display in a user +interface. +""") + message: string; + + @doc(""" +The target of the particular error. For example, the name of the property in +error. +""") + target?: string; + + @doc("A list of additional details about the error.") + details?: CloudErrorBody[]; +} + +@doc("The Schedule list result") +model ScheduleListResult is Azure.Core.Page; + +@doc("A Schedule to execute action.") +model Schedule { + @doc("Display name for the Schedule") + name: string; + + @doc("Supported type this scheduled task represents.") + type: ScheduledType; + + @doc("The frequency of this scheduled task.") + frequency: ScheduledFrequency; + + @doc("The target time to trigger the action. The format is HH:MM.") + time: string; + + @doc("The IANA timezone id at which the schedule should execute.") + timeZone: string; +} + +@doc("The Dev Box list result") +model DevBoxListResult is Azure.Core.Page; + +@doc("A Dev Box") +model DevBox { + @doc("Display name for the Dev Box") + @visibility("read") + name?: string; + + @doc("Name of the project this Dev Box belongs to") + @visibility("read") + projectName?: string; + + @doc("The name of the Dev Box pool this machine belongs to.") + poolName: string; + + @doc("Indicates whether hibernate is enabled/disabled or unknown.") + @visibility("read") + hibernateSupport?: HibernateSupport; + + @doc("The current provisioning state of the Dev Box.") + @visibility("read") + provisioningState?: string; + + @doc(""" +The current action state of the Dev Box. This is state is based on previous +action performed by user. +""") + @visibility("read") + actionState?: string; + + @doc("The current power state of the Dev Box.") + @visibility("read") + powerState?: PowerState; + + @doc(""" +A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. +00000000-0000-0000-0000-000000000000). +""") + @visibility("read") + uniqueId?: string; + + @doc("Provisioning or action error details. Populated only for error states.") + @visibility("read") + error?: CloudErrorBody; + + @doc(""" +Azure region where this Dev Box is located. This will be the same region as the +Virtual Network it is attached to. +""") + @visibility("read") + location?: string; + + @doc("The operating system type of this Dev Box.") + @visibility("read") + osType?: OsType; + + @doc("The AAD object id of the user this Dev Box is assigned to.") + @visibility("read") + user?: string; + + @doc("Information about the Dev Box's hardware resources") + @visibility("read") + hardwareProfile?: HardwareProfile; + + @doc("Storage settings for this Dev Box") + @visibility("read") + storageProfile?: StorageProfile; + + @doc("Information about the image used for this Dev Box") + @visibility("read") + imageReference?: ImageReference; + + @doc("Creation time of this Dev Box") + @visibility("read") + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdTime?: utcDateTime; + + @doc("Indicates whether the owner of the Dev Box is a local administrator.") + localAdministrator?: LocalAdminStatus; +} + +@doc("The current status of an async operation") +model OperationStatus { + @doc("Fully qualified ID for the operation status.") + id?: string; + + @doc("The operation id name") + name?: string; + + @doc("Provisioning state of the resource.") + status: string; + + @doc("The id of the resource.") + resourceId?: string; + + @doc("The start time of the operation") + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + startTime?: utcDateTime; + + @doc("The end time of the operation") + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endTime?: utcDateTime; + + @doc("Percent of the operation that is complete") + percentComplete?: float32; + + @doc("Custom operation properties, populated only for a successful operation.") + properties?: unknown; + + @doc("Operation Error message") + error?: OperationStatusError; +} + +@doc("Operation Error message") +model OperationStatusError { + @doc("The error code.") + code?: string; + + @doc("The error message.") + message?: string; +} + +@doc("Provides remote connection information for a Dev Box.") +model RemoteConnection { + @doc("URL to open a browser based RDP session.") + webUrl?: string; + + @doc("Link to open a Remote Desktop session.") + rdpConnectionUrl?: string; +} + +@doc("The actions list result") +model DevBoxActionsListResult is Azure.Core.Page; + +@doc("An action which will take place on a Dev Box.") +model DevBoxAction { + @doc("The name of the action.") + name: string; + + @doc("The action that will be taken.") + actionType: DevBoxActionType; + + @doc("The id of the resource which triggered this action") + sourceId: string; + + @doc("The earliest time that the action could occur (UTC).") + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + suspendedUntil?: utcDateTime; + + @doc("Details about the next run of this action.") + next?: DevBoxNextAction; +} + +@doc("Details about the next run of an action.") +model DevBoxNextAction { + @doc("The time the action will be triggered (UTC).") + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + scheduledTime: utcDateTime; +} + +@doc("The actions list result") +model DevBoxActionsDelayMultipleResult + is Azure.Core.Page; + +@doc("The action delay result") +model DevBoxActionDelayResult { + @doc("The name of the action.") + name: string; + + @doc("The result of the delay operation on this action.") + result: DevBoxActionDelayResultStatus; + + @doc("The delayed action") + action?: DevBoxAction; + + @doc("Information about the error that occurred. Only populated on error.") + error?: CloudErrorBody; +} diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp new file mode 100644 index 000000000000..99e86caa3b1a --- /dev/null +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -0,0 +1,462 @@ +import "@azure-tools/typespec-azure-core"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenter; + +interface DevBoxesOperations { + @doc("Lists available pools") + @route("/projects/{projectName}/pools") + @get + ListPools is Azure.Core.Foundations.Operation< + { + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top: int32; + + @doc("An OData filter clause to apply to the operation.") + @query + filter: string; + + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + }, + PoolListResult + >; + + @doc("Gets a pool") + @route("/projects/{projectName}/pools/{poolName}") + @get + GetPool is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The name of a pool of Dev Boxes.") + @path + poolName: string; + }, + Pool + >; + + @doc("Lists available schedules for a pool.") + @route("/projects/{projectName}/pools/{poolName}/schedules") + @get + ListSchedulesByPool is Azure.Core.Foundations.Operation< + { + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top: int32; + + @doc("An OData filter clause to apply to the operation.") + @query + filter: string; + + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The name of a pool of Dev Boxes.") + @path + poolName: string; + }, + ScheduleListResult + >; + + @doc("Gets a schedule.") + @route("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") + @get + GetScheduleByPool is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The name of a pool of Dev Boxes.") + @path + poolName: string; + + @doc("The name of a schedule.") + @path + scheduleName: string; + }, + Schedule + >; + + @doc("Lists Dev Boxes in the project for a particular user.") + @route("/projects/{projectName}/users/{userId}/devboxes") + @get + ListDevBoxesByUser is Azure.Core.Foundations.Operation< + { + @doc("An OData filter clause to apply to the operation.") + @query + filter: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top: int32; + + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + }, + DevBoxListResult + >; + + @doc("Gets a Dev Box") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") + @get + GetDevBoxByUser is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + }, + DevBox + >; + + @doc("Creates or replaces a Dev Box.") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") + @put + CreateDevBox is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + + @doc("Represents a environment.") + @body + body: DevBox; + }, + DevBox + >; + + @doc("Deletes a Dev Box.") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") + @delete + DeleteDevBox is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + }, + OperationStatus | void + >; + + @doc("Starts a Dev Box") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start") + @post + StartDevBox is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + }, + OperationStatus + >; + + @doc("Stops a Dev Box") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop") + @post + StopDevBox is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + + @doc("Optional parameter to hibernate the dev box.") + @query + hibernate: boolean; + }, + OperationStatus + >; + + @doc("Restarts a Dev Box") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart") + @post + RestartDevBox is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + }, + OperationStatus + >; + + @doc("Gets RDP Connection info") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection") + @get + GetRemoteConnection is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + }, + RemoteConnection + >; + + @doc("Lists actions on a Dev Box.") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions") + @get + ListActions is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + }, + DevBoxActionsListResult + >; + + @doc("Gets an action.") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}") + @get + GetAction is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + + @doc("The name of an action that will take place on a Dev Box.") + @path + actionName: string; + }, + DevBoxAction + >; + + @doc("Skips an occurrence of an action.") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip") + @post + SkipAction is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + + @doc("The name of an action that will take place on a Dev Box.") + @path + actionName: string; + }, + void + >; + + @doc("Delays the occurrence of an action.") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay") + @post + DelayAction is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + + @doc("The name of an action that will take place on a Dev Box.") + @path + actionName: string; + + @doc("The time to delay the Dev Box action or actions until.") + @query + until: utcDateTime; + }, + DevBoxAction + >; + + @doc("Delays all actions.") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay") + @post + DelayActions is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + + @doc("The time to delay the Dev Box action or actions until.") + @query + until: utcDateTime; + }, + DevBoxActionsDelayMultipleResult + >; +} + +interface DevCenterOperations { + @doc("Lists Dev Boxes that the caller has access to in the DevCenter.") + @route("/devboxes") + @get + ListAllDevBoxes is Azure.Core.Foundations.Operation< + { + @doc("An OData filter clause to apply to the operation.") + @query + filter: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top: int32; + }, + DevBoxListResult + >; + + @doc("Lists Dev Boxes in the Dev Center for a particular user.") + @route("/users/{userId}/devboxes") + @get + ListAllDevBoxesByUser is Azure.Core.Foundations.Operation< + { + @doc("An OData filter clause to apply to the operation.") + @query + filter: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top: int32; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + }, + DevBoxListResult + >; +} diff --git a/specification/devcenter/DevCenter/devbox/tspconfig.yaml b/specification/devcenter/DevCenter/devbox/tspconfig.yaml new file mode 100644 index 000000000000..013d55ba1e3c --- /dev/null +++ b/specification/devcenter/DevCenter/devbox/tspconfig.yaml @@ -0,0 +1,14 @@ +emit: + - "@azure-tools/typespec-autorest": + # Uncomment this line and add "@azure-tools/typespec-python" to your package.json to generate Python code + # "@azure-tools/typespec-python": + # "basic-setup-py": true + # "package-version": + # "package-name": + # "output-path": + # Uncomment this line and add "@azure-tools/typespec-java" to your package.json to generate Java code + # "@azure-tools/typespec-java": true + # Uncomment this line and add "@azure-tools/typespec-csharp" to your package.json to generate C# code + # "@azure-tools/typespec-csharp": true + # Uncomment this line and add "@azure-tools/typespec-ts" to your package.json to generate Typescript code + # "@azure-tools/typespec-ts": true diff --git a/specification/devcenter/DevCenter/devcenter/main.tsp b/specification/devcenter/DevCenter/devcenter/main.tsp new file mode 100644 index 000000000000..4a20bed9c176 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/main.tsp @@ -0,0 +1,19 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "./routes.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +@service({ + title: "DevCenter", + version: "2023-04-01", +}) +@server( + "{endpoint}", + "// FIXME: (miissing-service-description) Add service description", + { + endpoint: string, + } +) +@doc("// FIXME: (miissing-service-description) Add service description") +namespace DevCenter; diff --git a/specification/devcenter/DevCenter/devcenter/models.tsp b/specification/devcenter/DevCenter/devcenter/models.tsp new file mode 100644 index 000000000000..72a4006cc909 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/models.tsp @@ -0,0 +1,98 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; + +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenter; + +@doc("Results of the project list operation.") +model ProjectListResult is Azure.Core.Page; + +@doc("Project details.") +model Project { + @doc("Name of the project") + name: string; + + @doc("Description of the project.") + description?: string; + + @doc(""" +When specified, indicates the maximum number of Dev Boxes a single user can +create across all pools in the project. +""") + maxDevBoxesPerUser?: int32; +} + +@doc("An error response from the service.") +@error +model CloudError { + @doc("Error body") + error: CloudErrorBody; +} + +@doc("An error response from the service.") +model CloudErrorBody { + @doc(""" +An identifier for the error. Codes are invariant and are intended to be +consumed programmatically. +""") + code: string; + + @doc(""" +A message describing the error, intended to be suitable for display in a user +interface. +""") + message: string; + + @doc(""" +The target of the particular error. For example, the name of the property in +error. +""") + target?: string; + + @doc("A list of additional details about the error.") + details?: CloudErrorBody[]; +} + +@doc("The current status of an async operation") +model OperationStatus { + @doc("Fully qualified ID for the operation status.") + id?: string; + + @doc("The operation id name") + name?: string; + + @doc("Provisioning state of the resource.") + status: string; + + @doc("The id of the resource.") + resourceId?: string; + + @doc("The start time of the operation") + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + startTime?: utcDateTime; + + @doc("The end time of the operation") + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endTime?: utcDateTime; + + @doc("Percent of the operation that is complete") + percentComplete?: float32; + + @doc("Custom operation properties, populated only for a successful operation.") + properties?: unknown; + + @doc("Operation Error message") + error?: OperationStatusError; +} + +@doc("Operation Error message") +model OperationStatusError { + @doc("The error code.") + code?: string; + + @doc("The error message.") + message?: string; +} diff --git a/specification/devcenter/DevCenter/devcenter/routes.tsp b/specification/devcenter/DevCenter/devcenter/routes.tsp new file mode 100644 index 000000000000..52a1b9296348 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/routes.tsp @@ -0,0 +1,38 @@ +import "@azure-tools/typespec-azure-core"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenter; + +interface DevCenterOperations { + @doc("Lists all projects.") + @route("/projects") + @get + ListProjects is Azure.Core.Foundations.Operation< + { + @doc("An OData filter clause to apply to the operation.") + @query + filter: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top: int32; + }, + ProjectListResult + >; + + @doc("Gets a project.") + @route("/projects/{projectName}") + @get + GetProject is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + }, + Project + >; +} diff --git a/specification/devcenter/DevCenter/devcenter/tspconfig.yaml b/specification/devcenter/DevCenter/devcenter/tspconfig.yaml new file mode 100644 index 000000000000..013d55ba1e3c --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/tspconfig.yaml @@ -0,0 +1,14 @@ +emit: + - "@azure-tools/typespec-autorest": + # Uncomment this line and add "@azure-tools/typespec-python" to your package.json to generate Python code + # "@azure-tools/typespec-python": + # "basic-setup-py": true + # "package-version": + # "package-name": + # "output-path": + # Uncomment this line and add "@azure-tools/typespec-java" to your package.json to generate Java code + # "@azure-tools/typespec-java": true + # Uncomment this line and add "@azure-tools/typespec-csharp" to your package.json to generate C# code + # "@azure-tools/typespec-csharp": true + # Uncomment this line and add "@azure-tools/typespec-ts" to your package.json to generate Typescript code + # "@azure-tools/typespec-ts": true diff --git a/specification/devcenter/DevCenter/environments/main.tsp b/specification/devcenter/DevCenter/environments/main.tsp new file mode 100644 index 000000000000..dd78b7feef9b --- /dev/null +++ b/specification/devcenter/DevCenter/environments/main.tsp @@ -0,0 +1,19 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "./routes.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +@service({ + title: "DevCenter", + version: "2023-04-01", +}) +@server( + "{endpoint}", + "Deployment Environments API.", + { + endpoint: string, + } +) +@doc("Deployment Environments API.") +namespace DevCenter; diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp new file mode 100644 index 000000000000..dafaa77199d3 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -0,0 +1,228 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; + +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenter; + +enum ParameterType { + @doc("The parameter accepts an array of values.") array, + @doc("The parameter accepts a boolean value.") boolean, + @doc("The parameter accepts an integer value.") integer, + @doc("The parameter accepts a number value.") number, + @doc("The parameter accepts an object value.") object, + @doc("The parameter accepts a string value.") string, +} + +enum EnvironmentTypeEnableStatus { + @doc("The environment type is enabled for use in the project.") Enabled, + @doc("The environment type is not enabled for use in the project.") Disabled, +} + +@doc("Results of the environment list operation.") +model EnvironmentListResult is Azure.Core.Page; + +@doc("Properties of an environment.") +model Environment { + ...EnvironmentUpdateProperties; + + @doc("Environment name.") + @visibility("read") + name?: string; + + @doc("Environment type.") + environmentType: string; + + @doc("The AAD object id of the owner of this Environment.") + @visibility("read") + user?: string; + + @doc("The provisioning state of the environment.") + @visibility("read") + provisioningState?: string; + + @doc("The identifier of the resource group containing the environment's resources.") + @visibility("read") + resourceGroupId?: string; + + @doc("Name of the catalog.") + catalogName: string; + + @doc("Name of the environment definition.") + environmentDefinitionName: string; + + @doc("Provisioning error details. Populated only for error states.") + @visibility("read") + error?: CloudErrorBody; +} + +@doc("An error response from the service.") +model CloudErrorBody { + @doc(""" +An identifier for the error. Codes are invariant and are intended to be +consumed programmatically. +""") + code: string; + + @doc(""" +A message describing the error, intended to be suitable for display in a user +interface. +""") + message: string; + + @doc(""" +The target of the particular error. For example, the name of the property in +error. +""") + target?: string; + + @doc("A list of additional details about the error.") + details?: CloudErrorBody[]; +} + +@doc(""" +Properties of an environment. These properties can be updated after the +resource has been created. +""") +model EnvironmentUpdateProperties { + @doc("Parameters object for the environment.") + parameters?: unknown; +} + +@doc("An error response from the service.") +@error +model CloudError { + @doc("Error body") + error: CloudErrorBody; +} + +@doc("The current status of an async operation") +model OperationStatus { + @doc("Fully qualified ID for the operation status.") + id?: string; + + @doc("The operation id name") + name?: string; + + @doc("Provisioning state of the resource.") + status: string; + + @doc("The id of the resource.") + resourceId?: string; + + @doc("The start time of the operation") + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + startTime?: utcDateTime; + + @doc("The end time of the operation") + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endTime?: utcDateTime; + + @doc("Percent of the operation that is complete") + percentComplete?: float32; + + @doc("Custom operation properties, populated only for a successful operation.") + properties?: unknown; + + @doc("Operation Error message") + error?: OperationStatusError; +} + +@doc("Operation Error message") +model OperationStatusError { + @doc("The error code.") + code?: string; + + @doc("The error message.") + message?: string; +} + +@doc("Results of the catalog list operation.") +model CatalogListResult is Azure.Core.Page; + +@doc("A catalog.") +model Catalog { + @doc("Name of the catalog.") + name: string; +} + +@doc("Results of the environment definition list operation.") +model EnvironmentDefinitionListResult is Azure.Core.Page; + +@doc("An environment definition.") +model EnvironmentDefinition { + @doc("The ID of the environment definition.") + id: string; + + @doc("Name of the environment definition.") + name: string; + + @doc("Name of the catalog.") + catalogName: string; + + @doc("A short description of the environment definition.") + description?: string; + + @doc("Input parameters passed to an environment.") + parameters?: EnvironmentDefinitionParameter[]; + + @doc("JSON schema defining the parameters object passed to an environment.") + parametersSchema?: string; + + @doc("Path to the Environment Definition entrypoint file.") + templatePath?: string; +} + +@doc("Properties of an Environment Definition parameter") +model EnvironmentDefinitionParameter { + @doc("Unique ID of the parameter") + id: string; + + @doc("Display name of the parameter") + name?: string; + + @doc("Description of the parameter") + description?: string; + + @doc("Default value of the parameter") + default?: string; + + @doc(""" +A string of one of the basic JSON types (number, integer, array, object, +boolean, string) +""") + type: ParameterType; + + @doc(""" +Whether or not this parameter is read-only. If true, default should have a +value. +""") + readOnly?: boolean; + + @doc("Whether or not this parameter is required") + required: boolean; + + @doc("An array of allowed values") + allowed?: string[]; +} + +@doc("Result of the environment type list operation.") +model EnvironmentTypeListResult is Azure.Core.Page; + +@doc("Properties of an environment type.") +model EnvironmentType { + @doc("Name of the environment type") + name: string; + + @doc(""" +Id of a subscription or management group that the environment type will be +mapped to. The environment's resources will be deployed into this subscription +or management group. +""") + deploymentTargetId: string; + + @doc("Indicates whether this environment type is enabled for use in this project.") + status: EnvironmentTypeEnableStatus; +} diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp new file mode 100644 index 000000000000..568e1683c617 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -0,0 +1,226 @@ +import "@azure-tools/typespec-azure-core"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenter; + +interface EnvironmentsOperations { + @doc("Lists the environments for a project.") + @route("/projects/{projectName}/environments") + @get + ListEnvironments is Azure.Core.Foundations.Operation< + { + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top: int32; + + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + }, + EnvironmentListResult + >; + + @doc("Lists the environments for a project and user.") + @route("/projects/{projectName}/users/{userId}/environments") + @get + ListEnvironmentsByUser is Azure.Core.Foundations.Operation< + { + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top: int32; + + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + }, + EnvironmentListResult + >; + + @doc("Gets an environment") + @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") + @get + GetEnvironmentByUser is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of the environment.") + @path + environmentName: string; + }, + Environment + >; + + @doc("Creates or updates an environment.") + @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") + @put + CreateOrReplaceEnvironment is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of the environment.") + @path + environmentName: string; + + @doc("Represents an environment.") + @body + body: Environment; + }, + Environment + >; + + @doc("Deletes an environment and all its associated resources") + @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") + @delete + DeleteEnvironment is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of the environment.") + @path + environmentName: string; + }, + OperationStatus | void + >; + + @doc("Lists all of the catalogs available for a project.") + @route("/projects/{projectName}/catalogs") + @get + ListCatalogsByProject is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top: int32; + }, + CatalogListResult + >; + + @doc("Gets the specified catalog within the project") + @route("/projects/{projectName}/catalogs/{catalogName}") + @get + GetCatalog is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The name of the catalog") + @path + catalogName: string; + }, + Catalog + >; + + @doc("Lists all environment definitions available for a project.") + @route("/projects/{projectName}/environmentDefinitions") + @get + ListEnvironmentDefinitionsByProject is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top: int32; + }, + EnvironmentDefinitionListResult + >; + + @doc("Lists all environment definitions available within a catalog.") + @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions") + @get + ListEnvironmentDefinitionsByCatalog is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top: int32; + + @doc("The name of the catalog") + @path + catalogName: string; + }, + EnvironmentDefinitionListResult + >; + + @doc("Get an environment definition from a catalog.") + @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}") + @get + GetEnvironmentDefinition is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The name of the catalog") + @path + catalogName: string; + + @doc("The name of the environment definition") + @path + definitionName: string; + }, + EnvironmentDefinition + >; + + @doc("Lists all environment types configured for a project.") + @route("/projects/{projectName}/environmentTypes") + @get + ListEnvironmentTypes is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top: int32; + }, + EnvironmentTypeListResult + >; +} diff --git a/specification/devcenter/DevCenter/environments/tspconfig.yaml b/specification/devcenter/DevCenter/environments/tspconfig.yaml new file mode 100644 index 000000000000..013d55ba1e3c --- /dev/null +++ b/specification/devcenter/DevCenter/environments/tspconfig.yaml @@ -0,0 +1,14 @@ +emit: + - "@azure-tools/typespec-autorest": + # Uncomment this line and add "@azure-tools/typespec-python" to your package.json to generate Python code + # "@azure-tools/typespec-python": + # "basic-setup-py": true + # "package-version": + # "package-name": + # "output-path": + # Uncomment this line and add "@azure-tools/typespec-java" to your package.json to generate Java code + # "@azure-tools/typespec-java": true + # Uncomment this line and add "@azure-tools/typespec-csharp" to your package.json to generate C# code + # "@azure-tools/typespec-csharp": true + # Uncomment this line and add "@azure-tools/typespec-ts" to your package.json to generate Typescript code + # "@azure-tools/typespec-ts": true From 015cd91eec348f41da7d6829dd23e819e87a8bb8 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Wed, 20 Sep 2023 13:53:01 -0700 Subject: [PATCH 002/187] move main and tspconfig --- .../devcenter/DevCenter/{environments => }/main.tsp | 11 ++++++++--- .../DevCenter/{environments => }/tspconfig.yaml | 4 ++-- 2 files changed, 10 insertions(+), 5 deletions(-) rename specification/devcenter/DevCenter/{environments => }/main.tsp (52%) rename specification/devcenter/DevCenter/{environments => }/tspconfig.yaml (88%) diff --git a/specification/devcenter/DevCenter/environments/main.tsp b/specification/devcenter/DevCenter/main.tsp similarity index 52% rename from specification/devcenter/DevCenter/environments/main.tsp rename to specification/devcenter/DevCenter/main.tsp index dd78b7feef9b..320d3280e5f8 100644 --- a/specification/devcenter/DevCenter/environments/main.tsp +++ b/specification/devcenter/DevCenter/main.tsp @@ -1,19 +1,24 @@ import "@typespec/rest"; import "@typespec/http"; -import "./routes.tsp"; +import "@azure-tools/typespec-azure-core"; +import "./environments/routes.tsp"; +using Azure.Core; +using TypeSpec.Versioning; using TypeSpec.Rest; using TypeSpec.Http; + +@useDependency(Versions.v1_0_Preview_2) @service({ title: "DevCenter", version: "2023-04-01", }) @server( "{endpoint}", - "Deployment Environments API.", + "DevCenter service", { endpoint: string, } ) -@doc("Deployment Environments API.") +@doc("DevCenter service") namespace DevCenter; diff --git a/specification/devcenter/DevCenter/environments/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml similarity index 88% rename from specification/devcenter/DevCenter/environments/tspconfig.yaml rename to specification/devcenter/DevCenter/tspconfig.yaml index 013d55ba1e3c..d35f171c612f 100644 --- a/specification/devcenter/DevCenter/environments/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -1,5 +1,5 @@ emit: - - "@azure-tools/typespec-autorest": + - "@azure-tools/typespec-autorest" # Uncomment this line and add "@azure-tools/typespec-python" to your package.json to generate Python code # "@azure-tools/typespec-python": # "basic-setup-py": true @@ -9,6 +9,6 @@ emit: # Uncomment this line and add "@azure-tools/typespec-java" to your package.json to generate Java code # "@azure-tools/typespec-java": true # Uncomment this line and add "@azure-tools/typespec-csharp" to your package.json to generate C# code - # "@azure-tools/typespec-csharp": true + - "@azure-tools/typespec-csharp" # Uncomment this line and add "@azure-tools/typespec-ts" to your package.json to generate Typescript code # "@azure-tools/typespec-ts": true From 3cb7f228fcda1b193ff36bfa7329a8c8b9aef38a Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Wed, 20 Sep 2023 13:53:15 -0700 Subject: [PATCH 003/187] add client.tsp --- specification/devcenter/DevCenter/client.tsp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 specification/devcenter/DevCenter/client.tsp diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp new file mode 100644 index 000000000000..3cb510a2fe68 --- /dev/null +++ b/specification/devcenter/DevCenter/client.tsp @@ -0,0 +1,15 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using DevCenter; +using Azure.ClientGenerator.Core; + +namespace SDKCustomizations; + +@client({ + name: "EnvironmentClient", + service: DevCenter, +}) +interface EnvironmentClientOperations extends DevCenter.EnvironmentsOperations{ + // ...DevCenter.EnvironmentsOperations; +} From d0fa7ed99a6c0ac9df30171f19d7fafd4b83329b Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Wed, 20 Sep 2023 14:28:30 -0700 Subject: [PATCH 004/187] fix shared models --- .../devcenter/DevCenter/devcenter/models.tsp | 73 +---------------- .../DevCenter/environments/models.tsp | 73 +---------------- .../devcenter/DevCenter/shared/models.tsp | 82 +++++++++++++++++++ 3 files changed, 84 insertions(+), 144 deletions(-) create mode 100644 specification/devcenter/DevCenter/shared/models.tsp diff --git a/specification/devcenter/DevCenter/devcenter/models.tsp b/specification/devcenter/DevCenter/devcenter/models.tsp index 72a4006cc909..234c928b55e4 100644 --- a/specification/devcenter/DevCenter/devcenter/models.tsp +++ b/specification/devcenter/DevCenter/devcenter/models.tsp @@ -1,6 +1,7 @@ import "@typespec/rest"; import "@typespec/http"; import "@azure-tools/typespec-azure-core"; +import "../shared/models.tsp"; using TypeSpec.Rest; using TypeSpec.Http; @@ -24,75 +25,3 @@ create across all pools in the project. """) maxDevBoxesPerUser?: int32; } - -@doc("An error response from the service.") -@error -model CloudError { - @doc("Error body") - error: CloudErrorBody; -} - -@doc("An error response from the service.") -model CloudErrorBody { - @doc(""" -An identifier for the error. Codes are invariant and are intended to be -consumed programmatically. -""") - code: string; - - @doc(""" -A message describing the error, intended to be suitable for display in a user -interface. -""") - message: string; - - @doc(""" -The target of the particular error. For example, the name of the property in -error. -""") - target?: string; - - @doc("A list of additional details about the error.") - details?: CloudErrorBody[]; -} - -@doc("The current status of an async operation") -model OperationStatus { - @doc("Fully qualified ID for the operation status.") - id?: string; - - @doc("The operation id name") - name?: string; - - @doc("Provisioning state of the resource.") - status: string; - - @doc("The id of the resource.") - resourceId?: string; - - @doc("The start time of the operation") - // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. - startTime?: utcDateTime; - - @doc("The end time of the operation") - // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. - endTime?: utcDateTime; - - @doc("Percent of the operation that is complete") - percentComplete?: float32; - - @doc("Custom operation properties, populated only for a successful operation.") - properties?: unknown; - - @doc("Operation Error message") - error?: OperationStatusError; -} - -@doc("Operation Error message") -model OperationStatusError { - @doc("The error code.") - code?: string; - - @doc("The error message.") - message?: string; -} diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index dafaa77199d3..fcb1315c2e76 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -1,6 +1,7 @@ import "@typespec/rest"; import "@typespec/http"; import "@azure-tools/typespec-azure-core"; +import "../shared/models.tsp"; using TypeSpec.Rest; using TypeSpec.Http; @@ -58,30 +59,6 @@ model Environment { error?: CloudErrorBody; } -@doc("An error response from the service.") -model CloudErrorBody { - @doc(""" -An identifier for the error. Codes are invariant and are intended to be -consumed programmatically. -""") - code: string; - - @doc(""" -A message describing the error, intended to be suitable for display in a user -interface. -""") - message: string; - - @doc(""" -The target of the particular error. For example, the name of the property in -error. -""") - target?: string; - - @doc("A list of additional details about the error.") - details?: CloudErrorBody[]; -} - @doc(""" Properties of an environment. These properties can be updated after the resource has been created. @@ -91,54 +68,6 @@ model EnvironmentUpdateProperties { parameters?: unknown; } -@doc("An error response from the service.") -@error -model CloudError { - @doc("Error body") - error: CloudErrorBody; -} - -@doc("The current status of an async operation") -model OperationStatus { - @doc("Fully qualified ID for the operation status.") - id?: string; - - @doc("The operation id name") - name?: string; - - @doc("Provisioning state of the resource.") - status: string; - - @doc("The id of the resource.") - resourceId?: string; - - @doc("The start time of the operation") - // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. - startTime?: utcDateTime; - - @doc("The end time of the operation") - // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. - endTime?: utcDateTime; - - @doc("Percent of the operation that is complete") - percentComplete?: float32; - - @doc("Custom operation properties, populated only for a successful operation.") - properties?: unknown; - - @doc("Operation Error message") - error?: OperationStatusError; -} - -@doc("Operation Error message") -model OperationStatusError { - @doc("The error code.") - code?: string; - - @doc("The error message.") - message?: string; -} - @doc("Results of the catalog list operation.") model CatalogListResult is Azure.Core.Page; diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp new file mode 100644 index 000000000000..01402d747123 --- /dev/null +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -0,0 +1,82 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; + +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenter; + +@doc("An error response from the service.") +model CloudErrorBody { + @doc(""" +An identifier for the error. Codes are invariant and are intended to be +consumed programmatically. +""") + code: string; + + @doc(""" +A message describing the error, intended to be suitable for display in a user +interface. +""") + message: string; + + @doc(""" +The target of the particular error. For example, the name of the property in +error. +""") + target?: string; + + @doc("A list of additional details about the error.") + details?: CloudErrorBody[]; +} + + +@doc("An error response from the service.") +@error +model CloudError { + @doc("Error body") + error: CloudErrorBody; +} + +@doc("Operation Error message") +model OperationStatusError { + @doc("The error code.") + code?: string; + + @doc("The error message.") + message?: string; +} + + +@doc("The current status of an async operation") +model OperationStatus { + @doc("Fully qualified ID for the operation status.") + id?: string; + + @doc("The operation id name") + name?: string; + + @doc("Provisioning state of the resource.") + status: string; + + @doc("The id of the resource.") + resourceId?: string; + + @doc("The start time of the operation") + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + startTime?: utcDateTime; + + @doc("The end time of the operation") + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endTime?: utcDateTime; + + @doc("Percent of the operation that is complete") + percentComplete?: float32; + + @doc("Custom operation properties, populated only for a successful operation.") + properties?: unknown; + + @doc("Operation Error message") + error?: OperationStatusError; +} From a89a564cea64d0461291f4ea490daf6eee3559f4 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Wed, 20 Sep 2023 14:28:53 -0700 Subject: [PATCH 005/187] prep for versioning --- specification/devcenter/DevCenter/main.tsp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/main.tsp b/specification/devcenter/DevCenter/main.tsp index 320d3280e5f8..4a0a8e298d9c 100644 --- a/specification/devcenter/DevCenter/main.tsp +++ b/specification/devcenter/DevCenter/main.tsp @@ -2,16 +2,15 @@ import "@typespec/rest"; import "@typespec/http"; import "@azure-tools/typespec-azure-core"; import "./environments/routes.tsp"; +import "./devcenter/routes.tsp"; using Azure.Core; using TypeSpec.Versioning; using TypeSpec.Rest; using TypeSpec.Http; -@useDependency(Versions.v1_0_Preview_2) @service({ title: "DevCenter", - version: "2023-04-01", }) @server( "{endpoint}", @@ -21,4 +20,12 @@ using TypeSpec.Http; } ) @doc("DevCenter service") +@versioned(APIVersions) namespace DevCenter; + +@doc("DevCenter API versions") +enum APIVersions { + @doc("The 2023-04-01 service API version") + @useDependency(Versions.v1_0_Preview_2) + v2023_04_01: "2023-04-01", +} \ No newline at end of file From 91e3c2f0d5e8e41fd93e767518c42f673c559942 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Wed, 20 Sep 2023 15:42:52 -0700 Subject: [PATCH 006/187] define clients in client.tsp --- specification/devcenter/DevCenter/client.tsp | 22 ++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 3cb510a2fe68..eca99e1d72d1 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -1,15 +1,33 @@ import "./main.tsp"; import "@azure-tools/typespec-client-generator-core"; +using Azure.Core; +using TypeSpec.Versioning; using DevCenter; using Azure.ClientGenerator.Core; +@useDependency(APIVersions.v2023_04_01) namespace SDKCustomizations; @client({ - name: "EnvironmentClient", + name: "EnvironmentsClient", service: DevCenter, }) interface EnvironmentClientOperations extends DevCenter.EnvironmentsOperations{ - // ...DevCenter.EnvironmentsOperations; +} + +@client({ + name: "DevCenterClient", + service: DevCenter, +}) +interface DevCenterClientOperations extends DevCenter.DevCenterOperations{ + ListAllDevBoxes is DevCenter.DevBoxesDevCenterOperations.ListAllDevBoxes; + ListAllDevBoxesByUser is DevCenter.DevBoxesDevCenterOperations.ListAllDevBoxesByUser; +} + +@client({ + name: "DevBoxesClient", + service: DevCenter, +}) +interface DevBoxesClientOperations extends DevCenter.DevBoxesOperations{ } From cd93591008d677217d72cbab8d333d55e1c5b1f2 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Wed, 20 Sep 2023 15:43:08 -0700 Subject: [PATCH 007/187] add auth --- specification/devcenter/DevCenter/main.tsp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/specification/devcenter/DevCenter/main.tsp b/specification/devcenter/DevCenter/main.tsp index 4a0a8e298d9c..87892de9caa3 100644 --- a/specification/devcenter/DevCenter/main.tsp +++ b/specification/devcenter/DevCenter/main.tsp @@ -3,12 +3,22 @@ import "@typespec/http"; import "@azure-tools/typespec-azure-core"; import "./environments/routes.tsp"; import "./devcenter/routes.tsp"; +import "./devbox/routes.tsp"; using Azure.Core; using TypeSpec.Versioning; using TypeSpec.Rest; using TypeSpec.Http; +@useAuth( + OAuth2Auth<[ + { + type: OAuth2FlowType.implicit, + authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize", + scopes: ["user_impersonation"], + } + ]> +) @service({ title: "DevCenter", }) From a40397c4c08e11da0478937a801d611a4ca11fc9 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Wed, 20 Sep 2023 15:43:41 -0700 Subject: [PATCH 008/187] fix conflicts --- .../devcenter/DevCenter/devbox/models.tsp | 73 +------------------ .../devcenter/DevCenter/devbox/routes.tsp | 2 +- 2 files changed, 2 insertions(+), 73 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index 7cf025691ea8..69d8abbfbda3 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -1,6 +1,7 @@ import "@typespec/rest"; import "@typespec/http"; import "@azure-tools/typespec-azure-core"; +import "../shared/models.tsp"; using TypeSpec.Rest; using TypeSpec.Http; @@ -171,37 +172,6 @@ is detected. gracePeriodMinutes?: int32; } -@doc("An error response from the service.") -@error -model CloudError { - @doc("Error body") - error: CloudErrorBody; -} - -@doc("An error response from the service.") -model CloudErrorBody { - @doc(""" -An identifier for the error. Codes are invariant and are intended to be -consumed programmatically. -""") - code: string; - - @doc(""" -A message describing the error, intended to be suitable for display in a user -interface. -""") - message: string; - - @doc(""" -The target of the particular error. For example, the name of the property in -error. -""") - target?: string; - - @doc("A list of additional details about the error.") - details?: CloudErrorBody[]; -} - @doc("The Schedule list result") model ScheduleListResult is Azure.Core.Page; @@ -305,47 +275,6 @@ Virtual Network it is attached to. localAdministrator?: LocalAdminStatus; } -@doc("The current status of an async operation") -model OperationStatus { - @doc("Fully qualified ID for the operation status.") - id?: string; - - @doc("The operation id name") - name?: string; - - @doc("Provisioning state of the resource.") - status: string; - - @doc("The id of the resource.") - resourceId?: string; - - @doc("The start time of the operation") - // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. - startTime?: utcDateTime; - - @doc("The end time of the operation") - // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. - endTime?: utcDateTime; - - @doc("Percent of the operation that is complete") - percentComplete?: float32; - - @doc("Custom operation properties, populated only for a successful operation.") - properties?: unknown; - - @doc("Operation Error message") - error?: OperationStatusError; -} - -@doc("Operation Error message") -model OperationStatusError { - @doc("The error code.") - code?: string; - - @doc("The error message.") - message?: string; -} - @doc("Provides remote connection information for a Dev Box.") model RemoteConnection { @doc("URL to open a browser based RDP session.") diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 99e86caa3b1a..6e3ab8025783 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -420,7 +420,7 @@ authentication context. >; } -interface DevCenterOperations { +interface DevBoxesDevCenterOperations { @doc("Lists Dev Boxes that the caller has access to in the DevCenter.") @route("/devboxes") @get From dd15a31a2dbf78c8146ff9b8f02711e8b402c94d Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Wed, 20 Sep 2023 16:55:23 -0700 Subject: [PATCH 009/187] add files for autorest emitter --- .../devcenter/DevCenter/devbox/main.tsp | 19 --------- .../devcenter/DevCenter/devbox/openapi.tsp | 39 +++++++++++++++++++ .../devcenter/DevCenter/devbox/tspconfig.yaml | 14 ------- .../devcenter/DevCenter/devcenter/main.tsp | 19 --------- .../devcenter/DevCenter/devcenter/openapi.tsp | 39 +++++++++++++++++++ .../DevCenter/devcenter/tspconfig.yaml | 14 ------- .../DevCenter/environments/openapi.tsp | 39 +++++++++++++++++++ 7 files changed, 117 insertions(+), 66 deletions(-) delete mode 100644 specification/devcenter/DevCenter/devbox/main.tsp create mode 100644 specification/devcenter/DevCenter/devbox/openapi.tsp delete mode 100644 specification/devcenter/DevCenter/devbox/tspconfig.yaml delete mode 100644 specification/devcenter/DevCenter/devcenter/main.tsp create mode 100644 specification/devcenter/DevCenter/devcenter/openapi.tsp delete mode 100644 specification/devcenter/DevCenter/devcenter/tspconfig.yaml create mode 100644 specification/devcenter/DevCenter/environments/openapi.tsp diff --git a/specification/devcenter/DevCenter/devbox/main.tsp b/specification/devcenter/DevCenter/devbox/main.tsp deleted file mode 100644 index 268ba6d7f616..000000000000 --- a/specification/devcenter/DevCenter/devbox/main.tsp +++ /dev/null @@ -1,19 +0,0 @@ -import "@typespec/rest"; -import "@typespec/http"; -import "./routes.tsp"; - -using TypeSpec.Rest; -using TypeSpec.Http; -@service({ - title: "DevCenter", - version: "2023-04-01", -}) -@server( - "{endpoint}", - "DevBox API.", - { - endpoint: string, - } -) -@doc("DevBox API.") -namespace DevCenter; diff --git a/specification/devcenter/DevCenter/devbox/openapi.tsp b/specification/devcenter/DevCenter/devbox/openapi.tsp new file mode 100644 index 000000000000..7f1bec316379 --- /dev/null +++ b/specification/devcenter/DevCenter/devbox/openapi.tsp @@ -0,0 +1,39 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "./routes.tsp"; + +using Azure.Core; +using TypeSpec.Versioning; +using TypeSpec.Rest; +using TypeSpec.Http; + +@useAuth( + OAuth2Auth<[ + { + type: OAuth2FlowType.implicit, + authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize", + scopes: ["user_impersonation"], + } + ]> +) +@service({ + title: "DevCenter", +}) +@server( + "{endpoint}", + "DevCenter service", + { + endpoint: string, + } +) +@doc("DevCenter service") +@versioned(APIVersions) +namespace DevCenter; + +@doc("DevCenter API versions") +enum APIVersions { + @doc("The 2023-04-01 service API version") + @useDependency(Versions.v1_0_Preview_2) + v2023_04_01: "2023-04-01", +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devbox/tspconfig.yaml b/specification/devcenter/DevCenter/devbox/tspconfig.yaml deleted file mode 100644 index 013d55ba1e3c..000000000000 --- a/specification/devcenter/DevCenter/devbox/tspconfig.yaml +++ /dev/null @@ -1,14 +0,0 @@ -emit: - - "@azure-tools/typespec-autorest": - # Uncomment this line and add "@azure-tools/typespec-python" to your package.json to generate Python code - # "@azure-tools/typespec-python": - # "basic-setup-py": true - # "package-version": - # "package-name": - # "output-path": - # Uncomment this line and add "@azure-tools/typespec-java" to your package.json to generate Java code - # "@azure-tools/typespec-java": true - # Uncomment this line and add "@azure-tools/typespec-csharp" to your package.json to generate C# code - # "@azure-tools/typespec-csharp": true - # Uncomment this line and add "@azure-tools/typespec-ts" to your package.json to generate Typescript code - # "@azure-tools/typespec-ts": true diff --git a/specification/devcenter/DevCenter/devcenter/main.tsp b/specification/devcenter/DevCenter/devcenter/main.tsp deleted file mode 100644 index 4a20bed9c176..000000000000 --- a/specification/devcenter/DevCenter/devcenter/main.tsp +++ /dev/null @@ -1,19 +0,0 @@ -import "@typespec/rest"; -import "@typespec/http"; -import "./routes.tsp"; - -using TypeSpec.Rest; -using TypeSpec.Http; -@service({ - title: "DevCenter", - version: "2023-04-01", -}) -@server( - "{endpoint}", - "// FIXME: (miissing-service-description) Add service description", - { - endpoint: string, - } -) -@doc("// FIXME: (miissing-service-description) Add service description") -namespace DevCenter; diff --git a/specification/devcenter/DevCenter/devcenter/openapi.tsp b/specification/devcenter/DevCenter/devcenter/openapi.tsp new file mode 100644 index 000000000000..7f1bec316379 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/openapi.tsp @@ -0,0 +1,39 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "./routes.tsp"; + +using Azure.Core; +using TypeSpec.Versioning; +using TypeSpec.Rest; +using TypeSpec.Http; + +@useAuth( + OAuth2Auth<[ + { + type: OAuth2FlowType.implicit, + authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize", + scopes: ["user_impersonation"], + } + ]> +) +@service({ + title: "DevCenter", +}) +@server( + "{endpoint}", + "DevCenter service", + { + endpoint: string, + } +) +@doc("DevCenter service") +@versioned(APIVersions) +namespace DevCenter; + +@doc("DevCenter API versions") +enum APIVersions { + @doc("The 2023-04-01 service API version") + @useDependency(Versions.v1_0_Preview_2) + v2023_04_01: "2023-04-01", +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/tspconfig.yaml b/specification/devcenter/DevCenter/devcenter/tspconfig.yaml deleted file mode 100644 index 013d55ba1e3c..000000000000 --- a/specification/devcenter/DevCenter/devcenter/tspconfig.yaml +++ /dev/null @@ -1,14 +0,0 @@ -emit: - - "@azure-tools/typespec-autorest": - # Uncomment this line and add "@azure-tools/typespec-python" to your package.json to generate Python code - # "@azure-tools/typespec-python": - # "basic-setup-py": true - # "package-version": - # "package-name": - # "output-path": - # Uncomment this line and add "@azure-tools/typespec-java" to your package.json to generate Java code - # "@azure-tools/typespec-java": true - # Uncomment this line and add "@azure-tools/typespec-csharp" to your package.json to generate C# code - # "@azure-tools/typespec-csharp": true - # Uncomment this line and add "@azure-tools/typespec-ts" to your package.json to generate Typescript code - # "@azure-tools/typespec-ts": true diff --git a/specification/devcenter/DevCenter/environments/openapi.tsp b/specification/devcenter/DevCenter/environments/openapi.tsp new file mode 100644 index 000000000000..7f1bec316379 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/openapi.tsp @@ -0,0 +1,39 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "./routes.tsp"; + +using Azure.Core; +using TypeSpec.Versioning; +using TypeSpec.Rest; +using TypeSpec.Http; + +@useAuth( + OAuth2Auth<[ + { + type: OAuth2FlowType.implicit, + authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize", + scopes: ["user_impersonation"], + } + ]> +) +@service({ + title: "DevCenter", +}) +@server( + "{endpoint}", + "DevCenter service", + { + endpoint: string, + } +) +@doc("DevCenter service") +@versioned(APIVersions) +namespace DevCenter; + +@doc("DevCenter API versions") +enum APIVersions { + @doc("The 2023-04-01 service API version") + @useDependency(Versions.v1_0_Preview_2) + v2023_04_01: "2023-04-01", +} \ No newline at end of file From bbcf343514671d2386e37f2d7d346fb6b5551b99 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Wed, 20 Sep 2023 17:55:06 -0700 Subject: [PATCH 010/187] add resources and standard ops --- .../devcenter/DevCenter/devbox/models.tsp | 27 ++- .../devcenter/DevCenter/devbox/routes.tsp | 161 +++++++++--------- .../devcenter/DevCenter/devcenter/models.tsp | 3 + .../devcenter/DevCenter/devcenter/routes.tsp | 22 +-- 4 files changed, 124 insertions(+), 89 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index 69d8abbfbda3..d104815cee6e 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -66,8 +66,22 @@ enum DevBoxActionDelayResultStatus { @doc("The Pool list result") model PoolListResult is Azure.Core.Page; +@doc("Project user") +@resource("users") +@parentResource(Project) +model User { + @key("userName") + @visibility("read") + @doc("User name") + name: string; +} + @doc("A pool of Dev Boxes.") +@resource("pools") +@parentResource(Project) model Pool { + @key("poolName") + @visibility("read") @doc("Pool name") name: string; @@ -176,7 +190,11 @@ is detected. model ScheduleListResult is Azure.Core.Page; @doc("A Schedule to execute action.") +@resource("schedules") +@parentResource(Pool) model Schedule { + @key("scheduleName") + @visibility("read") @doc("Display name for the Schedule") name: string; @@ -197,10 +215,13 @@ model Schedule { model DevBoxListResult is Azure.Core.Page; @doc("A Dev Box") +@resource("devboxes") +@parentResource(User) model DevBox { + @key("devBoxName") @doc("Display name for the Dev Box") @visibility("read") - name?: string; + name: string; // TODO: (devBoxName) Please double check that this is the correct type for your scenario. @doc("Name of the project this Dev Box belongs to") @visibility("read") @@ -288,7 +309,11 @@ model RemoteConnection { model DevBoxActionsListResult is Azure.Core.Page; @doc("An action which will take place on a Dev Box.") +@resource("actions") +@parentResource(DevBox) model DevBoxAction { + @key("actionName") + @visibility("read") @doc("The name of the action.") name: string; diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 6e3ab8025783..e32c4e11a828 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -2,6 +2,7 @@ import "@azure-tools/typespec-azure-core"; import "@typespec/rest"; import "./models.tsp"; +using Azure.Core; using TypeSpec.Rest; using TypeSpec.Http; @@ -29,20 +30,21 @@ interface DevBoxesOperations { >; @doc("Gets a pool") - @route("/projects/{projectName}/pools/{poolName}") - @get - GetPool is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The name of a pool of Dev Boxes.") - @path - poolName: string; - }, - Pool - >; + // @route("/projects/{projectName}/pools/{poolName}") + // @get + // GetPool is Azure.Core.Foundations.Operation< + // { + // @doc("The DevCenter Project upon which to execute operations.") + // @path + // projectName: string; + + // @doc("The name of a pool of Dev Boxes.") + // @path + // poolName: string; + // }, + // Pool + // >; + GetPool is StandardResourceOperations.ResourceRead; @doc("Lists available schedules for a pool.") @route("/projects/{projectName}/pools/{poolName}/schedules") @@ -69,24 +71,25 @@ interface DevBoxesOperations { >; @doc("Gets a schedule.") - @route("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") - @get - GetScheduleByPool is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The name of a pool of Dev Boxes.") - @path - poolName: string; - - @doc("The name of a schedule.") - @path - scheduleName: string; - }, - Schedule - >; + // @route("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") + // @get + // GetScheduleByPool is Azure.Core.Foundations.Operation< + // { + // @doc("The DevCenter Project upon which to execute operations.") + // @path + // projectName: string; + + // @doc("The name of a pool of Dev Boxes.") + // @path + // poolName: string; + + // @doc("The name of a schedule.") + // @path + // scheduleName: string; + // }, + // Schedule + // >; + GetScheduleByPool is StandardResourceOperations.ResourceRead; @doc("Lists Dev Boxes in the project for a particular user.") @route("/projects/{projectName}/users/{userId}/devboxes") @@ -116,27 +119,28 @@ authentication context. >; @doc("Gets a Dev Box") - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") - @get - GetDevBoxByUser is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - }, - DevBox - >; +// @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") +// @get +// GetDevBoxByUser is Azure.Core.Foundations.Operation< +// { +// @doc("The DevCenter Project upon which to execute operations.") +// @path +// projectName: string; + +// @doc(""" +// The AAD object id of the user. If value is 'me', the identity is taken from the +// authentication context. +// """) +// @path +// userId: string; + +// @doc("The name of a Dev Box.") +// @path +// devBoxName: string; +// }, +// DevBox +// >; + GetDevBoxByUser is StandardResourceOperations.ResourceRead; @doc("Creates or replaces a Dev Box.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @@ -308,31 +312,32 @@ authentication context. >; @doc("Gets an action.") - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}") - @get - GetAction is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - - @doc("The name of an action that will take place on a Dev Box.") - @path - actionName: string; - }, - DevBoxAction - >; +// @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}") +// @get +// GetAction is Azure.Core.Foundations.Operation< +// { +// @doc("The DevCenter Project upon which to execute operations.") +// @path +// projectName: string; + +// @doc(""" +// The AAD object id of the user. If value is 'me', the identity is taken from the +// authentication context. +// """) +// @path +// userId: string; + +// @doc("The name of a Dev Box.") +// @path +// devBoxName: string; + +// @doc("The name of an action that will take place on a Dev Box.") +// @path +// actionName: string; +// }, +// DevBoxAction +// >; + GetAction is StandardResourceOperations.ResourceRead; @doc("Skips an occurrence of an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip") diff --git a/specification/devcenter/DevCenter/devcenter/models.tsp b/specification/devcenter/DevCenter/devcenter/models.tsp index 234c928b55e4..4c92cb2c1b49 100644 --- a/specification/devcenter/DevCenter/devcenter/models.tsp +++ b/specification/devcenter/DevCenter/devcenter/models.tsp @@ -12,7 +12,10 @@ namespace DevCenter; model ProjectListResult is Azure.Core.Page; @doc("Project details.") +@resource("projects") model Project { + @key("projectName") + @visibility("read") @doc("Name of the project") name: string; diff --git a/specification/devcenter/DevCenter/devcenter/routes.tsp b/specification/devcenter/DevCenter/devcenter/routes.tsp index 52a1b9296348..6d99bbd8a9a4 100644 --- a/specification/devcenter/DevCenter/devcenter/routes.tsp +++ b/specification/devcenter/DevCenter/devcenter/routes.tsp @@ -2,6 +2,7 @@ import "@azure-tools/typespec-azure-core"; import "@typespec/rest"; import "./models.tsp"; +using Azure.Core; using TypeSpec.Rest; using TypeSpec.Http; @@ -25,14 +26,15 @@ interface DevCenterOperations { >; @doc("Gets a project.") - @route("/projects/{projectName}") - @get - GetProject is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - }, - Project - >; + // @route("/projects/{projectName}") + // @get + // GetProject is Azure.Core.Foundations.Operation< + // { + // @doc("The DevCenter Project upon which to execute operations.") + // @path + // projectName: string; + // }, + // Project + // >; + GetProject is StandardResourceOperations.ResourceRead; } From 0f4d46782e9b8a0bca7eebb690c1641939b51bbd Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Wed, 20 Sep 2023 18:17:03 -0700 Subject: [PATCH 011/187] add versioning --- specification/devcenter/DevCenter/client.tsp | 19 +++- .../DevCenter/environments/models.tsp | 45 +++++++++ .../DevCenter/environments/routes.tsp | 94 +++++++++++++++++++ specification/devcenter/DevCenter/main.tsp | 4 + 4 files changed, 160 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index eca99e1d72d1..970c26c0e557 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -6,14 +6,29 @@ using TypeSpec.Versioning; using DevCenter; using Azure.ClientGenerator.Core; -@useDependency(APIVersions.v2023_04_01) +// @useDependency(APIVersions.v2023_04_01) +@useDependency(APIVersions.v2023_09_01_preview) namespace SDKCustomizations; @client({ name: "EnvironmentsClient", service: DevCenter, }) -interface EnvironmentClientOperations extends DevCenter.EnvironmentsOperations{ +interface EnvironmentClientOperations {//extends DevCenter.EnvironmentsOperations{ + ListEnvironments is DevCenter.EnvironmentsOperations.ListEnvironments; + ListEnvironmentsByUser is DevCenter.EnvironmentsOperations.ListEnvironmentsByUser; + GetEnvironmentByUser is DevCenter.EnvironmentsOperations.GetEnvironmentByUser; + CreateOrReplaceEnvironment is DevCenter.EnvironmentsOperations.CreateOrReplaceEnvironment; + DeleteEnvironment is DevCenter.EnvironmentsOperations.DeleteEnvironment; + ListCatalogsByProject is DevCenter.EnvironmentsOperations.ListCatalogsByProject; + GetCatalog is DevCenter.EnvironmentsOperations.GetCatalog; + ListEnvironmentDefinitionsByProject is DevCenter.EnvironmentsOperations.ListEnvironmentDefinitionsByProject; + ListEnvironmentDefinitionsByCatalog is DevCenter.EnvironmentsOperations.ListEnvironmentDefinitionsByCatalog; + GetEnvironmentDefinition is DevCenter.EnvironmentsOperations.GetEnvironmentDefinition; + ListEnvironmentTypes is DevCenter.EnvironmentsOperations.ListEnvironmentTypes; + ListOperations is DevCenter.EnvironmentsOperations.ListOperations; + GetOperation is DevCenter.EnvironmentsOperations.GetOperation; + GetLogsByOperation is DevCenter.EnvironmentsOperations.GetLogsByOperation; } @client({ diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index fcb1315c2e76..3b22a9d27f9c 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -3,6 +3,7 @@ import "@typespec/http"; import "@azure-tools/typespec-azure-core"; import "../shared/models.tsp"; +using TypeSpec.Versioning; using TypeSpec.Rest; using TypeSpec.Http; @@ -155,3 +156,47 @@ or management group. @doc("Indicates whether this environment type is enabled for use in this project.") status: EnvironmentTypeEnableStatus; } + +@added(APIVersions.v2023_09_01_preview) +enum EnvironmentOperationStatus { + @doc("The operation has not started.") NotStarted, + @doc("The operation is running.") Running, + @doc("The operation succeeded.") Succeeded, + @doc("The operation was canceled.") Canceled, + @doc("The operation failed.") Failed, +} + +@added(APIVersions.v2023_09_01_preview) +@doc("The action results list result.") +model EnvironmentOperationListResult is Azure.Core.Page; + +@added(APIVersions.v2023_09_01_preview) +@doc("Information about an operation on an environment.") +@discriminator("kind") +model EnvironmentOperation { + @doc("The unique URI for the environment operation.") + uri: string; + + @doc("Unique identifier for the environment operation.") + operationId: string; + + @doc("The operation status.") + status: EnvironmentOperationStatus; + + @doc("The object ID of the actor which initiated the operation.") + createdByObjectId?: string; + + @doc("The time the operation started.") + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + startTime?: utcDateTime; + + @doc("The time the operation finished.") + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endTime?: utcDateTime; + + @doc("Parameters object for the environment at the time of the operation.") + environmentParameters?: unknown; + + @doc("Provisioning or operation error details. Populated only for error states.") + error?: CloudErrorBody; +} diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index 568e1683c617..1d6e273f2e53 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -2,6 +2,7 @@ import "@azure-tools/typespec-azure-core"; import "@typespec/rest"; import "./models.tsp"; +using TypeSpec.Versioning; using TypeSpec.Rest; using TypeSpec.Http; @@ -223,4 +224,97 @@ authentication context. }, EnvironmentTypeListResult >; + + + @added(APIVersions.v2023_09_01_preview) + @doc("Lists operations on the environment which have occurred within the past 90 days") + @route("/projects/{projectName}/users/{userId}/environments/{environmentName}/operations") + @get + ListOperations is Azure.Core.Foundations.Operation< + { + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top: int32; + + @doc("An OData filter clause to apply to the operation.") + @query + filter: string; + + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of the environment.") + @path + environmentName: string; + }, + EnvironmentOperationListResult + >; + + @added(APIVersions.v2023_09_01_preview) + @doc("Gets an environment action result.") + @route("/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}") + @get + GetOperation is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of the environment.") + @path + environmentName: string; + + @doc("The id of the operation on an environment.") + @path + operationId: string; + }, + EnvironmentOperation + >; + + @added(APIVersions.v2023_09_01_preview) + @doc("Gets the logs for an operation on an environment.") + @route("/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}/logs") + @get + GetLogsByOperation is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of the environment.") + @path + environmentName: string; + + @doc("The id of the operation on an environment.") + @path + operationId: string; + + @doc("Accept header") + @header + Accept: "text/plain"; + }, + void + >; } diff --git a/specification/devcenter/DevCenter/main.tsp b/specification/devcenter/DevCenter/main.tsp index 87892de9caa3..520a3d223e94 100644 --- a/specification/devcenter/DevCenter/main.tsp +++ b/specification/devcenter/DevCenter/main.tsp @@ -38,4 +38,8 @@ enum APIVersions { @doc("The 2023-04-01 service API version") @useDependency(Versions.v1_0_Preview_2) v2023_04_01: "2023-04-01", + + @doc("The 2023-09-01-preview service API version") + @useDependency(Versions.v1_0_Preview_2) + v2023_09_01_preview: "2023-09-01-preview", } \ No newline at end of file From e38616372cd2d048d5be732f882891cc726996db Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Wed, 20 Sep 2023 18:17:24 -0700 Subject: [PATCH 012/187] add versioned swaggers --- .../preview/2023-09-01-preview/openapi.json | 3410 +++++++++++++++++ .../stable/2023-04-01/openapi.json | 3098 +++++++++++++++ 2 files changed, 6508 insertions(+) create mode 100644 specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-09-01-preview/openapi.json create mode 100644 specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/openapi.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-09-01-preview/openapi.json b/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-09-01-preview/openapi.json new file mode 100644 index 000000000000..bc6f003105be --- /dev/null +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-09-01-preview/openapi.json @@ -0,0 +1,3410 @@ +{ + "swagger": "2.0", + "info": { + "title": "DevCenter", + "version": "2023-09-01-preview", + "description": "DevCenter service", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "x-ms-parameterized-host": { + "hostTemplate": "{endpoint}", + "useSchemePrefix": false, + "parameters": [ + { + "name": "endpoint", + "in": "path", + "required": true, + "type": "string" + } + ] + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "OAuth2Auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "OAuth2Auth": { + "type": "oauth2", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "" + } + } + }, + "tags": [], + "paths": { + "/devboxes": { + "get": { + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", + "description": "Lists Dev Boxes that the caller has access to in the DevCenter.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBox" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects": { + "get": { + "operationId": "DevCenterOperations_ListProjects", + "description": "Lists all projects.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedProject" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}": { + "get": { + "operationId": "DevCenterOperations_GetProject", + "description": "Gets a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Project" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/catalogs": { + "get": { + "operationId": "EnvironmentsOperations_ListCatalogsByProject", + "description": "Lists all of the catalogs available for a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedCatalog" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/catalogs/{catalogName}": { + "get": { + "operationId": "EnvironmentsOperations_GetCatalog", + "description": "Gets the specified catalog within the project", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "catalogName", + "in": "path", + "description": "The name of the catalog", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Catalog" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { + "get": { + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "description": "Lists all environment definitions available within a catalog.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "catalogName", + "in": "path", + "description": "The name of the catalog", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironmentDefinition" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { + "get": { + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "description": "Get an environment definition from a catalog.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "catalogName", + "in": "path", + "description": "The name of the catalog", + "required": true, + "type": "string" + }, + { + "name": "definitionName", + "in": "path", + "description": "The name of the environment definition", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/EnvironmentDefinition" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/environmentDefinitions": { + "get": { + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByProject", + "description": "Lists all environment definitions available for a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironmentDefinition" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/environmentTypes": { + "get": { + "operationId": "EnvironmentsOperations_ListEnvironmentTypes", + "description": "Lists all environment types configured for a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironmentType" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/environments": { + "get": { + "operationId": "EnvironmentsOperations_ListEnvironments", + "description": "Lists the environments for a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironment" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/pools": { + "get": { + "operationId": "DevBoxesOperations_ListPools", + "description": "Lists available pools", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": true, + "type": "string" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedPool" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/pools/{poolName}": { + "get": { + "operationId": "DevBoxesOperations_GetPool", + "description": "Gets a pool", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string" + }, + { + "name": "poolName", + "in": "path", + "description": "Pool name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Pool" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/pools/{poolName}/schedules": { + "get": { + "operationId": "DevBoxesOperations_ListSchedulesByPool", + "description": "Lists available schedules for a pool.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": true, + "type": "string" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "poolName", + "in": "path", + "description": "The name of a pool of Dev Boxes.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedSchedule" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { + "get": { + "operationId": "DevBoxesOperations_GetScheduleByPool", + "description": "Gets a schedule.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string" + }, + { + "name": "poolName", + "in": "path", + "description": "Pool name", + "required": true, + "type": "string" + }, + { + "name": "scheduleName", + "in": "path", + "description": "Display name for the Schedule", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes": { + "get": { + "operationId": "DevBoxesOperations_ListDevBoxesByUser", + "description": "Lists Dev Boxes in the project for a particular user.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBox" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/users/{userName}/devboxes/{devBoxName}": { + "get": { + "operationId": "DevBoxesOperations_GetDevBoxByUser", + "description": "Gets a Dev Box", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string" + }, + { + "name": "userName", + "in": "path", + "description": "User name", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "Display name for the Dev Box", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBox" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}": { + "put": { + "operationId": "DevBoxesOperations_CreateDevBox", + "description": "Creates or replaces a Dev Box.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "Represents a environment.", + "required": true, + "schema": { + "$ref": "#/definitions/DevBox" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBox" + } + }, + "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." + } + } + } + } + }, + "delete": { + "operationId": "DevBoxesOperations_DeleteDevBox", + "description": "Deletes a Dev Box.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start": { + "post": { + "operationId": "DevBoxesOperations_StartDevBox", + "description": "Starts a Dev Box", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop": { + "post": { + "operationId": "DevBoxesOperations_StopDevBox", + "description": "Stops a Dev Box", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "hibernate", + "in": "query", + "description": "Optional parameter to hibernate the dev box.", + "required": true, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart": { + "post": { + "operationId": "DevBoxesOperations_RestartDevBox", + "description": "Restarts a Dev Box", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions": { + "get": { + "operationId": "DevBoxesOperations_ListActions", + "description": "Lists actions on a Dev Box.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBoxAction" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/users/{userName}/devboxes/{devBoxName}/actions/{actionName}": { + "get": { + "operationId": "DevBoxesOperations_GetAction", + "description": "Gets an action.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string" + }, + { + "name": "userName", + "in": "path", + "description": "User name", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "Display name for the Dev Box", + "required": true, + "type": "string" + }, + { + "name": "actionName", + "in": "path", + "description": "The name of the action.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBoxAction" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip": { + "post": { + "operationId": "DevBoxesOperations_SkipAction", + "description": "Skips an occurrence of an action.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "actionName", + "in": "path", + "description": "The name of an action that will take place on a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay": { + "post": { + "operationId": "DevBoxesOperations_DelayAction", + "description": "Delays the occurrence of an action.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "actionName", + "in": "path", + "description": "The name of an action that will take place on a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "until", + "in": "query", + "description": "The time to delay the Dev Box action or actions until.", + "required": true, + "type": "string", + "format": "date-time" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBoxAction" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay": { + "post": { + "operationId": "DevBoxesOperations_DelayActions", + "description": "Delays all actions.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "until", + "in": "query", + "description": "The time to delay the Dev Box action or actions until.", + "required": true, + "type": "string", + "format": "date-time" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBoxActionDelayResult" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection": { + "get": { + "operationId": "DevBoxesOperations_GetRemoteConnection", + "description": "Gets RDP Connection info", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/RemoteConnection" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/environments": { + "get": { + "operationId": "EnvironmentsOperations_ListEnvironmentsByUser", + "description": "Lists the environments for a project and user.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironment" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/users/{userId}/environments/{environmentName}": { + "get": { + "operationId": "EnvironmentsOperations_GetEnvironmentByUser", + "description": "Gets an environment", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Environment" + } + }, + "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." + } + } + } + } + }, + "put": { + "operationId": "EnvironmentsOperations_CreateOrReplaceEnvironment", + "description": "Creates or updates an environment.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "Represents an environment.", + "required": true, + "schema": { + "$ref": "#/definitions/Environment" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Environment" + } + }, + "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." + } + } + } + } + }, + "delete": { + "operationId": "EnvironmentsOperations_DeleteEnvironment", + "description": "Deletes an environment and all its associated resources", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations": { + "get": { + "operationId": "EnvironmentsOperations_ListOperations", + "description": "Lists operations on the environment which have occurred within the past 90 days", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": true, + "type": "string" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironmentOperation" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}": { + "get": { + "operationId": "EnvironmentsOperations_GetOperation", + "description": "Gets an environment action result.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" + }, + { + "name": "operationId", + "in": "path", + "description": "The id of the operation on an environment.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/EnvironmentOperation" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}/logs": { + "get": { + "operationId": "EnvironmentsOperations_GetLogsByOperation", + "description": "Gets the logs for an operation on an environment.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" + }, + { + "name": "operationId", + "in": "path", + "description": "The id of the operation on an environment.", + "required": true, + "type": "string" + }, + { + "name": "accept", + "in": "header", + "description": "Accept header", + "required": true, + "type": "string", + "enum": [ + "text/plain" + ], + "x-ms-enum": { + "modelAsString": false + }, + "x-ms-client-name": "Accept" + } + ], + "responses": { + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " + }, + "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." + } + } + } + } + } + }, + "/users/{userId}/devboxes": { + "get": { + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "description": "Lists Dev Boxes in the Dev Center for a particular user.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBox" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "APIVersions": { + "type": "string", + "description": "DevCenter API versions", + "enum": [ + "2023-04-01", + "2023-09-01-preview" + ], + "x-ms-enum": { + "name": "APIVersions", + "modelAsString": true, + "values": [ + { + "name": "v2023_04_01", + "value": "2023-04-01", + "description": "The 2023-04-01 service API version" + }, + { + "name": "v2023_09_01_preview", + "value": "2023-09-01-preview", + "description": "The 2023-09-01-preview service API version" + } + ] + } + }, + "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." + } + } + }, + "Catalog": { + "type": "object", + "description": "A catalog.", + "properties": { + "name": { + "type": "string", + "description": "Name of the catalog." + } + }, + "required": [ + "name" + ] + }, + "CloudError": { + "type": "object", + "description": "An error response from the service.", + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Error body" + } + }, + "required": [ + "error" + ] + }, + "CloudErrorBody": { + "type": "object", + "description": "An error response from the service.", + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be\nconsumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for display in a user\ninterface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in\nerror." + }, + "details": { + "type": "array", + "description": "A list of additional details about the error.", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "code", + "message" + ] + }, + "DevBox": { + "type": "object", + "description": "A Dev Box", + "properties": { + "name": { + "type": "string", + "description": "Display name for the Dev Box", + "readOnly": true + }, + "projectName": { + "type": "string", + "description": "Name of the project this Dev Box belongs to", + "readOnly": true + }, + "poolName": { + "type": "string", + "description": "The name of the Dev Box pool this machine belongs to." + }, + "hibernateSupport": { + "$ref": "#/definitions/HibernateSupport", + "description": "Indicates whether hibernate is enabled/disabled or unknown.", + "readOnly": true + }, + "provisioningState": { + "type": "string", + "description": "The current provisioning state of the Dev Box.", + "readOnly": true + }, + "actionState": { + "type": "string", + "description": "The current action state of the Dev Box. This is state is based on previous\naction performed by user.", + "readOnly": true + }, + "powerState": { + "$ref": "#/definitions/PowerState", + "description": "The current power state of the Dev Box.", + "readOnly": true + }, + "uniqueId": { + "type": "string", + "description": "A unique identifier for the Dev Box. This is a GUID-formatted string (e.g.\n00000000-0000-0000-0000-000000000000).", + "readOnly": true + }, + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Provisioning or action error details. Populated only for error states.", + "readOnly": true + }, + "location": { + "type": "string", + "description": "Azure region where this Dev Box is located. This will be the same region as the\nVirtual Network it is attached to.", + "readOnly": true + }, + "osType": { + "$ref": "#/definitions/OsType", + "description": "The operating system type of this Dev Box.", + "readOnly": true + }, + "user": { + "type": "string", + "description": "The AAD object id of the user this Dev Box is assigned to.", + "readOnly": true + }, + "hardwareProfile": { + "$ref": "#/definitions/HardwareProfile", + "description": "Information about the Dev Box's hardware resources", + "readOnly": true + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage settings for this Dev Box", + "readOnly": true + }, + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Information about the image used for this Dev Box", + "readOnly": true + }, + "createdTime": { + "type": "string", + "format": "date-time", + "description": "Creation time of this Dev Box", + "readOnly": true + }, + "localAdministrator": { + "$ref": "#/definitions/LocalAdminStatus", + "description": "Indicates whether the owner of the Dev Box is a local administrator." + } + }, + "required": [ + "name", + "poolName" + ] + }, + "DevBoxAction": { + "type": "object", + "description": "An action which will take place on a Dev Box.", + "properties": { + "name": { + "type": "string", + "description": "The name of the action.", + "readOnly": true + }, + "actionType": { + "$ref": "#/definitions/DevBoxActionType", + "description": "The action that will be taken." + }, + "sourceId": { + "type": "string", + "description": "The id of the resource which triggered this action" + }, + "suspendedUntil": { + "type": "string", + "format": "date-time", + "description": "The earliest time that the action could occur (UTC)." + }, + "next": { + "$ref": "#/definitions/DevBoxNextAction", + "description": "Details about the next run of this action." + } + }, + "required": [ + "name", + "actionType", + "sourceId" + ] + }, + "DevBoxActionDelayResult": { + "type": "object", + "description": "The action delay result", + "properties": { + "name": { + "type": "string", + "description": "The name of the action." + }, + "result": { + "$ref": "#/definitions/DevBoxActionDelayResultStatus", + "description": "The result of the delay operation on this action." + }, + "action": { + "$ref": "#/definitions/DevBoxAction", + "description": "The delayed action" + }, + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Information about the error that occurred. Only populated on error." + } + }, + "required": [ + "name", + "result" + ] + }, + "DevBoxActionDelayResultStatus": { + "type": "string", + "enum": [ + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "DevBoxActionDelayResultStatus", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "The delay operation succeeded." + }, + { + "name": "Failed", + "value": "Failed", + "description": "The delay operation failed." + } + ] + } + }, + "DevBoxActionType": { + "type": "string", + "enum": [ + "Stop" + ], + "x-ms-enum": { + "name": "DevBoxActionType", + "modelAsString": true, + "values": [ + { + "name": "Stop", + "value": "Stop", + "description": "The action will stop the Dev Box." + } + ] + } + }, + "DevBoxNextAction": { + "type": "object", + "description": "Details about the next run of an action.", + "properties": { + "scheduledTime": { + "type": "string", + "format": "date-time", + "description": "The time the action will be triggered (UTC)." + } + }, + "required": [ + "scheduledTime" + ] + }, + "Environment": { + "type": "object", + "description": "Properties of an environment.", + "properties": { + "parameters": { + "description": "Parameters object for the environment." + }, + "name": { + "type": "string", + "description": "Environment name.", + "readOnly": true + }, + "environmentType": { + "type": "string", + "description": "Environment type." + }, + "user": { + "type": "string", + "description": "The AAD object id of the owner of this Environment.", + "readOnly": true + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the environment.", + "readOnly": true + }, + "resourceGroupId": { + "type": "string", + "description": "The identifier of the resource group containing the environment's resources.", + "readOnly": true + }, + "catalogName": { + "type": "string", + "description": "Name of the catalog." + }, + "environmentDefinitionName": { + "type": "string", + "description": "Name of the environment definition." + }, + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Provisioning error details. Populated only for error states.", + "readOnly": true + } + }, + "required": [ + "environmentType", + "catalogName", + "environmentDefinitionName" + ] + }, + "EnvironmentDefinition": { + "type": "object", + "description": "An environment definition.", + "properties": { + "id": { + "type": "string", + "description": "The ID of the environment definition." + }, + "name": { + "type": "string", + "description": "Name of the environment definition." + }, + "catalogName": { + "type": "string", + "description": "Name of the catalog." + }, + "description": { + "type": "string", + "description": "A short description of the environment definition." + }, + "parameters": { + "type": "array", + "description": "Input parameters passed to an environment.", + "items": { + "$ref": "#/definitions/EnvironmentDefinitionParameter" + } + }, + "parametersSchema": { + "type": "string", + "description": "JSON schema defining the parameters object passed to an environment." + }, + "templatePath": { + "type": "string", + "description": "Path to the Environment Definition entrypoint file." + } + }, + "required": [ + "id", + "name", + "catalogName" + ] + }, + "EnvironmentDefinitionParameter": { + "type": "object", + "description": "Properties of an Environment Definition parameter", + "properties": { + "id": { + "type": "string", + "description": "Unique ID of the parameter" + }, + "name": { + "type": "string", + "description": "Display name of the parameter" + }, + "description": { + "type": "string", + "description": "Description of the parameter" + }, + "default": { + "type": "string", + "description": "Default value of the parameter" + }, + "type": { + "$ref": "#/definitions/ParameterType", + "description": "A string of one of the basic JSON types (number, integer, array, object,\nboolean, string)" + }, + "readOnly": { + "type": "boolean", + "description": "Whether or not this parameter is read-only. If true, default should have a\nvalue." + }, + "required": { + "type": "boolean", + "description": "Whether or not this parameter is required" + }, + "allowed": { + "type": "array", + "description": "An array of allowed values", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "type", + "required" + ] + }, + "EnvironmentOperation": { + "type": "object", + "description": "Information about an operation on an environment.", + "properties": { + "kind": { + "type": "string", + "description": "Discriminator property for EnvironmentOperation." + }, + "uri": { + "type": "string", + "description": "The unique URI for the environment operation." + }, + "operationId": { + "type": "string", + "description": "Unique identifier for the environment operation." + }, + "status": { + "$ref": "#/definitions/EnvironmentOperationStatus", + "description": "The operation status." + }, + "createdByObjectId": { + "type": "string", + "description": "The object ID of the actor which initiated the operation." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The time the operation started." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The time the operation finished." + }, + "environmentParameters": { + "description": "Parameters object for the environment at the time of the operation." + }, + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Provisioning or operation error details. Populated only for error states." + } + }, + "discriminator": "kind", + "required": [ + "kind", + "uri", + "operationId", + "status" + ] + }, + "EnvironmentOperationStatus": { + "type": "string", + "enum": [ + "NotStarted", + "Running", + "Succeeded", + "Canceled", + "Failed" + ], + "x-ms-enum": { + "name": "EnvironmentOperationStatus", + "modelAsString": true, + "values": [ + { + "name": "NotStarted", + "value": "NotStarted", + "description": "The operation has not started." + }, + { + "name": "Running", + "value": "Running", + "description": "The operation is running." + }, + { + "name": "Succeeded", + "value": "Succeeded", + "description": "The operation succeeded." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "The operation was canceled." + }, + { + "name": "Failed", + "value": "Failed", + "description": "The operation failed." + } + ] + } + }, + "EnvironmentType": { + "type": "object", + "description": "Properties of an environment type.", + "properties": { + "name": { + "type": "string", + "description": "Name of the environment type" + }, + "deploymentTargetId": { + "type": "string", + "description": "Id of a subscription or management group that the environment type will be\nmapped to. The environment's resources will be deployed into this subscription\nor management group." + }, + "status": { + "$ref": "#/definitions/EnvironmentTypeEnableStatus", + "description": "Indicates whether this environment type is enabled for use in this project." + } + }, + "required": [ + "name", + "deploymentTargetId", + "status" + ] + }, + "EnvironmentTypeEnableStatus": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnvironmentTypeEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "The environment type is enabled for use in the project." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "The environment type is not enabled for use in the project." + } + ] + } + }, + "EnvironmentUpdateProperties": { + "type": "object", + "description": "Properties of an environment. These properties can be updated after the\nresource has been created.", + "properties": { + "parameters": { + "description": "Parameters object for the environment." + } + } + }, + "HardwareProfile": { + "type": "object", + "description": "Hardware specifications for the Dev Box.", + "properties": { + "skuName": { + "type": "string", + "description": "The name of the SKU", + "readOnly": true + }, + "vCPUs": { + "type": "integer", + "format": "int32", + "description": "The number of vCPUs available for the Dev Box.", + "readOnly": true + }, + "memoryGB": { + "type": "integer", + "format": "int32", + "description": "The amount of memory available for the Dev Box.", + "readOnly": true + } + } + }, + "HibernateSupport": { + "type": "string", + "enum": [ + "Enabled", + "Disabled", + "OsUnsupported" + ], + "x-ms-enum": { + "name": "HibernateSupport", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Hibernate is enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Hibernate is not enabled." + }, + { + "name": "OsUnsupported", + "value": "OsUnsupported", + "description": "Hibernate is not supported by the operating system." + } + ] + } + }, + "ImageReference": { + "type": "object", + "description": "Specifies information about the image used", + "properties": { + "name": { + "type": "string", + "description": "The name of the image used.", + "readOnly": true + }, + "version": { + "type": "string", + "description": "The version of the image.", + "readOnly": true + }, + "operatingSystem": { + "type": "string", + "description": "The operating system of the image.", + "readOnly": true + }, + "osBuildNumber": { + "type": "string", + "description": "The operating system build number of the image.", + "readOnly": true + }, + "publishedDate": { + "type": "string", + "format": "date-time", + "description": "The datetime that the backing image version was published.", + "readOnly": true + } + } + }, + "LocalAdminStatus": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "LocalAdminStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Owners of Dev Boxes in the pool are local administrators on the Dev Boxes." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes." + } + ] + } + }, + "OSDisk": { + "type": "object", + "description": "Settings for the operating system disk.", + "properties": { + "diskSizeGB": { + "type": "integer", + "format": "int32", + "description": "The size of the OS Disk in gigabytes.", + "readOnly": true + } + } + }, + "OperationStatus": { + "type": "object", + "description": "The current status of an async operation", + "properties": { + "id": { + "type": "string", + "description": "Fully qualified ID for the operation status." + }, + "name": { + "type": "string", + "description": "The operation id name" + }, + "status": { + "type": "string", + "description": "Provisioning state of the resource." + }, + "resourceId": { + "type": "string", + "description": "The id of the resource." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the operation" + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The end time of the operation" + }, + "percentComplete": { + "type": "number", + "format": "float", + "description": "Percent of the operation that is complete" + }, + "properties": { + "description": "Custom operation properties, populated only for a successful operation." + }, + "error": { + "$ref": "#/definitions/OperationStatusError", + "description": "Operation Error message" + } + }, + "required": [ + "status" + ] + }, + "OperationStatusError": { + "type": "object", + "description": "Operation Error message", + "properties": { + "code": { + "type": "string", + "description": "The error code." + }, + "message": { + "type": "string", + "description": "The error message." + } + } + }, + "OsType": { + "type": "string", + "enum": [ + "Windows" + ], + "x-ms-enum": { + "name": "OsType", + "modelAsString": true, + "values": [ + { + "name": "Windows", + "value": "Windows", + "description": "The Windows operating system." + } + ] + } + }, + "PagedCatalog": { + "type": "object", + "description": "Results of the catalog list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Catalog items on this page", + "items": { + "$ref": "#/definitions/Catalog" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedDevBox": { + "type": "object", + "description": "The Dev Box list result", + "properties": { + "value": { + "type": "array", + "description": "The DevBox items on this page", + "items": { + "$ref": "#/definitions/DevBox" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedDevBoxAction": { + "type": "object", + "description": "The actions list result", + "properties": { + "value": { + "type": "array", + "description": "The DevBoxAction items on this page", + "items": { + "$ref": "#/definitions/DevBoxAction" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedDevBoxActionDelayResult": { + "type": "object", + "description": "The actions list result", + "properties": { + "value": { + "type": "array", + "description": "The DevBoxActionDelayResult items on this page", + "items": { + "$ref": "#/definitions/DevBoxActionDelayResult" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironment": { + "type": "object", + "description": "Results of the environment list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Environment items on this page", + "items": { + "$ref": "#/definitions/Environment" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironmentDefinition": { + "type": "object", + "description": "Results of the environment definition list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnvironmentDefinition items on this page", + "items": { + "$ref": "#/definitions/EnvironmentDefinition" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironmentOperation": { + "type": "object", + "description": "The action results list result.", + "properties": { + "value": { + "type": "array", + "description": "The EnvironmentOperation items on this page", + "items": { + "$ref": "#/definitions/EnvironmentOperation" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironmentType": { + "type": "object", + "description": "Result of the environment type list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnvironmentType items on this page", + "items": { + "$ref": "#/definitions/EnvironmentType" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedPool": { + "type": "object", + "description": "The Pool list result", + "properties": { + "value": { + "type": "array", + "description": "The Pool items on this page", + "items": { + "$ref": "#/definitions/Pool" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedProject": { + "type": "object", + "description": "Results of the project list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Project items on this page", + "items": { + "$ref": "#/definitions/Project" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedSchedule": { + "type": "object", + "description": "The Schedule list result", + "properties": { + "value": { + "type": "array", + "description": "The Schedule items on this page", + "items": { + "$ref": "#/definitions/Schedule" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "ParameterType": { + "type": "string", + "enum": [ + "array", + "boolean", + "integer", + "number", + "object", + "string" + ], + "x-ms-enum": { + "name": "ParameterType", + "modelAsString": true, + "values": [ + { + "name": "array", + "value": "array", + "description": "The parameter accepts an array of values." + }, + { + "name": "boolean", + "value": "boolean", + "description": "The parameter accepts a boolean value." + }, + { + "name": "integer", + "value": "integer", + "description": "The parameter accepts an integer value." + }, + { + "name": "number", + "value": "number", + "description": "The parameter accepts a number value." + }, + { + "name": "object", + "value": "object", + "description": "The parameter accepts an object value." + }, + { + "name": "string", + "value": "string", + "description": "The parameter accepts a string value." + } + ] + } + }, + "Pool": { + "type": "object", + "description": "A pool of Dev Boxes.", + "properties": { + "name": { + "type": "string", + "description": "Pool name", + "readOnly": true + }, + "location": { + "type": "string", + "description": "Azure region where Dev Boxes in the pool are located" + }, + "osType": { + "$ref": "#/definitions/OsType", + "description": "The operating system type of Dev Boxes in this pool" + }, + "hardwareProfile": { + "$ref": "#/definitions/HardwareProfile", + "description": "Hardware settings for the Dev Boxes created in this pool" + }, + "hibernateSupport": { + "$ref": "#/definitions/HibernateSupport", + "description": "Indicates whether hibernate is enabled/disabled or unknown." + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage settings for Dev Box created in this pool" + }, + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Image settings for Dev Boxes create in this pool" + }, + "localAdministrator": { + "$ref": "#/definitions/LocalAdminStatus", + "description": "Indicates whether owners of Dev Boxes in this pool are local administrators on\nthe Dev Boxes." + }, + "stopOnDisconnect": { + "$ref": "#/definitions/StopOnDisconnectConfiguration", + "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool." + }, + "healthStatus": { + "$ref": "#/definitions/PoolHealthStatus", + "description": "Overall health status of the Pool. Indicates whether or not the Pool is\navailable to create Dev Boxes." + } + }, + "required": [ + "name", + "location", + "healthStatus" + ] + }, + "PoolHealthStatus": { + "type": "string", + "enum": [ + "Unknown", + "Pending", + "Healthy", + "Warning", + "Unhealthy" + ], + "x-ms-enum": { + "name": "PoolHealthStatus", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "The pool health status is not known." + }, + { + "name": "Pending", + "value": "Pending", + "description": "The pool health status waiting for health checks to run." + }, + { + "name": "Healthy", + "value": "Healthy", + "description": "The pool health status is healthy." + }, + { + "name": "Warning", + "value": "Warning", + "description": "The pool health status has one or more warnings." + }, + { + "name": "Unhealthy", + "value": "Unhealthy", + "description": "The pool health status is not healthy." + } + ] + } + }, + "PowerState": { + "type": "string", + "enum": [ + "Unknown", + "Running", + "Deallocated", + "PoweredOff", + "Hibernated" + ], + "x-ms-enum": { + "name": "PowerState", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "The Dev Box power state is not known." + }, + { + "name": "Running", + "value": "Running", + "description": "The Dev Box is running." + }, + { + "name": "Deallocated", + "value": "Deallocated", + "description": "The Dev Box is deallocated." + }, + { + "name": "PoweredOff", + "value": "PoweredOff", + "description": "The Dev Box is powered off." + }, + { + "name": "Hibernated", + "value": "Hibernated", + "description": "The Dev Box is hibernated." + } + ] + } + }, + "Project": { + "type": "object", + "description": "Project details.", + "properties": { + "name": { + "type": "string", + "description": "Name of the project", + "readOnly": true + }, + "description": { + "type": "string", + "description": "Description of the project." + }, + "maxDevBoxesPerUser": { + "type": "integer", + "format": "int32", + "description": "When specified, indicates the maximum number of Dev Boxes a single user can\ncreate across all pools in the project." + } + }, + "required": [ + "name" + ] + }, + "RemoteConnection": { + "type": "object", + "description": "Provides remote connection information for a Dev Box.", + "properties": { + "webUrl": { + "type": "string", + "description": "URL to open a browser based RDP session." + }, + "rdpConnectionUrl": { + "type": "string", + "description": "Link to open a Remote Desktop session." + } + } + }, + "Schedule": { + "type": "object", + "description": "A Schedule to execute action.", + "properties": { + "name": { + "type": "string", + "description": "Display name for the Schedule", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/ScheduledType", + "description": "Supported type this scheduled task represents." + }, + "frequency": { + "$ref": "#/definitions/ScheduledFrequency", + "description": "The frequency of this scheduled task." + }, + "time": { + "type": "string", + "description": "The target time to trigger the action. The format is HH:MM." + }, + "timeZone": { + "type": "string", + "description": "The IANA timezone id at which the schedule should execute." + } + }, + "required": [ + "name", + "type", + "frequency", + "time", + "timeZone" + ] + }, + "ScheduledFrequency": { + "type": "string", + "enum": [ + "Daily" + ], + "x-ms-enum": { + "name": "ScheduledFrequency", + "modelAsString": true, + "values": [ + { + "name": "Daily", + "value": "Daily", + "description": "The scheduled task will run every day." + } + ] + } + }, + "ScheduledType": { + "type": "string", + "enum": [ + "StopDevBox" + ], + "x-ms-enum": { + "name": "ScheduledType", + "modelAsString": true, + "values": [ + { + "name": "StopDevBox", + "value": "StopDevBox", + "description": "The scheduled task will stop impacted Dev Boxes." + } + ] + } + }, + "StopOnDisconnectConfiguration": { + "type": "object", + "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", + "properties": { + "status": { + "$ref": "#/definitions/StopOnDisconnectEnableStatus", + "description": "Indicates whether the feature to stop the devbox on disconnect once the grace\nperiod has lapsed is enabled." + }, + "gracePeriodMinutes": { + "type": "integer", + "format": "int32", + "description": "The specified time in minutes to wait before stopping a Dev Box once disconnect\nis detected." + } + }, + "required": [ + "status" + ] + }, + "StopOnDisconnectEnableStatus": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "StopOnDisconnectEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Stop on disconnect is enabled on the Dev Box." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Stop on disconnect is not enabled on the Dev Box." + } + ] + } + }, + "StorageProfile": { + "type": "object", + "description": "Storage settings for the Dev Box's disks", + "properties": { + "osDisk": { + "$ref": "#/definitions/OSDisk", + "description": "Settings for the operating system disk." + } + } + }, + "User": { + "type": "object", + "description": "Project user", + "properties": { + "name": { + "type": "string", + "description": "User name", + "readOnly": true + } + }, + "required": [ + "name" + ] + } + }, + "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/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/openapi.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/openapi.json new file mode 100644 index 000000000000..5e8a06901c21 --- /dev/null +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/openapi.json @@ -0,0 +1,3098 @@ +{ + "swagger": "2.0", + "info": { + "title": "DevCenter", + "version": "2023-04-01", + "description": "DevCenter service", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "x-ms-parameterized-host": { + "hostTemplate": "{endpoint}", + "useSchemePrefix": false, + "parameters": [ + { + "name": "endpoint", + "in": "path", + "required": true, + "type": "string" + } + ] + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "OAuth2Auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "OAuth2Auth": { + "type": "oauth2", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "" + } + } + }, + "tags": [], + "paths": { + "/devboxes": { + "get": { + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", + "description": "Lists Dev Boxes that the caller has access to in the DevCenter.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBox" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects": { + "get": { + "operationId": "DevCenterOperations_ListProjects", + "description": "Lists all projects.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedProject" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}": { + "get": { + "operationId": "DevCenterOperations_GetProject", + "description": "Gets a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Project" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/catalogs": { + "get": { + "operationId": "EnvironmentsOperations_ListCatalogsByProject", + "description": "Lists all of the catalogs available for a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedCatalog" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/catalogs/{catalogName}": { + "get": { + "operationId": "EnvironmentsOperations_GetCatalog", + "description": "Gets the specified catalog within the project", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "catalogName", + "in": "path", + "description": "The name of the catalog", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Catalog" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { + "get": { + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "description": "Lists all environment definitions available within a catalog.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "catalogName", + "in": "path", + "description": "The name of the catalog", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironmentDefinition" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { + "get": { + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "description": "Get an environment definition from a catalog.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "catalogName", + "in": "path", + "description": "The name of the catalog", + "required": true, + "type": "string" + }, + { + "name": "definitionName", + "in": "path", + "description": "The name of the environment definition", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/EnvironmentDefinition" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/environmentDefinitions": { + "get": { + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByProject", + "description": "Lists all environment definitions available for a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironmentDefinition" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/environmentTypes": { + "get": { + "operationId": "EnvironmentsOperations_ListEnvironmentTypes", + "description": "Lists all environment types configured for a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironmentType" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/environments": { + "get": { + "operationId": "EnvironmentsOperations_ListEnvironments", + "description": "Lists the environments for a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironment" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/pools": { + "get": { + "operationId": "DevBoxesOperations_ListPools", + "description": "Lists available pools", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": true, + "type": "string" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedPool" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/pools/{poolName}": { + "get": { + "operationId": "DevBoxesOperations_GetPool", + "description": "Gets a pool", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string" + }, + { + "name": "poolName", + "in": "path", + "description": "Pool name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Pool" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/pools/{poolName}/schedules": { + "get": { + "operationId": "DevBoxesOperations_ListSchedulesByPool", + "description": "Lists available schedules for a pool.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": true, + "type": "string" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "poolName", + "in": "path", + "description": "The name of a pool of Dev Boxes.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedSchedule" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { + "get": { + "operationId": "DevBoxesOperations_GetScheduleByPool", + "description": "Gets a schedule.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string" + }, + { + "name": "poolName", + "in": "path", + "description": "Pool name", + "required": true, + "type": "string" + }, + { + "name": "scheduleName", + "in": "path", + "description": "Display name for the Schedule", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes": { + "get": { + "operationId": "DevBoxesOperations_ListDevBoxesByUser", + "description": "Lists Dev Boxes in the project for a particular user.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBox" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/users/{userName}/devboxes/{devBoxName}": { + "get": { + "operationId": "DevBoxesOperations_GetDevBoxByUser", + "description": "Gets a Dev Box", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string" + }, + { + "name": "userName", + "in": "path", + "description": "User name", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "Display name for the Dev Box", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBox" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}": { + "put": { + "operationId": "DevBoxesOperations_CreateDevBox", + "description": "Creates or replaces a Dev Box.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "Represents a environment.", + "required": true, + "schema": { + "$ref": "#/definitions/DevBox" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBox" + } + }, + "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." + } + } + } + } + }, + "delete": { + "operationId": "DevBoxesOperations_DeleteDevBox", + "description": "Deletes a Dev Box.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start": { + "post": { + "operationId": "DevBoxesOperations_StartDevBox", + "description": "Starts a Dev Box", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop": { + "post": { + "operationId": "DevBoxesOperations_StopDevBox", + "description": "Stops a Dev Box", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "hibernate", + "in": "query", + "description": "Optional parameter to hibernate the dev box.", + "required": true, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart": { + "post": { + "operationId": "DevBoxesOperations_RestartDevBox", + "description": "Restarts a Dev Box", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions": { + "get": { + "operationId": "DevBoxesOperations_ListActions", + "description": "Lists actions on a Dev Box.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBoxAction" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/users/{userName}/devboxes/{devBoxName}/actions/{actionName}": { + "get": { + "operationId": "DevBoxesOperations_GetAction", + "description": "Gets an action.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string" + }, + { + "name": "userName", + "in": "path", + "description": "User name", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "Display name for the Dev Box", + "required": true, + "type": "string" + }, + { + "name": "actionName", + "in": "path", + "description": "The name of the action.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBoxAction" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip": { + "post": { + "operationId": "DevBoxesOperations_SkipAction", + "description": "Skips an occurrence of an action.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "actionName", + "in": "path", + "description": "The name of an action that will take place on a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay": { + "post": { + "operationId": "DevBoxesOperations_DelayAction", + "description": "Delays the occurrence of an action.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "actionName", + "in": "path", + "description": "The name of an action that will take place on a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "until", + "in": "query", + "description": "The time to delay the Dev Box action or actions until.", + "required": true, + "type": "string", + "format": "date-time" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBoxAction" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay": { + "post": { + "operationId": "DevBoxesOperations_DelayActions", + "description": "Delays all actions.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "until", + "in": "query", + "description": "The time to delay the Dev Box action or actions until.", + "required": true, + "type": "string", + "format": "date-time" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBoxActionDelayResult" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection": { + "get": { + "operationId": "DevBoxesOperations_GetRemoteConnection", + "description": "Gets RDP Connection info", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/RemoteConnection" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/environments": { + "get": { + "operationId": "EnvironmentsOperations_ListEnvironmentsByUser", + "description": "Lists the environments for a project and user.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironment" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/users/{userId}/environments/{environmentName}": { + "get": { + "operationId": "EnvironmentsOperations_GetEnvironmentByUser", + "description": "Gets an environment", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Environment" + } + }, + "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." + } + } + } + } + }, + "put": { + "operationId": "EnvironmentsOperations_CreateOrReplaceEnvironment", + "description": "Creates or updates an environment.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "Represents an environment.", + "required": true, + "schema": { + "$ref": "#/definitions/Environment" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Environment" + } + }, + "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." + } + } + } + } + }, + "delete": { + "operationId": "EnvironmentsOperations_DeleteEnvironment", + "description": "Deletes an environment and all its associated resources", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " + }, + "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." + } + } + } + } + } + }, + "/users/{userId}/devboxes": { + "get": { + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "description": "Lists Dev Boxes in the Dev Center for a particular user.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBox" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "APIVersions": { + "type": "string", + "description": "DevCenter API versions", + "enum": [ + "2023-04-01", + "2023-09-01-preview" + ], + "x-ms-enum": { + "name": "APIVersions", + "modelAsString": true, + "values": [ + { + "name": "v2023_04_01", + "value": "2023-04-01", + "description": "The 2023-04-01 service API version" + }, + { + "name": "v2023_09_01_preview", + "value": "2023-09-01-preview", + "description": "The 2023-09-01-preview service API version" + } + ] + } + }, + "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." + } + } + }, + "Catalog": { + "type": "object", + "description": "A catalog.", + "properties": { + "name": { + "type": "string", + "description": "Name of the catalog." + } + }, + "required": [ + "name" + ] + }, + "CloudError": { + "type": "object", + "description": "An error response from the service.", + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Error body" + } + }, + "required": [ + "error" + ] + }, + "CloudErrorBody": { + "type": "object", + "description": "An error response from the service.", + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be\nconsumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for display in a user\ninterface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in\nerror." + }, + "details": { + "type": "array", + "description": "A list of additional details about the error.", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "code", + "message" + ] + }, + "DevBox": { + "type": "object", + "description": "A Dev Box", + "properties": { + "name": { + "type": "string", + "description": "Display name for the Dev Box", + "readOnly": true + }, + "projectName": { + "type": "string", + "description": "Name of the project this Dev Box belongs to", + "readOnly": true + }, + "poolName": { + "type": "string", + "description": "The name of the Dev Box pool this machine belongs to." + }, + "hibernateSupport": { + "$ref": "#/definitions/HibernateSupport", + "description": "Indicates whether hibernate is enabled/disabled or unknown.", + "readOnly": true + }, + "provisioningState": { + "type": "string", + "description": "The current provisioning state of the Dev Box.", + "readOnly": true + }, + "actionState": { + "type": "string", + "description": "The current action state of the Dev Box. This is state is based on previous\naction performed by user.", + "readOnly": true + }, + "powerState": { + "$ref": "#/definitions/PowerState", + "description": "The current power state of the Dev Box.", + "readOnly": true + }, + "uniqueId": { + "type": "string", + "description": "A unique identifier for the Dev Box. This is a GUID-formatted string (e.g.\n00000000-0000-0000-0000-000000000000).", + "readOnly": true + }, + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Provisioning or action error details. Populated only for error states.", + "readOnly": true + }, + "location": { + "type": "string", + "description": "Azure region where this Dev Box is located. This will be the same region as the\nVirtual Network it is attached to.", + "readOnly": true + }, + "osType": { + "$ref": "#/definitions/OsType", + "description": "The operating system type of this Dev Box.", + "readOnly": true + }, + "user": { + "type": "string", + "description": "The AAD object id of the user this Dev Box is assigned to.", + "readOnly": true + }, + "hardwareProfile": { + "$ref": "#/definitions/HardwareProfile", + "description": "Information about the Dev Box's hardware resources", + "readOnly": true + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage settings for this Dev Box", + "readOnly": true + }, + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Information about the image used for this Dev Box", + "readOnly": true + }, + "createdTime": { + "type": "string", + "format": "date-time", + "description": "Creation time of this Dev Box", + "readOnly": true + }, + "localAdministrator": { + "$ref": "#/definitions/LocalAdminStatus", + "description": "Indicates whether the owner of the Dev Box is a local administrator." + } + }, + "required": [ + "name", + "poolName" + ] + }, + "DevBoxAction": { + "type": "object", + "description": "An action which will take place on a Dev Box.", + "properties": { + "name": { + "type": "string", + "description": "The name of the action.", + "readOnly": true + }, + "actionType": { + "$ref": "#/definitions/DevBoxActionType", + "description": "The action that will be taken." + }, + "sourceId": { + "type": "string", + "description": "The id of the resource which triggered this action" + }, + "suspendedUntil": { + "type": "string", + "format": "date-time", + "description": "The earliest time that the action could occur (UTC)." + }, + "next": { + "$ref": "#/definitions/DevBoxNextAction", + "description": "Details about the next run of this action." + } + }, + "required": [ + "name", + "actionType", + "sourceId" + ] + }, + "DevBoxActionDelayResult": { + "type": "object", + "description": "The action delay result", + "properties": { + "name": { + "type": "string", + "description": "The name of the action." + }, + "result": { + "$ref": "#/definitions/DevBoxActionDelayResultStatus", + "description": "The result of the delay operation on this action." + }, + "action": { + "$ref": "#/definitions/DevBoxAction", + "description": "The delayed action" + }, + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Information about the error that occurred. Only populated on error." + } + }, + "required": [ + "name", + "result" + ] + }, + "DevBoxActionDelayResultStatus": { + "type": "string", + "enum": [ + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "DevBoxActionDelayResultStatus", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "The delay operation succeeded." + }, + { + "name": "Failed", + "value": "Failed", + "description": "The delay operation failed." + } + ] + } + }, + "DevBoxActionType": { + "type": "string", + "enum": [ + "Stop" + ], + "x-ms-enum": { + "name": "DevBoxActionType", + "modelAsString": true, + "values": [ + { + "name": "Stop", + "value": "Stop", + "description": "The action will stop the Dev Box." + } + ] + } + }, + "DevBoxNextAction": { + "type": "object", + "description": "Details about the next run of an action.", + "properties": { + "scheduledTime": { + "type": "string", + "format": "date-time", + "description": "The time the action will be triggered (UTC)." + } + }, + "required": [ + "scheduledTime" + ] + }, + "Environment": { + "type": "object", + "description": "Properties of an environment.", + "properties": { + "parameters": { + "description": "Parameters object for the environment." + }, + "name": { + "type": "string", + "description": "Environment name.", + "readOnly": true + }, + "environmentType": { + "type": "string", + "description": "Environment type." + }, + "user": { + "type": "string", + "description": "The AAD object id of the owner of this Environment.", + "readOnly": true + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the environment.", + "readOnly": true + }, + "resourceGroupId": { + "type": "string", + "description": "The identifier of the resource group containing the environment's resources.", + "readOnly": true + }, + "catalogName": { + "type": "string", + "description": "Name of the catalog." + }, + "environmentDefinitionName": { + "type": "string", + "description": "Name of the environment definition." + }, + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Provisioning error details. Populated only for error states.", + "readOnly": true + } + }, + "required": [ + "environmentType", + "catalogName", + "environmentDefinitionName" + ] + }, + "EnvironmentDefinition": { + "type": "object", + "description": "An environment definition.", + "properties": { + "id": { + "type": "string", + "description": "The ID of the environment definition." + }, + "name": { + "type": "string", + "description": "Name of the environment definition." + }, + "catalogName": { + "type": "string", + "description": "Name of the catalog." + }, + "description": { + "type": "string", + "description": "A short description of the environment definition." + }, + "parameters": { + "type": "array", + "description": "Input parameters passed to an environment.", + "items": { + "$ref": "#/definitions/EnvironmentDefinitionParameter" + } + }, + "parametersSchema": { + "type": "string", + "description": "JSON schema defining the parameters object passed to an environment." + }, + "templatePath": { + "type": "string", + "description": "Path to the Environment Definition entrypoint file." + } + }, + "required": [ + "id", + "name", + "catalogName" + ] + }, + "EnvironmentDefinitionParameter": { + "type": "object", + "description": "Properties of an Environment Definition parameter", + "properties": { + "id": { + "type": "string", + "description": "Unique ID of the parameter" + }, + "name": { + "type": "string", + "description": "Display name of the parameter" + }, + "description": { + "type": "string", + "description": "Description of the parameter" + }, + "default": { + "type": "string", + "description": "Default value of the parameter" + }, + "type": { + "$ref": "#/definitions/ParameterType", + "description": "A string of one of the basic JSON types (number, integer, array, object,\nboolean, string)" + }, + "readOnly": { + "type": "boolean", + "description": "Whether or not this parameter is read-only. If true, default should have a\nvalue." + }, + "required": { + "type": "boolean", + "description": "Whether or not this parameter is required" + }, + "allowed": { + "type": "array", + "description": "An array of allowed values", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "type", + "required" + ] + }, + "EnvironmentType": { + "type": "object", + "description": "Properties of an environment type.", + "properties": { + "name": { + "type": "string", + "description": "Name of the environment type" + }, + "deploymentTargetId": { + "type": "string", + "description": "Id of a subscription or management group that the environment type will be\nmapped to. The environment's resources will be deployed into this subscription\nor management group." + }, + "status": { + "$ref": "#/definitions/EnvironmentTypeEnableStatus", + "description": "Indicates whether this environment type is enabled for use in this project." + } + }, + "required": [ + "name", + "deploymentTargetId", + "status" + ] + }, + "EnvironmentTypeEnableStatus": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnvironmentTypeEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "The environment type is enabled for use in the project." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "The environment type is not enabled for use in the project." + } + ] + } + }, + "EnvironmentUpdateProperties": { + "type": "object", + "description": "Properties of an environment. These properties can be updated after the\nresource has been created.", + "properties": { + "parameters": { + "description": "Parameters object for the environment." + } + } + }, + "HardwareProfile": { + "type": "object", + "description": "Hardware specifications for the Dev Box.", + "properties": { + "skuName": { + "type": "string", + "description": "The name of the SKU", + "readOnly": true + }, + "vCPUs": { + "type": "integer", + "format": "int32", + "description": "The number of vCPUs available for the Dev Box.", + "readOnly": true + }, + "memoryGB": { + "type": "integer", + "format": "int32", + "description": "The amount of memory available for the Dev Box.", + "readOnly": true + } + } + }, + "HibernateSupport": { + "type": "string", + "enum": [ + "Enabled", + "Disabled", + "OsUnsupported" + ], + "x-ms-enum": { + "name": "HibernateSupport", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Hibernate is enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Hibernate is not enabled." + }, + { + "name": "OsUnsupported", + "value": "OsUnsupported", + "description": "Hibernate is not supported by the operating system." + } + ] + } + }, + "ImageReference": { + "type": "object", + "description": "Specifies information about the image used", + "properties": { + "name": { + "type": "string", + "description": "The name of the image used.", + "readOnly": true + }, + "version": { + "type": "string", + "description": "The version of the image.", + "readOnly": true + }, + "operatingSystem": { + "type": "string", + "description": "The operating system of the image.", + "readOnly": true + }, + "osBuildNumber": { + "type": "string", + "description": "The operating system build number of the image.", + "readOnly": true + }, + "publishedDate": { + "type": "string", + "format": "date-time", + "description": "The datetime that the backing image version was published.", + "readOnly": true + } + } + }, + "LocalAdminStatus": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "LocalAdminStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Owners of Dev Boxes in the pool are local administrators on the Dev Boxes." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes." + } + ] + } + }, + "OSDisk": { + "type": "object", + "description": "Settings for the operating system disk.", + "properties": { + "diskSizeGB": { + "type": "integer", + "format": "int32", + "description": "The size of the OS Disk in gigabytes.", + "readOnly": true + } + } + }, + "OperationStatus": { + "type": "object", + "description": "The current status of an async operation", + "properties": { + "id": { + "type": "string", + "description": "Fully qualified ID for the operation status." + }, + "name": { + "type": "string", + "description": "The operation id name" + }, + "status": { + "type": "string", + "description": "Provisioning state of the resource." + }, + "resourceId": { + "type": "string", + "description": "The id of the resource." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the operation" + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The end time of the operation" + }, + "percentComplete": { + "type": "number", + "format": "float", + "description": "Percent of the operation that is complete" + }, + "properties": { + "description": "Custom operation properties, populated only for a successful operation." + }, + "error": { + "$ref": "#/definitions/OperationStatusError", + "description": "Operation Error message" + } + }, + "required": [ + "status" + ] + }, + "OperationStatusError": { + "type": "object", + "description": "Operation Error message", + "properties": { + "code": { + "type": "string", + "description": "The error code." + }, + "message": { + "type": "string", + "description": "The error message." + } + } + }, + "OsType": { + "type": "string", + "enum": [ + "Windows" + ], + "x-ms-enum": { + "name": "OsType", + "modelAsString": true, + "values": [ + { + "name": "Windows", + "value": "Windows", + "description": "The Windows operating system." + } + ] + } + }, + "PagedCatalog": { + "type": "object", + "description": "Results of the catalog list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Catalog items on this page", + "items": { + "$ref": "#/definitions/Catalog" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedDevBox": { + "type": "object", + "description": "The Dev Box list result", + "properties": { + "value": { + "type": "array", + "description": "The DevBox items on this page", + "items": { + "$ref": "#/definitions/DevBox" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedDevBoxAction": { + "type": "object", + "description": "The actions list result", + "properties": { + "value": { + "type": "array", + "description": "The DevBoxAction items on this page", + "items": { + "$ref": "#/definitions/DevBoxAction" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedDevBoxActionDelayResult": { + "type": "object", + "description": "The actions list result", + "properties": { + "value": { + "type": "array", + "description": "The DevBoxActionDelayResult items on this page", + "items": { + "$ref": "#/definitions/DevBoxActionDelayResult" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironment": { + "type": "object", + "description": "Results of the environment list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Environment items on this page", + "items": { + "$ref": "#/definitions/Environment" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironmentDefinition": { + "type": "object", + "description": "Results of the environment definition list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnvironmentDefinition items on this page", + "items": { + "$ref": "#/definitions/EnvironmentDefinition" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironmentType": { + "type": "object", + "description": "Result of the environment type list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnvironmentType items on this page", + "items": { + "$ref": "#/definitions/EnvironmentType" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedPool": { + "type": "object", + "description": "The Pool list result", + "properties": { + "value": { + "type": "array", + "description": "The Pool items on this page", + "items": { + "$ref": "#/definitions/Pool" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedProject": { + "type": "object", + "description": "Results of the project list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Project items on this page", + "items": { + "$ref": "#/definitions/Project" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedSchedule": { + "type": "object", + "description": "The Schedule list result", + "properties": { + "value": { + "type": "array", + "description": "The Schedule items on this page", + "items": { + "$ref": "#/definitions/Schedule" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "ParameterType": { + "type": "string", + "enum": [ + "array", + "boolean", + "integer", + "number", + "object", + "string" + ], + "x-ms-enum": { + "name": "ParameterType", + "modelAsString": true, + "values": [ + { + "name": "array", + "value": "array", + "description": "The parameter accepts an array of values." + }, + { + "name": "boolean", + "value": "boolean", + "description": "The parameter accepts a boolean value." + }, + { + "name": "integer", + "value": "integer", + "description": "The parameter accepts an integer value." + }, + { + "name": "number", + "value": "number", + "description": "The parameter accepts a number value." + }, + { + "name": "object", + "value": "object", + "description": "The parameter accepts an object value." + }, + { + "name": "string", + "value": "string", + "description": "The parameter accepts a string value." + } + ] + } + }, + "Pool": { + "type": "object", + "description": "A pool of Dev Boxes.", + "properties": { + "name": { + "type": "string", + "description": "Pool name", + "readOnly": true + }, + "location": { + "type": "string", + "description": "Azure region where Dev Boxes in the pool are located" + }, + "osType": { + "$ref": "#/definitions/OsType", + "description": "The operating system type of Dev Boxes in this pool" + }, + "hardwareProfile": { + "$ref": "#/definitions/HardwareProfile", + "description": "Hardware settings for the Dev Boxes created in this pool" + }, + "hibernateSupport": { + "$ref": "#/definitions/HibernateSupport", + "description": "Indicates whether hibernate is enabled/disabled or unknown." + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage settings for Dev Box created in this pool" + }, + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Image settings for Dev Boxes create in this pool" + }, + "localAdministrator": { + "$ref": "#/definitions/LocalAdminStatus", + "description": "Indicates whether owners of Dev Boxes in this pool are local administrators on\nthe Dev Boxes." + }, + "stopOnDisconnect": { + "$ref": "#/definitions/StopOnDisconnectConfiguration", + "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool." + }, + "healthStatus": { + "$ref": "#/definitions/PoolHealthStatus", + "description": "Overall health status of the Pool. Indicates whether or not the Pool is\navailable to create Dev Boxes." + } + }, + "required": [ + "name", + "location", + "healthStatus" + ] + }, + "PoolHealthStatus": { + "type": "string", + "enum": [ + "Unknown", + "Pending", + "Healthy", + "Warning", + "Unhealthy" + ], + "x-ms-enum": { + "name": "PoolHealthStatus", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "The pool health status is not known." + }, + { + "name": "Pending", + "value": "Pending", + "description": "The pool health status waiting for health checks to run." + }, + { + "name": "Healthy", + "value": "Healthy", + "description": "The pool health status is healthy." + }, + { + "name": "Warning", + "value": "Warning", + "description": "The pool health status has one or more warnings." + }, + { + "name": "Unhealthy", + "value": "Unhealthy", + "description": "The pool health status is not healthy." + } + ] + } + }, + "PowerState": { + "type": "string", + "enum": [ + "Unknown", + "Running", + "Deallocated", + "PoweredOff", + "Hibernated" + ], + "x-ms-enum": { + "name": "PowerState", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "The Dev Box power state is not known." + }, + { + "name": "Running", + "value": "Running", + "description": "The Dev Box is running." + }, + { + "name": "Deallocated", + "value": "Deallocated", + "description": "The Dev Box is deallocated." + }, + { + "name": "PoweredOff", + "value": "PoweredOff", + "description": "The Dev Box is powered off." + }, + { + "name": "Hibernated", + "value": "Hibernated", + "description": "The Dev Box is hibernated." + } + ] + } + }, + "Project": { + "type": "object", + "description": "Project details.", + "properties": { + "name": { + "type": "string", + "description": "Name of the project", + "readOnly": true + }, + "description": { + "type": "string", + "description": "Description of the project." + }, + "maxDevBoxesPerUser": { + "type": "integer", + "format": "int32", + "description": "When specified, indicates the maximum number of Dev Boxes a single user can\ncreate across all pools in the project." + } + }, + "required": [ + "name" + ] + }, + "RemoteConnection": { + "type": "object", + "description": "Provides remote connection information for a Dev Box.", + "properties": { + "webUrl": { + "type": "string", + "description": "URL to open a browser based RDP session." + }, + "rdpConnectionUrl": { + "type": "string", + "description": "Link to open a Remote Desktop session." + } + } + }, + "Schedule": { + "type": "object", + "description": "A Schedule to execute action.", + "properties": { + "name": { + "type": "string", + "description": "Display name for the Schedule", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/ScheduledType", + "description": "Supported type this scheduled task represents." + }, + "frequency": { + "$ref": "#/definitions/ScheduledFrequency", + "description": "The frequency of this scheduled task." + }, + "time": { + "type": "string", + "description": "The target time to trigger the action. The format is HH:MM." + }, + "timeZone": { + "type": "string", + "description": "The IANA timezone id at which the schedule should execute." + } + }, + "required": [ + "name", + "type", + "frequency", + "time", + "timeZone" + ] + }, + "ScheduledFrequency": { + "type": "string", + "enum": [ + "Daily" + ], + "x-ms-enum": { + "name": "ScheduledFrequency", + "modelAsString": true, + "values": [ + { + "name": "Daily", + "value": "Daily", + "description": "The scheduled task will run every day." + } + ] + } + }, + "ScheduledType": { + "type": "string", + "enum": [ + "StopDevBox" + ], + "x-ms-enum": { + "name": "ScheduledType", + "modelAsString": true, + "values": [ + { + "name": "StopDevBox", + "value": "StopDevBox", + "description": "The scheduled task will stop impacted Dev Boxes." + } + ] + } + }, + "StopOnDisconnectConfiguration": { + "type": "object", + "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", + "properties": { + "status": { + "$ref": "#/definitions/StopOnDisconnectEnableStatus", + "description": "Indicates whether the feature to stop the devbox on disconnect once the grace\nperiod has lapsed is enabled." + }, + "gracePeriodMinutes": { + "type": "integer", + "format": "int32", + "description": "The specified time in minutes to wait before stopping a Dev Box once disconnect\nis detected." + } + }, + "required": [ + "status" + ] + }, + "StopOnDisconnectEnableStatus": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "StopOnDisconnectEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Stop on disconnect is enabled on the Dev Box." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Stop on disconnect is not enabled on the Dev Box." + } + ] + } + }, + "StorageProfile": { + "type": "object", + "description": "Storage settings for the Dev Box's disks", + "properties": { + "osDisk": { + "$ref": "#/definitions/OSDisk", + "description": "Settings for the operating system disk." + } + } + }, + "User": { + "type": "object", + "description": "Project user", + "properties": { + "name": { + "type": "string", + "description": "User name", + "readOnly": true + } + }, + "required": [ + "name" + ] + } + }, + "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" + } + } +} From 1b67df6d46d5876afb405281d160d29ff6adb12d Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Wed, 20 Sep 2023 19:09:23 -0700 Subject: [PATCH 013/187] update generated swaggers --- .../2023-09-01-preview/environments.json | 1609 ++++---- .../preview/2023-09-01-preview/openapi.json | 3410 ----------------- .../stable/2023-04-01/environments.json | 1121 +++--- .../stable/2023-04-01/openapi.json | 3098 --------------- 4 files changed, 1529 insertions(+), 7709 deletions(-) delete mode 100644 specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-09-01-preview/openapi.json delete mode 100644 specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/openapi.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-09-01-preview/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-09-01-preview/environments.json index d4f8ced6522c..96b35fe024e5 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-09-01-preview/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-09-01-preview/environments.json @@ -1,973 +1,1057 @@ { "swagger": "2.0", "info": { - "version": "2023-09-01-preview", "title": "DevCenter", - "description": "Deployment Environments API." + "version": "2023-09-01-preview", + "description": "DevCenter service", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] }, + "schemes": [ + "https" + ], "x-ms-parameterized-host": { "hostTemplate": "{endpoint}", "useSchemePrefix": false, "parameters": [ { - "$ref": "devcenter.json#/parameters/EndpointParameter" + "name": "endpoint", + "in": "path", + "required": true, + "type": "string" } ] }, - "schemes": [ - "https" - ], - "consumes": [ + "produces": [ "application/json" ], - "produces": [ + "consumes": [ "application/json" ], "security": [ { - "AADToken": [ + "OAuth2Auth": [ "user_impersonation" ] } ], "securityDefinitions": { - "AADToken": { + "OAuth2Auth": { "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": { - "user_impersonation": "impersonate your user account" + "user_impersonation": "" } } }, + "tags": [], "paths": { - "/projects/{projectName}/environments": { + "/projects/{projectName}/catalogs": { "get": { - "tags": [ - "Environments" - ], - "description": "Lists the environments for a project.", + "operationId": "EnvironmentsOperations_ListCatalogsByProject", + "description": "Lists all of the catalogs available for a project.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/TopParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" } ], - "operationId": "Environments_ListEnvironments", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/EnvironmentListResult" + "$ref": "#/definitions/PagedCatalog" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, - "x-ms-examples": { - "Environments_ListEnvironments": { - "$ref": "./examples/Environments_ListByProject.json" - } - }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/users/{userId}/environments": { + "/projects/{projectName}/catalogs/{catalogName}": { "get": { - "tags": [ - "Environments" - ], - "description": "Lists the environments for a project and user.", + "operationId": "EnvironmentsOperations_GetCatalog", + "description": "Gets the specified catalog within the project", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/TopParameter" - }, - { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the catalog", + "required": true, + "type": "string" } ], - "operationId": "Environments_ListEnvironmentsByUser", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/EnvironmentListResult" + "$ref": "#/definitions/Catalog" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } - }, - "x-ms-examples": { - "Environments_ListEnvironmentsByUser": { - "$ref": "./examples/Environments_ListByProjectByUser.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/users/{userId}/environments/{environmentName}": { + "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { "get": { - "tags": [ - "Environments" - ], - "description": "Gets an environment", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "description": "Lists all environment definitions available within a catalog.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" }, { - "$ref": "#/parameters/EnvironmentNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the catalog", + "required": true, + "type": "string" } ], - "operationId": "Environments_GetEnvironmentByUser", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/Environment" + "$ref": "#/definitions/PagedEnvironmentDefinition" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, - "x-ms-examples": { - "Environments_GetEnvironmentByUser": { - "$ref": "./examples/Environments_Get.json" - } + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "put": { - "tags": [ - "Environments" - ], - "description": "Creates or updates an environment.", + } + }, + "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { + "get": { + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "description": "Get an environment definition from a catalog.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/EnvironmentNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the catalog", + "required": true, + "type": "string" }, { - "name": "body", - "in": "body", - "description": "Represents an environment.", + "name": "definitionName", + "in": "path", + "description": "The name of the environment definition", "required": true, - "schema": { - "$ref": "#/definitions/Environment" - } + "type": "string" } ], - "operationId": "Environments_CreateOrReplaceEnvironment", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "original-uri" - }, "responses": { - "201": { - "description": "Created. Operation will complete asynchronously.", + "200": { + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/Environment" - }, - "headers": { - "Operation-Location": { - "description": "URL to query for status of the operation.", - "type": "string" - } + "$ref": "#/definitions/EnvironmentDefinition" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } - }, - "x-ms-examples": { - "Environments_CreateByEnvironmentDefinition": { - "$ref": "./examples/Environments_CreateByEnvironmentDefinition.json" - } } - }, - "delete": { - "tags": [ - "Environments" - ], - "description": "Deletes an environment and all its associated resources", + } + }, + "/projects/{projectName}/environmentDefinitions": { + "get": { + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByProject", + "description": "Lists all environment definitions available for a project.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/EnvironmentNameParameter" + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" } ], - "operationId": "Environments_DeleteEnvironment", - "x-ms-long-running-operation": true, "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", + "200": { + "description": "The request has succeeded.", "schema": { - "$ref": "devcenter.json#/definitions/OperationStatus" - }, - "headers": { - "Operation-Location": { - "description": "URL to query for status of the operation.", - "type": "string" - } + "$ref": "#/definitions/PagedEnvironmentDefinition" } }, - "204": { - "description": "Deletion was successful or resource does not exist." - }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, - "x-ms-examples": { - "Environments_DeleteEnvironment": { - "$ref": "./examples/Environments_Delete.json" - } + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations": { + "/projects/{projectName}/environmentTypes": { "get": { - "tags": [ - "EnvironmentOperations", - "Environments" - ], - "description": "Lists operations on the environment which have occurred within the past 90 days", + "operationId": "EnvironmentsOperations_ListEnvironmentTypes", + "description": "Lists all environment types configured for a project.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "devcenter.json#/parameters/TopParameter" - }, - { - "$ref": "devcenter.json#/parameters/FilterParameter" - }, - { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/EnvironmentNameParameter" + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" } ], - "operationId": "Environments_ListOperations", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/EnvironmentOperationListResult" + "$ref": "#/definitions/PagedEnvironmentType" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, - "x-ms-examples": { - "EnvironmentOperations_ListByEnvironment": { - "$ref": "./examples/EnvironmentOperations_ListByEnvironment.json" - } - }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}": { + "/projects/{projectName}/environments": { "get": { - "tags": [ - "EnvironmentOperations", - "Environments" - ], - "description": "Gets an environment action result.", + "operationId": "EnvironmentsOperations_ListEnvironments", + "description": "Lists the environments for a project.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" - }, - { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "#/parameters/EnvironmentNameParameter" + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" }, { - "$ref": "#/parameters/EnvironmentOperationIdParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" } ], - "operationId": "Environments_GetOperation", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/EnvironmentOperation" + "$ref": "#/definitions/PagedEnvironment" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, - "x-ms-examples": { - "EnvironmentOperations_GetByEnvironment": { - "$ref": "./examples/EnvironmentOperations_GetByEnvironment.json" - } + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}/logs": { + "/projects/{projectName}/users/{userId}/environments": { "get": { - "tags": [ - "EnvironmentOperations", - "Environments" - ], - "description": "Gets the logs for an operation on an environment.", - "produces": [ - "text/plain" - ], + "operationId": "EnvironmentsOperations_ListEnvironmentsByUser", + "description": "Lists the environments for a project and user.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" }, { - "$ref": "#/parameters/EnvironmentNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/EnvironmentOperationIdParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" } ], - "operationId": "Environments_GetLogsByOperation", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "type": "file" + "$ref": "#/definitions/PagedEnvironment" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, - "x-ms-examples": { - "EnvironmentOperations_GetLogs": { - "$ref": "./examples/EnvironmentOperations_GetLogs.json" - } + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/catalogs": { + "/projects/{projectName}/users/{userId}/environments/{environmentName}": { "get": { - "tags": [ - "Catalogs" - ], - "description": "Lists all of the catalogs available for a project.", + "operationId": "EnvironmentsOperations_GetEnvironmentByUser", + "description": "Gets an environment", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/TopParameter" + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" } ], - "operationId": "Environments_ListCatalogsByProject", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/CatalogListResult" + "$ref": "#/definitions/Environment" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } - }, - "x-ms-examples": { - "Environments_ListCatalogsByProject": { - "$ref": "./examples/Catalogs_ListByProject.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } - } - }, - "/projects/{projectName}/catalogs/{catalogName}": { - "get": { - "tags": [ - "Catalogs" - ], - "description": "Gets the specified catalog within the project", + }, + "put": { + "operationId": "EnvironmentsOperations_CreateOrReplaceEnvironment", + "description": "Creates or updates an environment.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "body", + "in": "body", + "description": "Represents an environment.", + "required": true, + "schema": { + "$ref": "#/definitions/Environment" + } } ], - "operationId": "Environments_GetCatalog", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/Catalog" + "$ref": "#/definitions/Environment" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } - }, - "x-ms-examples": { - "Environments_GetCatalog": { - "$ref": "./examples/Catalogs_Get.json" - } } - } - }, - "/projects/{projectName}/environmentDefinitions": { - "get": { - "tags": [ - "Environment Definitions" - ], - "description": "Lists all environment definitions available for a project.", + }, + "delete": { + "operationId": "EnvironmentsOperations_DeleteEnvironment", + "description": "Deletes an environment and all its associated resources", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/TopParameter" + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" } ], - "operationId": "Environments_ListEnvironmentDefinitionsByProject", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/EnvironmentDefinitionListResult" + "$ref": "#/definitions/OperationStatus" } }, + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " + }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } - }, - "x-ms-examples": { - "Environments_ListEnvironmentDefinitions": { - "$ref": "./examples/EnvironmentDefinitions_ListByProject.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { + "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations": { "get": { - "tags": [ - "Environment Definitions" - ], - "description": "Lists all environment definitions available within a catalog.", + "operationId": "EnvironmentsOperations_ListOperations", + "description": "Lists operations on the environment which have occurred within the past 90 days", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/TopParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" } ], - "operationId": "Environments_ListEnvironmentDefinitionsByCatalog", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/EnvironmentDefinitionListResult" + "$ref": "#/definitions/PagedEnvironmentOperation" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, - "x-ms-examples": { - "Environments_ListEnvironmentDefinitionsByCatalog": { - "$ref": "./examples/EnvironmentDefinitions_ListByCatalog.json" - } - }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { + "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}": { "get": { - "tags": [ - "Environment Definitions" - ], - "description": "Get an environment definition from a catalog.", + "operationId": "EnvironmentsOperations_GetOperation", + "description": "Gets an environment action result.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/EnvironmentDefinitionNameParameter" + "name": "operationId", + "in": "path", + "description": "The id of the operation on an environment.", + "required": true, + "type": "string" } ], - "operationId": "Environments_GetEnvironmentDefinition", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/EnvironmentDefinition" + "$ref": "#/definitions/EnvironmentOperation" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } - }, - "x-ms-examples": { - "Environments_GetEnvironmentDefinition": { - "$ref": "./examples/EnvironmentDefinitions_Get.json" - } } } }, - "/projects/{projectName}/environmentTypes": { + "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}/logs": { "get": { - "tags": [ - "Environment Types" - ], - "description": "Lists all environment types configured for a project.", + "operationId": "EnvironmentsOperations_GetLogsByOperation", + "description": "Gets the logs for an operation on an environment.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "operationId", + "in": "path", + "description": "The id of the operation on an environment.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/TopParameter" + "name": "accept", + "in": "header", + "description": "Accept header", + "required": true, + "type": "string", + "enum": [ + "text/plain" + ], + "x-ms-enum": { + "modelAsString": false + }, + "x-ms-client-name": "Accept" } ], - "operationId": "Environments_ListEnvironmentTypes", "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/EnvironmentTypeListResult" - } + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } - }, - "x-ms-examples": { - "Environments_ListEnvironmentTypes": { - "$ref": "./examples/EnvironmentTypes_ListByProject.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } } } }, "definitions": { - "EnvironmentUpdateProperties": { - "description": "Properties of an environment. These properties can be updated after the resource has been created.", - "type": "object", - "properties": { - "parameters": { - "type": "object", - "description": "Parameters object for the environment." - } + "APIVersions": { + "type": "string", + "description": "DevCenter API versions", + "enum": [ + "2023-04-01", + "2023-09-01-preview" + ], + "x-ms-enum": { + "name": "APIVersions", + "modelAsString": true, + "values": [ + { + "name": "v2023_04_01", + "value": "2023-04-01", + "description": "The 2023-04-01 service API version" + }, + { + "name": "v2023_09_01_preview", + "value": "2023-09-01-preview", + "description": "The 2023-09-01-preview service API version" + } + ] } }, - "Environment": { - "description": "Properties of an environment.", + "Azure.Core.Foundations.Error": { "type": "object", - "allOf": [ - { - "$ref": "#/definitions/EnvironmentUpdateProperties" - } - ], + "description": "The error object.", "properties": { - "uri": { - "description": "The unique URI of the environment", - "type": "string", - "readOnly": true - }, - "name": { - "type": "string", - "description": "Environment name.", - "readOnly": true - }, - "environmentType": { - "type": "string", - "description": "Environment type.", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "user": { + "code": { "type": "string", - "description": "The AAD object id of the owner of this Environment.", - "readOnly": true - }, - "provisioningState": { - "description": "The provisioning state of the environment.", - "type": "string", - "readOnly": true + "description": "One of a server-defined set of error codes." }, - "resourceGroupId": { - "description": "The identifier of the resource group containing the environment's resources.", + "message": { "type": "string", - "readOnly": true + "description": "A human-readable representation of the error." }, - "catalogName": { + "target": { "type": "string", - "description": "Name of the catalog.", - "x-ms-mutability": [ - "read", - "create" - ] + "description": "The target of the error." }, - "environmentDefinitionName": { - "type": "string", - "description": "Name of the environment definition.", - "x-ms-mutability": [ - "read", - "create" - ] + "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": [] }, - "error": { - "description": "Provisioning error details. Populated only for error states.", - "readOnly": true, - "$ref": "devcenter.json#/definitions/CloudErrorBody" + "innererror": { + "$ref": "#/definitions/Azure.Core.Foundations.InnerError", + "description": "An object containing more specific information than the current object about the error." } }, "required": [ - "environmentType", - "catalogName", - "environmentDefinitionName" + "code", + "message" ] }, - "EnvironmentListResult": { - "description": "Results of the environment list operation.", + "Azure.Core.Foundations.ErrorResponse": { "type": "object", + "description": "A response containing error details.", "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/Environment" - } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string" + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "The error object." } }, "required": [ - "value" + "error" ] }, - "CatalogListResult": { - "description": "Results of the catalog list operation.", + "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": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/Catalog" - } + "code": { + "type": "string", + "description": "One of a server-defined set of error codes." }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string" + "innererror": { + "$ref": "#/definitions/Azure.Core.Foundations.InnerError", + "description": "Inner error." } - }, - "required": [ - "value" - ] + } }, "Catalog": { - "description": "A catalog.", "type": "object", + "description": "A catalog.", "properties": { - "uri": { - "description": "The unique URI of the catalog", - "type": "string" - }, "name": { - "description": "Name of the catalog.", - "type": "string" + "type": "string", + "description": "Name of the catalog." } }, "required": [ - "uri", "name" ] }, - "EnvironmentDefinitionListResult": { - "description": "Results of the environment definition list operation.", + "CloudError": { "type": "object", + "description": "An error response from the service.", "properties": { - "value": { - "description": "Current page of results.", + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Error body" + } + }, + "required": [ + "error" + ] + }, + "CloudErrorBody": { + "type": "object", + "description": "An error response from the service.", + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be\nconsumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for display in a user\ninterface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in\nerror." + }, + "details": { "type": "array", + "description": "A list of additional details about the error.", "items": { - "$ref": "#/definitions/EnvironmentDefinition" - } + "$ref": "#/definitions/CloudErrorBody" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "code", + "message" + ] + }, + "Environment": { + "type": "object", + "description": "Properties of an environment.", + "properties": { + "parameters": { + "description": "Parameters object for the environment." }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string" + "name": { + "type": "string", + "description": "Environment name.", + "readOnly": true + }, + "environmentType": { + "type": "string", + "description": "Environment type." + }, + "user": { + "type": "string", + "description": "The AAD object id of the owner of this Environment.", + "readOnly": true + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the environment.", + "readOnly": true + }, + "resourceGroupId": { + "type": "string", + "description": "The identifier of the resource group containing the environment's resources.", + "readOnly": true + }, + "catalogName": { + "type": "string", + "description": "Name of the catalog." + }, + "environmentDefinitionName": { + "type": "string", + "description": "Name of the environment definition." + }, + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Provisioning error details. Populated only for error states.", + "readOnly": true } }, "required": [ - "value" + "environmentType", + "catalogName", + "environmentDefinitionName" ] }, "EnvironmentDefinition": { - "description": "An environment definition.", "type": "object", + "description": "An environment definition.", "properties": { - "uri": { - "description": "The unique URI of the environment definition", - "type": "string" - }, "id": { - "description": "The ID of the environment definition.", - "type": "string" + "type": "string", + "description": "The ID of the environment definition." }, "name": { - "description": "Name of the environment definition.", - "type": "string" + "type": "string", + "description": "Name of the environment definition." }, "catalogName": { - "description": "Name of the catalog.", - "type": "string" + "type": "string", + "description": "Name of the catalog." }, "description": { - "description": "A short description of the environment definition.", - "type": "string" + "type": "string", + "description": "A short description of the environment definition." }, "parameters": { "type": "array", + "description": "Input parameters passed to an environment.", "items": { "$ref": "#/definitions/EnvironmentDefinitionParameter" - }, - "description": "Input parameters passed to an environment." + } }, "parametersSchema": { "type": "string", "description": "JSON schema defining the parameters object passed to an environment." }, "templatePath": { - "description": "Path to the Environment Definition entrypoint file.", - "type": "string" + "type": "string", + "description": "Path to the Environment Definition entrypoint file." } }, "required": [ + "id", "name", - "uri", - "catalogName", - "id" + "catalogName" ] }, "EnvironmentDefinitionParameter": { @@ -991,12 +1075,12 @@ "description": "Default value of the parameter" }, "type": { - "description": "A string of one of the basic JSON types (number, integer, array, object, boolean, string)", - "$ref": "#/definitions/ParameterType" + "$ref": "#/definitions/ParameterType", + "description": "A string of one of the basic JSON types (number, integer, array, object,\nboolean, string)" }, "readOnly": { "type": "boolean", - "description": "Whether or not this parameter is read-only. If true, default should have a value." + "description": "Whether or not this parameter is read-only. If true, default should have a\nvalue." }, "required": { "type": "boolean", @@ -1004,12 +1088,10 @@ }, "allowed": { "type": "array", + "description": "An array of allowed values", "items": { "type": "string" - }, - "minItems": 1, - "uniqueItems": true, - "description": "An array of allowed values" + } } }, "required": [ @@ -1018,317 +1100,380 @@ "required" ] }, - "EnvironmentTypeListResult": { - "description": "Result of the environment type list operation.", + "EnvironmentOperation": { "type": "object", + "description": "Information about an operation on an environment.", "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentType" - } + "kind": { + "type": "string", + "description": "Discriminator property for EnvironmentOperation." }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string" - } - }, - "required": [ - "value" - ] - }, - "EnvironmentType": { - "description": "Properties of an environment type.", - "type": "object", - "properties": { "uri": { - "description": "The unique URI of the environment type", - "type": "string" - }, - "name": { - "description": "Name of the environment type", - "type": "string" + "type": "string", + "description": "The unique URI for the environment operation." }, - "deploymentTargetId": { - "description": "The ID of a subscription or management group that the environment type will be mapped to. The environment's resources will be deployed into this subscription or management group.", - "type": "string" + "operationId": { + "type": "string", + "description": "Unique identifier for the environment operation." }, "status": { - "description": "Indicates whether this environment type is enabled for use in this project.", - "$ref": "#/definitions/EnvironmentTypeEnableStatus" + "$ref": "#/definitions/EnvironmentOperationStatus", + "description": "The operation status." }, - "displayName": { + "createdByObjectId": { + "type": "string", + "description": "The object ID of the actor which initiated the operation." + }, + "startTime": { "type": "string", - "description": "Display name of the environment type." + "format": "date-time", + "description": "The time the operation started." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The time the operation finished." + }, + "environmentParameters": { + "description": "Parameters object for the environment at the time of the operation." + }, + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Provisioning or operation error details. Populated only for error states." } }, + "discriminator": "kind", "required": [ + "kind", "uri", - "name", - "deploymentTargetId", + "operationId", "status" ] }, - "EnvironmentTypeEnableStatus": { - "description": "Indicates whether an environment type is enabled for use in a project.", + "EnvironmentOperationStatus": { + "type": "string", "enum": [ - "Enabled", - "Disabled" + "NotStarted", + "Running", + "Succeeded", + "Canceled", + "Failed" ], - "type": "string", "x-ms-enum": { - "name": "EnvironmentTypeEnableStatus", + "name": "EnvironmentOperationStatus", "modelAsString": true, "values": [ { - "value": "Enabled", - "description": "The environment type is enabled for use in the project." + "name": "NotStarted", + "value": "NotStarted", + "description": "The operation has not started." }, { - "value": "Disabled", - "description": "The environment type is not enabled for use in the project." + "name": "Running", + "value": "Running", + "description": "The operation is running." + }, + { + "name": "Succeeded", + "value": "Succeeded", + "description": "The operation succeeded." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "The operation was canceled." + }, + { + "name": "Failed", + "value": "Failed", + "description": "The operation failed." } ] } }, - "ParameterType": { + "EnvironmentType": { + "type": "object", + "description": "Properties of an environment type.", + "properties": { + "name": { + "type": "string", + "description": "Name of the environment type" + }, + "deploymentTargetId": { + "type": "string", + "description": "Id of a subscription or management group that the environment type will be\nmapped to. The environment's resources will be deployed into this subscription\nor management group." + }, + "status": { + "$ref": "#/definitions/EnvironmentTypeEnableStatus", + "description": "Indicates whether this environment type is enabled for use in this project." + } + }, + "required": [ + "name", + "deploymentTargetId", + "status" + ] + }, + "EnvironmentTypeEnableStatus": { "type": "string", "enum": [ - "array", - "boolean", - "integer", - "number", - "object", - "string" + "Enabled", + "Disabled" ], - "description": "The type of data a parameter accepts.", "x-ms-enum": { - "name": "ParameterType", + "name": "EnvironmentTypeEnableStatus", "modelAsString": true, "values": [ { - "value": "array", - "description": "The parameter accepts an array of values." - }, - { - "value": "boolean", - "description": "The parameter accepts a boolean value." - }, - { - "value": "integer", - "description": "The parameter accepts an integer value." - }, - { - "value": "number", - "description": "The parameter accepts a number value." - }, - { - "value": "object", - "description": "The parameter accepts an object value." + "name": "Enabled", + "value": "Enabled", + "description": "The environment type is enabled for use in the project." }, { - "value": "string", - "description": "The parameter accepts a string value." + "name": "Disabled", + "value": "Disabled", + "description": "The environment type is not enabled for use in the project." } ] } }, - "EnvironmentOperationListResult": { + "EnvironmentUpdateProperties": { "type": "object", - "description": "The action results list result.", + "description": "Properties of an environment. These properties can be updated after the\nresource has been created.", + "properties": { + "parameters": { + "description": "Parameters object for the environment." + } + } + }, + "OperationStatus": { + "type": "object", + "description": "The current status of an async operation", + "properties": { + "id": { + "type": "string", + "description": "Fully qualified ID for the operation status." + }, + "name": { + "type": "string", + "description": "The operation id name" + }, + "status": { + "type": "string", + "description": "Provisioning state of the resource." + }, + "resourceId": { + "type": "string", + "description": "The id of the resource." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the operation" + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The end time of the operation" + }, + "percentComplete": { + "type": "number", + "format": "float", + "description": "Percent of the operation that is complete" + }, + "properties": { + "description": "Custom operation properties, populated only for a successful operation." + }, + "error": { + "$ref": "#/definitions/OperationStatusError", + "description": "Operation Error message" + } + }, + "required": [ + "status" + ] + }, + "OperationStatusError": { + "type": "object", + "description": "Operation Error message", + "properties": { + "code": { + "type": "string", + "description": "The error code." + }, + "message": { + "type": "string", + "description": "The error message." + } + } + }, + "PagedCatalog": { + "type": "object", + "description": "Results of the catalog list operation.", "properties": { "value": { - "description": "The current page of results.", "type": "array", + "description": "The Catalog items on this page", "items": { - "$ref": "#/definitions/EnvironmentOperation" - } + "$ref": "#/definitions/Catalog" + }, + "x-ms-identifiers": [] }, "nextLink": { "type": "string", - "description": "The URL to get the next set of results." + "format": "uri", + "description": "The link to the next page of items" } }, "required": [ "value" ] }, - "EnvironmentOperation": { + "PagedEnvironment": { "type": "object", - "description": "Information about an operation on an environment.", - "discriminator": "kind", + "description": "Results of the environment list operation.", "properties": { - "uri": { - "description": "The unique URI for the environment operation.", - "type": "string" - }, - "operationId": { - "description": "Unique identifier for the environment operation.", - "type": "string" - }, - "kind": { - "description": "The kind of operation that occurred.", - "$ref": "#/definitions/EnvironmentOperationKind" - }, - "status": { - "description": "The operation status.", - "$ref": "#/definitions/EnvironmentOperationStatus" - }, - "createdByObjectId": { - "description": "The object ID of the actor which initiated the operation.", - "type": "string" + "value": { + "type": "array", + "description": "The Environment items on this page", + "items": { + "$ref": "#/definitions/Environment" + }, + "x-ms-identifiers": [] }, - "startTime": { - "description": "The time the operation started.", + "nextLink": { "type": "string", - "format": "date-time" + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironmentDefinition": { + "type": "object", + "description": "Results of the environment definition list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnvironmentDefinition items on this page", + "items": { + "$ref": "#/definitions/EnvironmentDefinition" + } }, - "endTime": { - "description": "The time the operation finished.", + "nextLink": { "type": "string", - "format": "date-time" + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironmentOperation": { + "type": "object", + "description": "The action results list result.", + "properties": { + "value": { + "type": "array", + "description": "The EnvironmentOperation items on this page", + "items": { + "$ref": "#/definitions/EnvironmentOperation" + }, + "x-ms-identifiers": [] }, - "environmentParameters": { - "type": "object", - "description": "Parameters object for the environment at the time of the operation." + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironmentType": { + "type": "object", + "description": "Result of the environment type list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnvironmentType items on this page", + "items": { + "$ref": "#/definitions/EnvironmentType" + }, + "x-ms-identifiers": [] }, - "error": { - "description": "Provisioning or operation error details. Populated only for error states.", - "$ref": "devcenter.json#/definitions/CloudErrorBody" + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } }, "required": [ - "uri", - "operationId", - "kind", - "status" + "value" ] }, - "EnvironmentOperationKind": { + "ParameterType": { "type": "string", "enum": [ - "Deploy", - "Delete" + "array", + "boolean", + "integer", + "number", + "object", + "string" ], - "description": "The type of environment operation.", "x-ms-enum": { - "name": "EnvironmentOperationKind", + "name": "ParameterType", "modelAsString": true, "values": [ { - "value": "Deploy", - "description": "The operation represents a deployment." + "name": "array", + "value": "array", + "description": "The parameter accepts an array of values." }, { - "value": "Delete", - "description": "The operation represents a delete." - } - ] - } - }, - "EnvironmentOperationStatus": { - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Succeeded", - "Canceled", - "Failed" - ], - "description": "The status of an environment operation.", - "x-ms-enum": { - "name": "EnvironmentOperationStatus", - "modelAsString": true, - "values": [ - { - "value": "NotStarted", - "description": "The operation has not started." + "name": "boolean", + "value": "boolean", + "description": "The parameter accepts a boolean value." }, { - "value": "Running", - "description": "The operation is running." + "name": "integer", + "value": "integer", + "description": "The parameter accepts an integer value." }, { - "value": "Succeeded", - "description": "The operation succeeded." + "name": "number", + "value": "number", + "description": "The parameter accepts a number value." }, { - "value": "Canceled", - "description": "The operation was canceled." + "name": "object", + "value": "object", + "description": "The parameter accepts an object value." }, { - "value": "Failed", - "description": "The operation failed." + "name": "string", + "value": "string", + "description": "The parameter accepts a string value." } ] } - }, - "EnvironmentDeployOperation": { - "type": "object", - "description": "Information about a deploy operation on an environment.", - "x-ms-discriminator-value": "Deploy", - "allOf": [ - { - "$ref": "#/definitions/EnvironmentOperation" - } - ] - }, - "EnvironmentDeleteOperation": { - "type": "object", - "description": "Information about a delete operation on an environment.", - "x-ms-discriminator-value": "Delete", - "allOf": [ - { - "$ref": "#/definitions/EnvironmentOperation" - } - ] } }, "parameters": { - "EnvironmentNameParameter": { - "name": "environmentName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63, - "description": "The name of the environment.", - "x-ms-parameter-location": "method" - }, - "CatalogNameParameter": { - "name": "catalogName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63, - "description": "The name of the catalog", - "x-ms-parameter-location": "method" - }, - "EnvironmentDefinitionNameParameter": { - "name": "definitionName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63, - "description": "The name of the environment definition", - "x-ms-parameter-location": "method" - }, - "EnvironmentOperationIdParameter": { - "name": "operationId", - "in": "path", + "Azure.Core.Foundations.ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "The API version to use for this operation.", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63, - "description": "The id of the operation on an environment.", - "x-ms-parameter-location": "method" + "minLength": 1, + "x-ms-parameter-location": "method", + "x-ms-client-name": "apiVersion" } } } diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-09-01-preview/openapi.json b/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-09-01-preview/openapi.json deleted file mode 100644 index bc6f003105be..000000000000 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-09-01-preview/openapi.json +++ /dev/null @@ -1,3410 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "DevCenter", - "version": "2023-09-01-preview", - "description": "DevCenter service", - "x-typespec-generated": [ - { - "emitter": "@azure-tools/typespec-autorest" - } - ] - }, - "schemes": [ - "https" - ], - "x-ms-parameterized-host": { - "hostTemplate": "{endpoint}", - "useSchemePrefix": false, - "parameters": [ - { - "name": "endpoint", - "in": "path", - "required": true, - "type": "string" - } - ] - }, - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ], - "security": [ - { - "OAuth2Auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "OAuth2Auth": { - "type": "oauth2", - "flow": "implicit", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "scopes": { - "user_impersonation": "" - } - } - }, - "tags": [], - "paths": { - "/devboxes": { - "get": { - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", - "description": "Lists Dev Boxes that the caller has access to in the DevCenter.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBox" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects": { - "get": { - "operationId": "DevCenterOperations_ListProjects", - "description": "Lists all projects.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedProject" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}": { - "get": { - "operationId": "DevCenterOperations_GetProject", - "description": "Gets a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Project" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/catalogs": { - "get": { - "operationId": "EnvironmentsOperations_ListCatalogsByProject", - "description": "Lists all of the catalogs available for a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedCatalog" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/catalogs/{catalogName}": { - "get": { - "operationId": "EnvironmentsOperations_GetCatalog", - "description": "Gets the specified catalog within the project", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "catalogName", - "in": "path", - "description": "The name of the catalog", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Catalog" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { - "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", - "description": "Lists all environment definitions available within a catalog.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "catalogName", - "in": "path", - "description": "The name of the catalog", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironmentDefinition" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { - "get": { - "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", - "description": "Get an environment definition from a catalog.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "catalogName", - "in": "path", - "description": "The name of the catalog", - "required": true, - "type": "string" - }, - { - "name": "definitionName", - "in": "path", - "description": "The name of the environment definition", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/EnvironmentDefinition" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/environmentDefinitions": { - "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByProject", - "description": "Lists all environment definitions available for a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironmentDefinition" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/environmentTypes": { - "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentTypes", - "description": "Lists all environment types configured for a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironmentType" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/environments": { - "get": { - "operationId": "EnvironmentsOperations_ListEnvironments", - "description": "Lists the environments for a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironment" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/pools": { - "get": { - "operationId": "DevBoxesOperations_ListPools", - "description": "Lists available pools", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": true, - "type": "string" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedPool" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/pools/{poolName}": { - "get": { - "operationId": "DevBoxesOperations_GetPool", - "description": "Gets a pool", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string" - }, - { - "name": "poolName", - "in": "path", - "description": "Pool name", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Pool" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/pools/{poolName}/schedules": { - "get": { - "operationId": "DevBoxesOperations_ListSchedulesByPool", - "description": "Lists available schedules for a pool.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": true, - "type": "string" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "poolName", - "in": "path", - "description": "The name of a pool of Dev Boxes.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedSchedule" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { - "get": { - "operationId": "DevBoxesOperations_GetScheduleByPool", - "description": "Gets a schedule.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string" - }, - { - "name": "poolName", - "in": "path", - "description": "Pool name", - "required": true, - "type": "string" - }, - { - "name": "scheduleName", - "in": "path", - "description": "Display name for the Schedule", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes": { - "get": { - "operationId": "DevBoxesOperations_ListDevBoxesByUser", - "description": "Lists Dev Boxes in the project for a particular user.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBox" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/users/{userName}/devboxes/{devBoxName}": { - "get": { - "operationId": "DevBoxesOperations_GetDevBoxByUser", - "description": "Gets a Dev Box", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string" - }, - { - "name": "userName", - "in": "path", - "description": "User name", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "Display name for the Dev Box", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBox" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}": { - "put": { - "operationId": "DevBoxesOperations_CreateDevBox", - "description": "Creates or replaces a Dev Box.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "description": "Represents a environment.", - "required": true, - "schema": { - "$ref": "#/definitions/DevBox" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBox" - } - }, - "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." - } - } - } - } - }, - "delete": { - "operationId": "DevBoxesOperations_DeleteDevBox", - "description": "Deletes a Dev Box.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "204": { - "description": "There is no content to send for this request, but the headers may be useful. " - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start": { - "post": { - "operationId": "DevBoxesOperations_StartDevBox", - "description": "Starts a Dev Box", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop": { - "post": { - "operationId": "DevBoxesOperations_StopDevBox", - "description": "Stops a Dev Box", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "hibernate", - "in": "query", - "description": "Optional parameter to hibernate the dev box.", - "required": true, - "type": "boolean" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart": { - "post": { - "operationId": "DevBoxesOperations_RestartDevBox", - "description": "Restarts a Dev Box", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions": { - "get": { - "operationId": "DevBoxesOperations_ListActions", - "description": "Lists actions on a Dev Box.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBoxAction" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/users/{userName}/devboxes/{devBoxName}/actions/{actionName}": { - "get": { - "operationId": "DevBoxesOperations_GetAction", - "description": "Gets an action.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string" - }, - { - "name": "userName", - "in": "path", - "description": "User name", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "Display name for the Dev Box", - "required": true, - "type": "string" - }, - { - "name": "actionName", - "in": "path", - "description": "The name of the action.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBoxAction" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip": { - "post": { - "operationId": "DevBoxesOperations_SkipAction", - "description": "Skips an occurrence of an action.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "actionName", - "in": "path", - "description": "The name of an action that will take place on a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "204": { - "description": "There is no content to send for this request, but the headers may be useful. " - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay": { - "post": { - "operationId": "DevBoxesOperations_DelayAction", - "description": "Delays the occurrence of an action.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "actionName", - "in": "path", - "description": "The name of an action that will take place on a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "until", - "in": "query", - "description": "The time to delay the Dev Box action or actions until.", - "required": true, - "type": "string", - "format": "date-time" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBoxAction" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay": { - "post": { - "operationId": "DevBoxesOperations_DelayActions", - "description": "Delays all actions.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "until", - "in": "query", - "description": "The time to delay the Dev Box action or actions until.", - "required": true, - "type": "string", - "format": "date-time" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBoxActionDelayResult" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection": { - "get": { - "operationId": "DevBoxesOperations_GetRemoteConnection", - "description": "Gets RDP Connection info", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/RemoteConnection" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/environments": { - "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentsByUser", - "description": "Lists the environments for a project and user.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironment" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/users/{userId}/environments/{environmentName}": { - "get": { - "operationId": "EnvironmentsOperations_GetEnvironmentByUser", - "description": "Gets an environment", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Environment" - } - }, - "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." - } - } - } - } - }, - "put": { - "operationId": "EnvironmentsOperations_CreateOrReplaceEnvironment", - "description": "Creates or updates an environment.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "description": "Represents an environment.", - "required": true, - "schema": { - "$ref": "#/definitions/Environment" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Environment" - } - }, - "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." - } - } - } - } - }, - "delete": { - "operationId": "EnvironmentsOperations_DeleteEnvironment", - "description": "Deletes an environment and all its associated resources", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "204": { - "description": "There is no content to send for this request, but the headers may be useful. " - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations": { - "get": { - "operationId": "EnvironmentsOperations_ListOperations", - "description": "Lists operations on the environment which have occurred within the past 90 days", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": true, - "type": "string" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironmentOperation" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}": { - "get": { - "operationId": "EnvironmentsOperations_GetOperation", - "description": "Gets an environment action result.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" - }, - { - "name": "operationId", - "in": "path", - "description": "The id of the operation on an environment.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/EnvironmentOperation" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}/logs": { - "get": { - "operationId": "EnvironmentsOperations_GetLogsByOperation", - "description": "Gets the logs for an operation on an environment.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" - }, - { - "name": "operationId", - "in": "path", - "description": "The id of the operation on an environment.", - "required": true, - "type": "string" - }, - { - "name": "accept", - "in": "header", - "description": "Accept header", - "required": true, - "type": "string", - "enum": [ - "text/plain" - ], - "x-ms-enum": { - "modelAsString": false - }, - "x-ms-client-name": "Accept" - } - ], - "responses": { - "204": { - "description": "There is no content to send for this request, but the headers may be useful. " - }, - "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." - } - } - } - } - } - }, - "/users/{userId}/devboxes": { - "get": { - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", - "description": "Lists Dev Boxes in the Dev Center for a particular user.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBox" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "APIVersions": { - "type": "string", - "description": "DevCenter API versions", - "enum": [ - "2023-04-01", - "2023-09-01-preview" - ], - "x-ms-enum": { - "name": "APIVersions", - "modelAsString": true, - "values": [ - { - "name": "v2023_04_01", - "value": "2023-04-01", - "description": "The 2023-04-01 service API version" - }, - { - "name": "v2023_09_01_preview", - "value": "2023-09-01-preview", - "description": "The 2023-09-01-preview service API version" - } - ] - } - }, - "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." - } - } - }, - "Catalog": { - "type": "object", - "description": "A catalog.", - "properties": { - "name": { - "type": "string", - "description": "Name of the catalog." - } - }, - "required": [ - "name" - ] - }, - "CloudError": { - "type": "object", - "description": "An error response from the service.", - "properties": { - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "Error body" - } - }, - "required": [ - "error" - ] - }, - "CloudErrorBody": { - "type": "object", - "description": "An error response from the service.", - "properties": { - "code": { - "type": "string", - "description": "An identifier for the error. Codes are invariant and are intended to be\nconsumed programmatically." - }, - "message": { - "type": "string", - "description": "A message describing the error, intended to be suitable for display in a user\ninterface." - }, - "target": { - "type": "string", - "description": "The target of the particular error. For example, the name of the property in\nerror." - }, - "details": { - "type": "array", - "description": "A list of additional details about the error.", - "items": { - "$ref": "#/definitions/CloudErrorBody" - }, - "x-ms-identifiers": [] - } - }, - "required": [ - "code", - "message" - ] - }, - "DevBox": { - "type": "object", - "description": "A Dev Box", - "properties": { - "name": { - "type": "string", - "description": "Display name for the Dev Box", - "readOnly": true - }, - "projectName": { - "type": "string", - "description": "Name of the project this Dev Box belongs to", - "readOnly": true - }, - "poolName": { - "type": "string", - "description": "The name of the Dev Box pool this machine belongs to." - }, - "hibernateSupport": { - "$ref": "#/definitions/HibernateSupport", - "description": "Indicates whether hibernate is enabled/disabled or unknown.", - "readOnly": true - }, - "provisioningState": { - "type": "string", - "description": "The current provisioning state of the Dev Box.", - "readOnly": true - }, - "actionState": { - "type": "string", - "description": "The current action state of the Dev Box. This is state is based on previous\naction performed by user.", - "readOnly": true - }, - "powerState": { - "$ref": "#/definitions/PowerState", - "description": "The current power state of the Dev Box.", - "readOnly": true - }, - "uniqueId": { - "type": "string", - "description": "A unique identifier for the Dev Box. This is a GUID-formatted string (e.g.\n00000000-0000-0000-0000-000000000000).", - "readOnly": true - }, - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "Provisioning or action error details. Populated only for error states.", - "readOnly": true - }, - "location": { - "type": "string", - "description": "Azure region where this Dev Box is located. This will be the same region as the\nVirtual Network it is attached to.", - "readOnly": true - }, - "osType": { - "$ref": "#/definitions/OsType", - "description": "The operating system type of this Dev Box.", - "readOnly": true - }, - "user": { - "type": "string", - "description": "The AAD object id of the user this Dev Box is assigned to.", - "readOnly": true - }, - "hardwareProfile": { - "$ref": "#/definitions/HardwareProfile", - "description": "Information about the Dev Box's hardware resources", - "readOnly": true - }, - "storageProfile": { - "$ref": "#/definitions/StorageProfile", - "description": "Storage settings for this Dev Box", - "readOnly": true - }, - "imageReference": { - "$ref": "#/definitions/ImageReference", - "description": "Information about the image used for this Dev Box", - "readOnly": true - }, - "createdTime": { - "type": "string", - "format": "date-time", - "description": "Creation time of this Dev Box", - "readOnly": true - }, - "localAdministrator": { - "$ref": "#/definitions/LocalAdminStatus", - "description": "Indicates whether the owner of the Dev Box is a local administrator." - } - }, - "required": [ - "name", - "poolName" - ] - }, - "DevBoxAction": { - "type": "object", - "description": "An action which will take place on a Dev Box.", - "properties": { - "name": { - "type": "string", - "description": "The name of the action.", - "readOnly": true - }, - "actionType": { - "$ref": "#/definitions/DevBoxActionType", - "description": "The action that will be taken." - }, - "sourceId": { - "type": "string", - "description": "The id of the resource which triggered this action" - }, - "suspendedUntil": { - "type": "string", - "format": "date-time", - "description": "The earliest time that the action could occur (UTC)." - }, - "next": { - "$ref": "#/definitions/DevBoxNextAction", - "description": "Details about the next run of this action." - } - }, - "required": [ - "name", - "actionType", - "sourceId" - ] - }, - "DevBoxActionDelayResult": { - "type": "object", - "description": "The action delay result", - "properties": { - "name": { - "type": "string", - "description": "The name of the action." - }, - "result": { - "$ref": "#/definitions/DevBoxActionDelayResultStatus", - "description": "The result of the delay operation on this action." - }, - "action": { - "$ref": "#/definitions/DevBoxAction", - "description": "The delayed action" - }, - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "Information about the error that occurred. Only populated on error." - } - }, - "required": [ - "name", - "result" - ] - }, - "DevBoxActionDelayResultStatus": { - "type": "string", - "enum": [ - "Succeeded", - "Failed" - ], - "x-ms-enum": { - "name": "DevBoxActionDelayResultStatus", - "modelAsString": true, - "values": [ - { - "name": "Succeeded", - "value": "Succeeded", - "description": "The delay operation succeeded." - }, - { - "name": "Failed", - "value": "Failed", - "description": "The delay operation failed." - } - ] - } - }, - "DevBoxActionType": { - "type": "string", - "enum": [ - "Stop" - ], - "x-ms-enum": { - "name": "DevBoxActionType", - "modelAsString": true, - "values": [ - { - "name": "Stop", - "value": "Stop", - "description": "The action will stop the Dev Box." - } - ] - } - }, - "DevBoxNextAction": { - "type": "object", - "description": "Details about the next run of an action.", - "properties": { - "scheduledTime": { - "type": "string", - "format": "date-time", - "description": "The time the action will be triggered (UTC)." - } - }, - "required": [ - "scheduledTime" - ] - }, - "Environment": { - "type": "object", - "description": "Properties of an environment.", - "properties": { - "parameters": { - "description": "Parameters object for the environment." - }, - "name": { - "type": "string", - "description": "Environment name.", - "readOnly": true - }, - "environmentType": { - "type": "string", - "description": "Environment type." - }, - "user": { - "type": "string", - "description": "The AAD object id of the owner of this Environment.", - "readOnly": true - }, - "provisioningState": { - "type": "string", - "description": "The provisioning state of the environment.", - "readOnly": true - }, - "resourceGroupId": { - "type": "string", - "description": "The identifier of the resource group containing the environment's resources.", - "readOnly": true - }, - "catalogName": { - "type": "string", - "description": "Name of the catalog." - }, - "environmentDefinitionName": { - "type": "string", - "description": "Name of the environment definition." - }, - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "Provisioning error details. Populated only for error states.", - "readOnly": true - } - }, - "required": [ - "environmentType", - "catalogName", - "environmentDefinitionName" - ] - }, - "EnvironmentDefinition": { - "type": "object", - "description": "An environment definition.", - "properties": { - "id": { - "type": "string", - "description": "The ID of the environment definition." - }, - "name": { - "type": "string", - "description": "Name of the environment definition." - }, - "catalogName": { - "type": "string", - "description": "Name of the catalog." - }, - "description": { - "type": "string", - "description": "A short description of the environment definition." - }, - "parameters": { - "type": "array", - "description": "Input parameters passed to an environment.", - "items": { - "$ref": "#/definitions/EnvironmentDefinitionParameter" - } - }, - "parametersSchema": { - "type": "string", - "description": "JSON schema defining the parameters object passed to an environment." - }, - "templatePath": { - "type": "string", - "description": "Path to the Environment Definition entrypoint file." - } - }, - "required": [ - "id", - "name", - "catalogName" - ] - }, - "EnvironmentDefinitionParameter": { - "type": "object", - "description": "Properties of an Environment Definition parameter", - "properties": { - "id": { - "type": "string", - "description": "Unique ID of the parameter" - }, - "name": { - "type": "string", - "description": "Display name of the parameter" - }, - "description": { - "type": "string", - "description": "Description of the parameter" - }, - "default": { - "type": "string", - "description": "Default value of the parameter" - }, - "type": { - "$ref": "#/definitions/ParameterType", - "description": "A string of one of the basic JSON types (number, integer, array, object,\nboolean, string)" - }, - "readOnly": { - "type": "boolean", - "description": "Whether or not this parameter is read-only. If true, default should have a\nvalue." - }, - "required": { - "type": "boolean", - "description": "Whether or not this parameter is required" - }, - "allowed": { - "type": "array", - "description": "An array of allowed values", - "items": { - "type": "string" - } - } - }, - "required": [ - "id", - "type", - "required" - ] - }, - "EnvironmentOperation": { - "type": "object", - "description": "Information about an operation on an environment.", - "properties": { - "kind": { - "type": "string", - "description": "Discriminator property for EnvironmentOperation." - }, - "uri": { - "type": "string", - "description": "The unique URI for the environment operation." - }, - "operationId": { - "type": "string", - "description": "Unique identifier for the environment operation." - }, - "status": { - "$ref": "#/definitions/EnvironmentOperationStatus", - "description": "The operation status." - }, - "createdByObjectId": { - "type": "string", - "description": "The object ID of the actor which initiated the operation." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The time the operation started." - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The time the operation finished." - }, - "environmentParameters": { - "description": "Parameters object for the environment at the time of the operation." - }, - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "Provisioning or operation error details. Populated only for error states." - } - }, - "discriminator": "kind", - "required": [ - "kind", - "uri", - "operationId", - "status" - ] - }, - "EnvironmentOperationStatus": { - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Succeeded", - "Canceled", - "Failed" - ], - "x-ms-enum": { - "name": "EnvironmentOperationStatus", - "modelAsString": true, - "values": [ - { - "name": "NotStarted", - "value": "NotStarted", - "description": "The operation has not started." - }, - { - "name": "Running", - "value": "Running", - "description": "The operation is running." - }, - { - "name": "Succeeded", - "value": "Succeeded", - "description": "The operation succeeded." - }, - { - "name": "Canceled", - "value": "Canceled", - "description": "The operation was canceled." - }, - { - "name": "Failed", - "value": "Failed", - "description": "The operation failed." - } - ] - } - }, - "EnvironmentType": { - "type": "object", - "description": "Properties of an environment type.", - "properties": { - "name": { - "type": "string", - "description": "Name of the environment type" - }, - "deploymentTargetId": { - "type": "string", - "description": "Id of a subscription or management group that the environment type will be\nmapped to. The environment's resources will be deployed into this subscription\nor management group." - }, - "status": { - "$ref": "#/definitions/EnvironmentTypeEnableStatus", - "description": "Indicates whether this environment type is enabled for use in this project." - } - }, - "required": [ - "name", - "deploymentTargetId", - "status" - ] - }, - "EnvironmentTypeEnableStatus": { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "EnvironmentTypeEnableStatus", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "The environment type is enabled for use in the project." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "The environment type is not enabled for use in the project." - } - ] - } - }, - "EnvironmentUpdateProperties": { - "type": "object", - "description": "Properties of an environment. These properties can be updated after the\nresource has been created.", - "properties": { - "parameters": { - "description": "Parameters object for the environment." - } - } - }, - "HardwareProfile": { - "type": "object", - "description": "Hardware specifications for the Dev Box.", - "properties": { - "skuName": { - "type": "string", - "description": "The name of the SKU", - "readOnly": true - }, - "vCPUs": { - "type": "integer", - "format": "int32", - "description": "The number of vCPUs available for the Dev Box.", - "readOnly": true - }, - "memoryGB": { - "type": "integer", - "format": "int32", - "description": "The amount of memory available for the Dev Box.", - "readOnly": true - } - } - }, - "HibernateSupport": { - "type": "string", - "enum": [ - "Enabled", - "Disabled", - "OsUnsupported" - ], - "x-ms-enum": { - "name": "HibernateSupport", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "Hibernate is enabled." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "Hibernate is not enabled." - }, - { - "name": "OsUnsupported", - "value": "OsUnsupported", - "description": "Hibernate is not supported by the operating system." - } - ] - } - }, - "ImageReference": { - "type": "object", - "description": "Specifies information about the image used", - "properties": { - "name": { - "type": "string", - "description": "The name of the image used.", - "readOnly": true - }, - "version": { - "type": "string", - "description": "The version of the image.", - "readOnly": true - }, - "operatingSystem": { - "type": "string", - "description": "The operating system of the image.", - "readOnly": true - }, - "osBuildNumber": { - "type": "string", - "description": "The operating system build number of the image.", - "readOnly": true - }, - "publishedDate": { - "type": "string", - "format": "date-time", - "description": "The datetime that the backing image version was published.", - "readOnly": true - } - } - }, - "LocalAdminStatus": { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "LocalAdminStatus", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "Owners of Dev Boxes in the pool are local administrators on the Dev Boxes." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes." - } - ] - } - }, - "OSDisk": { - "type": "object", - "description": "Settings for the operating system disk.", - "properties": { - "diskSizeGB": { - "type": "integer", - "format": "int32", - "description": "The size of the OS Disk in gigabytes.", - "readOnly": true - } - } - }, - "OperationStatus": { - "type": "object", - "description": "The current status of an async operation", - "properties": { - "id": { - "type": "string", - "description": "Fully qualified ID for the operation status." - }, - "name": { - "type": "string", - "description": "The operation id name" - }, - "status": { - "type": "string", - "description": "Provisioning state of the resource." - }, - "resourceId": { - "type": "string", - "description": "The id of the resource." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the operation" - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the operation" - }, - "percentComplete": { - "type": "number", - "format": "float", - "description": "Percent of the operation that is complete" - }, - "properties": { - "description": "Custom operation properties, populated only for a successful operation." - }, - "error": { - "$ref": "#/definitions/OperationStatusError", - "description": "Operation Error message" - } - }, - "required": [ - "status" - ] - }, - "OperationStatusError": { - "type": "object", - "description": "Operation Error message", - "properties": { - "code": { - "type": "string", - "description": "The error code." - }, - "message": { - "type": "string", - "description": "The error message." - } - } - }, - "OsType": { - "type": "string", - "enum": [ - "Windows" - ], - "x-ms-enum": { - "name": "OsType", - "modelAsString": true, - "values": [ - { - "name": "Windows", - "value": "Windows", - "description": "The Windows operating system." - } - ] - } - }, - "PagedCatalog": { - "type": "object", - "description": "Results of the catalog list operation.", - "properties": { - "value": { - "type": "array", - "description": "The Catalog items on this page", - "items": { - "$ref": "#/definitions/Catalog" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedDevBox": { - "type": "object", - "description": "The Dev Box list result", - "properties": { - "value": { - "type": "array", - "description": "The DevBox items on this page", - "items": { - "$ref": "#/definitions/DevBox" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedDevBoxAction": { - "type": "object", - "description": "The actions list result", - "properties": { - "value": { - "type": "array", - "description": "The DevBoxAction items on this page", - "items": { - "$ref": "#/definitions/DevBoxAction" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedDevBoxActionDelayResult": { - "type": "object", - "description": "The actions list result", - "properties": { - "value": { - "type": "array", - "description": "The DevBoxActionDelayResult items on this page", - "items": { - "$ref": "#/definitions/DevBoxActionDelayResult" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedEnvironment": { - "type": "object", - "description": "Results of the environment list operation.", - "properties": { - "value": { - "type": "array", - "description": "The Environment items on this page", - "items": { - "$ref": "#/definitions/Environment" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedEnvironmentDefinition": { - "type": "object", - "description": "Results of the environment definition list operation.", - "properties": { - "value": { - "type": "array", - "description": "The EnvironmentDefinition items on this page", - "items": { - "$ref": "#/definitions/EnvironmentDefinition" - } - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedEnvironmentOperation": { - "type": "object", - "description": "The action results list result.", - "properties": { - "value": { - "type": "array", - "description": "The EnvironmentOperation items on this page", - "items": { - "$ref": "#/definitions/EnvironmentOperation" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedEnvironmentType": { - "type": "object", - "description": "Result of the environment type list operation.", - "properties": { - "value": { - "type": "array", - "description": "The EnvironmentType items on this page", - "items": { - "$ref": "#/definitions/EnvironmentType" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedPool": { - "type": "object", - "description": "The Pool list result", - "properties": { - "value": { - "type": "array", - "description": "The Pool items on this page", - "items": { - "$ref": "#/definitions/Pool" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedProject": { - "type": "object", - "description": "Results of the project list operation.", - "properties": { - "value": { - "type": "array", - "description": "The Project items on this page", - "items": { - "$ref": "#/definitions/Project" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedSchedule": { - "type": "object", - "description": "The Schedule list result", - "properties": { - "value": { - "type": "array", - "description": "The Schedule items on this page", - "items": { - "$ref": "#/definitions/Schedule" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "ParameterType": { - "type": "string", - "enum": [ - "array", - "boolean", - "integer", - "number", - "object", - "string" - ], - "x-ms-enum": { - "name": "ParameterType", - "modelAsString": true, - "values": [ - { - "name": "array", - "value": "array", - "description": "The parameter accepts an array of values." - }, - { - "name": "boolean", - "value": "boolean", - "description": "The parameter accepts a boolean value." - }, - { - "name": "integer", - "value": "integer", - "description": "The parameter accepts an integer value." - }, - { - "name": "number", - "value": "number", - "description": "The parameter accepts a number value." - }, - { - "name": "object", - "value": "object", - "description": "The parameter accepts an object value." - }, - { - "name": "string", - "value": "string", - "description": "The parameter accepts a string value." - } - ] - } - }, - "Pool": { - "type": "object", - "description": "A pool of Dev Boxes.", - "properties": { - "name": { - "type": "string", - "description": "Pool name", - "readOnly": true - }, - "location": { - "type": "string", - "description": "Azure region where Dev Boxes in the pool are located" - }, - "osType": { - "$ref": "#/definitions/OsType", - "description": "The operating system type of Dev Boxes in this pool" - }, - "hardwareProfile": { - "$ref": "#/definitions/HardwareProfile", - "description": "Hardware settings for the Dev Boxes created in this pool" - }, - "hibernateSupport": { - "$ref": "#/definitions/HibernateSupport", - "description": "Indicates whether hibernate is enabled/disabled or unknown." - }, - "storageProfile": { - "$ref": "#/definitions/StorageProfile", - "description": "Storage settings for Dev Box created in this pool" - }, - "imageReference": { - "$ref": "#/definitions/ImageReference", - "description": "Image settings for Dev Boxes create in this pool" - }, - "localAdministrator": { - "$ref": "#/definitions/LocalAdminStatus", - "description": "Indicates whether owners of Dev Boxes in this pool are local administrators on\nthe Dev Boxes." - }, - "stopOnDisconnect": { - "$ref": "#/definitions/StopOnDisconnectConfiguration", - "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool." - }, - "healthStatus": { - "$ref": "#/definitions/PoolHealthStatus", - "description": "Overall health status of the Pool. Indicates whether or not the Pool is\navailable to create Dev Boxes." - } - }, - "required": [ - "name", - "location", - "healthStatus" - ] - }, - "PoolHealthStatus": { - "type": "string", - "enum": [ - "Unknown", - "Pending", - "Healthy", - "Warning", - "Unhealthy" - ], - "x-ms-enum": { - "name": "PoolHealthStatus", - "modelAsString": true, - "values": [ - { - "name": "Unknown", - "value": "Unknown", - "description": "The pool health status is not known." - }, - { - "name": "Pending", - "value": "Pending", - "description": "The pool health status waiting for health checks to run." - }, - { - "name": "Healthy", - "value": "Healthy", - "description": "The pool health status is healthy." - }, - { - "name": "Warning", - "value": "Warning", - "description": "The pool health status has one or more warnings." - }, - { - "name": "Unhealthy", - "value": "Unhealthy", - "description": "The pool health status is not healthy." - } - ] - } - }, - "PowerState": { - "type": "string", - "enum": [ - "Unknown", - "Running", - "Deallocated", - "PoweredOff", - "Hibernated" - ], - "x-ms-enum": { - "name": "PowerState", - "modelAsString": true, - "values": [ - { - "name": "Unknown", - "value": "Unknown", - "description": "The Dev Box power state is not known." - }, - { - "name": "Running", - "value": "Running", - "description": "The Dev Box is running." - }, - { - "name": "Deallocated", - "value": "Deallocated", - "description": "The Dev Box is deallocated." - }, - { - "name": "PoweredOff", - "value": "PoweredOff", - "description": "The Dev Box is powered off." - }, - { - "name": "Hibernated", - "value": "Hibernated", - "description": "The Dev Box is hibernated." - } - ] - } - }, - "Project": { - "type": "object", - "description": "Project details.", - "properties": { - "name": { - "type": "string", - "description": "Name of the project", - "readOnly": true - }, - "description": { - "type": "string", - "description": "Description of the project." - }, - "maxDevBoxesPerUser": { - "type": "integer", - "format": "int32", - "description": "When specified, indicates the maximum number of Dev Boxes a single user can\ncreate across all pools in the project." - } - }, - "required": [ - "name" - ] - }, - "RemoteConnection": { - "type": "object", - "description": "Provides remote connection information for a Dev Box.", - "properties": { - "webUrl": { - "type": "string", - "description": "URL to open a browser based RDP session." - }, - "rdpConnectionUrl": { - "type": "string", - "description": "Link to open a Remote Desktop session." - } - } - }, - "Schedule": { - "type": "object", - "description": "A Schedule to execute action.", - "properties": { - "name": { - "type": "string", - "description": "Display name for the Schedule", - "readOnly": true - }, - "type": { - "$ref": "#/definitions/ScheduledType", - "description": "Supported type this scheduled task represents." - }, - "frequency": { - "$ref": "#/definitions/ScheduledFrequency", - "description": "The frequency of this scheduled task." - }, - "time": { - "type": "string", - "description": "The target time to trigger the action. The format is HH:MM." - }, - "timeZone": { - "type": "string", - "description": "The IANA timezone id at which the schedule should execute." - } - }, - "required": [ - "name", - "type", - "frequency", - "time", - "timeZone" - ] - }, - "ScheduledFrequency": { - "type": "string", - "enum": [ - "Daily" - ], - "x-ms-enum": { - "name": "ScheduledFrequency", - "modelAsString": true, - "values": [ - { - "name": "Daily", - "value": "Daily", - "description": "The scheduled task will run every day." - } - ] - } - }, - "ScheduledType": { - "type": "string", - "enum": [ - "StopDevBox" - ], - "x-ms-enum": { - "name": "ScheduledType", - "modelAsString": true, - "values": [ - { - "name": "StopDevBox", - "value": "StopDevBox", - "description": "The scheduled task will stop impacted Dev Boxes." - } - ] - } - }, - "StopOnDisconnectConfiguration": { - "type": "object", - "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", - "properties": { - "status": { - "$ref": "#/definitions/StopOnDisconnectEnableStatus", - "description": "Indicates whether the feature to stop the devbox on disconnect once the grace\nperiod has lapsed is enabled." - }, - "gracePeriodMinutes": { - "type": "integer", - "format": "int32", - "description": "The specified time in minutes to wait before stopping a Dev Box once disconnect\nis detected." - } - }, - "required": [ - "status" - ] - }, - "StopOnDisconnectEnableStatus": { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "StopOnDisconnectEnableStatus", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "Stop on disconnect is enabled on the Dev Box." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "Stop on disconnect is not enabled on the Dev Box." - } - ] - } - }, - "StorageProfile": { - "type": "object", - "description": "Storage settings for the Dev Box's disks", - "properties": { - "osDisk": { - "$ref": "#/definitions/OSDisk", - "description": "Settings for the operating system disk." - } - } - }, - "User": { - "type": "object", - "description": "Project user", - "properties": { - "name": { - "type": "string", - "description": "User name", - "readOnly": true - } - }, - "required": [ - "name" - ] - } - }, - "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/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index fe627f3cc055..95ab0b3a4a55 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -1,793 +1,858 @@ { "swagger": "2.0", "info": { - "version": "2023-04-01", "title": "DevCenter", - "description": "Deployment Environments API." + "version": "2023-04-01", + "description": "DevCenter service", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] }, + "schemes": [ + "https" + ], "x-ms-parameterized-host": { "hostTemplate": "{endpoint}", "useSchemePrefix": false, "parameters": [ { - "$ref": "devcenter.json#/parameters/EndpointParameter" + "name": "endpoint", + "in": "path", + "required": true, + "type": "string" } ] }, - "schemes": [ - "https" - ], - "consumes": [ + "produces": [ "application/json" ], - "produces": [ + "consumes": [ "application/json" ], "security": [ { - "AADToken": [ + "OAuth2Auth": [ "user_impersonation" ] } ], "securityDefinitions": { - "AADToken": { + "OAuth2Auth": { "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": { - "user_impersonation": "impersonate your user account" + "user_impersonation": "" } } }, + "tags": [], "paths": { - "/projects/{projectName}/environments": { + "/projects/{projectName}/catalogs": { "get": { - "tags": [ - "Environments" - ], - "description": "Lists the environments for a project.", + "operationId": "EnvironmentsOperations_ListCatalogsByProject", + "description": "Lists all of the catalogs available for a project.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/TopParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" } ], - "operationId": "Environments_ListEnvironments", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/EnvironmentListResult" + "$ref": "#/definitions/PagedCatalog" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, - "x-ms-examples": { - "Environments_ListEnvironments": { - "$ref": "./examples/Environments_ListByProject.json" - } - }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/users/{userId}/environments": { + "/projects/{projectName}/catalogs/{catalogName}": { "get": { - "tags": [ - "Environments" - ], - "description": "Lists the environments for a project and user.", + "operationId": "EnvironmentsOperations_GetCatalog", + "description": "Gets the specified catalog within the project", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/TopParameter" - }, - { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the catalog", + "required": true, + "type": "string" } ], - "operationId": "Environments_ListEnvironmentsByUser", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/EnvironmentListResult" + "$ref": "#/definitions/Catalog" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } - }, - "x-ms-examples": { - "Environments_ListEnvironmentsByUser": { - "$ref": "./examples/Environments_ListByProjectByUser.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/users/{userId}/environments/{environmentName}": { + "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { "get": { - "tags": [ - "Environments" - ], - "description": "Gets an environment", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "description": "Lists all environment definitions available within a catalog.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" }, { - "$ref": "#/parameters/EnvironmentNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the catalog", + "required": true, + "type": "string" } ], - "operationId": "Environments_GetEnvironmentByUser", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/Environment" + "$ref": "#/definitions/PagedEnvironmentDefinition" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, - "x-ms-examples": { - "Environments_GetEnvironmentByUser": { - "$ref": "./examples/Environments_Get.json" - } + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "put": { - "tags": [ - "Environments" - ], - "description": "Creates or updates an environment.", + } + }, + "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { + "get": { + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "description": "Get an environment definition from a catalog.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/EnvironmentNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the catalog", + "required": true, + "type": "string" }, { - "name": "body", - "in": "body", - "description": "Represents an environment.", + "name": "definitionName", + "in": "path", + "description": "The name of the environment definition", "required": true, - "schema": { - "$ref": "#/definitions/Environment" - } + "type": "string" } ], - "operationId": "Environments_CreateOrReplaceEnvironment", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "original-uri" - }, "responses": { - "201": { - "description": "Created. Operation will complete asynchronously.", + "200": { + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/Environment" - }, - "headers": { - "Operation-Location": { - "description": "URL to query for status of the operation.", - "type": "string" - } + "$ref": "#/definitions/EnvironmentDefinition" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } - }, - "x-ms-examples": { - "Environments_CreateByEnvironmentDefinition": { - "$ref": "./examples/Environments_CreateByEnvironmentDefinition.json" - } } - }, - "delete": { - "tags": [ - "Environments" - ], - "description": "Deletes an environment and all its associated resources", + } + }, + "/projects/{projectName}/environmentDefinitions": { + "get": { + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByProject", + "description": "Lists all environment definitions available for a project.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/EnvironmentNameParameter" + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" } ], - "operationId": "Environments_DeleteEnvironment", - "x-ms-long-running-operation": true, "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", + "200": { + "description": "The request has succeeded.", "schema": { - "$ref": "devcenter.json#/definitions/OperationStatus" - }, - "headers": { - "Operation-Location": { - "description": "URL to query for status of the operation.", - "type": "string" - } + "$ref": "#/definitions/PagedEnvironmentDefinition" } }, - "204": { - "description": "Deletion was successful or resource does not exist." - }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, - "x-ms-examples": { - "Environments_DeleteEnvironment": { - "$ref": "./examples/Environments_Delete.json" - } + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/catalogs": { + "/projects/{projectName}/environmentTypes": { "get": { - "tags": [ - "Catalogs" - ], - "description": "Lists all of the catalogs available for a project.", + "operationId": "EnvironmentsOperations_ListEnvironmentTypes", + "description": "Lists all environment types configured for a project.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/TopParameter" + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" } ], - "operationId": "Environments_ListCatalogsByProject", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/CatalogListResult" + "$ref": "#/definitions/PagedEnvironmentType" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, - "x-ms-examples": { - "Environments_ListCatalogsByProject": { - "$ref": "./examples/Catalogs_ListByProject.json" - } - }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/catalogs/{catalogName}": { + "/projects/{projectName}/environments": { "get": { - "tags": [ - "Catalogs" - ], - "description": "Gets the specified catalog within the project", + "operationId": "EnvironmentsOperations_ListEnvironments", + "description": "Lists the environments for a project.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" } ], - "operationId": "Environments_GetCatalog", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/Catalog" + "$ref": "#/definitions/PagedEnvironment" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, - "x-ms-examples": { - "Environments_GetCatalog": { - "$ref": "./examples/Catalogs_Get.json" - } + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/environmentDefinitions": { + "/projects/{projectName}/users/{userId}/environments": { "get": { - "tags": [ - "Environment Definitions" - ], - "description": "Lists all environment definitions available for a project.", + "operationId": "EnvironmentsOperations_ListEnvironmentsByUser", + "description": "Lists the environments for a project and user.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": true, + "type": "integer", + "format": "int32" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/TopParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" } ], - "operationId": "Environments_ListEnvironmentDefinitionsByProject", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/EnvironmentDefinitionListResult" + "$ref": "#/definitions/PagedEnvironment" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, - "x-ms-examples": { - "Environments_ListEnvironmentDefinitions": { - "$ref": "./examples/EnvironmentDefinitions_ListByProject.json" - } - }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { + "/projects/{projectName}/users/{userId}/environments/{environmentName}": { "get": { - "tags": [ - "Environment Definitions" - ], - "description": "Lists all environment definitions available within a catalog.", + "operationId": "EnvironmentsOperations_GetEnvironmentByUser", + "description": "Gets an environment", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/TopParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" } ], - "operationId": "Environments_ListEnvironmentDefinitionsByCatalog", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/EnvironmentDefinitionListResult" + "$ref": "#/definitions/Environment" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } - }, - "x-ms-examples": { - "Environments_ListEnvironmentDefinitionsByCatalog": { - "$ref": "./examples/EnvironmentDefinitions_ListByCatalog.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } - } - }, - "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { - "get": { - "tags": [ - "Environment Definitions" - ], - "description": "Get an environment definition from a catalog.", + }, + "put": { + "operationId": "EnvironmentsOperations_CreateOrReplaceEnvironment", + "description": "Creates or updates an environment.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/EnvironmentDefinitionNameParameter" + "name": "body", + "in": "body", + "description": "Represents an environment.", + "required": true, + "schema": { + "$ref": "#/definitions/Environment" + } } ], - "operationId": "Environments_GetEnvironmentDefinition", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/EnvironmentDefinition" + "$ref": "#/definitions/Environment" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } - }, - "x-ms-examples": { - "Environments_GetEnvironmentDefinition": { - "$ref": "./examples/EnvironmentDefinitions_Get.json" - } } - } - }, - "/projects/{projectName}/environmentTypes": { - "get": { - "tags": [ - "Environment Types" - ], - "description": "Lists all environment types configured for a project.", + }, + "delete": { + "operationId": "EnvironmentsOperations_DeleteEnvironment", + "description": "Deletes an environment and all its associated resources", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/TopParameter" + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" } ], - "operationId": "Environments_ListEnvironmentTypes", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/EnvironmentTypeListResult" + "$ref": "#/definitions/OperationStatus" } }, + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " + }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } - }, - "x-ms-examples": { - "Environments_ListEnvironmentTypes": { - "$ref": "./examples/EnvironmentTypes_ListByProject.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } } } }, "definitions": { - "EnvironmentUpdateProperties": { - "description": "Properties of an environment. These properties can be updated after the resource has been created.", - "type": "object", - "properties": { - "parameters": { - "type": "object", - "description": "Parameters object for the environment." - } + "APIVersions": { + "type": "string", + "description": "DevCenter API versions", + "enum": [ + "2023-04-01", + "2023-09-01-preview" + ], + "x-ms-enum": { + "name": "APIVersions", + "modelAsString": true, + "values": [ + { + "name": "v2023_04_01", + "value": "2023-04-01", + "description": "The 2023-04-01 service API version" + }, + { + "name": "v2023_09_01_preview", + "value": "2023-09-01-preview", + "description": "The 2023-09-01-preview service API version" + } + ] } }, - "Environment": { - "description": "Properties of an environment.", + "Azure.Core.Foundations.Error": { "type": "object", - "allOf": [ - { - "$ref": "#/definitions/EnvironmentUpdateProperties" - } - ], + "description": "The error object.", "properties": { - "name": { - "type": "string", - "description": "Environment name.", - "readOnly": true - }, - "environmentType": { - "type": "string", - "description": "Environment type.", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "user": { - "type": "string", - "description": "The AAD object id of the owner of this Environment.", - "readOnly": true - }, - "provisioningState": { - "description": "The provisioning state of the environment.", + "code": { "type": "string", - "readOnly": true + "description": "One of a server-defined set of error codes." }, - "resourceGroupId": { - "description": "The identifier of the resource group containing the environment's resources.", + "message": { "type": "string", - "readOnly": true + "description": "A human-readable representation of the error." }, - "catalogName": { + "target": { "type": "string", - "description": "Name of the catalog.", - "x-ms-mutability": [ - "read", - "create" - ] + "description": "The target of the error." }, - "environmentDefinitionName": { - "type": "string", - "description": "Name of the environment definition.", - "x-ms-mutability": [ - "read", - "create" - ] + "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": [] }, - "error": { - "description": "Provisioning error details. Populated only for error states.", - "readOnly": true, - "$ref": "devcenter.json#/definitions/CloudErrorBody" + "innererror": { + "$ref": "#/definitions/Azure.Core.Foundations.InnerError", + "description": "An object containing more specific information than the current object about the error." } }, "required": [ - "environmentType", - "catalogName", - "environmentDefinitionName" + "code", + "message" ] }, - "EnvironmentListResult": { - "description": "Results of the environment list operation.", + "Azure.Core.Foundations.ErrorResponse": { "type": "object", + "description": "A response containing error details.", "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/Environment" - } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string" + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "The error object." } }, "required": [ - "value" + "error" ] }, - "CatalogListResult": { - "description": "Results of the catalog list operation.", + "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": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/Catalog" - } + "code": { + "type": "string", + "description": "One of a server-defined set of error codes." }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string" + "innererror": { + "$ref": "#/definitions/Azure.Core.Foundations.InnerError", + "description": "Inner error." } - }, - "required": [ - "value" - ] + } }, "Catalog": { - "description": "A catalog.", "type": "object", + "description": "A catalog.", "properties": { "name": { - "description": "Name of the catalog.", - "type": "string" + "type": "string", + "description": "Name of the catalog." } }, "required": [ "name" ] }, - "EnvironmentDefinitionListResult": { - "description": "Results of the environment definition list operation.", + "CloudError": { "type": "object", + "description": "An error response from the service.", "properties": { - "value": { - "description": "Current page of results.", + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Error body" + } + }, + "required": [ + "error" + ] + }, + "CloudErrorBody": { + "type": "object", + "description": "An error response from the service.", + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be\nconsumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for display in a user\ninterface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in\nerror." + }, + "details": { "type": "array", + "description": "A list of additional details about the error.", "items": { - "$ref": "#/definitions/EnvironmentDefinition" - } + "$ref": "#/definitions/CloudErrorBody" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "code", + "message" + ] + }, + "Environment": { + "type": "object", + "description": "Properties of an environment.", + "properties": { + "parameters": { + "description": "Parameters object for the environment." }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string" + "name": { + "type": "string", + "description": "Environment name.", + "readOnly": true + }, + "environmentType": { + "type": "string", + "description": "Environment type." + }, + "user": { + "type": "string", + "description": "The AAD object id of the owner of this Environment.", + "readOnly": true + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the environment.", + "readOnly": true + }, + "resourceGroupId": { + "type": "string", + "description": "The identifier of the resource group containing the environment's resources.", + "readOnly": true + }, + "catalogName": { + "type": "string", + "description": "Name of the catalog." + }, + "environmentDefinitionName": { + "type": "string", + "description": "Name of the environment definition." + }, + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Provisioning error details. Populated only for error states.", + "readOnly": true } }, "required": [ - "value" + "environmentType", + "catalogName", + "environmentDefinitionName" ] }, "EnvironmentDefinition": { - "description": "An environment definition.", "type": "object", + "description": "An environment definition.", "properties": { "id": { - "description": "The ID of the environment definition.", - "type": "string" + "type": "string", + "description": "The ID of the environment definition." }, "name": { - "description": "Name of the environment definition.", - "type": "string" + "type": "string", + "description": "Name of the environment definition." }, "catalogName": { - "description": "Name of the catalog.", - "type": "string" + "type": "string", + "description": "Name of the catalog." }, "description": { - "description": "A short description of the environment definition.", - "type": "string" + "type": "string", + "description": "A short description of the environment definition." }, "parameters": { "type": "array", + "description": "Input parameters passed to an environment.", "items": { "$ref": "#/definitions/EnvironmentDefinitionParameter" - }, - "description": "Input parameters passed to an environment." + } }, "parametersSchema": { "type": "string", "description": "JSON schema defining the parameters object passed to an environment." }, "templatePath": { - "description": "Path to the Environment Definition entrypoint file.", - "type": "string" + "type": "string", + "description": "Path to the Environment Definition entrypoint file." } }, "required": [ + "id", "name", - "catalogName", - "id" + "catalogName" ] }, "EnvironmentDefinitionParameter": { @@ -811,12 +876,12 @@ "description": "Default value of the parameter" }, "type": { - "description": "A string of one of the basic JSON types (number, integer, array, object, boolean, string)", - "$ref": "#/definitions/ParameterType" + "$ref": "#/definitions/ParameterType", + "description": "A string of one of the basic JSON types (number, integer, array, object,\nboolean, string)" }, "readOnly": { "type": "boolean", - "description": "Whether or not this parameter is read-only. If true, default should have a value." + "description": "Whether or not this parameter is read-only. If true, default should have a\nvalue." }, "required": { "type": "boolean", @@ -824,12 +889,10 @@ }, "allowed": { "type": "array", + "description": "An array of allowed values", "items": { "type": "string" - }, - "minItems": 1, - "uniqueItems": true, - "description": "An array of allowed values" + } } }, "required": [ @@ -838,41 +901,21 @@ "required" ] }, - "EnvironmentTypeListResult": { - "description": "Result of the environment type list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentType" - } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string" - } - }, - "required": [ - "value" - ] - }, "EnvironmentType": { - "description": "Properties of an environment type.", "type": "object", + "description": "Properties of an environment type.", "properties": { "name": { - "description": "Name of the environment type", - "type": "string" + "type": "string", + "description": "Name of the environment type" }, "deploymentTargetId": { - "description": "Id of a subscription or management group that the environment type will be mapped to. The environment's resources will be deployed into this subscription or management group.", - "type": "string" + "type": "string", + "description": "Id of a subscription or management group that the environment type will be\nmapped to. The environment's resources will be deployed into this subscription\nor management group." }, "status": { - "description": "Indicates whether this environment type is enabled for use in this project.", - "$ref": "#/definitions/EnvironmentTypeEnableStatus" + "$ref": "#/definitions/EnvironmentTypeEnableStatus", + "description": "Indicates whether this environment type is enabled for use in this project." } }, "required": [ @@ -882,27 +925,185 @@ ] }, "EnvironmentTypeEnableStatus": { - "description": "Indicates whether an environment type is enabled for use in a project.", + "type": "string", "enum": [ "Enabled", "Disabled" ], - "type": "string", "x-ms-enum": { "name": "EnvironmentTypeEnableStatus", "modelAsString": true, "values": [ { + "name": "Enabled", "value": "Enabled", "description": "The environment type is enabled for use in the project." }, { + "name": "Disabled", "value": "Disabled", "description": "The environment type is not enabled for use in the project." } ] } }, + "EnvironmentUpdateProperties": { + "type": "object", + "description": "Properties of an environment. These properties can be updated after the\nresource has been created.", + "properties": { + "parameters": { + "description": "Parameters object for the environment." + } + } + }, + "OperationStatus": { + "type": "object", + "description": "The current status of an async operation", + "properties": { + "id": { + "type": "string", + "description": "Fully qualified ID for the operation status." + }, + "name": { + "type": "string", + "description": "The operation id name" + }, + "status": { + "type": "string", + "description": "Provisioning state of the resource." + }, + "resourceId": { + "type": "string", + "description": "The id of the resource." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the operation" + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The end time of the operation" + }, + "percentComplete": { + "type": "number", + "format": "float", + "description": "Percent of the operation that is complete" + }, + "properties": { + "description": "Custom operation properties, populated only for a successful operation." + }, + "error": { + "$ref": "#/definitions/OperationStatusError", + "description": "Operation Error message" + } + }, + "required": [ + "status" + ] + }, + "OperationStatusError": { + "type": "object", + "description": "Operation Error message", + "properties": { + "code": { + "type": "string", + "description": "The error code." + }, + "message": { + "type": "string", + "description": "The error message." + } + } + }, + "PagedCatalog": { + "type": "object", + "description": "Results of the catalog list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Catalog items on this page", + "items": { + "$ref": "#/definitions/Catalog" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironment": { + "type": "object", + "description": "Results of the environment list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Environment items on this page", + "items": { + "$ref": "#/definitions/Environment" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironmentDefinition": { + "type": "object", + "description": "Results of the environment definition list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnvironmentDefinition items on this page", + "items": { + "$ref": "#/definitions/EnvironmentDefinition" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironmentType": { + "type": "object", + "description": "Result of the environment type list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnvironmentType items on this page", + "items": { + "$ref": "#/definitions/EnvironmentType" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, "ParameterType": { "type": "string", "enum": [ @@ -913,32 +1114,37 @@ "object", "string" ], - "description": "The type of data a parameter accepts.", "x-ms-enum": { "name": "ParameterType", "modelAsString": true, "values": [ { + "name": "array", "value": "array", "description": "The parameter accepts an array of values." }, { + "name": "boolean", "value": "boolean", "description": "The parameter accepts a boolean value." }, { + "name": "integer", "value": "integer", "description": "The parameter accepts an integer value." }, { + "name": "number", "value": "number", "description": "The parameter accepts a number value." }, { + "name": "object", "value": "object", "description": "The parameter accepts an object value." }, { + "name": "string", "value": "string", "description": "The parameter accepts a string value." } @@ -947,38 +1153,15 @@ } }, "parameters": { - "EnvironmentNameParameter": { - "name": "environmentName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63, - "description": "The name of the environment.", - "x-ms-parameter-location": "method" - }, - "CatalogNameParameter": { - "name": "catalogName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63, - "description": "The name of the catalog", - "x-ms-parameter-location": "method" - }, - "EnvironmentDefinitionNameParameter": { - "name": "definitionName", - "in": "path", + "Azure.Core.Foundations.ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "The API version to use for this operation.", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63, - "description": "The name of the environment definition", - "x-ms-parameter-location": "method" + "minLength": 1, + "x-ms-parameter-location": "method", + "x-ms-client-name": "apiVersion" } } } diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/openapi.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/openapi.json deleted file mode 100644 index 5e8a06901c21..000000000000 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/openapi.json +++ /dev/null @@ -1,3098 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "DevCenter", - "version": "2023-04-01", - "description": "DevCenter service", - "x-typespec-generated": [ - { - "emitter": "@azure-tools/typespec-autorest" - } - ] - }, - "schemes": [ - "https" - ], - "x-ms-parameterized-host": { - "hostTemplate": "{endpoint}", - "useSchemePrefix": false, - "parameters": [ - { - "name": "endpoint", - "in": "path", - "required": true, - "type": "string" - } - ] - }, - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ], - "security": [ - { - "OAuth2Auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "OAuth2Auth": { - "type": "oauth2", - "flow": "implicit", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "scopes": { - "user_impersonation": "" - } - } - }, - "tags": [], - "paths": { - "/devboxes": { - "get": { - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", - "description": "Lists Dev Boxes that the caller has access to in the DevCenter.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBox" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects": { - "get": { - "operationId": "DevCenterOperations_ListProjects", - "description": "Lists all projects.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedProject" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}": { - "get": { - "operationId": "DevCenterOperations_GetProject", - "description": "Gets a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Project" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/catalogs": { - "get": { - "operationId": "EnvironmentsOperations_ListCatalogsByProject", - "description": "Lists all of the catalogs available for a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedCatalog" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/catalogs/{catalogName}": { - "get": { - "operationId": "EnvironmentsOperations_GetCatalog", - "description": "Gets the specified catalog within the project", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "catalogName", - "in": "path", - "description": "The name of the catalog", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Catalog" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { - "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", - "description": "Lists all environment definitions available within a catalog.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "catalogName", - "in": "path", - "description": "The name of the catalog", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironmentDefinition" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { - "get": { - "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", - "description": "Get an environment definition from a catalog.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "catalogName", - "in": "path", - "description": "The name of the catalog", - "required": true, - "type": "string" - }, - { - "name": "definitionName", - "in": "path", - "description": "The name of the environment definition", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/EnvironmentDefinition" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/environmentDefinitions": { - "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByProject", - "description": "Lists all environment definitions available for a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironmentDefinition" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/environmentTypes": { - "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentTypes", - "description": "Lists all environment types configured for a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironmentType" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/environments": { - "get": { - "operationId": "EnvironmentsOperations_ListEnvironments", - "description": "Lists the environments for a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironment" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/pools": { - "get": { - "operationId": "DevBoxesOperations_ListPools", - "description": "Lists available pools", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": true, - "type": "string" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedPool" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/pools/{poolName}": { - "get": { - "operationId": "DevBoxesOperations_GetPool", - "description": "Gets a pool", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string" - }, - { - "name": "poolName", - "in": "path", - "description": "Pool name", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Pool" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/pools/{poolName}/schedules": { - "get": { - "operationId": "DevBoxesOperations_ListSchedulesByPool", - "description": "Lists available schedules for a pool.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": true, - "type": "string" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "poolName", - "in": "path", - "description": "The name of a pool of Dev Boxes.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedSchedule" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { - "get": { - "operationId": "DevBoxesOperations_GetScheduleByPool", - "description": "Gets a schedule.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string" - }, - { - "name": "poolName", - "in": "path", - "description": "Pool name", - "required": true, - "type": "string" - }, - { - "name": "scheduleName", - "in": "path", - "description": "Display name for the Schedule", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes": { - "get": { - "operationId": "DevBoxesOperations_ListDevBoxesByUser", - "description": "Lists Dev Boxes in the project for a particular user.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBox" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/users/{userName}/devboxes/{devBoxName}": { - "get": { - "operationId": "DevBoxesOperations_GetDevBoxByUser", - "description": "Gets a Dev Box", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string" - }, - { - "name": "userName", - "in": "path", - "description": "User name", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "Display name for the Dev Box", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBox" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}": { - "put": { - "operationId": "DevBoxesOperations_CreateDevBox", - "description": "Creates or replaces a Dev Box.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "description": "Represents a environment.", - "required": true, - "schema": { - "$ref": "#/definitions/DevBox" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBox" - } - }, - "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." - } - } - } - } - }, - "delete": { - "operationId": "DevBoxesOperations_DeleteDevBox", - "description": "Deletes a Dev Box.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "204": { - "description": "There is no content to send for this request, but the headers may be useful. " - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start": { - "post": { - "operationId": "DevBoxesOperations_StartDevBox", - "description": "Starts a Dev Box", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop": { - "post": { - "operationId": "DevBoxesOperations_StopDevBox", - "description": "Stops a Dev Box", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "hibernate", - "in": "query", - "description": "Optional parameter to hibernate the dev box.", - "required": true, - "type": "boolean" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart": { - "post": { - "operationId": "DevBoxesOperations_RestartDevBox", - "description": "Restarts a Dev Box", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions": { - "get": { - "operationId": "DevBoxesOperations_ListActions", - "description": "Lists actions on a Dev Box.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBoxAction" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/users/{userName}/devboxes/{devBoxName}/actions/{actionName}": { - "get": { - "operationId": "DevBoxesOperations_GetAction", - "description": "Gets an action.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string" - }, - { - "name": "userName", - "in": "path", - "description": "User name", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "Display name for the Dev Box", - "required": true, - "type": "string" - }, - { - "name": "actionName", - "in": "path", - "description": "The name of the action.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBoxAction" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip": { - "post": { - "operationId": "DevBoxesOperations_SkipAction", - "description": "Skips an occurrence of an action.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "actionName", - "in": "path", - "description": "The name of an action that will take place on a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "204": { - "description": "There is no content to send for this request, but the headers may be useful. " - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay": { - "post": { - "operationId": "DevBoxesOperations_DelayAction", - "description": "Delays the occurrence of an action.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "actionName", - "in": "path", - "description": "The name of an action that will take place on a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "until", - "in": "query", - "description": "The time to delay the Dev Box action or actions until.", - "required": true, - "type": "string", - "format": "date-time" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBoxAction" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay": { - "post": { - "operationId": "DevBoxesOperations_DelayActions", - "description": "Delays all actions.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "until", - "in": "query", - "description": "The time to delay the Dev Box action or actions until.", - "required": true, - "type": "string", - "format": "date-time" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBoxActionDelayResult" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection": { - "get": { - "operationId": "DevBoxesOperations_GetRemoteConnection", - "description": "Gets RDP Connection info", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/RemoteConnection" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/users/{userId}/environments": { - "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentsByUser", - "description": "Lists the environments for a project and user.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironment" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/users/{userId}/environments/{environmentName}": { - "get": { - "operationId": "EnvironmentsOperations_GetEnvironmentByUser", - "description": "Gets an environment", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Environment" - } - }, - "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." - } - } - } - } - }, - "put": { - "operationId": "EnvironmentsOperations_CreateOrReplaceEnvironment", - "description": "Creates or updates an environment.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "description": "Represents an environment.", - "required": true, - "schema": { - "$ref": "#/definitions/Environment" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Environment" - } - }, - "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." - } - } - } - } - }, - "delete": { - "operationId": "EnvironmentsOperations_DeleteEnvironment", - "description": "Deletes an environment and all its associated resources", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "204": { - "description": "There is no content to send for this request, but the headers may be useful. " - }, - "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." - } - } - } - } - } - }, - "/users/{userId}/devboxes": { - "get": { - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", - "description": "Lists Dev Boxes in the Dev Center for a particular user.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBox" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "APIVersions": { - "type": "string", - "description": "DevCenter API versions", - "enum": [ - "2023-04-01", - "2023-09-01-preview" - ], - "x-ms-enum": { - "name": "APIVersions", - "modelAsString": true, - "values": [ - { - "name": "v2023_04_01", - "value": "2023-04-01", - "description": "The 2023-04-01 service API version" - }, - { - "name": "v2023_09_01_preview", - "value": "2023-09-01-preview", - "description": "The 2023-09-01-preview service API version" - } - ] - } - }, - "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." - } - } - }, - "Catalog": { - "type": "object", - "description": "A catalog.", - "properties": { - "name": { - "type": "string", - "description": "Name of the catalog." - } - }, - "required": [ - "name" - ] - }, - "CloudError": { - "type": "object", - "description": "An error response from the service.", - "properties": { - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "Error body" - } - }, - "required": [ - "error" - ] - }, - "CloudErrorBody": { - "type": "object", - "description": "An error response from the service.", - "properties": { - "code": { - "type": "string", - "description": "An identifier for the error. Codes are invariant and are intended to be\nconsumed programmatically." - }, - "message": { - "type": "string", - "description": "A message describing the error, intended to be suitable for display in a user\ninterface." - }, - "target": { - "type": "string", - "description": "The target of the particular error. For example, the name of the property in\nerror." - }, - "details": { - "type": "array", - "description": "A list of additional details about the error.", - "items": { - "$ref": "#/definitions/CloudErrorBody" - }, - "x-ms-identifiers": [] - } - }, - "required": [ - "code", - "message" - ] - }, - "DevBox": { - "type": "object", - "description": "A Dev Box", - "properties": { - "name": { - "type": "string", - "description": "Display name for the Dev Box", - "readOnly": true - }, - "projectName": { - "type": "string", - "description": "Name of the project this Dev Box belongs to", - "readOnly": true - }, - "poolName": { - "type": "string", - "description": "The name of the Dev Box pool this machine belongs to." - }, - "hibernateSupport": { - "$ref": "#/definitions/HibernateSupport", - "description": "Indicates whether hibernate is enabled/disabled or unknown.", - "readOnly": true - }, - "provisioningState": { - "type": "string", - "description": "The current provisioning state of the Dev Box.", - "readOnly": true - }, - "actionState": { - "type": "string", - "description": "The current action state of the Dev Box. This is state is based on previous\naction performed by user.", - "readOnly": true - }, - "powerState": { - "$ref": "#/definitions/PowerState", - "description": "The current power state of the Dev Box.", - "readOnly": true - }, - "uniqueId": { - "type": "string", - "description": "A unique identifier for the Dev Box. This is a GUID-formatted string (e.g.\n00000000-0000-0000-0000-000000000000).", - "readOnly": true - }, - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "Provisioning or action error details. Populated only for error states.", - "readOnly": true - }, - "location": { - "type": "string", - "description": "Azure region where this Dev Box is located. This will be the same region as the\nVirtual Network it is attached to.", - "readOnly": true - }, - "osType": { - "$ref": "#/definitions/OsType", - "description": "The operating system type of this Dev Box.", - "readOnly": true - }, - "user": { - "type": "string", - "description": "The AAD object id of the user this Dev Box is assigned to.", - "readOnly": true - }, - "hardwareProfile": { - "$ref": "#/definitions/HardwareProfile", - "description": "Information about the Dev Box's hardware resources", - "readOnly": true - }, - "storageProfile": { - "$ref": "#/definitions/StorageProfile", - "description": "Storage settings for this Dev Box", - "readOnly": true - }, - "imageReference": { - "$ref": "#/definitions/ImageReference", - "description": "Information about the image used for this Dev Box", - "readOnly": true - }, - "createdTime": { - "type": "string", - "format": "date-time", - "description": "Creation time of this Dev Box", - "readOnly": true - }, - "localAdministrator": { - "$ref": "#/definitions/LocalAdminStatus", - "description": "Indicates whether the owner of the Dev Box is a local administrator." - } - }, - "required": [ - "name", - "poolName" - ] - }, - "DevBoxAction": { - "type": "object", - "description": "An action which will take place on a Dev Box.", - "properties": { - "name": { - "type": "string", - "description": "The name of the action.", - "readOnly": true - }, - "actionType": { - "$ref": "#/definitions/DevBoxActionType", - "description": "The action that will be taken." - }, - "sourceId": { - "type": "string", - "description": "The id of the resource which triggered this action" - }, - "suspendedUntil": { - "type": "string", - "format": "date-time", - "description": "The earliest time that the action could occur (UTC)." - }, - "next": { - "$ref": "#/definitions/DevBoxNextAction", - "description": "Details about the next run of this action." - } - }, - "required": [ - "name", - "actionType", - "sourceId" - ] - }, - "DevBoxActionDelayResult": { - "type": "object", - "description": "The action delay result", - "properties": { - "name": { - "type": "string", - "description": "The name of the action." - }, - "result": { - "$ref": "#/definitions/DevBoxActionDelayResultStatus", - "description": "The result of the delay operation on this action." - }, - "action": { - "$ref": "#/definitions/DevBoxAction", - "description": "The delayed action" - }, - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "Information about the error that occurred. Only populated on error." - } - }, - "required": [ - "name", - "result" - ] - }, - "DevBoxActionDelayResultStatus": { - "type": "string", - "enum": [ - "Succeeded", - "Failed" - ], - "x-ms-enum": { - "name": "DevBoxActionDelayResultStatus", - "modelAsString": true, - "values": [ - { - "name": "Succeeded", - "value": "Succeeded", - "description": "The delay operation succeeded." - }, - { - "name": "Failed", - "value": "Failed", - "description": "The delay operation failed." - } - ] - } - }, - "DevBoxActionType": { - "type": "string", - "enum": [ - "Stop" - ], - "x-ms-enum": { - "name": "DevBoxActionType", - "modelAsString": true, - "values": [ - { - "name": "Stop", - "value": "Stop", - "description": "The action will stop the Dev Box." - } - ] - } - }, - "DevBoxNextAction": { - "type": "object", - "description": "Details about the next run of an action.", - "properties": { - "scheduledTime": { - "type": "string", - "format": "date-time", - "description": "The time the action will be triggered (UTC)." - } - }, - "required": [ - "scheduledTime" - ] - }, - "Environment": { - "type": "object", - "description": "Properties of an environment.", - "properties": { - "parameters": { - "description": "Parameters object for the environment." - }, - "name": { - "type": "string", - "description": "Environment name.", - "readOnly": true - }, - "environmentType": { - "type": "string", - "description": "Environment type." - }, - "user": { - "type": "string", - "description": "The AAD object id of the owner of this Environment.", - "readOnly": true - }, - "provisioningState": { - "type": "string", - "description": "The provisioning state of the environment.", - "readOnly": true - }, - "resourceGroupId": { - "type": "string", - "description": "The identifier of the resource group containing the environment's resources.", - "readOnly": true - }, - "catalogName": { - "type": "string", - "description": "Name of the catalog." - }, - "environmentDefinitionName": { - "type": "string", - "description": "Name of the environment definition." - }, - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "Provisioning error details. Populated only for error states.", - "readOnly": true - } - }, - "required": [ - "environmentType", - "catalogName", - "environmentDefinitionName" - ] - }, - "EnvironmentDefinition": { - "type": "object", - "description": "An environment definition.", - "properties": { - "id": { - "type": "string", - "description": "The ID of the environment definition." - }, - "name": { - "type": "string", - "description": "Name of the environment definition." - }, - "catalogName": { - "type": "string", - "description": "Name of the catalog." - }, - "description": { - "type": "string", - "description": "A short description of the environment definition." - }, - "parameters": { - "type": "array", - "description": "Input parameters passed to an environment.", - "items": { - "$ref": "#/definitions/EnvironmentDefinitionParameter" - } - }, - "parametersSchema": { - "type": "string", - "description": "JSON schema defining the parameters object passed to an environment." - }, - "templatePath": { - "type": "string", - "description": "Path to the Environment Definition entrypoint file." - } - }, - "required": [ - "id", - "name", - "catalogName" - ] - }, - "EnvironmentDefinitionParameter": { - "type": "object", - "description": "Properties of an Environment Definition parameter", - "properties": { - "id": { - "type": "string", - "description": "Unique ID of the parameter" - }, - "name": { - "type": "string", - "description": "Display name of the parameter" - }, - "description": { - "type": "string", - "description": "Description of the parameter" - }, - "default": { - "type": "string", - "description": "Default value of the parameter" - }, - "type": { - "$ref": "#/definitions/ParameterType", - "description": "A string of one of the basic JSON types (number, integer, array, object,\nboolean, string)" - }, - "readOnly": { - "type": "boolean", - "description": "Whether or not this parameter is read-only. If true, default should have a\nvalue." - }, - "required": { - "type": "boolean", - "description": "Whether or not this parameter is required" - }, - "allowed": { - "type": "array", - "description": "An array of allowed values", - "items": { - "type": "string" - } - } - }, - "required": [ - "id", - "type", - "required" - ] - }, - "EnvironmentType": { - "type": "object", - "description": "Properties of an environment type.", - "properties": { - "name": { - "type": "string", - "description": "Name of the environment type" - }, - "deploymentTargetId": { - "type": "string", - "description": "Id of a subscription or management group that the environment type will be\nmapped to. The environment's resources will be deployed into this subscription\nor management group." - }, - "status": { - "$ref": "#/definitions/EnvironmentTypeEnableStatus", - "description": "Indicates whether this environment type is enabled for use in this project." - } - }, - "required": [ - "name", - "deploymentTargetId", - "status" - ] - }, - "EnvironmentTypeEnableStatus": { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "EnvironmentTypeEnableStatus", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "The environment type is enabled for use in the project." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "The environment type is not enabled for use in the project." - } - ] - } - }, - "EnvironmentUpdateProperties": { - "type": "object", - "description": "Properties of an environment. These properties can be updated after the\nresource has been created.", - "properties": { - "parameters": { - "description": "Parameters object for the environment." - } - } - }, - "HardwareProfile": { - "type": "object", - "description": "Hardware specifications for the Dev Box.", - "properties": { - "skuName": { - "type": "string", - "description": "The name of the SKU", - "readOnly": true - }, - "vCPUs": { - "type": "integer", - "format": "int32", - "description": "The number of vCPUs available for the Dev Box.", - "readOnly": true - }, - "memoryGB": { - "type": "integer", - "format": "int32", - "description": "The amount of memory available for the Dev Box.", - "readOnly": true - } - } - }, - "HibernateSupport": { - "type": "string", - "enum": [ - "Enabled", - "Disabled", - "OsUnsupported" - ], - "x-ms-enum": { - "name": "HibernateSupport", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "Hibernate is enabled." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "Hibernate is not enabled." - }, - { - "name": "OsUnsupported", - "value": "OsUnsupported", - "description": "Hibernate is not supported by the operating system." - } - ] - } - }, - "ImageReference": { - "type": "object", - "description": "Specifies information about the image used", - "properties": { - "name": { - "type": "string", - "description": "The name of the image used.", - "readOnly": true - }, - "version": { - "type": "string", - "description": "The version of the image.", - "readOnly": true - }, - "operatingSystem": { - "type": "string", - "description": "The operating system of the image.", - "readOnly": true - }, - "osBuildNumber": { - "type": "string", - "description": "The operating system build number of the image.", - "readOnly": true - }, - "publishedDate": { - "type": "string", - "format": "date-time", - "description": "The datetime that the backing image version was published.", - "readOnly": true - } - } - }, - "LocalAdminStatus": { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "LocalAdminStatus", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "Owners of Dev Boxes in the pool are local administrators on the Dev Boxes." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes." - } - ] - } - }, - "OSDisk": { - "type": "object", - "description": "Settings for the operating system disk.", - "properties": { - "diskSizeGB": { - "type": "integer", - "format": "int32", - "description": "The size of the OS Disk in gigabytes.", - "readOnly": true - } - } - }, - "OperationStatus": { - "type": "object", - "description": "The current status of an async operation", - "properties": { - "id": { - "type": "string", - "description": "Fully qualified ID for the operation status." - }, - "name": { - "type": "string", - "description": "The operation id name" - }, - "status": { - "type": "string", - "description": "Provisioning state of the resource." - }, - "resourceId": { - "type": "string", - "description": "The id of the resource." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the operation" - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the operation" - }, - "percentComplete": { - "type": "number", - "format": "float", - "description": "Percent of the operation that is complete" - }, - "properties": { - "description": "Custom operation properties, populated only for a successful operation." - }, - "error": { - "$ref": "#/definitions/OperationStatusError", - "description": "Operation Error message" - } - }, - "required": [ - "status" - ] - }, - "OperationStatusError": { - "type": "object", - "description": "Operation Error message", - "properties": { - "code": { - "type": "string", - "description": "The error code." - }, - "message": { - "type": "string", - "description": "The error message." - } - } - }, - "OsType": { - "type": "string", - "enum": [ - "Windows" - ], - "x-ms-enum": { - "name": "OsType", - "modelAsString": true, - "values": [ - { - "name": "Windows", - "value": "Windows", - "description": "The Windows operating system." - } - ] - } - }, - "PagedCatalog": { - "type": "object", - "description": "Results of the catalog list operation.", - "properties": { - "value": { - "type": "array", - "description": "The Catalog items on this page", - "items": { - "$ref": "#/definitions/Catalog" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedDevBox": { - "type": "object", - "description": "The Dev Box list result", - "properties": { - "value": { - "type": "array", - "description": "The DevBox items on this page", - "items": { - "$ref": "#/definitions/DevBox" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedDevBoxAction": { - "type": "object", - "description": "The actions list result", - "properties": { - "value": { - "type": "array", - "description": "The DevBoxAction items on this page", - "items": { - "$ref": "#/definitions/DevBoxAction" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedDevBoxActionDelayResult": { - "type": "object", - "description": "The actions list result", - "properties": { - "value": { - "type": "array", - "description": "The DevBoxActionDelayResult items on this page", - "items": { - "$ref": "#/definitions/DevBoxActionDelayResult" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedEnvironment": { - "type": "object", - "description": "Results of the environment list operation.", - "properties": { - "value": { - "type": "array", - "description": "The Environment items on this page", - "items": { - "$ref": "#/definitions/Environment" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedEnvironmentDefinition": { - "type": "object", - "description": "Results of the environment definition list operation.", - "properties": { - "value": { - "type": "array", - "description": "The EnvironmentDefinition items on this page", - "items": { - "$ref": "#/definitions/EnvironmentDefinition" - } - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedEnvironmentType": { - "type": "object", - "description": "Result of the environment type list operation.", - "properties": { - "value": { - "type": "array", - "description": "The EnvironmentType items on this page", - "items": { - "$ref": "#/definitions/EnvironmentType" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedPool": { - "type": "object", - "description": "The Pool list result", - "properties": { - "value": { - "type": "array", - "description": "The Pool items on this page", - "items": { - "$ref": "#/definitions/Pool" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedProject": { - "type": "object", - "description": "Results of the project list operation.", - "properties": { - "value": { - "type": "array", - "description": "The Project items on this page", - "items": { - "$ref": "#/definitions/Project" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedSchedule": { - "type": "object", - "description": "The Schedule list result", - "properties": { - "value": { - "type": "array", - "description": "The Schedule items on this page", - "items": { - "$ref": "#/definitions/Schedule" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "ParameterType": { - "type": "string", - "enum": [ - "array", - "boolean", - "integer", - "number", - "object", - "string" - ], - "x-ms-enum": { - "name": "ParameterType", - "modelAsString": true, - "values": [ - { - "name": "array", - "value": "array", - "description": "The parameter accepts an array of values." - }, - { - "name": "boolean", - "value": "boolean", - "description": "The parameter accepts a boolean value." - }, - { - "name": "integer", - "value": "integer", - "description": "The parameter accepts an integer value." - }, - { - "name": "number", - "value": "number", - "description": "The parameter accepts a number value." - }, - { - "name": "object", - "value": "object", - "description": "The parameter accepts an object value." - }, - { - "name": "string", - "value": "string", - "description": "The parameter accepts a string value." - } - ] - } - }, - "Pool": { - "type": "object", - "description": "A pool of Dev Boxes.", - "properties": { - "name": { - "type": "string", - "description": "Pool name", - "readOnly": true - }, - "location": { - "type": "string", - "description": "Azure region where Dev Boxes in the pool are located" - }, - "osType": { - "$ref": "#/definitions/OsType", - "description": "The operating system type of Dev Boxes in this pool" - }, - "hardwareProfile": { - "$ref": "#/definitions/HardwareProfile", - "description": "Hardware settings for the Dev Boxes created in this pool" - }, - "hibernateSupport": { - "$ref": "#/definitions/HibernateSupport", - "description": "Indicates whether hibernate is enabled/disabled or unknown." - }, - "storageProfile": { - "$ref": "#/definitions/StorageProfile", - "description": "Storage settings for Dev Box created in this pool" - }, - "imageReference": { - "$ref": "#/definitions/ImageReference", - "description": "Image settings for Dev Boxes create in this pool" - }, - "localAdministrator": { - "$ref": "#/definitions/LocalAdminStatus", - "description": "Indicates whether owners of Dev Boxes in this pool are local administrators on\nthe Dev Boxes." - }, - "stopOnDisconnect": { - "$ref": "#/definitions/StopOnDisconnectConfiguration", - "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool." - }, - "healthStatus": { - "$ref": "#/definitions/PoolHealthStatus", - "description": "Overall health status of the Pool. Indicates whether or not the Pool is\navailable to create Dev Boxes." - } - }, - "required": [ - "name", - "location", - "healthStatus" - ] - }, - "PoolHealthStatus": { - "type": "string", - "enum": [ - "Unknown", - "Pending", - "Healthy", - "Warning", - "Unhealthy" - ], - "x-ms-enum": { - "name": "PoolHealthStatus", - "modelAsString": true, - "values": [ - { - "name": "Unknown", - "value": "Unknown", - "description": "The pool health status is not known." - }, - { - "name": "Pending", - "value": "Pending", - "description": "The pool health status waiting for health checks to run." - }, - { - "name": "Healthy", - "value": "Healthy", - "description": "The pool health status is healthy." - }, - { - "name": "Warning", - "value": "Warning", - "description": "The pool health status has one or more warnings." - }, - { - "name": "Unhealthy", - "value": "Unhealthy", - "description": "The pool health status is not healthy." - } - ] - } - }, - "PowerState": { - "type": "string", - "enum": [ - "Unknown", - "Running", - "Deallocated", - "PoweredOff", - "Hibernated" - ], - "x-ms-enum": { - "name": "PowerState", - "modelAsString": true, - "values": [ - { - "name": "Unknown", - "value": "Unknown", - "description": "The Dev Box power state is not known." - }, - { - "name": "Running", - "value": "Running", - "description": "The Dev Box is running." - }, - { - "name": "Deallocated", - "value": "Deallocated", - "description": "The Dev Box is deallocated." - }, - { - "name": "PoweredOff", - "value": "PoweredOff", - "description": "The Dev Box is powered off." - }, - { - "name": "Hibernated", - "value": "Hibernated", - "description": "The Dev Box is hibernated." - } - ] - } - }, - "Project": { - "type": "object", - "description": "Project details.", - "properties": { - "name": { - "type": "string", - "description": "Name of the project", - "readOnly": true - }, - "description": { - "type": "string", - "description": "Description of the project." - }, - "maxDevBoxesPerUser": { - "type": "integer", - "format": "int32", - "description": "When specified, indicates the maximum number of Dev Boxes a single user can\ncreate across all pools in the project." - } - }, - "required": [ - "name" - ] - }, - "RemoteConnection": { - "type": "object", - "description": "Provides remote connection information for a Dev Box.", - "properties": { - "webUrl": { - "type": "string", - "description": "URL to open a browser based RDP session." - }, - "rdpConnectionUrl": { - "type": "string", - "description": "Link to open a Remote Desktop session." - } - } - }, - "Schedule": { - "type": "object", - "description": "A Schedule to execute action.", - "properties": { - "name": { - "type": "string", - "description": "Display name for the Schedule", - "readOnly": true - }, - "type": { - "$ref": "#/definitions/ScheduledType", - "description": "Supported type this scheduled task represents." - }, - "frequency": { - "$ref": "#/definitions/ScheduledFrequency", - "description": "The frequency of this scheduled task." - }, - "time": { - "type": "string", - "description": "The target time to trigger the action. The format is HH:MM." - }, - "timeZone": { - "type": "string", - "description": "The IANA timezone id at which the schedule should execute." - } - }, - "required": [ - "name", - "type", - "frequency", - "time", - "timeZone" - ] - }, - "ScheduledFrequency": { - "type": "string", - "enum": [ - "Daily" - ], - "x-ms-enum": { - "name": "ScheduledFrequency", - "modelAsString": true, - "values": [ - { - "name": "Daily", - "value": "Daily", - "description": "The scheduled task will run every day." - } - ] - } - }, - "ScheduledType": { - "type": "string", - "enum": [ - "StopDevBox" - ], - "x-ms-enum": { - "name": "ScheduledType", - "modelAsString": true, - "values": [ - { - "name": "StopDevBox", - "value": "StopDevBox", - "description": "The scheduled task will stop impacted Dev Boxes." - } - ] - } - }, - "StopOnDisconnectConfiguration": { - "type": "object", - "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", - "properties": { - "status": { - "$ref": "#/definitions/StopOnDisconnectEnableStatus", - "description": "Indicates whether the feature to stop the devbox on disconnect once the grace\nperiod has lapsed is enabled." - }, - "gracePeriodMinutes": { - "type": "integer", - "format": "int32", - "description": "The specified time in minutes to wait before stopping a Dev Box once disconnect\nis detected." - } - }, - "required": [ - "status" - ] - }, - "StopOnDisconnectEnableStatus": { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "StopOnDisconnectEnableStatus", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "Stop on disconnect is enabled on the Dev Box." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "Stop on disconnect is not enabled on the Dev Box." - } - ] - } - }, - "StorageProfile": { - "type": "object", - "description": "Storage settings for the Dev Box's disks", - "properties": { - "osDisk": { - "$ref": "#/definitions/OSDisk", - "description": "Settings for the operating system disk." - } - } - }, - "User": { - "type": "object", - "description": "Project user", - "properties": { - "name": { - "type": "string", - "description": "User name", - "readOnly": true - } - }, - "required": [ - "name" - ] - } - }, - "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" - } - } -} From 79bdacaa49391f9226431115369940941ec813d5 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Tue, 26 Sep 2023 14:19:51 -0700 Subject: [PATCH 014/187] reorganize code --- specification/devcenter/DevCenter/client.tsp | 5 ++- .../devcenter/DevCenter/devbox/main.tsp | 12 ++++++ .../devcenter/DevCenter/devbox/openapi.tsp | 39 ----------------- .../devcenter/DevCenter/devbox/tspconfig.yaml | 3 ++ .../devcenter/DevCenter/devcenter/main.tsp | 12 ++++++ .../devcenter/DevCenter/devcenter/openapi.tsp | 39 ----------------- .../DevCenter/devcenter/tspconfig.yaml | 3 ++ .../devcenter/DevCenter/environments/main.tsp | 12 ++++++ .../DevCenter/environments/openapi.tsp | 39 ----------------- .../DevCenter/environments/tspconfig.yaml | 3 ++ specification/devcenter/DevCenter/main.tsp | 40 +----------------- specification/devcenter/DevCenter/service.tsp | 42 +++++++++++++++++++ .../devcenter/DevCenter/tspconfig.yaml | 29 ++++++------- 13 files changed, 108 insertions(+), 170 deletions(-) create mode 100644 specification/devcenter/DevCenter/devbox/main.tsp delete mode 100644 specification/devcenter/DevCenter/devbox/openapi.tsp create mode 100644 specification/devcenter/DevCenter/devbox/tspconfig.yaml create mode 100644 specification/devcenter/DevCenter/devcenter/main.tsp delete mode 100644 specification/devcenter/DevCenter/devcenter/openapi.tsp create mode 100644 specification/devcenter/DevCenter/devcenter/tspconfig.yaml create mode 100644 specification/devcenter/DevCenter/environments/main.tsp delete mode 100644 specification/devcenter/DevCenter/environments/openapi.tsp create mode 100644 specification/devcenter/DevCenter/environments/tspconfig.yaml create mode 100644 specification/devcenter/DevCenter/service.tsp diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 970c26c0e557..1df9f9118959 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -1,4 +1,7 @@ -import "./main.tsp"; +import "./service.tsp"; +import "./environments/routes.tsp"; +import "./devcenter/routes.tsp"; +import "./devbox/routes.tsp"; import "@azure-tools/typespec-client-generator-core"; using Azure.Core; diff --git a/specification/devcenter/DevCenter/devbox/main.tsp b/specification/devcenter/DevCenter/devbox/main.tsp new file mode 100644 index 000000000000..5ac90e21b363 --- /dev/null +++ b/specification/devcenter/DevCenter/devbox/main.tsp @@ -0,0 +1,12 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "../service.tsp"; +import "./routes.tsp"; + +using Azure.Core; +using TypeSpec.Versioning; +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenter; \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devbox/openapi.tsp b/specification/devcenter/DevCenter/devbox/openapi.tsp deleted file mode 100644 index 7f1bec316379..000000000000 --- a/specification/devcenter/DevCenter/devbox/openapi.tsp +++ /dev/null @@ -1,39 +0,0 @@ -import "@typespec/rest"; -import "@typespec/http"; -import "@azure-tools/typespec-azure-core"; -import "./routes.tsp"; - -using Azure.Core; -using TypeSpec.Versioning; -using TypeSpec.Rest; -using TypeSpec.Http; - -@useAuth( - OAuth2Auth<[ - { - type: OAuth2FlowType.implicit, - authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize", - scopes: ["user_impersonation"], - } - ]> -) -@service({ - title: "DevCenter", -}) -@server( - "{endpoint}", - "DevCenter service", - { - endpoint: string, - } -) -@doc("DevCenter service") -@versioned(APIVersions) -namespace DevCenter; - -@doc("DevCenter API versions") -enum APIVersions { - @doc("The 2023-04-01 service API version") - @useDependency(Versions.v1_0_Preview_2) - v2023_04_01: "2023-04-01", -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devbox/tspconfig.yaml b/specification/devcenter/DevCenter/devbox/tspconfig.yaml new file mode 100644 index 000000000000..8ba6e3eff7c1 --- /dev/null +++ b/specification/devcenter/DevCenter/devbox/tspconfig.yaml @@ -0,0 +1,3 @@ +emit: [ + "@azure-tools/typespec-autorest", +] diff --git a/specification/devcenter/DevCenter/devcenter/main.tsp b/specification/devcenter/DevCenter/devcenter/main.tsp new file mode 100644 index 000000000000..5ac90e21b363 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/main.tsp @@ -0,0 +1,12 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "../service.tsp"; +import "./routes.tsp"; + +using Azure.Core; +using TypeSpec.Versioning; +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenter; \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/openapi.tsp b/specification/devcenter/DevCenter/devcenter/openapi.tsp deleted file mode 100644 index 7f1bec316379..000000000000 --- a/specification/devcenter/DevCenter/devcenter/openapi.tsp +++ /dev/null @@ -1,39 +0,0 @@ -import "@typespec/rest"; -import "@typespec/http"; -import "@azure-tools/typespec-azure-core"; -import "./routes.tsp"; - -using Azure.Core; -using TypeSpec.Versioning; -using TypeSpec.Rest; -using TypeSpec.Http; - -@useAuth( - OAuth2Auth<[ - { - type: OAuth2FlowType.implicit, - authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize", - scopes: ["user_impersonation"], - } - ]> -) -@service({ - title: "DevCenter", -}) -@server( - "{endpoint}", - "DevCenter service", - { - endpoint: string, - } -) -@doc("DevCenter service") -@versioned(APIVersions) -namespace DevCenter; - -@doc("DevCenter API versions") -enum APIVersions { - @doc("The 2023-04-01 service API version") - @useDependency(Versions.v1_0_Preview_2) - v2023_04_01: "2023-04-01", -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/tspconfig.yaml b/specification/devcenter/DevCenter/devcenter/tspconfig.yaml new file mode 100644 index 000000000000..8ba6e3eff7c1 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/tspconfig.yaml @@ -0,0 +1,3 @@ +emit: [ + "@azure-tools/typespec-autorest", +] diff --git a/specification/devcenter/DevCenter/environments/main.tsp b/specification/devcenter/DevCenter/environments/main.tsp new file mode 100644 index 000000000000..5ac90e21b363 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/main.tsp @@ -0,0 +1,12 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "../service.tsp"; +import "./routes.tsp"; + +using Azure.Core; +using TypeSpec.Versioning; +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenter; \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/openapi.tsp b/specification/devcenter/DevCenter/environments/openapi.tsp deleted file mode 100644 index 7f1bec316379..000000000000 --- a/specification/devcenter/DevCenter/environments/openapi.tsp +++ /dev/null @@ -1,39 +0,0 @@ -import "@typespec/rest"; -import "@typespec/http"; -import "@azure-tools/typespec-azure-core"; -import "./routes.tsp"; - -using Azure.Core; -using TypeSpec.Versioning; -using TypeSpec.Rest; -using TypeSpec.Http; - -@useAuth( - OAuth2Auth<[ - { - type: OAuth2FlowType.implicit, - authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize", - scopes: ["user_impersonation"], - } - ]> -) -@service({ - title: "DevCenter", -}) -@server( - "{endpoint}", - "DevCenter service", - { - endpoint: string, - } -) -@doc("DevCenter service") -@versioned(APIVersions) -namespace DevCenter; - -@doc("DevCenter API versions") -enum APIVersions { - @doc("The 2023-04-01 service API version") - @useDependency(Versions.v1_0_Preview_2) - v2023_04_01: "2023-04-01", -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/tspconfig.yaml b/specification/devcenter/DevCenter/environments/tspconfig.yaml new file mode 100644 index 000000000000..8ba6e3eff7c1 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/tspconfig.yaml @@ -0,0 +1,3 @@ +emit: [ + "@azure-tools/typespec-autorest", +] diff --git a/specification/devcenter/DevCenter/main.tsp b/specification/devcenter/DevCenter/main.tsp index 520a3d223e94..0ec6652213b4 100644 --- a/specification/devcenter/DevCenter/main.tsp +++ b/specification/devcenter/DevCenter/main.tsp @@ -1,45 +1,9 @@ import "@typespec/rest"; import "@typespec/http"; import "@azure-tools/typespec-azure-core"; +import "./service.tsp"; import "./environments/routes.tsp"; import "./devcenter/routes.tsp"; import "./devbox/routes.tsp"; -using Azure.Core; -using TypeSpec.Versioning; -using TypeSpec.Rest; -using TypeSpec.Http; - -@useAuth( - OAuth2Auth<[ - { - type: OAuth2FlowType.implicit, - authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize", - scopes: ["user_impersonation"], - } - ]> -) -@service({ - title: "DevCenter", -}) -@server( - "{endpoint}", - "DevCenter service", - { - endpoint: string, - } -) -@doc("DevCenter service") -@versioned(APIVersions) -namespace DevCenter; - -@doc("DevCenter API versions") -enum APIVersions { - @doc("The 2023-04-01 service API version") - @useDependency(Versions.v1_0_Preview_2) - v2023_04_01: "2023-04-01", - - @doc("The 2023-09-01-preview service API version") - @useDependency(Versions.v1_0_Preview_2) - v2023_09_01_preview: "2023-09-01-preview", -} \ No newline at end of file +namespace DevCenter; \ No newline at end of file diff --git a/specification/devcenter/DevCenter/service.tsp b/specification/devcenter/DevCenter/service.tsp new file mode 100644 index 000000000000..d5f766ac467d --- /dev/null +++ b/specification/devcenter/DevCenter/service.tsp @@ -0,0 +1,42 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; + +using Azure.Core; +using TypeSpec.Versioning; +using TypeSpec.Rest; +using TypeSpec.Http; + +@useAuth( + OAuth2Auth<[ + { + type: OAuth2FlowType.implicit, + authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize", + scopes: ["https://devcenter.azure.com/.default"], + } + ]> + ) + @service({ + title: "DevCenter", + }) + @server( + "{endpoint}", + "DevCenter service", + { + endpoint: string, + } + ) + @doc("DevCenter service") + @versioned(APIVersions) + namespace DevCenter; + + @doc("DevCenter API versions") + enum APIVersions { + @doc("The 2023-04-01 service API version") + @useDependency(Versions.v1_0_Preview_2) + v2023_04_01: "2023-04-01", + + @doc("The 2023-09-01-preview service API version") + @useDependency(Versions.v1_0_Preview_2) + v2023_09_01_preview: "2023-09-01-preview", + } \ No newline at end of file diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index d35f171c612f..77bf03d049a9 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -1,14 +1,15 @@ -emit: - - "@azure-tools/typespec-autorest" - # Uncomment this line and add "@azure-tools/typespec-python" to your package.json to generate Python code - # "@azure-tools/typespec-python": - # "basic-setup-py": true - # "package-version": - # "package-name": - # "output-path": - # Uncomment this line and add "@azure-tools/typespec-java" to your package.json to generate Java code - # "@azure-tools/typespec-java": true - # Uncomment this line and add "@azure-tools/typespec-csharp" to your package.json to generate C# code - - "@azure-tools/typespec-csharp" - # Uncomment this line and add "@azure-tools/typespec-ts" to your package.json to generate Typescript code - # "@azure-tools/typespec-ts": true +emit: [ + # "@azure-tools/typespec-apiview", + # "@azure-tools/typespec-autorest", + # "@azure-tools/typespec-csharp" + "@azure-tools/typespec-ts", +] +# linter: +# extends: +# - "@azure-tools/typespec-azure-core/all" +options: + "@azure-tools/typespec-csharp": + namespace : "Azure.Developer.DevCenter" + clear-output-folder : true + # new-project : false + # model-namespace : false From 34de37942f3eb92f3e11f4c2ab9420975a64c26d Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Tue, 26 Sep 2023 14:23:46 -0700 Subject: [PATCH 015/187] add ts to tspconfig.yaml --- specification/devcenter/DevCenter/tspconfig.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index 77bf03d049a9..dd00ad72f7ee 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -13,3 +13,12 @@ options: clear-output-folder : true # new-project : false # model-namespace : false + "@azure-tools/typespec-ts": + title: "{title}" + generateMetadata: true + generateTest: true + "emitter-output-dir": "{output-dir}" + packageDetails: + name: "@azure-rest/developer-devcenter" + description: "Azure Developer DevCenter Client" + version: "1.0.0-beta.1" From 200a430eb9ab485ec35aebf92563748163bc5299 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Tue, 26 Sep 2023 14:26:58 -0700 Subject: [PATCH 016/187] update config --- specification/devcenter/DevCenter/main.tsp | 9 --------- specification/devcenter/DevCenter/tspconfig.yaml | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 specification/devcenter/DevCenter/main.tsp diff --git a/specification/devcenter/DevCenter/main.tsp b/specification/devcenter/DevCenter/main.tsp deleted file mode 100644 index 0ec6652213b4..000000000000 --- a/specification/devcenter/DevCenter/main.tsp +++ /dev/null @@ -1,9 +0,0 @@ -import "@typespec/rest"; -import "@typespec/http"; -import "@azure-tools/typespec-azure-core"; -import "./service.tsp"; -import "./environments/routes.tsp"; -import "./devcenter/routes.tsp"; -import "./devbox/routes.tsp"; - -namespace DevCenter; \ No newline at end of file diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index dd00ad72f7ee..bad9b999231f 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -14,7 +14,7 @@ options: # new-project : false # model-namespace : false "@azure-tools/typespec-ts": - title: "{title}" + title: "add your title here" generateMetadata: true generateTest: true "emitter-output-dir": "{output-dir}" From c29e1dbd7ff9b779dd5d536ccb4dee471d355e8b Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Thu, 28 Sep 2023 10:41:02 -0700 Subject: [PATCH 017/187] update routes for accuracy --- .../devcenter/DevCenter/devbox/routes.tsp | 171 ++++++++++-------- .../devcenter/DevCenter/devcenter/models.tsp | 18 -- .../devcenter/DevCenter/devcenter/routes.tsp | 23 ++- .../DevCenter/environments/routes.tsp | 80 ++++---- .../devcenter/DevCenter/shared/models.tsp | 30 +++ .../devcenter/DevCenter/tspconfig.yaml | 2 +- 6 files changed, 188 insertions(+), 136 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index e32c4e11a828..c3c61a6b6d06 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -12,7 +12,7 @@ interface DevBoxesOperations { @doc("Lists available pools") @route("/projects/{projectName}/pools") @get - ListPools is Azure.Core.Foundations.Operation< + ListPools is DevCenterBaseResponse< { @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query @@ -30,26 +30,25 @@ interface DevBoxesOperations { >; @doc("Gets a pool") - // @route("/projects/{projectName}/pools/{poolName}") - // @get - // GetPool is Azure.Core.Foundations.Operation< - // { - // @doc("The DevCenter Project upon which to execute operations.") - // @path - // projectName: string; - - // @doc("The name of a pool of Dev Boxes.") - // @path - // poolName: string; - // }, - // Pool - // >; - GetPool is StandardResourceOperations.ResourceRead; + @route("/projects/{projectName}/pools/{poolName}") + @get + GetPool is DevCenterBaseResponse< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The name of a pool of Dev Boxes.") + @path + poolName: string; + }, + Pool + >; @doc("Lists available schedules for a pool.") @route("/projects/{projectName}/pools/{poolName}/schedules") @get - ListSchedulesByPool is Azure.Core.Foundations.Operation< + ListSchedulesByPool is DevCenterBaseResponse< { @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query @@ -70,31 +69,50 @@ interface DevBoxesOperations { ScheduleListResult >; + @doc("Lists available schedules for a pool.") + @route("/projects/{projectName}/schedules") + @get + ListSchedulesByProject is DevCenterBaseResponse< + { + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top: int32; + + @doc("An OData filter clause to apply to the operation.") + @query + filter: string; + + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + }, + ScheduleListResult + >; + @doc("Gets a schedule.") - // @route("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") - // @get - // GetScheduleByPool is Azure.Core.Foundations.Operation< - // { - // @doc("The DevCenter Project upon which to execute operations.") - // @path - // projectName: string; - - // @doc("The name of a pool of Dev Boxes.") - // @path - // poolName: string; - - // @doc("The name of a schedule.") - // @path - // scheduleName: string; - // }, - // Schedule - // >; - GetScheduleByPool is StandardResourceOperations.ResourceRead; + @route("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") + @get + GetScheduleByPool is DevCenterBaseResponse< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The name of a pool of Dev Boxes.") + @path + poolName: string; + + @doc("The name of a schedule.") + @path + scheduleName: string; + }, + Schedule + >; @doc("Lists Dev Boxes in the project for a particular user.") @route("/projects/{projectName}/users/{userId}/devboxes") @get - ListDevBoxesByUser is Azure.Core.Foundations.Operation< + ListDevBoxesByUser is DevCenterBaseResponse< { @doc("An OData filter clause to apply to the operation.") @query @@ -119,33 +137,32 @@ authentication context. >; @doc("Gets a Dev Box") -// @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") -// @get -// GetDevBoxByUser is Azure.Core.Foundations.Operation< -// { -// @doc("The DevCenter Project upon which to execute operations.") -// @path -// projectName: string; + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") + @get + GetDevBoxByUser is DevCenterBaseResponse< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; -// @doc(""" -// The AAD object id of the user. If value is 'me', the identity is taken from the -// authentication context. -// """) -// @path -// userId: string; + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; -// @doc("The name of a Dev Box.") -// @path -// devBoxName: string; -// }, -// DevBox -// >; - GetDevBoxByUser is StandardResourceOperations.ResourceRead; + @doc("The name of a Dev Box.") + @path + devBoxName: string; + }, + DevBox + >; @doc("Creates or replaces a Dev Box.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @put - CreateDevBox is Azure.Core.Foundations.Operation< + CreateDevBox is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -166,13 +183,17 @@ authentication context. @body body: DevBox; }, - DevBox + DevBox | { + @statusCode statusCode: 201; + + @body body: DevBox; + } >; @doc("Deletes a Dev Box.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @delete - DeleteDevBox is Azure.Core.Foundations.Operation< + DeleteDevBox is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -189,13 +210,19 @@ authentication context. @path devBoxName: string; }, - OperationStatus | void + { + @statusCode statusCode: 202; + + @body body: OperationStatus; + + @header("Operation-Location") operationLocation: string; + } | void >; @doc("Starts a Dev Box") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start") @post - StartDevBox is Azure.Core.Foundations.Operation< + StartDevBox is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -218,7 +245,7 @@ authentication context. @doc("Stops a Dev Box") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop") @post - StopDevBox is Azure.Core.Foundations.Operation< + StopDevBox is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -245,7 +272,7 @@ authentication context. @doc("Restarts a Dev Box") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart") @post - RestartDevBox is Azure.Core.Foundations.Operation< + RestartDevBox is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -268,7 +295,7 @@ authentication context. @doc("Gets RDP Connection info") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection") @get - GetRemoteConnection is Azure.Core.Foundations.Operation< + GetRemoteConnection is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -291,7 +318,7 @@ authentication context. @doc("Lists actions on a Dev Box.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions") @get - ListActions is Azure.Core.Foundations.Operation< + ListActions is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -314,7 +341,7 @@ authentication context. @doc("Gets an action.") // @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}") // @get -// GetAction is Azure.Core.Foundations.Operation< +// GetAction is DevCenterBaseResponse< // { // @doc("The DevCenter Project upon which to execute operations.") // @path @@ -342,7 +369,7 @@ authentication context. @doc("Skips an occurrence of an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip") @post - SkipAction is Azure.Core.Foundations.Operation< + SkipAction is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -369,7 +396,7 @@ authentication context. @doc("Delays the occurrence of an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay") @post - DelayAction is Azure.Core.Foundations.Operation< + DelayAction is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -400,7 +427,7 @@ authentication context. @doc("Delays all actions.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay") @post - DelayActions is Azure.Core.Foundations.Operation< + DelayActions is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -429,7 +456,7 @@ interface DevBoxesDevCenterOperations { @doc("Lists Dev Boxes that the caller has access to in the DevCenter.") @route("/devboxes") @get - ListAllDevBoxes is Azure.Core.Foundations.Operation< + ListAllDevBoxes is DevCenterBaseResponse< { @doc("An OData filter clause to apply to the operation.") @query @@ -445,7 +472,7 @@ interface DevBoxesDevCenterOperations { @doc("Lists Dev Boxes in the Dev Center for a particular user.") @route("/users/{userId}/devboxes") @get - ListAllDevBoxesByUser is Azure.Core.Foundations.Operation< + ListAllDevBoxesByUser is DevCenterBaseResponse< { @doc("An OData filter clause to apply to the operation.") @query diff --git a/specification/devcenter/DevCenter/devcenter/models.tsp b/specification/devcenter/DevCenter/devcenter/models.tsp index 4c92cb2c1b49..0319834a0c8a 100644 --- a/specification/devcenter/DevCenter/devcenter/models.tsp +++ b/specification/devcenter/DevCenter/devcenter/models.tsp @@ -10,21 +10,3 @@ namespace DevCenter; @doc("Results of the project list operation.") model ProjectListResult is Azure.Core.Page; - -@doc("Project details.") -@resource("projects") -model Project { - @key("projectName") - @visibility("read") - @doc("Name of the project") - name: string; - - @doc("Description of the project.") - description?: string; - - @doc(""" -When specified, indicates the maximum number of Dev Boxes a single user can -create across all pools in the project. -""") - maxDevBoxesPerUser?: int32; -} diff --git a/specification/devcenter/DevCenter/devcenter/routes.tsp b/specification/devcenter/DevCenter/devcenter/routes.tsp index 6d99bbd8a9a4..f3d3fa09f8c4 100644 --- a/specification/devcenter/DevCenter/devcenter/routes.tsp +++ b/specification/devcenter/DevCenter/devcenter/routes.tsp @@ -12,7 +12,7 @@ interface DevCenterOperations { @doc("Lists all projects.") @route("/projects") @get - ListProjects is Azure.Core.Foundations.Operation< + ListProjects is DevCenterBaseResponse< { @doc("An OData filter clause to apply to the operation.") @query @@ -26,15 +26,14 @@ interface DevCenterOperations { >; @doc("Gets a project.") - // @route("/projects/{projectName}") - // @get - // GetProject is Azure.Core.Foundations.Operation< - // { - // @doc("The DevCenter Project upon which to execute operations.") - // @path - // projectName: string; - // }, - // Project - // >; - GetProject is StandardResourceOperations.ResourceRead; + @route("/projects/{projectName}") + @get + GetProject is DevCenterBaseResponse< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + }, + Project + >; } diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index 1d6e273f2e53..54aa4f7458f2 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -2,6 +2,7 @@ import "@azure-tools/typespec-azure-core"; import "@typespec/rest"; import "./models.tsp"; +using Azure.Core; using TypeSpec.Versioning; using TypeSpec.Rest; using TypeSpec.Http; @@ -12,7 +13,7 @@ interface EnvironmentsOperations { @doc("Lists the environments for a project.") @route("/projects/{projectName}/environments") @get - ListEnvironments is Azure.Core.Foundations.Operation< + ListEnvironments is DevCenterBaseResponse< { @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query @@ -28,7 +29,7 @@ interface EnvironmentsOperations { @doc("Lists the environments for a project and user.") @route("/projects/{projectName}/users/{userId}/environments") @get - ListEnvironmentsByUser is Azure.Core.Foundations.Operation< + ListEnvironmentsByUser is DevCenterBaseResponse< { @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query @@ -51,7 +52,7 @@ authentication context. @doc("Gets an environment") @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @get - GetEnvironmentByUser is Azure.Core.Foundations.Operation< + GetEnvironmentByUser is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -74,7 +75,7 @@ authentication context. @doc("Creates or updates an environment.") @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @put - CreateOrReplaceEnvironment is Azure.Core.Foundations.Operation< + CreateOrReplaceEnvironment is Foundations.LongRunningOperation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -95,36 +96,53 @@ authentication context. @body body: Environment; }, - Environment + { + @statusCode + statusCode: 201; + @body body: Environment; + }, + {}, + CloudError >; +// FIXME @doc("Deletes an environment and all its associated resources") @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @delete - DeleteEnvironment is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; + DeleteEnvironment( + ...Foundations.ApiVersionParameter; - @doc(""" + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. """) - @path - userId: string; + @path + userId: string; - @doc("The name of the environment.") - @path - environmentName: string; - }, - OperationStatus | void - >; + @doc("The name of the environment.") + @path + environmentName: string; + ): + { + @statusCode + statusCode: 202; + @body body: OperationStatus; + } & { + @pollingLocation + @header("Operation-Location") + operationLocation: string} | { + @statusCode + statusCode: 204; + } | CloudError; @doc("Lists all of the catalogs available for a project.") @route("/projects/{projectName}/catalogs") @get - ListCatalogsByProject is Azure.Core.Foundations.Operation< + ListCatalogsByProject is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -140,7 +158,7 @@ authentication context. @doc("Gets the specified catalog within the project") @route("/projects/{projectName}/catalogs/{catalogName}") @get - GetCatalog is Azure.Core.Foundations.Operation< + GetCatalog is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -156,7 +174,7 @@ authentication context. @doc("Lists all environment definitions available for a project.") @route("/projects/{projectName}/environmentDefinitions") @get - ListEnvironmentDefinitionsByProject is Azure.Core.Foundations.Operation< + ListEnvironmentDefinitionsByProject is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -172,7 +190,7 @@ authentication context. @doc("Lists all environment definitions available within a catalog.") @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions") @get - ListEnvironmentDefinitionsByCatalog is Azure.Core.Foundations.Operation< + ListEnvironmentDefinitionsByCatalog is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -192,7 +210,7 @@ authentication context. @doc("Get an environment definition from a catalog.") @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}") @get - GetEnvironmentDefinition is Azure.Core.Foundations.Operation< + GetEnvironmentDefinition is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -212,7 +230,7 @@ authentication context. @doc("Lists all environment types configured for a project.") @route("/projects/{projectName}/environmentTypes") @get - ListEnvironmentTypes is Azure.Core.Foundations.Operation< + ListEnvironmentTypes is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -230,7 +248,7 @@ authentication context. @doc("Lists operations on the environment which have occurred within the past 90 days") @route("/projects/{projectName}/users/{userId}/environments/{environmentName}/operations") @get - ListOperations is Azure.Core.Foundations.Operation< + ListOperations is DevCenterBaseResponse< { @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query @@ -262,7 +280,7 @@ authentication context. @doc("Gets an environment action result.") @route("/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}") @get - GetOperation is Azure.Core.Foundations.Operation< + GetOperation is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -290,7 +308,7 @@ authentication context. @doc("Gets the logs for an operation on an environment.") @route("/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}/logs") @get - GetLogsByOperation is Azure.Core.Foundations.Operation< + GetLogsByOperation is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -310,11 +328,7 @@ authentication context. @doc("The id of the operation on an environment.") @path operationId: string; - - @doc("Accept header") - @header - Accept: "text/plain"; }, - void + string >; } diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index 01402d747123..bd4afb944adb 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -1,12 +1,20 @@ import "@typespec/rest"; import "@typespec/http"; import "@azure-tools/typespec-azure-core"; +import "../service.tsp"; +using Azure.Core; using TypeSpec.Rest; using TypeSpec.Http; namespace DevCenter; +op DevCenterBaseResponse< + TParams extends TypeSpec.Reflection.Model, + TResponse, + Traits extends TypeSpec.Reflection.Model = {} +> is Azure.Core.Foundations.Operation; + @doc("An error response from the service.") model CloudErrorBody { @doc(""" @@ -37,6 +45,10 @@ error. model CloudError { @doc("Error body") error: CloudErrorBody; + + @header("x-ms-error-code") + @doc("String error code indicating what went wrong.") + errorCode?: string; } @doc("Operation Error message") @@ -80,3 +92,21 @@ model OperationStatus { @doc("Operation Error message") error?: OperationStatusError; } + +@doc("Project details.") +@resource("projects") +model Project { + @key("projectName") + @visibility("read") + @doc("Name of the project") + name: string; + + @doc("Description of the project.") + description?: string; + + @doc(""" +When specified, indicates the maximum number of Dev Boxes a single user can +create across all pools in the project. +""") + maxDevBoxesPerUser?: int32; +} diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index bad9b999231f..68a3967f3529 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -14,7 +14,7 @@ options: # new-project : false # model-namespace : false "@azure-tools/typespec-ts": - title: "add your title here" + title: "Azure Developer DevCenter" generateMetadata: true generateTest: true "emitter-output-dir": "{output-dir}" From 25912b118430792f88d962c1922ac8659457d1cc Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Thu, 28 Sep 2023 11:49:01 -0700 Subject: [PATCH 018/187] more route fixes --- .../devcenter/DevCenter/devbox/routes.tsp | 84 ++++++++++++------- 1 file changed, 52 insertions(+), 32 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index c3c61a6b6d06..6a2329e20723 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -222,7 +222,7 @@ authentication context. @doc("Starts a Dev Box") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start") @post - StartDevBox is DevCenterBaseResponse< + StartDevBox is Foundations.LongRunningOperation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -239,13 +239,20 @@ authentication context. @path devBoxName: string; }, - OperationStatus + { + @statusCode + statusCode: 202; + @body + body: OperationStatus + }, + {}, + CloudError >; @doc("Stops a Dev Box") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop") @post - StopDevBox is DevCenterBaseResponse< + StopDevBox is Foundations.LongRunningOperation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -266,13 +273,20 @@ authentication context. @query hibernate: boolean; }, - OperationStatus + { + @statusCode + statusCode: 202; + @body + body: OperationStatus + }, + {}, + CloudError >; @doc("Restarts a Dev Box") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart") @post - RestartDevBox is DevCenterBaseResponse< + RestartDevBox is Foundations.LongRunningOperation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -289,7 +303,14 @@ authentication context. @path devBoxName: string; }, - OperationStatus + { + @statusCode + statusCode: 202; + @body + body: OperationStatus + }, + {}, + CloudError >; @doc("Gets RDP Connection info") @@ -339,32 +360,31 @@ authentication context. >; @doc("Gets an action.") -// @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}") -// @get -// GetAction is DevCenterBaseResponse< -// { -// @doc("The DevCenter Project upon which to execute operations.") -// @path -// projectName: string; - -// @doc(""" -// The AAD object id of the user. If value is 'me', the identity is taken from the -// authentication context. -// """) -// @path -// userId: string; - -// @doc("The name of a Dev Box.") -// @path -// devBoxName: string; - -// @doc("The name of an action that will take place on a Dev Box.") -// @path -// actionName: string; -// }, -// DevBoxAction -// >; - GetAction is StandardResourceOperations.ResourceRead; + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}") + @get + GetAction is DevCenterBaseResponse< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc(""" +The AAD object id of the user. If value is 'me', the identity is taken from the +authentication context. +""") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + + @doc("The name of an action that will take place on a Dev Box.") + @path + actionName: string; + }, + DevBoxAction + >; @doc("Skips an occurrence of an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip") From 02a2016c52ead9e5e9a7e1cde24185c5c245a06b Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Thu, 28 Sep 2023 14:15:57 -0700 Subject: [PATCH 019/187] remove preview refs --- specification/devcenter/DevCenter/client.tsp | 6 +- .../DevCenter/environments/models.tsp | 44 --------- .../DevCenter/environments/routes.tsp | 89 ------------------- 3 files changed, 1 insertion(+), 138 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 1df9f9118959..3b55e74ceaca 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -9,8 +9,7 @@ using TypeSpec.Versioning; using DevCenter; using Azure.ClientGenerator.Core; -// @useDependency(APIVersions.v2023_04_01) -@useDependency(APIVersions.v2023_09_01_preview) +@useDependency(APIVersions.v2023_04_01) namespace SDKCustomizations; @client({ @@ -29,9 +28,6 @@ interface EnvironmentClientOperations {//extends DevCenter.EnvironmentsOperation ListEnvironmentDefinitionsByCatalog is DevCenter.EnvironmentsOperations.ListEnvironmentDefinitionsByCatalog; GetEnvironmentDefinition is DevCenter.EnvironmentsOperations.GetEnvironmentDefinition; ListEnvironmentTypes is DevCenter.EnvironmentsOperations.ListEnvironmentTypes; - ListOperations is DevCenter.EnvironmentsOperations.ListOperations; - GetOperation is DevCenter.EnvironmentsOperations.GetOperation; - GetLogsByOperation is DevCenter.EnvironmentsOperations.GetLogsByOperation; } @client({ diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index 3b22a9d27f9c..81d84742035e 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -156,47 +156,3 @@ or management group. @doc("Indicates whether this environment type is enabled for use in this project.") status: EnvironmentTypeEnableStatus; } - -@added(APIVersions.v2023_09_01_preview) -enum EnvironmentOperationStatus { - @doc("The operation has not started.") NotStarted, - @doc("The operation is running.") Running, - @doc("The operation succeeded.") Succeeded, - @doc("The operation was canceled.") Canceled, - @doc("The operation failed.") Failed, -} - -@added(APIVersions.v2023_09_01_preview) -@doc("The action results list result.") -model EnvironmentOperationListResult is Azure.Core.Page; - -@added(APIVersions.v2023_09_01_preview) -@doc("Information about an operation on an environment.") -@discriminator("kind") -model EnvironmentOperation { - @doc("The unique URI for the environment operation.") - uri: string; - - @doc("Unique identifier for the environment operation.") - operationId: string; - - @doc("The operation status.") - status: EnvironmentOperationStatus; - - @doc("The object ID of the actor which initiated the operation.") - createdByObjectId?: string; - - @doc("The time the operation started.") - // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. - startTime?: utcDateTime; - - @doc("The time the operation finished.") - // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. - endTime?: utcDateTime; - - @doc("Parameters object for the environment at the time of the operation.") - environmentParameters?: unknown; - - @doc("Provisioning or operation error details. Populated only for error states.") - error?: CloudErrorBody; -} diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index 54aa4f7458f2..2d56c5a1eaa9 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -242,93 +242,4 @@ authentication context. }, EnvironmentTypeListResult >; - - - @added(APIVersions.v2023_09_01_preview) - @doc("Lists operations on the environment which have occurred within the past 90 days") - @route("/projects/{projectName}/users/{userId}/environments/{environmentName}/operations") - @get - ListOperations is DevCenterBaseResponse< - { - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top: int32; - - @doc("An OData filter clause to apply to the operation.") - @query - filter: string; - - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") - @path - userId: string; - - @doc("The name of the environment.") - @path - environmentName: string; - }, - EnvironmentOperationListResult - >; - - @added(APIVersions.v2023_09_01_preview) - @doc("Gets an environment action result.") - @route("/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}") - @get - GetOperation is DevCenterBaseResponse< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") - @path - userId: string; - - @doc("The name of the environment.") - @path - environmentName: string; - - @doc("The id of the operation on an environment.") - @path - operationId: string; - }, - EnvironmentOperation - >; - - @added(APIVersions.v2023_09_01_preview) - @doc("Gets the logs for an operation on an environment.") - @route("/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}/logs") - @get - GetLogsByOperation is DevCenterBaseResponse< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") - @path - userId: string; - - @doc("The name of the environment.") - @path - environmentName: string; - - @doc("The id of the operation on an environment.") - @path - operationId: string; - }, - string - >; } From d8125b2d122436a3a254e83f73ed6ae727224f45 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Thu, 28 Sep 2023 14:29:23 -0700 Subject: [PATCH 020/187] remove preview version --- specification/devcenter/DevCenter/service.tsp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/specification/devcenter/DevCenter/service.tsp b/specification/devcenter/DevCenter/service.tsp index d5f766ac467d..5d2f9b9e1486 100644 --- a/specification/devcenter/DevCenter/service.tsp +++ b/specification/devcenter/DevCenter/service.tsp @@ -35,8 +35,4 @@ using TypeSpec.Http; @doc("The 2023-04-01 service API version") @useDependency(Versions.v1_0_Preview_2) v2023_04_01: "2023-04-01", - - @doc("The 2023-09-01-preview service API version") - @useDependency(Versions.v1_0_Preview_2) - v2023_09_01_preview: "2023-09-01-preview", } \ No newline at end of file From f6fbdf61fd46a8b81d62d08520b34d69c57f79cd Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Thu, 28 Sep 2023 15:10:01 -0700 Subject: [PATCH 021/187] remove extra op --- .../devcenter/DevCenter/devbox/routes.tsp | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 6a2329e20723..f106857228eb 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -69,26 +69,6 @@ interface DevBoxesOperations { ScheduleListResult >; - @doc("Lists available schedules for a pool.") - @route("/projects/{projectName}/schedules") - @get - ListSchedulesByProject is DevCenterBaseResponse< - { - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top: int32; - - @doc("An OData filter clause to apply to the operation.") - @query - filter: string; - - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - }, - ScheduleListResult - >; - @doc("Gets a schedule.") @route("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") @get From 39bbc3a147fc9084df3c27ab1b450f146bde2b94 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Fri, 29 Sep 2023 14:55:58 -0700 Subject: [PATCH 022/187] make models more accurate --- specification/devcenter/DevCenter/devbox/models.tsp | 4 ++++ specification/devcenter/DevCenter/environments/models.tsp | 5 +++++ specification/devcenter/DevCenter/shared/models.tsp | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index d104815cee6e..138bb0f8e318 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -228,6 +228,10 @@ model DevBox { projectName?: string; @doc("The name of the Dev Box pool this machine belongs to.") + @minLength(3) + @maxLength(63) + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @visibility("read", "create") poolName: string; @doc("Indicates whether hibernate is enabled/disabled or unknown.") diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index 81d84742035e..ee04aef2f144 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -35,6 +35,7 @@ model Environment { name?: string; @doc("Environment type.") + @visibility("read", "create") environmentType: string; @doc("The AAD object id of the owner of this Environment.") @@ -50,9 +51,11 @@ model Environment { resourceGroupId?: string; @doc("Name of the catalog.") + @visibility("read", "create") catalogName: string; @doc("Name of the environment definition.") + @visibility("read", "create") environmentDefinitionName: string; @doc("Provisioning error details. Populated only for error states.") @@ -135,6 +138,8 @@ value. required: boolean; @doc("An array of allowed values") + @minItems(1) + // @uniqueItems // TODO import TypeSpec.JsonSchema allowed?: string[]; } diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index bd4afb944adb..33ee44989fcc 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -83,7 +83,10 @@ model OperationStatus { // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. endTime?: utcDateTime; + // FIXME: check if this is a float or int @doc("Percent of the operation that is complete") + @minValue(0.0) + @maxValue(100.0) percentComplete?: float32; @doc("Custom operation properties, populated only for a successful operation.") @@ -108,5 +111,6 @@ model Project { When specified, indicates the maximum number of Dev Boxes a single user can create across all pools in the project. """) + @minValue(0) maxDevBoxesPerUser?: int32; } From a34e6770dcfe9160dcae927eff59193fa9666ed3 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Fri, 6 Oct 2023 12:03:10 -0700 Subject: [PATCH 023/187] fix client.tsp --- specification/devcenter/DevCenter/client.tsp | 57 ++++++++++++++++++-- 1 file changed, 54 insertions(+), 3 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 3b55e74ceaca..a84e7344e753 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -16,17 +16,28 @@ namespace SDKCustomizations; name: "EnvironmentsClient", service: DevCenter, }) -interface EnvironmentClientOperations {//extends DevCenter.EnvironmentsOperations{ +interface EnvironmentClientOperations { + @convenientAPI(false) ListEnvironments is DevCenter.EnvironmentsOperations.ListEnvironments; + @convenientAPI(false) ListEnvironmentsByUser is DevCenter.EnvironmentsOperations.ListEnvironmentsByUser; + @convenientAPI(false) GetEnvironmentByUser is DevCenter.EnvironmentsOperations.GetEnvironmentByUser; + @convenientAPI(false) CreateOrReplaceEnvironment is DevCenter.EnvironmentsOperations.CreateOrReplaceEnvironment; + @convenientAPI(false) DeleteEnvironment is DevCenter.EnvironmentsOperations.DeleteEnvironment; + @convenientAPI(false) ListCatalogsByProject is DevCenter.EnvironmentsOperations.ListCatalogsByProject; + @convenientAPI(false) GetCatalog is DevCenter.EnvironmentsOperations.GetCatalog; + @convenientAPI(false) ListEnvironmentDefinitionsByProject is DevCenter.EnvironmentsOperations.ListEnvironmentDefinitionsByProject; + @convenientAPI(false) ListEnvironmentDefinitionsByCatalog is DevCenter.EnvironmentsOperations.ListEnvironmentDefinitionsByCatalog; + @convenientAPI(false) GetEnvironmentDefinition is DevCenter.EnvironmentsOperations.GetEnvironmentDefinition; + @convenientAPI(false) ListEnvironmentTypes is DevCenter.EnvironmentsOperations.ListEnvironmentTypes; } @@ -34,8 +45,14 @@ interface EnvironmentClientOperations {//extends DevCenter.EnvironmentsOperation name: "DevCenterClient", service: DevCenter, }) -interface DevCenterClientOperations extends DevCenter.DevCenterOperations{ +interface DevCenterClientOperations { + @convenientAPI(false) + ListProjects is DevCenter.DevCenterOperations.ListProjects; + @convenientAPI(false) + GetProject is DevCenter.DevCenterOperations.GetProject; + @convenientAPI(false) ListAllDevBoxes is DevCenter.DevBoxesDevCenterOperations.ListAllDevBoxes; + @convenientAPI(false) ListAllDevBoxesByUser is DevCenter.DevBoxesDevCenterOperations.ListAllDevBoxesByUser; } @@ -43,5 +60,39 @@ interface DevCenterClientOperations extends DevCenter.DevCenterOperations{ name: "DevBoxesClient", service: DevCenter, }) -interface DevBoxesClientOperations extends DevCenter.DevBoxesOperations{ +interface DevBoxesClientOperations { + @convenientAPI(false) + ListPools is DevCenter.DevBoxesOperations.ListPools; + @convenientAPI(false) + GetPool is DevCenter.DevBoxesOperations.GetPool; + @convenientAPI(false) + ListSchedulesByPool is DevCenter.DevBoxesOperations.ListSchedulesByPool; + @convenientAPI(false) + GetScheduleByPool is DevCenter.DevBoxesOperations.GetScheduleByPool; + @convenientAPI(false) + ListDevBoxesByUser is DevCenter.DevBoxesOperations.ListDevBoxesByUser; + @convenientAPI(false) + GetDevBoxByUser is DevCenter.DevBoxesOperations.GetDevBoxByUser; + @convenientAPI(false) + CreateDevBox is DevCenter.DevBoxesOperations.CreateDevBox; + @convenientAPI(false) + DeleteDevBox is DevCenter.DevBoxesOperations.DeleteDevBox; + @convenientAPI(false) + StartDevBox is DevCenter.DevBoxesOperations.StartDevBox; + @convenientAPI(false) + StopDevBox is DevCenter.DevBoxesOperations.StopDevBox; + @convenientAPI(false) + RestartDevBox is DevCenter.DevBoxesOperations.RestartDevBox; + @convenientAPI(false) + GetRemoteConnection is DevCenter.DevBoxesOperations.GetRemoteConnection; + @convenientAPI(false) + ListActions is DevCenter.DevBoxesOperations.ListActions; + @convenientAPI(false) + GetAction is DevCenter.DevBoxesOperations.GetAction; + @convenientAPI(false) + SkipAction is DevCenter.DevBoxesOperations.SkipAction; + @convenientAPI(false) + DelayAction is DevCenter.DevBoxesOperations.DelayAction; + @convenientAPI(false) + DelayActions is DevCenter.DevBoxesOperations.DelayActions; } From 19452872265a67319e28b8d7006bf3ed5630bd9a Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Fri, 6 Oct 2023 12:03:22 -0700 Subject: [PATCH 024/187] add python to tspconfig.yaml --- specification/devcenter/DevCenter/tspconfig.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index 68a3967f3529..4e4cb87e2290 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -1,8 +1,9 @@ emit: [ # "@azure-tools/typespec-apiview", # "@azure-tools/typespec-autorest", - # "@azure-tools/typespec-csharp" - "@azure-tools/typespec-ts", + "@azure-tools/typespec-csharp", + # "@azure-tools/typespec-ts", + # "@azure-tools/typespec-python", ] # linter: # extends: @@ -13,6 +14,10 @@ options: clear-output-folder : true # new-project : false # model-namespace : false + "@azure-tools/typespec-python": + package-dir: "azure-developer-devcenter" + package-name: "{package-dir}" + models-mode: none "@azure-tools/typespec-ts": title: "Azure Developer DevCenter" generateMetadata: true From 8e1839b0e6c2ba83e2a88932079c8952d0bb35f1 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Fri, 6 Oct 2023 15:45:27 -0700 Subject: [PATCH 025/187] fix lros --- .../devcenter/DevCenter/devbox/routes.tsp | 21 +++++++++++++--- .../DevCenter/environments/routes.tsp | 11 ++++++-- .../devcenter/DevCenter/shared/models.tsp | 10 +++++++- .../devcenter/DevCenter/shared/routes.tsp | 25 +++++++++++++++++++ 4 files changed, 61 insertions(+), 6 deletions(-) create mode 100644 specification/devcenter/DevCenter/shared/routes.tsp diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index f106857228eb..37321c5605e6 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -1,6 +1,7 @@ import "@azure-tools/typespec-azure-core"; import "@typespec/rest"; import "./models.tsp"; +import "../shared/routes.tsp"; using Azure.Core; using TypeSpec.Rest; @@ -140,6 +141,7 @@ authentication context. >; @doc("Creates or replaces a Dev Box.") + @pollingOperation(SharedOperations.GetProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @put CreateDevBox is DevCenterBaseResponse< @@ -166,11 +168,19 @@ authentication context. DevBox | { @statusCode statusCode: 201; + @header("Location") + location: string; + + @pollingLocation + @header("Operation-Location") + operationLocation: string; + @body body: DevBox; } >; @doc("Deletes a Dev Box.") + @pollingOperation(SharedOperations.GetProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @delete DeleteDevBox is DevCenterBaseResponse< @@ -193,10 +203,15 @@ authentication context. { @statusCode statusCode: 202; - @body body: OperationStatus; + @header("Location") + location: string; - @header("Operation-Location") operationLocation: string; - } | void + @pollingLocation + @header("Operation-Location") + operationLocation: string; + + @body body: OperationStatus; + } | { @statusCode statusCode: 204 } >; @doc("Starts a Dev Box") diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index 2d56c5a1eaa9..c8c52594f7ed 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -1,6 +1,7 @@ import "@azure-tools/typespec-azure-core"; import "@typespec/rest"; import "./models.tsp"; +import "../shared/routes.tsp"; using Azure.Core; using TypeSpec.Versioning; @@ -107,6 +108,7 @@ authentication context. // FIXME @doc("Deletes an environment and all its associated resources") + @pollingOperation(SharedOperations.GetProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @delete DeleteEnvironment( @@ -130,11 +132,16 @@ authentication context. { @statusCode statusCode: 202; + @body body: OperationStatus; - } & { + + @header("Location") + location: string; + @pollingLocation @header("Operation-Location") - operationLocation: string} | { + operationLocation: string; + } | { @statusCode statusCode: 204; } | CloudError; diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index 33ee44989fcc..7b0b40acc658 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -60,6 +60,14 @@ model OperationStatusError { message?: string; } +@lroStatus +enum OperationStatusValue { + Running, + @lroSucceeded + Completed, + Canceled, + Failed, +} @doc("The current status of an async operation") model OperationStatus { @@ -70,7 +78,7 @@ model OperationStatus { name?: string; @doc("Provisioning state of the resource.") - status: string; + status: OperationStatusValue; @doc("The id of the resource.") resourceId?: string; diff --git a/specification/devcenter/DevCenter/shared/routes.tsp b/specification/devcenter/DevCenter/shared/routes.tsp new file mode 100644 index 000000000000..2be85b9886ca --- /dev/null +++ b/specification/devcenter/DevCenter/shared/routes.tsp @@ -0,0 +1,25 @@ +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenter; + +interface SharedOperations { + @doc("Get the status of an operation.") + @route("/projects/{projectName}/operationstatuses/{operationId}") + @get + GetProjectOperationStatus is DevCenterBaseResponse< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("Operation Id") + @path + operationId: string; + }, + OperationStatus + >; +} \ No newline at end of file From f02b1b3e0ca6f8274b48453f7d571656e7132ec5 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Fri, 6 Oct 2023 16:32:43 -0700 Subject: [PATCH 026/187] create dev box fix --- specification/devcenter/DevCenter/devbox/routes.tsp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 37321c5605e6..9196453dbf06 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -168,14 +168,15 @@ authentication context. DevBox | { @statusCode statusCode: 201; + @finalLocation @header("Location") - location: string; + location: ResourceLocation; @pollingLocation @header("Operation-Location") operationLocation: string; - @body body: DevBox; + @body body?: DevBox; } >; From f3461125ad0edbfa98159f3f0d6ca6eb75b92d6e Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Fri, 6 Oct 2023 17:23:41 -0700 Subject: [PATCH 027/187] add final operation for createdevbox --- specification/devcenter/DevCenter/devbox/routes.tsp | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 9196453dbf06..360fd4070570 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -141,6 +141,7 @@ authentication context. >; @doc("Creates or replaces a Dev Box.") + @finalOperation(DevBoxesOperations.GetDevBoxByUser) @pollingOperation(SharedOperations.GetProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @put From 4fe0473c85a61fe648d75fbe730d948cf5186ad5 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Tue, 10 Oct 2023 19:08:08 -0700 Subject: [PATCH 028/187] update tspconfig.yaml --- specification/devcenter/DevCenter/tspconfig.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index 4e4cb87e2290..adabc07d2d86 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -1,13 +1,14 @@ emit: [ # "@azure-tools/typespec-apiview", - # "@azure-tools/typespec-autorest", + "@azure-tools/typespec-autorest", "@azure-tools/typespec-csharp", - # "@azure-tools/typespec-ts", - # "@azure-tools/typespec-python", + "@azure-tools/typespec-java", + "@azure-tools/typespec-python", + "@azure-tools/typespec-ts", ] -# linter: -# extends: -# - "@azure-tools/typespec-azure-core/all" +linter: + extends: + - "@azure-tools/typespec-azure-core/all" options: "@azure-tools/typespec-csharp": namespace : "Azure.Developer.DevCenter" @@ -26,4 +27,4 @@ options: packageDetails: name: "@azure-rest/developer-devcenter" description: "Azure Developer DevCenter Client" - version: "1.0.0-beta.1" + version: "1.0.0" From 564d655c9a4ffcad882c44ca18977deb3d00091d Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 12 Oct 2023 11:42:27 -0700 Subject: [PATCH 029/187] Update EnvironmentsClient to DeploymentEnvironmentsClient --- specification/devcenter/DevCenter/client.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index a84e7344e753..6d875021abbb 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -13,7 +13,7 @@ using Azure.ClientGenerator.Core; namespace SDKCustomizations; @client({ - name: "EnvironmentsClient", + name: "DeploymentEnvironmentsClient", service: DevCenter, }) interface EnvironmentClientOperations { From 45f273756b4ef34a96768dd59d13a643ad86b5f1 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 12 Oct 2023 12:37:42 -0700 Subject: [PATCH 030/187] Update client order --- specification/devcenter/DevCenter/client.tsp | 58 ++++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 6d875021abbb..7b67338f46bc 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -12,35 +12,6 @@ using Azure.ClientGenerator.Core; @useDependency(APIVersions.v2023_04_01) namespace SDKCustomizations; -@client({ - name: "DeploymentEnvironmentsClient", - service: DevCenter, -}) -interface EnvironmentClientOperations { - @convenientAPI(false) - ListEnvironments is DevCenter.EnvironmentsOperations.ListEnvironments; - @convenientAPI(false) - ListEnvironmentsByUser is DevCenter.EnvironmentsOperations.ListEnvironmentsByUser; - @convenientAPI(false) - GetEnvironmentByUser is DevCenter.EnvironmentsOperations.GetEnvironmentByUser; - @convenientAPI(false) - CreateOrReplaceEnvironment is DevCenter.EnvironmentsOperations.CreateOrReplaceEnvironment; - @convenientAPI(false) - DeleteEnvironment is DevCenter.EnvironmentsOperations.DeleteEnvironment; - @convenientAPI(false) - ListCatalogsByProject is DevCenter.EnvironmentsOperations.ListCatalogsByProject; - @convenientAPI(false) - GetCatalog is DevCenter.EnvironmentsOperations.GetCatalog; - @convenientAPI(false) - ListEnvironmentDefinitionsByProject is DevCenter.EnvironmentsOperations.ListEnvironmentDefinitionsByProject; - @convenientAPI(false) - ListEnvironmentDefinitionsByCatalog is DevCenter.EnvironmentsOperations.ListEnvironmentDefinitionsByCatalog; - @convenientAPI(false) - GetEnvironmentDefinition is DevCenter.EnvironmentsOperations.GetEnvironmentDefinition; - @convenientAPI(false) - ListEnvironmentTypes is DevCenter.EnvironmentsOperations.ListEnvironmentTypes; -} - @client({ name: "DevCenterClient", service: DevCenter, @@ -96,3 +67,32 @@ interface DevBoxesClientOperations { @convenientAPI(false) DelayActions is DevCenter.DevBoxesOperations.DelayActions; } + +@client({ + name: "DeploymentEnvironmentsClient", + service: DevCenter, +}) +interface EnvironmentClientOperations { + @convenientAPI(false) + ListEnvironments is DevCenter.EnvironmentsOperations.ListEnvironments; + @convenientAPI(false) + ListEnvironmentsByUser is DevCenter.EnvironmentsOperations.ListEnvironmentsByUser; + @convenientAPI(false) + GetEnvironmentByUser is DevCenter.EnvironmentsOperations.GetEnvironmentByUser; + @convenientAPI(false) + CreateOrReplaceEnvironment is DevCenter.EnvironmentsOperations.CreateOrReplaceEnvironment; + @convenientAPI(false) + DeleteEnvironment is DevCenter.EnvironmentsOperations.DeleteEnvironment; + @convenientAPI(false) + ListCatalogsByProject is DevCenter.EnvironmentsOperations.ListCatalogsByProject; + @convenientAPI(false) + GetCatalog is DevCenter.EnvironmentsOperations.GetCatalog; + @convenientAPI(false) + ListEnvironmentDefinitionsByProject is DevCenter.EnvironmentsOperations.ListEnvironmentDefinitionsByProject; + @convenientAPI(false) + ListEnvironmentDefinitionsByCatalog is DevCenter.EnvironmentsOperations.ListEnvironmentDefinitionsByCatalog; + @convenientAPI(false) + GetEnvironmentDefinition is DevCenter.EnvironmentsOperations.GetEnvironmentDefinition; + @convenientAPI(false) + ListEnvironmentTypes is DevCenter.EnvironmentsOperations.ListEnvironmentTypes; +} From 00377b9a3b34c315538d4bd5e84cdb5ccedf7d1f Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 12 Oct 2023 13:41:31 -0700 Subject: [PATCH 031/187] Update userId doc --- .../devcenter/DevCenter/devbox/routes.tsp | 70 ++++--------------- .../DevCenter/environments/routes.tsp | 20 ++---- 2 files changed, 18 insertions(+), 72 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 360fd4070570..43a15589d168 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -107,10 +107,7 @@ interface DevBoxesOperations { @path projectName: string; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; }, @@ -126,10 +123,7 @@ authentication context. @path projectName: string; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; @@ -151,10 +145,7 @@ authentication context. @path projectName: string; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; @@ -191,10 +182,7 @@ authentication context. @path projectName: string; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; @@ -225,10 +213,7 @@ authentication context. @path projectName: string; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; @@ -255,10 +240,7 @@ authentication context. @path projectName: string; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; @@ -289,10 +271,7 @@ authentication context. @path projectName: string; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; @@ -319,10 +298,7 @@ authentication context. @path projectName: string; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; @@ -342,10 +318,7 @@ authentication context. @path projectName: string; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; @@ -365,10 +338,7 @@ authentication context. @path projectName: string; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; @@ -392,10 +362,7 @@ authentication context. @path projectName: string; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; @@ -419,10 +386,7 @@ authentication context. @path projectName: string; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; @@ -450,10 +414,7 @@ authentication context. @path projectName: string; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; @@ -499,10 +460,7 @@ interface DevBoxesDevCenterOperations { @query top: int32; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; }, diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index c8c52594f7ed..2ba64e636d4c 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -40,10 +40,7 @@ interface EnvironmentsOperations { @path projectName: string; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; }, @@ -59,10 +56,7 @@ authentication context. @path projectName: string; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; @@ -82,10 +76,7 @@ authentication context. @path projectName: string; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; @@ -118,10 +109,7 @@ authentication context. @path projectName: string; - @doc(""" -The AAD object id of the user. If value is 'me', the identity is taken from the -authentication context. -""") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; From d426e5f43e92264429473a3ad288093cceb2165e Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 12 Oct 2023 14:20:54 -0700 Subject: [PATCH 032/187] Update from GetEnvironmentByUser to GetEnvironment --- specification/devcenter/DevCenter/client.tsp | 2 +- specification/devcenter/DevCenter/environments/routes.tsp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 7b67338f46bc..665a3709b7fc 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -78,7 +78,7 @@ interface EnvironmentClientOperations { @convenientAPI(false) ListEnvironmentsByUser is DevCenter.EnvironmentsOperations.ListEnvironmentsByUser; @convenientAPI(false) - GetEnvironmentByUser is DevCenter.EnvironmentsOperations.GetEnvironmentByUser; + GetEnvironment is DevCenter.EnvironmentsOperations.GetEnvironment; @convenientAPI(false) CreateOrReplaceEnvironment is DevCenter.EnvironmentsOperations.CreateOrReplaceEnvironment; @convenientAPI(false) diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index 2ba64e636d4c..1ff04b828235 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -50,7 +50,7 @@ interface EnvironmentsOperations { @doc("Gets an environment") @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @get - GetEnvironmentByUser is DevCenterBaseResponse< + GetEnvironment is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path From 75a584dec153ab89bcc16dbdfd680b3d3615e68f Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 12 Oct 2023 14:50:02 -0700 Subject: [PATCH 033/187] Change CreateOrReplaceEnvironment to CreateOrUpdateEnvironment --- specification/devcenter/DevCenter/client.tsp | 2 +- specification/devcenter/DevCenter/environments/routes.tsp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 665a3709b7fc..13cbdd4e814c 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -80,7 +80,7 @@ interface EnvironmentClientOperations { @convenientAPI(false) GetEnvironment is DevCenter.EnvironmentsOperations.GetEnvironment; @convenientAPI(false) - CreateOrReplaceEnvironment is DevCenter.EnvironmentsOperations.CreateOrReplaceEnvironment; + CreateOrUpdateEnvironment is DevCenter.EnvironmentsOperations.CreateOrUpdateEnvironment; @convenientAPI(false) DeleteEnvironment is DevCenter.EnvironmentsOperations.DeleteEnvironment; @convenientAPI(false) diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index 1ff04b828235..f857b78f078e 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -70,7 +70,7 @@ interface EnvironmentsOperations { @doc("Creates or updates an environment.") @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @put - CreateOrReplaceEnvironment is Foundations.LongRunningOperation< + CreateOrUpdateEnvironment is Foundations.LongRunningOperation< { @doc("The DevCenter Project upon which to execute operations.") @path From 68d595e0b7d2d8355585f3de9f19481b12cb084c Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 12 Oct 2023 15:24:03 -0700 Subject: [PATCH 034/187] Update ListEnvironments --- specification/devcenter/DevCenter/client.tsp | 4 ++-- specification/devcenter/DevCenter/environments/routes.tsp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 13cbdd4e814c..001e1e28a6dc 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -74,9 +74,9 @@ interface DevBoxesClientOperations { }) interface EnvironmentClientOperations { @convenientAPI(false) - ListEnvironments is DevCenter.EnvironmentsOperations.ListEnvironments; + ListAllEnvironments is DevCenter.EnvironmentsOperations.ListAllEnvironments; @convenientAPI(false) - ListEnvironmentsByUser is DevCenter.EnvironmentsOperations.ListEnvironmentsByUser; + ListEnvironments is DevCenter.EnvironmentsOperations.ListEnvironments; @convenientAPI(false) GetEnvironment is DevCenter.EnvironmentsOperations.GetEnvironment; @convenientAPI(false) diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index f857b78f078e..082bcbdbd989 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -14,7 +14,7 @@ interface EnvironmentsOperations { @doc("Lists the environments for a project.") @route("/projects/{projectName}/environments") @get - ListEnvironments is DevCenterBaseResponse< + ListAllEnvironments is DevCenterBaseResponse< { @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query @@ -30,7 +30,7 @@ interface EnvironmentsOperations { @doc("Lists the environments for a project and user.") @route("/projects/{projectName}/users/{userId}/environments") @get - ListEnvironmentsByUser is DevCenterBaseResponse< + ListEnvironments is DevCenterBaseResponse< { @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query From 0df4d5cf8879fbd61790c9cecee20b42c707dcc0 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 12 Oct 2023 15:58:17 -0700 Subject: [PATCH 035/187] Remove ByProject --- specification/devcenter/DevCenter/client.tsp | 4 ++-- specification/devcenter/DevCenter/environments/routes.tsp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 001e1e28a6dc..d50a898a13e9 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -84,11 +84,11 @@ interface EnvironmentClientOperations { @convenientAPI(false) DeleteEnvironment is DevCenter.EnvironmentsOperations.DeleteEnvironment; @convenientAPI(false) - ListCatalogsByProject is DevCenter.EnvironmentsOperations.ListCatalogsByProject; + ListCatalogs is DevCenter.EnvironmentsOperations.ListCatalogs; @convenientAPI(false) GetCatalog is DevCenter.EnvironmentsOperations.GetCatalog; @convenientAPI(false) - ListEnvironmentDefinitionsByProject is DevCenter.EnvironmentsOperations.ListEnvironmentDefinitionsByProject; + ListEnvironmentDefinitions is DevCenter.EnvironmentsOperations.ListEnvironmentDefinitions; @convenientAPI(false) ListEnvironmentDefinitionsByCatalog is DevCenter.EnvironmentsOperations.ListEnvironmentDefinitionsByCatalog; @convenientAPI(false) diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index 082bcbdbd989..804558e158eb 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -137,7 +137,7 @@ interface EnvironmentsOperations { @doc("Lists all of the catalogs available for a project.") @route("/projects/{projectName}/catalogs") @get - ListCatalogsByProject is DevCenterBaseResponse< + ListCatalogs is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -169,7 +169,7 @@ interface EnvironmentsOperations { @doc("Lists all environment definitions available for a project.") @route("/projects/{projectName}/environmentDefinitions") @get - ListEnvironmentDefinitionsByProject is DevCenterBaseResponse< + ListEnvironmentDefinitions is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path From acd853d3e4ba92fb86d7fc7387167d73f04a3b0f Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 12 Oct 2023 16:30:50 -0700 Subject: [PATCH 036/187] Add Operation Status --- specification/devcenter/DevCenter/environments/routes.tsp | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index 804558e158eb..bd0cf55930aa 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -68,6 +68,7 @@ interface EnvironmentsOperations { >; @doc("Creates or updates an environment.") + @pollingOperation(SharedOperations.GetProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @put CreateOrUpdateEnvironment is Foundations.LongRunningOperation< From 0c0d7f0345dedf2f0712026bcb3eabb72326ed41 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 12 Oct 2023 17:52:10 -0700 Subject: [PATCH 037/187] Rename Dev Boxes Client methods --- specification/devcenter/DevCenter/client.tsp | 10 +++++----- specification/devcenter/DevCenter/devbox/routes.tsp | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index d50a898a13e9..5dfbcbbb095c 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -37,13 +37,13 @@ interface DevBoxesClientOperations { @convenientAPI(false) GetPool is DevCenter.DevBoxesOperations.GetPool; @convenientAPI(false) - ListSchedulesByPool is DevCenter.DevBoxesOperations.ListSchedulesByPool; + ListSchedules is DevCenter.DevBoxesOperations.ListSchedules; @convenientAPI(false) - GetScheduleByPool is DevCenter.DevBoxesOperations.GetScheduleByPool; + GetSchedule is DevCenter.DevBoxesOperations.GetSchedule; @convenientAPI(false) - ListDevBoxesByUser is DevCenter.DevBoxesOperations.ListDevBoxesByUser; + ListAllDevBoxesByUser is DevCenter.DevBoxesOperations.ListAllDevBoxesByUser; @convenientAPI(false) - GetDevBoxByUser is DevCenter.DevBoxesOperations.GetDevBoxByUser; + GetDevBox is DevCenter.DevBoxesOperations.GetDevBox; @convenientAPI(false) CreateDevBox is DevCenter.DevBoxesOperations.CreateDevBox; @convenientAPI(false) @@ -65,7 +65,7 @@ interface DevBoxesClientOperations { @convenientAPI(false) DelayAction is DevCenter.DevBoxesOperations.DelayAction; @convenientAPI(false) - DelayActions is DevCenter.DevBoxesOperations.DelayActions; + DelayAllActions is DevCenter.DevBoxesOperations.DelayAllActions; } @client({ diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 43a15589d168..b272204f9855 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -49,7 +49,7 @@ interface DevBoxesOperations { @doc("Lists available schedules for a pool.") @route("/projects/{projectName}/pools/{poolName}/schedules") @get - ListSchedulesByPool is DevCenterBaseResponse< + ListSchedules is DevCenterBaseResponse< { @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query @@ -73,7 +73,7 @@ interface DevBoxesOperations { @doc("Gets a schedule.") @route("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") @get - GetScheduleByPool is DevCenterBaseResponse< + GetSchedule is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -93,7 +93,7 @@ interface DevBoxesOperations { @doc("Lists Dev Boxes in the project for a particular user.") @route("/projects/{projectName}/users/{userId}/devboxes") @get - ListDevBoxesByUser is DevCenterBaseResponse< + ListAllDevBoxesByUser is DevCenterBaseResponse< { @doc("An OData filter clause to apply to the operation.") @query @@ -117,7 +117,7 @@ interface DevBoxesOperations { @doc("Gets a Dev Box") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @get - GetDevBoxByUser is DevCenterBaseResponse< + GetDevBox is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -135,7 +135,7 @@ interface DevBoxesOperations { >; @doc("Creates or replaces a Dev Box.") - @finalOperation(DevBoxesOperations.GetDevBoxByUser) + @finalOperation(DevBoxesOperations.GetDevBox) @pollingOperation(SharedOperations.GetProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @put @@ -408,7 +408,7 @@ interface DevBoxesOperations { @doc("Delays all actions.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay") @post - DelayActions is DevCenterBaseResponse< + DelayAllActions is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path From 95cfc0afc5dc9af102942fa7c77b22022f169acc Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 12 Oct 2023 18:03:27 -0700 Subject: [PATCH 038/187] Add @pollingOperation for LRO --- specification/devcenter/DevCenter/devbox/routes.tsp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index b272204f9855..02d555c751bf 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -205,6 +205,7 @@ interface DevBoxesOperations { >; @doc("Starts a Dev Box") + @pollingOperation(SharedOperations.GetProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start") @post StartDevBox is Foundations.LongRunningOperation< @@ -232,6 +233,7 @@ interface DevBoxesOperations { >; @doc("Stops a Dev Box") + @pollingOperation(SharedOperations.GetProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop") @post StopDevBox is Foundations.LongRunningOperation< @@ -263,6 +265,7 @@ interface DevBoxesOperations { >; @doc("Restarts a Dev Box") + @pollingOperation(SharedOperations.GetProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart") @post RestartDevBox is Foundations.LongRunningOperation< From 6646098fe1232372e9fa905cbbbec066bc6b634c Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 12 Oct 2023 18:12:34 -0700 Subject: [PATCH 039/187] change order --- specification/devcenter/DevCenter/devbox/routes.tsp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 02d555c751bf..0da7270f5e4a 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -15,17 +15,17 @@ interface DevBoxesOperations { @get ListPools is DevCenterBaseResponse< { - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top: int32; + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; @doc("An OData filter clause to apply to the operation.") @query filter: string; - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top: int32; }, PoolListResult >; From 3c16afe510b4cf6e63a7bb6761051d518324976c Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 13 Oct 2023 09:56:42 -0700 Subject: [PATCH 040/187] optinal properties for filter and maxCount --- specification/devcenter/DevCenter/devbox/routes.tsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 0da7270f5e4a..59d737991e09 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -21,11 +21,11 @@ interface DevBoxesOperations { @doc("An OData filter clause to apply to the operation.") @query - filter: string; + filter?: string; @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query - top: int32; + top?: int32; }, PoolListResult >; From 62277bfe4fb788c036eacf8a90b74168c24ce4a5 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 13 Oct 2023 13:27:50 -0700 Subject: [PATCH 041/187] Update GetSchedules parameter order and make then nullable --- .../devcenter/DevCenter/devbox/routes.tsp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 59d737991e09..addfe26ab31c 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -51,14 +51,6 @@ interface DevBoxesOperations { @get ListSchedules is DevCenterBaseResponse< { - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top: int32; - - @doc("An OData filter clause to apply to the operation.") - @query - filter: string; - @doc("The DevCenter Project upon which to execute operations.") @path projectName: string; @@ -66,6 +58,14 @@ interface DevBoxesOperations { @doc("The name of a pool of Dev Boxes.") @path poolName: string; + + @doc("An OData filter clause to apply to the operation.") + @query + filter?: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; }, ScheduleListResult >; From 4d7987be4cb6319ee20c7f166e851062d00154e1 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 13 Oct 2023 13:35:08 -0700 Subject: [PATCH 042/187] Make hibernate nullable --- specification/devcenter/DevCenter/devbox/routes.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index addfe26ab31c..f2352b0638fd 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -252,7 +252,7 @@ interface DevBoxesOperations { @doc("Optional parameter to hibernate the dev box.") @query - hibernate: boolean; + hibernate?: boolean; }, { @statusCode From 2de84cbabf4aec5ac11a15d0e49c3e9718695b64 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 13 Oct 2023 14:04:12 -0700 Subject: [PATCH 043/187] Add and update list devboxes operations --- specification/devcenter/DevCenter/client.tsp | 4 ++ .../devcenter/DevCenter/devbox/routes.tsp | 45 +++++++++++++++++-- 2 files changed, 45 insertions(+), 4 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 5dfbcbbb095c..db43ba9f70db 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -41,8 +41,12 @@ interface DevBoxesClientOperations { @convenientAPI(false) GetSchedule is DevCenter.DevBoxesOperations.GetSchedule; @convenientAPI(false) + ListAllDevBoxes is DevCenter.DevBoxesOperations.ListAllDevBoxes; + @convenientAPI(false) ListAllDevBoxesByUser is DevCenter.DevBoxesOperations.ListAllDevBoxesByUser; @convenientAPI(false) + ListDevBoxes is DevCenter.DevBoxesOperations.ListDevBoxes; + @convenientAPI(false) GetDevBox is DevCenter.DevBoxesOperations.GetDevBox; @convenientAPI(false) CreateDevBox is DevCenter.DevBoxesOperations.CreateDevBox; diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index f2352b0638fd..4765c6229c9e 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -90,19 +90,48 @@ interface DevBoxesOperations { Schedule >; - @doc("Lists Dev Boxes in the project for a particular user.") - @route("/projects/{projectName}/users/{userId}/devboxes") + @doc("Lists Dev Boxes that the caller has access to in the DevCenter.") + @route("/devboxes") + @get + ListAllDevBoxes is DevCenterBaseResponse< + { + @doc("An OData filter clause to apply to the operation.") + @query + filter?: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, + DevBoxListResult + >; + + + @doc("Lists Dev Boxes in the Dev Center for a particular user.") + @route("/users/{userId}/devboxes") @get ListAllDevBoxesByUser is DevCenterBaseResponse< { + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @path + userId: string; + @doc("An OData filter clause to apply to the operation.") @query - filter: string; + filter?: string; @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query - top: int32; + top?: int32; + }, + DevBoxListResult + >; + @doc("Lists Dev Boxes in the project for a particular user.") + @route("/projects/{projectName}/users/{userId}/devboxes") + @get + ListDevBoxes is DevCenterBaseResponse< + { @doc("The DevCenter Project upon which to execute operations.") @path projectName: string; @@ -110,6 +139,14 @@ interface DevBoxesOperations { @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path userId: string; + + @doc("An OData filter clause to apply to the operation.") + @query + filter?: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; }, DevBoxListResult >; From 9c13b419f263a6681e1e8d67759e96b869c0dd1b Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 13 Oct 2023 14:25:47 -0700 Subject: [PATCH 044/187] fix conflict. move get all devboxes from devcenter to devbox client --- specification/devcenter/DevCenter/client.tsp | 8 +--- .../devcenter/DevCenter/devbox/routes.tsp | 37 ------------------- 2 files changed, 2 insertions(+), 43 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index db43ba9f70db..ea63c81f68d4 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -21,10 +21,6 @@ interface DevCenterClientOperations { ListProjects is DevCenter.DevCenterOperations.ListProjects; @convenientAPI(false) GetProject is DevCenter.DevCenterOperations.GetProject; - @convenientAPI(false) - ListAllDevBoxes is DevCenter.DevBoxesDevCenterOperations.ListAllDevBoxes; - @convenientAPI(false) - ListAllDevBoxesByUser is DevCenter.DevBoxesDevCenterOperations.ListAllDevBoxesByUser; } @client({ @@ -41,9 +37,9 @@ interface DevBoxesClientOperations { @convenientAPI(false) GetSchedule is DevCenter.DevBoxesOperations.GetSchedule; @convenientAPI(false) - ListAllDevBoxes is DevCenter.DevBoxesOperations.ListAllDevBoxes; + ListAllDevBoxes is DevCenter.DevBoxesDevCenterOperations.ListAllDevBoxes; @convenientAPI(false) - ListAllDevBoxesByUser is DevCenter.DevBoxesOperations.ListAllDevBoxesByUser; + ListAllDevBoxesByUser is DevCenter.DevBoxesDevCenterOperations.ListAllDevBoxesByUser; @convenientAPI(false) ListDevBoxes is DevCenter.DevBoxesOperations.ListDevBoxes; @convenientAPI(false) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 4765c6229c9e..f792bb5da757 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -90,43 +90,6 @@ interface DevBoxesOperations { Schedule >; - @doc("Lists Dev Boxes that the caller has access to in the DevCenter.") - @route("/devboxes") - @get - ListAllDevBoxes is DevCenterBaseResponse< - { - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - DevBoxListResult - >; - - - @doc("Lists Dev Boxes in the Dev Center for a particular user.") - @route("/users/{userId}/devboxes") - @get - ListAllDevBoxesByUser is DevCenterBaseResponse< - { - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") - @path - userId: string; - - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - DevBoxListResult - >; - @doc("Lists Dev Boxes in the project for a particular user.") @route("/projects/{projectName}/users/{userId}/devboxes") @get From 73dfff3f47c4c2cc9e697bbdeca9672963bcc575 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 13 Oct 2023 14:36:15 -0700 Subject: [PATCH 045/187] make list all dev boxes filter and top nullable --- specification/devcenter/DevCenter/devbox/routes.tsp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index f792bb5da757..4d10b1825c20 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -441,11 +441,11 @@ interface DevBoxesDevCenterOperations { { @doc("An OData filter clause to apply to the operation.") @query - filter: string; + filter?: string; @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query - top: int32; + top?: int32; }, DevBoxListResult >; @@ -457,11 +457,11 @@ interface DevBoxesDevCenterOperations { { @doc("An OData filter clause to apply to the operation.") @query - filter: string; + filter?: string; @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query - top: int32; + top?: int32; @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") @path From 9274cf0385156ac14f43f945157ec86c1e9ecf5f Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 13 Oct 2023 14:44:33 -0700 Subject: [PATCH 046/187] DevCenter client nullablle filter --- specification/devcenter/DevCenter/devcenter/routes.tsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/devcenter/routes.tsp b/specification/devcenter/DevCenter/devcenter/routes.tsp index f3d3fa09f8c4..3d32d4503892 100644 --- a/specification/devcenter/DevCenter/devcenter/routes.tsp +++ b/specification/devcenter/DevCenter/devcenter/routes.tsp @@ -16,11 +16,11 @@ interface DevCenterOperations { { @doc("An OData filter clause to apply to the operation.") @query - filter: string; + filter?: string; @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query - top: int32; + top?: int32; }, ProjectListResult >; From 67986edf38aa450e0880d250745665f1227023d7 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Fri, 13 Oct 2023 17:07:17 -0700 Subject: [PATCH 047/187] rename namespace --- specification/devcenter/DevCenter/client.tsp | 72 +++++++++---------- .../devcenter/DevCenter/devbox/main.tsp | 2 +- .../devcenter/DevCenter/devbox/models.tsp | 2 +- .../devcenter/DevCenter/devbox/routes.tsp | 2 +- .../devcenter/DevCenter/devcenter/models.tsp | 2 +- .../devcenter/DevCenter/devcenter/routes.tsp | 2 +- .../devcenter/DevCenter/environments/main.tsp | 2 +- .../DevCenter/environments/models.tsp | 2 +- .../DevCenter/environments/routes.tsp | 2 +- specification/devcenter/DevCenter/service.tsp | 52 +++++++------- .../devcenter/DevCenter/shared/models.tsp | 2 +- .../devcenter/DevCenter/shared/routes.tsp | 2 +- 12 files changed, 72 insertions(+), 72 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index ea63c81f68d4..e0abd049c777 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -6,7 +6,7 @@ import "@azure-tools/typespec-client-generator-core"; using Azure.Core; using TypeSpec.Versioning; -using DevCenter; +using DevCenterService; using Azure.ClientGenerator.Core; @useDependency(APIVersions.v2023_04_01) @@ -14,85 +14,85 @@ namespace SDKCustomizations; @client({ name: "DevCenterClient", - service: DevCenter, + service: DevCenterService, }) interface DevCenterClientOperations { @convenientAPI(false) - ListProjects is DevCenter.DevCenterOperations.ListProjects; + ListProjects is DevCenterService.DevCenterOperations.ListProjects; @convenientAPI(false) - GetProject is DevCenter.DevCenterOperations.GetProject; + GetProject is DevCenterService.DevCenterOperations.GetProject; } @client({ name: "DevBoxesClient", - service: DevCenter, + service: DevCenterService, }) interface DevBoxesClientOperations { @convenientAPI(false) - ListPools is DevCenter.DevBoxesOperations.ListPools; + ListPools is DevCenterService.DevBoxesOperations.ListPools; @convenientAPI(false) - GetPool is DevCenter.DevBoxesOperations.GetPool; + GetPool is DevCenterService.DevBoxesOperations.GetPool; @convenientAPI(false) - ListSchedules is DevCenter.DevBoxesOperations.ListSchedules; + ListSchedules is DevCenterService.DevBoxesOperations.ListSchedules; @convenientAPI(false) - GetSchedule is DevCenter.DevBoxesOperations.GetSchedule; + GetSchedule is DevCenterService.DevBoxesOperations.GetSchedule; @convenientAPI(false) - ListAllDevBoxes is DevCenter.DevBoxesDevCenterOperations.ListAllDevBoxes; + ListAllDevBoxes is DevCenterService.DevBoxesDevCenterOperations.ListAllDevBoxes; @convenientAPI(false) - ListAllDevBoxesByUser is DevCenter.DevBoxesDevCenterOperations.ListAllDevBoxesByUser; + ListAllDevBoxesByUser is DevCenterService.DevBoxesDevCenterOperations.ListAllDevBoxesByUser; @convenientAPI(false) - ListDevBoxes is DevCenter.DevBoxesOperations.ListDevBoxes; + ListDevBoxes is DevCenterService.DevBoxesOperations.ListDevBoxes; @convenientAPI(false) - GetDevBox is DevCenter.DevBoxesOperations.GetDevBox; + GetDevBox is DevCenterService.DevBoxesOperations.GetDevBox; @convenientAPI(false) - CreateDevBox is DevCenter.DevBoxesOperations.CreateDevBox; + CreateDevBox is DevCenterService.DevBoxesOperations.CreateDevBox; @convenientAPI(false) - DeleteDevBox is DevCenter.DevBoxesOperations.DeleteDevBox; + DeleteDevBox is DevCenterService.DevBoxesOperations.DeleteDevBox; @convenientAPI(false) - StartDevBox is DevCenter.DevBoxesOperations.StartDevBox; + StartDevBox is DevCenterService.DevBoxesOperations.StartDevBox; @convenientAPI(false) - StopDevBox is DevCenter.DevBoxesOperations.StopDevBox; + StopDevBox is DevCenterService.DevBoxesOperations.StopDevBox; @convenientAPI(false) - RestartDevBox is DevCenter.DevBoxesOperations.RestartDevBox; + RestartDevBox is DevCenterService.DevBoxesOperations.RestartDevBox; @convenientAPI(false) - GetRemoteConnection is DevCenter.DevBoxesOperations.GetRemoteConnection; + GetRemoteConnection is DevCenterService.DevBoxesOperations.GetRemoteConnection; @convenientAPI(false) - ListActions is DevCenter.DevBoxesOperations.ListActions; + ListActions is DevCenterService.DevBoxesOperations.ListActions; @convenientAPI(false) - GetAction is DevCenter.DevBoxesOperations.GetAction; + GetAction is DevCenterService.DevBoxesOperations.GetAction; @convenientAPI(false) - SkipAction is DevCenter.DevBoxesOperations.SkipAction; + SkipAction is DevCenterService.DevBoxesOperations.SkipAction; @convenientAPI(false) - DelayAction is DevCenter.DevBoxesOperations.DelayAction; + DelayAction is DevCenterService.DevBoxesOperations.DelayAction; @convenientAPI(false) - DelayAllActions is DevCenter.DevBoxesOperations.DelayAllActions; + DelayAllActions is DevCenterService.DevBoxesOperations.DelayAllActions; } @client({ name: "DeploymentEnvironmentsClient", - service: DevCenter, + service: DevCenterService, }) interface EnvironmentClientOperations { @convenientAPI(false) - ListAllEnvironments is DevCenter.EnvironmentsOperations.ListAllEnvironments; + ListAllEnvironments is DevCenterService.EnvironmentsOperations.ListAllEnvironments; @convenientAPI(false) - ListEnvironments is DevCenter.EnvironmentsOperations.ListEnvironments; + ListEnvironments is DevCenterService.EnvironmentsOperations.ListEnvironments; @convenientAPI(false) - GetEnvironment is DevCenter.EnvironmentsOperations.GetEnvironment; + GetEnvironment is DevCenterService.EnvironmentsOperations.GetEnvironment; @convenientAPI(false) - CreateOrUpdateEnvironment is DevCenter.EnvironmentsOperations.CreateOrUpdateEnvironment; + CreateOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.CreateOrUpdateEnvironment; @convenientAPI(false) - DeleteEnvironment is DevCenter.EnvironmentsOperations.DeleteEnvironment; + DeleteEnvironment is DevCenterService.EnvironmentsOperations.DeleteEnvironment; @convenientAPI(false) - ListCatalogs is DevCenter.EnvironmentsOperations.ListCatalogs; + ListCatalogs is DevCenterService.EnvironmentsOperations.ListCatalogs; @convenientAPI(false) - GetCatalog is DevCenter.EnvironmentsOperations.GetCatalog; + GetCatalog is DevCenterService.EnvironmentsOperations.GetCatalog; @convenientAPI(false) - ListEnvironmentDefinitions is DevCenter.EnvironmentsOperations.ListEnvironmentDefinitions; + ListEnvironmentDefinitions is DevCenterService.EnvironmentsOperations.ListEnvironmentDefinitions; @convenientAPI(false) - ListEnvironmentDefinitionsByCatalog is DevCenter.EnvironmentsOperations.ListEnvironmentDefinitionsByCatalog; + ListEnvironmentDefinitionsByCatalog is DevCenterService.EnvironmentsOperations.ListEnvironmentDefinitionsByCatalog; @convenientAPI(false) - GetEnvironmentDefinition is DevCenter.EnvironmentsOperations.GetEnvironmentDefinition; + GetEnvironmentDefinition is DevCenterService.EnvironmentsOperations.GetEnvironmentDefinition; @convenientAPI(false) - ListEnvironmentTypes is DevCenter.EnvironmentsOperations.ListEnvironmentTypes; + ListEnvironmentTypes is DevCenterService.EnvironmentsOperations.ListEnvironmentTypes; } diff --git a/specification/devcenter/DevCenter/devbox/main.tsp b/specification/devcenter/DevCenter/devbox/main.tsp index 5ac90e21b363..beadbe42275c 100644 --- a/specification/devcenter/DevCenter/devbox/main.tsp +++ b/specification/devcenter/DevCenter/devbox/main.tsp @@ -9,4 +9,4 @@ using TypeSpec.Versioning; using TypeSpec.Rest; using TypeSpec.Http; -namespace DevCenter; \ No newline at end of file +namespace DevCenterService; \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index 138bb0f8e318..a887fc5f10b4 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -6,7 +6,7 @@ import "../shared/models.tsp"; using TypeSpec.Rest; using TypeSpec.Http; -namespace DevCenter; +namespace DevCenterService; enum OsType { @doc("The Windows operating system.") Windows, diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 4d10b1825c20..221acf1c455f 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -7,7 +7,7 @@ using Azure.Core; using TypeSpec.Rest; using TypeSpec.Http; -namespace DevCenter; +namespace DevCenterService; interface DevBoxesOperations { @doc("Lists available pools") diff --git a/specification/devcenter/DevCenter/devcenter/models.tsp b/specification/devcenter/DevCenter/devcenter/models.tsp index 0319834a0c8a..4a55a92ef695 100644 --- a/specification/devcenter/DevCenter/devcenter/models.tsp +++ b/specification/devcenter/DevCenter/devcenter/models.tsp @@ -6,7 +6,7 @@ import "../shared/models.tsp"; using TypeSpec.Rest; using TypeSpec.Http; -namespace DevCenter; +namespace DevCenterService; @doc("Results of the project list operation.") model ProjectListResult is Azure.Core.Page; diff --git a/specification/devcenter/DevCenter/devcenter/routes.tsp b/specification/devcenter/DevCenter/devcenter/routes.tsp index 3d32d4503892..0afa24f9094c 100644 --- a/specification/devcenter/DevCenter/devcenter/routes.tsp +++ b/specification/devcenter/DevCenter/devcenter/routes.tsp @@ -6,7 +6,7 @@ using Azure.Core; using TypeSpec.Rest; using TypeSpec.Http; -namespace DevCenter; +namespace DevCenterService; interface DevCenterOperations { @doc("Lists all projects.") diff --git a/specification/devcenter/DevCenter/environments/main.tsp b/specification/devcenter/DevCenter/environments/main.tsp index 5ac90e21b363..beadbe42275c 100644 --- a/specification/devcenter/DevCenter/environments/main.tsp +++ b/specification/devcenter/DevCenter/environments/main.tsp @@ -9,4 +9,4 @@ using TypeSpec.Versioning; using TypeSpec.Rest; using TypeSpec.Http; -namespace DevCenter; \ No newline at end of file +namespace DevCenterService; \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index ee04aef2f144..2f667abe16a6 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -7,7 +7,7 @@ using TypeSpec.Versioning; using TypeSpec.Rest; using TypeSpec.Http; -namespace DevCenter; +namespace DevCenterService; enum ParameterType { @doc("The parameter accepts an array of values.") array, diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index bd0cf55930aa..bb985d5de66f 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -8,7 +8,7 @@ using TypeSpec.Versioning; using TypeSpec.Rest; using TypeSpec.Http; -namespace DevCenter; +namespace DevCenterService; interface EnvironmentsOperations { @doc("Lists the environments for a project.") diff --git a/specification/devcenter/DevCenter/service.tsp b/specification/devcenter/DevCenter/service.tsp index 5d2f9b9e1486..a8b161223a02 100644 --- a/specification/devcenter/DevCenter/service.tsp +++ b/specification/devcenter/DevCenter/service.tsp @@ -8,31 +8,31 @@ using TypeSpec.Rest; using TypeSpec.Http; @useAuth( - OAuth2Auth<[ - { - type: OAuth2FlowType.implicit, - authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize", - scopes: ["https://devcenter.azure.com/.default"], - } - ]> - ) - @service({ - title: "DevCenter", - }) - @server( - "{endpoint}", - "DevCenter service", + OAuth2Auth<[ { - endpoint: string, + type: OAuth2FlowType.implicit, + authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize", + scopes: ["https://devcenter.azure.com/.default"], } - ) - @doc("DevCenter service") - @versioned(APIVersions) - namespace DevCenter; - - @doc("DevCenter API versions") - enum APIVersions { - @doc("The 2023-04-01 service API version") - @useDependency(Versions.v1_0_Preview_2) - v2023_04_01: "2023-04-01", - } \ No newline at end of file + ]> +) +@service({ + title: "DevCenter", +}) +@server( + "{endpoint}", + "DevCenter service", + { + endpoint: string, + } +) +@doc("DevCenter service") +@versioned(APIVersions) +namespace DevCenterService; + +@doc("DevCenter API versions") +enum APIVersions { + @doc("The 2023-04-01 service API version") + @useDependency(Versions.v1_0_Preview_2) + v2023_04_01: "2023-04-01", +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index 7b0b40acc658..ba89cd8823ed 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -7,7 +7,7 @@ using Azure.Core; using TypeSpec.Rest; using TypeSpec.Http; -namespace DevCenter; +namespace DevCenterService; op DevCenterBaseResponse< TParams extends TypeSpec.Reflection.Model, diff --git a/specification/devcenter/DevCenter/shared/routes.tsp b/specification/devcenter/DevCenter/shared/routes.tsp index 2be85b9886ca..53e0a7f56e08 100644 --- a/specification/devcenter/DevCenter/shared/routes.tsp +++ b/specification/devcenter/DevCenter/shared/routes.tsp @@ -4,7 +4,7 @@ import "./models.tsp"; using TypeSpec.Rest; using TypeSpec.Http; -namespace DevCenter; +namespace DevCenterService; interface SharedOperations { @doc("Get the status of an operation.") From 43bcb696fdc9ff6850087b632ac6c1fbe9b0be21 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Fri, 13 Oct 2023 17:07:44 -0700 Subject: [PATCH 048/187] add client.python.tsp --- .../devcenter/DevCenter/client.python.tsp | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 specification/devcenter/DevCenter/client.python.tsp diff --git a/specification/devcenter/DevCenter/client.python.tsp b/specification/devcenter/DevCenter/client.python.tsp new file mode 100644 index 000000000000..78e153e065ae --- /dev/null +++ b/specification/devcenter/DevCenter/client.python.tsp @@ -0,0 +1,93 @@ +import "./service.tsp"; +import "./environments/routes.tsp"; +import "./devcenter/routes.tsp"; +import "./devbox/routes.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.Core; +using TypeSpec.Versioning; +using DevCenterService; +using Azure.ClientGenerator.Core; + +@useDependency(APIVersions.v2023_04_01) +@client({ + name: "DevCenterClient", + service: DevCenterService, +}) +namespace SDKCustomizations; + +@operationGroup +interface DevCenter { + @convenientAPI(false) + ListProjects is DevCenterService.DevCenterOperations.ListProjects; + @convenientAPI(false) + GetProject is DevCenterService.DevCenterOperations.GetProject; +} + +@operationGroup +interface DevBoxes { + @convenientAPI(false) + ListPools is DevCenterService.DevBoxesOperations.ListPools; + @convenientAPI(false) + GetPool is DevCenterService.DevBoxesOperations.GetPool; + @convenientAPI(false) + ListSchedules is DevCenterService.DevBoxesOperations.ListSchedules; + @convenientAPI(false) + GetSchedule is DevCenterService.DevBoxesOperations.GetSchedule; + @convenientAPI(false) + ListAllDevBoxes is DevCenterService.DevBoxesDevCenterOperations.ListAllDevBoxes; + @convenientAPI(false) + ListAllDevBoxesByUser is DevCenterService.DevBoxesDevCenterOperations.ListAllDevBoxesByUser; + @convenientAPI(false) + ListDevBoxes is DevCenterService.DevBoxesOperations.ListDevBoxes; + @convenientAPI(false) + GetDevBox is DevCenterService.DevBoxesOperations.GetDevBox; + @convenientAPI(false) + CreateDevBox is DevCenterService.DevBoxesOperations.CreateDevBox; + @convenientAPI(false) + DeleteDevBox is DevCenterService.DevBoxesOperations.DeleteDevBox; + @convenientAPI(false) + StartDevBox is DevCenterService.DevBoxesOperations.StartDevBox; + @convenientAPI(false) + StopDevBox is DevCenterService.DevBoxesOperations.StopDevBox; + @convenientAPI(false) + RestartDevBox is DevCenterService.DevBoxesOperations.RestartDevBox; + @convenientAPI(false) + GetRemoteConnection is DevCenterService.DevBoxesOperations.GetRemoteConnection; + @convenientAPI(false) + ListActions is DevCenterService.DevBoxesOperations.ListActions; + @convenientAPI(false) + GetAction is DevCenterService.DevBoxesOperations.GetAction; + @convenientAPI(false) + SkipAction is DevCenterService.DevBoxesOperations.SkipAction; + @convenientAPI(false) + DelayAction is DevCenterService.DevBoxesOperations.DelayAction; + @convenientAPI(false) + DelayAllActions is DevCenterService.DevBoxesOperations.DelayAllActions; +} + +@operationGroup +interface DeploymentEnvironments { + @convenientAPI(false) + ListAllEnvironments is DevCenterService.EnvironmentsOperations.ListAllEnvironments; + @convenientAPI(false) + ListEnvironments is DevCenterService.EnvironmentsOperations.ListEnvironments; + @convenientAPI(false) + GetEnvironment is DevCenterService.EnvironmentsOperations.GetEnvironment; + @convenientAPI(false) + CreateOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.CreateOrUpdateEnvironment; + @convenientAPI(false) + DeleteEnvironment is DevCenterService.EnvironmentsOperations.DeleteEnvironment; + @convenientAPI(false) + ListCatalogs is DevCenterService.EnvironmentsOperations.ListCatalogs; + @convenientAPI(false) + GetCatalog is DevCenterService.EnvironmentsOperations.GetCatalog; + @convenientAPI(false) + ListEnvironmentDefinitions is DevCenterService.EnvironmentsOperations.ListEnvironmentDefinitions; + @convenientAPI(false) + ListEnvironmentDefinitionsByCatalog is DevCenterService.EnvironmentsOperations.ListEnvironmentDefinitionsByCatalog; + @convenientAPI(false) + GetEnvironmentDefinition is DevCenterService.EnvironmentsOperations.GetEnvironmentDefinition; + @convenientAPI(false) + ListEnvironmentTypes is DevCenterService.EnvironmentsOperations.ListEnvironmentTypes; +} From 22f37dc2c2f1017e1b40dcbd00e3a0c008ab9849 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Fri, 13 Oct 2023 17:33:33 -0700 Subject: [PATCH 049/187] update tspconfig.yaml --- specification/devcenter/DevCenter/tspconfig.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index adabc07d2d86..6f6855d2c63d 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -1,3 +1,6 @@ +parameters: + service-dir: + default: "sdk/devcenter" emit: [ # "@azure-tools/typespec-apiview", "@azure-tools/typespec-autorest", @@ -18,6 +21,7 @@ options: "@azure-tools/typespec-python": package-dir: "azure-developer-devcenter" package-name: "{package-dir}" + package-mode: "azure-dataplane" models-mode: none "@azure-tools/typespec-ts": title: "Azure Developer DevCenter" From d2a28c1aa8226c14f6deacee12ee4dffd5ed3ade Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 16 Oct 2023 10:34:51 -0700 Subject: [PATCH 050/187] Rename python client tsp --- .../devcenter/DevCenter/{client.python.tsp => python-client.tsp} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename specification/devcenter/DevCenter/{client.python.tsp => python-client.tsp} (100%) diff --git a/specification/devcenter/DevCenter/client.python.tsp b/specification/devcenter/DevCenter/python-client.tsp similarity index 100% rename from specification/devcenter/DevCenter/client.python.tsp rename to specification/devcenter/DevCenter/python-client.tsp From 5f0cd4957ddf9f8677436acfa78cc756736c2a38 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 16 Oct 2023 11:26:51 -0700 Subject: [PATCH 051/187] Add client parameter description --- specification/devcenter/DevCenter/service.tsp | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/devcenter/DevCenter/service.tsp b/specification/devcenter/DevCenter/service.tsp index a8b161223a02..01edaead0993 100644 --- a/specification/devcenter/DevCenter/service.tsp +++ b/specification/devcenter/DevCenter/service.tsp @@ -23,6 +23,7 @@ using TypeSpec.Http; "{endpoint}", "DevCenter service", { + @doc("The DevCenter-specific URI to operate on.") endpoint: string, } ) From d528bd1e88d5db0984a56420487e2b3ae2dc7fb3 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Mon, 16 Oct 2023 17:48:01 -0700 Subject: [PATCH 052/187] update put lros --- specification/devcenter/DevCenter/devbox/routes.tsp | 1 - .../devcenter/DevCenter/environments/routes.tsp | 12 ++++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 221acf1c455f..c2252a8c5e93 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -160,7 +160,6 @@ interface DevBoxesOperations { DevBox | { @statusCode statusCode: 201; - @finalLocation @header("Location") location: ResourceLocation; diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index bb985d5de66f..7351f5fd920e 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -68,10 +68,11 @@ interface EnvironmentsOperations { >; @doc("Creates or updates an environment.") + @finalOperation(EnvironmentsOperations.GetEnvironment) @pollingOperation(SharedOperations.GetProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @put - CreateOrUpdateEnvironment is Foundations.LongRunningOperation< + CreateOrUpdateEnvironment is DevCenterBaseResponse< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -92,10 +93,13 @@ interface EnvironmentsOperations { { @statusCode statusCode: 201; + + @pollingLocation + @header("Operation-Location") + operationLocation: string; + @body body: Environment; - }, - {}, - CloudError + } >; // FIXME From 1542b0a12ef46f9fc97a391a3c76f4cbf26f2960 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Mon, 16 Oct 2023 17:58:37 -0700 Subject: [PATCH 053/187] switch to foundations error response --- .../devcenter/DevCenter/devbox/routes.tsp | 32 +++++++++---------- .../devcenter/DevCenter/devcenter/routes.tsp | 4 +-- .../DevCenter/environments/routes.tsp | 20 ++++++------ .../devcenter/DevCenter/shared/models.tsp | 6 ---- .../devcenter/DevCenter/shared/routes.tsp | 2 +- 5 files changed, 29 insertions(+), 35 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index c2252a8c5e93..638c706351ad 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -13,7 +13,7 @@ interface DevBoxesOperations { @doc("Lists available pools") @route("/projects/{projectName}/pools") @get - ListPools is DevCenterBaseResponse< + ListPools is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -33,7 +33,7 @@ interface DevBoxesOperations { @doc("Gets a pool") @route("/projects/{projectName}/pools/{poolName}") @get - GetPool is DevCenterBaseResponse< + GetPool is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -49,7 +49,7 @@ interface DevBoxesOperations { @doc("Lists available schedules for a pool.") @route("/projects/{projectName}/pools/{poolName}/schedules") @get - ListSchedules is DevCenterBaseResponse< + ListSchedules is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -73,7 +73,7 @@ interface DevBoxesOperations { @doc("Gets a schedule.") @route("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") @get - GetSchedule is DevCenterBaseResponse< + GetSchedule is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -93,7 +93,7 @@ interface DevBoxesOperations { @doc("Lists Dev Boxes in the project for a particular user.") @route("/projects/{projectName}/users/{userId}/devboxes") @get - ListDevBoxes is DevCenterBaseResponse< + ListDevBoxes is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -117,7 +117,7 @@ interface DevBoxesOperations { @doc("Gets a Dev Box") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @get - GetDevBox is DevCenterBaseResponse< + GetDevBox is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -139,7 +139,7 @@ interface DevBoxesOperations { @pollingOperation(SharedOperations.GetProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @put - CreateDevBox is DevCenterBaseResponse< + CreateDevBox is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -175,7 +175,7 @@ interface DevBoxesOperations { @pollingOperation(SharedOperations.GetProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @delete - DeleteDevBox is DevCenterBaseResponse< + DeleteDevBox is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -294,7 +294,7 @@ interface DevBoxesOperations { @doc("Gets RDP Connection info") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection") @get - GetRemoteConnection is DevCenterBaseResponse< + GetRemoteConnection is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -314,7 +314,7 @@ interface DevBoxesOperations { @doc("Lists actions on a Dev Box.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions") @get - ListActions is DevCenterBaseResponse< + ListActions is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -334,7 +334,7 @@ interface DevBoxesOperations { @doc("Gets an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}") @get - GetAction is DevCenterBaseResponse< + GetAction is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -358,7 +358,7 @@ interface DevBoxesOperations { @doc("Skips an occurrence of an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip") @post - SkipAction is DevCenterBaseResponse< + SkipAction is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -382,7 +382,7 @@ interface DevBoxesOperations { @doc("Delays the occurrence of an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay") @post - DelayAction is DevCenterBaseResponse< + DelayAction is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -410,7 +410,7 @@ interface DevBoxesOperations { @doc("Delays all actions.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay") @post - DelayAllActions is DevCenterBaseResponse< + DelayAllActions is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -436,7 +436,7 @@ interface DevBoxesDevCenterOperations { @doc("Lists Dev Boxes that the caller has access to in the DevCenter.") @route("/devboxes") @get - ListAllDevBoxes is DevCenterBaseResponse< + ListAllDevBoxes is Azure.Core.Foundations.Operation< { @doc("An OData filter clause to apply to the operation.") @query @@ -452,7 +452,7 @@ interface DevBoxesDevCenterOperations { @doc("Lists Dev Boxes in the Dev Center for a particular user.") @route("/users/{userId}/devboxes") @get - ListAllDevBoxesByUser is DevCenterBaseResponse< + ListAllDevBoxesByUser is Azure.Core.Foundations.Operation< { @doc("An OData filter clause to apply to the operation.") @query diff --git a/specification/devcenter/DevCenter/devcenter/routes.tsp b/specification/devcenter/DevCenter/devcenter/routes.tsp index 0afa24f9094c..7b2e76215954 100644 --- a/specification/devcenter/DevCenter/devcenter/routes.tsp +++ b/specification/devcenter/DevCenter/devcenter/routes.tsp @@ -12,7 +12,7 @@ interface DevCenterOperations { @doc("Lists all projects.") @route("/projects") @get - ListProjects is DevCenterBaseResponse< + ListProjects is Azure.Core.Foundations.Operation< { @doc("An OData filter clause to apply to the operation.") @query @@ -28,7 +28,7 @@ interface DevCenterOperations { @doc("Gets a project.") @route("/projects/{projectName}") @get - GetProject is DevCenterBaseResponse< + GetProject is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index 7351f5fd920e..6a6dd5e30833 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -14,7 +14,7 @@ interface EnvironmentsOperations { @doc("Lists the environments for a project.") @route("/projects/{projectName}/environments") @get - ListAllEnvironments is DevCenterBaseResponse< + ListAllEnvironments is Azure.Core.Foundations.Operation< { @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query @@ -30,7 +30,7 @@ interface EnvironmentsOperations { @doc("Lists the environments for a project and user.") @route("/projects/{projectName}/users/{userId}/environments") @get - ListEnvironments is DevCenterBaseResponse< + ListEnvironments is Azure.Core.Foundations.Operation< { @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query @@ -50,7 +50,7 @@ interface EnvironmentsOperations { @doc("Gets an environment") @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @get - GetEnvironment is DevCenterBaseResponse< + GetEnvironment is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -72,7 +72,7 @@ interface EnvironmentsOperations { @pollingOperation(SharedOperations.GetProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @put - CreateOrUpdateEnvironment is DevCenterBaseResponse< + CreateOrUpdateEnvironment is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -142,7 +142,7 @@ interface EnvironmentsOperations { @doc("Lists all of the catalogs available for a project.") @route("/projects/{projectName}/catalogs") @get - ListCatalogs is DevCenterBaseResponse< + ListCatalogs is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -158,7 +158,7 @@ interface EnvironmentsOperations { @doc("Gets the specified catalog within the project") @route("/projects/{projectName}/catalogs/{catalogName}") @get - GetCatalog is DevCenterBaseResponse< + GetCatalog is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -174,7 +174,7 @@ interface EnvironmentsOperations { @doc("Lists all environment definitions available for a project.") @route("/projects/{projectName}/environmentDefinitions") @get - ListEnvironmentDefinitions is DevCenterBaseResponse< + ListEnvironmentDefinitions is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -190,7 +190,7 @@ interface EnvironmentsOperations { @doc("Lists all environment definitions available within a catalog.") @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions") @get - ListEnvironmentDefinitionsByCatalog is DevCenterBaseResponse< + ListEnvironmentDefinitionsByCatalog is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -210,7 +210,7 @@ interface EnvironmentsOperations { @doc("Get an environment definition from a catalog.") @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}") @get - GetEnvironmentDefinition is DevCenterBaseResponse< + GetEnvironmentDefinition is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -230,7 +230,7 @@ interface EnvironmentsOperations { @doc("Lists all environment types configured for a project.") @route("/projects/{projectName}/environmentTypes") @get - ListEnvironmentTypes is DevCenterBaseResponse< + ListEnvironmentTypes is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index ba89cd8823ed..c78a68231d32 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -9,12 +9,6 @@ using TypeSpec.Http; namespace DevCenterService; -op DevCenterBaseResponse< - TParams extends TypeSpec.Reflection.Model, - TResponse, - Traits extends TypeSpec.Reflection.Model = {} -> is Azure.Core.Foundations.Operation; - @doc("An error response from the service.") model CloudErrorBody { @doc(""" diff --git a/specification/devcenter/DevCenter/shared/routes.tsp b/specification/devcenter/DevCenter/shared/routes.tsp index 53e0a7f56e08..fbd59cd45ae7 100644 --- a/specification/devcenter/DevCenter/shared/routes.tsp +++ b/specification/devcenter/DevCenter/shared/routes.tsp @@ -10,7 +10,7 @@ interface SharedOperations { @doc("Get the status of an operation.") @route("/projects/{projectName}/operationstatuses/{operationId}") @get - GetProjectOperationStatus is DevCenterBaseResponse< + GetProjectOperationStatus is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path From bf55b37df514244fbf628028b7aa4a0ea28b5fcb Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Mon, 16 Oct 2023 18:02:23 -0700 Subject: [PATCH 054/187] remove custom error defs --- .../devcenter/DevCenter/devbox/models.tsp | 4 +-- .../devcenter/DevCenter/devbox/routes.tsp | 12 ++----- .../DevCenter/environments/models.tsp | 2 +- .../DevCenter/environments/routes.tsp | 2 +- .../devcenter/DevCenter/shared/models.tsp | 35 ------------------- 5 files changed, 7 insertions(+), 48 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index a887fc5f10b4..ee7d1ab1f5b3 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -262,7 +262,7 @@ A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. @doc("Provisioning or action error details. Populated only for error states.") @visibility("read") - error?: CloudErrorBody; + error?: Azure.Core.Foundations.Error; @doc(""" Azure region where this Dev Box is located. This will be the same region as the @@ -358,5 +358,5 @@ model DevBoxActionDelayResult { action?: DevBoxAction; @doc("Information about the error that occurred. Only populated on error.") - error?: CloudErrorBody; + error?: Azure.Core.Foundations.Error; } diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 638c706351ad..483d11f17c1f 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -226,9 +226,7 @@ interface DevBoxesOperations { statusCode: 202; @body body: OperationStatus - }, - {}, - CloudError + } >; @doc("Stops a Dev Box") @@ -258,9 +256,7 @@ interface DevBoxesOperations { statusCode: 202; @body body: OperationStatus - }, - {}, - CloudError + } >; @doc("Restarts a Dev Box") @@ -286,9 +282,7 @@ interface DevBoxesOperations { statusCode: 202; @body body: OperationStatus - }, - {}, - CloudError + } >; @doc("Gets RDP Connection info") diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index 2f667abe16a6..ecba7b9d337e 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -60,7 +60,7 @@ model Environment { @doc("Provisioning error details. Populated only for error states.") @visibility("read") - error?: CloudErrorBody; + error?: Azure.Core.Foundations.Error; } @doc(""" diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index 6a6dd5e30833..55a11aa5b4d3 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -137,7 +137,7 @@ interface EnvironmentsOperations { } | { @statusCode statusCode: 204; - } | CloudError; + } | Azure.Core.Foundations.ErrorResponse; @doc("Lists all of the catalogs available for a project.") @route("/projects/{projectName}/catalogs") diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index c78a68231d32..2815f19dc4e0 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -9,41 +9,6 @@ using TypeSpec.Http; namespace DevCenterService; -@doc("An error response from the service.") -model CloudErrorBody { - @doc(""" -An identifier for the error. Codes are invariant and are intended to be -consumed programmatically. -""") - code: string; - - @doc(""" -A message describing the error, intended to be suitable for display in a user -interface. -""") - message: string; - - @doc(""" -The target of the particular error. For example, the name of the property in -error. -""") - target?: string; - - @doc("A list of additional details about the error.") - details?: CloudErrorBody[]; -} - - -@doc("An error response from the service.") -@error -model CloudError { - @doc("Error body") - error: CloudErrorBody; - - @header("x-ms-error-code") - @doc("String error code indicating what went wrong.") - errorCode?: string; -} @doc("Operation Error message") model OperationStatusError { From 064b6c7d75df18739b2b74a94acf199a90be19be Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 17 Oct 2023 16:13:41 -0700 Subject: [PATCH 055/187] remove default value from description --- .../devcenter/DevCenter/devbox/routes.tsp | 28 +++++++++---------- .../DevCenter/environments/routes.tsp | 8 +++--- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 483d11f17c1f..bad49cbb064c 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -99,7 +99,7 @@ interface DevBoxesOperations { @path projectName: string; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; @@ -123,7 +123,7 @@ interface DevBoxesOperations { @path projectName: string; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; @@ -145,7 +145,7 @@ interface DevBoxesOperations { @path projectName: string; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; @@ -181,7 +181,7 @@ interface DevBoxesOperations { @path projectName: string; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; @@ -213,7 +213,7 @@ interface DevBoxesOperations { @path projectName: string; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; @@ -239,7 +239,7 @@ interface DevBoxesOperations { @path projectName: string; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; @@ -269,7 +269,7 @@ interface DevBoxesOperations { @path projectName: string; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; @@ -294,7 +294,7 @@ interface DevBoxesOperations { @path projectName: string; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; @@ -314,7 +314,7 @@ interface DevBoxesOperations { @path projectName: string; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; @@ -334,7 +334,7 @@ interface DevBoxesOperations { @path projectName: string; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; @@ -358,7 +358,7 @@ interface DevBoxesOperations { @path projectName: string; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; @@ -382,7 +382,7 @@ interface DevBoxesOperations { @path projectName: string; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; @@ -410,7 +410,7 @@ interface DevBoxesOperations { @path projectName: string; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; @@ -456,7 +456,7 @@ interface DevBoxesDevCenterOperations { @query top?: int32; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; }, diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index 55a11aa5b4d3..bef0292c4965 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -40,7 +40,7 @@ interface EnvironmentsOperations { @path projectName: string; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; }, @@ -56,7 +56,7 @@ interface EnvironmentsOperations { @path projectName: string; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; @@ -78,7 +78,7 @@ interface EnvironmentsOperations { @path projectName: string; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; @@ -114,7 +114,7 @@ interface EnvironmentsOperations { @path projectName: string; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. The default value is \"me\".") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; From f4cc82c8a5abf51e78fe2edf3373b3c5278228e4 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 17 Oct 2023 17:30:24 -0700 Subject: [PATCH 056/187] Add java option --- specification/devcenter/DevCenter/tspconfig.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index 6f6855d2c63d..b33c3b602f82 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -32,3 +32,6 @@ options: name: "@azure-rest/developer-devcenter" description: "Azure Developer DevCenter Client" version: "1.0.0" + "@azure-tools/typespec-java": + package-dir: "azure-developer-devcenter" + namespace: com.azure.developer.devcenter From b8e3abf9f2365c5d2127c39f536f7b476e2d2742 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 18 Oct 2023 13:58:02 -0700 Subject: [PATCH 057/187] update endpoint to devCenterEndpoint --- specification/devcenter/DevCenter/service.tsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/service.tsp b/specification/devcenter/DevCenter/service.tsp index 01edaead0993..3a2f4815a730 100644 --- a/specification/devcenter/DevCenter/service.tsp +++ b/specification/devcenter/DevCenter/service.tsp @@ -20,11 +20,11 @@ using TypeSpec.Http; title: "DevCenter", }) @server( - "{endpoint}", + "{devCenterEndpoint}", "DevCenter service", { @doc("The DevCenter-specific URI to operate on.") - endpoint: string, + devCenterEndpoint: string, } ) @doc("DevCenter service") From b232bc4d0accea8fb088b4cf3d02f455242cfdd1 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 18 Oct 2023 15:11:37 -0700 Subject: [PATCH 058/187] more ranaming based on meeting review --- specification/devcenter/DevCenter/client.tsp | 4 ++-- specification/devcenter/DevCenter/devbox/routes.tsp | 8 ++++---- specification/devcenter/DevCenter/python-client.tsp | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index e0abd049c777..bfb5858eea2d 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -57,9 +57,9 @@ interface DevBoxesClientOperations { @convenientAPI(false) GetRemoteConnection is DevCenterService.DevBoxesOperations.GetRemoteConnection; @convenientAPI(false) - ListActions is DevCenterService.DevBoxesOperations.ListActions; + ListDevBoxActions is DevCenterService.DevBoxesOperations.ListDevBoxActions; @convenientAPI(false) - GetAction is DevCenterService.DevBoxesOperations.GetAction; + GetDevBoxAction is DevCenterService.DevBoxesOperations.GetDevBoxAction; @convenientAPI(false) SkipAction is DevCenterService.DevBoxesOperations.SkipAction; @convenientAPI(false) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index bad49cbb064c..015dc1fc621c 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -308,7 +308,7 @@ interface DevBoxesOperations { @doc("Lists actions on a Dev Box.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions") @get - ListActions is Azure.Core.Foundations.Operation< + ListDevBoxActions is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -328,7 +328,7 @@ interface DevBoxesOperations { @doc("Gets an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}") @get - GetAction is Azure.Core.Foundations.Operation< + GetDevBoxAction is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -396,7 +396,7 @@ interface DevBoxesOperations { @doc("The time to delay the Dev Box action or actions until.") @query - until: utcDateTime; + delayUntil: utcDateTime; }, DevBoxAction >; @@ -420,7 +420,7 @@ interface DevBoxesOperations { @doc("The time to delay the Dev Box action or actions until.") @query - until: utcDateTime; + delayUntil: utcDateTime; }, DevBoxActionsDelayMultipleResult >; diff --git a/specification/devcenter/DevCenter/python-client.tsp b/specification/devcenter/DevCenter/python-client.tsp index 78e153e065ae..9e4a0227f7d5 100644 --- a/specification/devcenter/DevCenter/python-client.tsp +++ b/specification/devcenter/DevCenter/python-client.tsp @@ -55,9 +55,9 @@ interface DevBoxes { @convenientAPI(false) GetRemoteConnection is DevCenterService.DevBoxesOperations.GetRemoteConnection; @convenientAPI(false) - ListActions is DevCenterService.DevBoxesOperations.ListActions; + ListDevBoxActions is DevCenterService.DevBoxesOperations.ListDevBoxActions; @convenientAPI(false) - GetAction is DevCenterService.DevBoxesOperations.GetAction; + GetDevBoxAction is DevCenterService.DevBoxesOperations.GetDevBoxAction; @convenientAPI(false) SkipAction is DevCenterService.DevBoxesOperations.SkipAction; @convenientAPI(false) From 10d2d39ce480ed3fcd55a021e3b3e1888dd50074 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 23 Oct 2023 10:58:31 -0700 Subject: [PATCH 059/187] Make top optional for environments and switching parameter order --- .../DevCenter/environments/routes.tsp | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index bef0292c4965..4f4bb622e056 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -16,13 +16,13 @@ interface EnvironmentsOperations { @get ListAllEnvironments is Azure.Core.Foundations.Operation< { - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top: int32; - @doc("The DevCenter Project upon which to execute operations.") @path projectName: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; }, EnvironmentListResult >; @@ -32,10 +32,6 @@ interface EnvironmentsOperations { @get ListEnvironments is Azure.Core.Foundations.Operation< { - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top: int32; - @doc("The DevCenter Project upon which to execute operations.") @path projectName: string; @@ -43,6 +39,10 @@ interface EnvironmentsOperations { @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; }, EnvironmentListResult >; @@ -150,7 +150,7 @@ interface EnvironmentsOperations { @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query - top: int32; + top?: int32; }, CatalogListResult >; @@ -182,7 +182,7 @@ interface EnvironmentsOperations { @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query - top: int32; + top?: int32; }, EnvironmentDefinitionListResult >; @@ -196,13 +196,14 @@ interface EnvironmentsOperations { @path projectName: string; - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top: int32; - @doc("The name of the catalog") @path catalogName: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, EnvironmentDefinitionListResult >; @@ -238,7 +239,7 @@ interface EnvironmentsOperations { @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query - top: int32; + top?: int32; }, EnvironmentTypeListResult >; From 06804cc0e0102996e52dca171feb82cc2f9d314b Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 23 Oct 2023 14:28:29 -0700 Subject: [PATCH 060/187] update client prop to delayuntil and request to until to match api request --- specification/devcenter/DevCenter/devbox/routes.tsp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 015dc1fc621c..709ee11a79a1 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -395,8 +395,9 @@ interface DevBoxesOperations { actionName: string; @doc("The time to delay the Dev Box action or actions until.") + @projectedName("client", "delayUntil") @query - delayUntil: utcDateTime; + until: utcDateTime; }, DevBoxAction >; @@ -419,8 +420,9 @@ interface DevBoxesOperations { devBoxName: string; @doc("The time to delay the Dev Box action or actions until.") + @projectedName("client", "delayUntil") @query - delayUntil: utcDateTime; + until: utcDateTime; }, DevBoxActionsDelayMultipleResult >; From 6c25bc297c82624cfcbc7758580bcad118e6ffb6 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 24 Oct 2023 13:15:01 -0700 Subject: [PATCH 061/187] try @query("until") --- specification/devcenter/DevCenter/devbox/routes.tsp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 709ee11a79a1..bcf7c0441f09 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -395,9 +395,8 @@ interface DevBoxesOperations { actionName: string; @doc("The time to delay the Dev Box action or actions until.") - @projectedName("client", "delayUntil") - @query - until: utcDateTime; + @query("until") + delayUntil: utcDateTime; }, DevBoxAction >; @@ -420,9 +419,8 @@ interface DevBoxesOperations { devBoxName: string; @doc("The time to delay the Dev Box action or actions until.") - @projectedName("client", "delayUntil") - @query - until: utcDateTime; + @query("until") + delayUntil: utcDateTime; }, DevBoxActionsDelayMultipleResult >; From 9d7a4d7254030173b5dc3c2a86cccaf15dbd5028 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 26 Oct 2023 13:41:29 -0700 Subject: [PATCH 062/187] Revert "update endpoint to devCenterEndpoint" This reverts commit b8e3abf9f2365c5d2127c39f536f7b476e2d2742. --- specification/devcenter/DevCenter/service.tsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/service.tsp b/specification/devcenter/DevCenter/service.tsp index 3a2f4815a730..01edaead0993 100644 --- a/specification/devcenter/DevCenter/service.tsp +++ b/specification/devcenter/DevCenter/service.tsp @@ -20,11 +20,11 @@ using TypeSpec.Http; title: "DevCenter", }) @server( - "{devCenterEndpoint}", + "{endpoint}", "DevCenter service", { @doc("The DevCenter-specific URI to operate on.") - devCenterEndpoint: string, + endpoint: string, } ) @doc("DevCenter service") From 74e93fc9fb00380250110fba78dadfebeb93cbf1 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 30 Oct 2023 16:02:35 -0700 Subject: [PATCH 063/187] Move all operation to one client --- .../devcenter/DevCenter/python-client.tsp | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/specification/devcenter/DevCenter/python-client.tsp b/specification/devcenter/DevCenter/python-client.tsp index 9e4a0227f7d5..d21fd8067b82 100644 --- a/specification/devcenter/DevCenter/python-client.tsp +++ b/specification/devcenter/DevCenter/python-client.tsp @@ -16,16 +16,15 @@ using Azure.ClientGenerator.Core; }) namespace SDKCustomizations; -@operationGroup -interface DevCenter { +interface DevCenterClientOperations { + + //DevCenters @convenientAPI(false) ListProjects is DevCenterService.DevCenterOperations.ListProjects; @convenientAPI(false) GetProject is DevCenterService.DevCenterOperations.GetProject; -} - -@operationGroup -interface DevBoxes { + + //DevBoxes @convenientAPI(false) ListPools is DevCenterService.DevBoxesOperations.ListPools; @convenientAPI(false) @@ -59,15 +58,13 @@ interface DevBoxes { @convenientAPI(false) GetDevBoxAction is DevCenterService.DevBoxesOperations.GetDevBoxAction; @convenientAPI(false) - SkipAction is DevCenterService.DevBoxesOperations.SkipAction; + SkipDevBoxAction is DevCenterService.DevBoxesOperations.SkipAction; @convenientAPI(false) - DelayAction is DevCenterService.DevBoxesOperations.DelayAction; + DelayDevBoxAction is DevCenterService.DevBoxesOperations.DelayAction; @convenientAPI(false) - DelayAllActions is DevCenterService.DevBoxesOperations.DelayAllActions; -} + DelayAllDevBoxActions is DevCenterService.DevBoxesOperations.DelayAllActions; -@operationGroup -interface DeploymentEnvironments { + //Environments @convenientAPI(false) ListAllEnvironments is DevCenterService.EnvironmentsOperations.ListAllEnvironments; @convenientAPI(false) @@ -90,4 +87,4 @@ interface DeploymentEnvironments { GetEnvironmentDefinition is DevCenterService.EnvironmentsOperations.GetEnvironmentDefinition; @convenientAPI(false) ListEnvironmentTypes is DevCenterService.EnvironmentsOperations.ListEnvironmentTypes; -} +} \ No newline at end of file From 514dbdacf54071c458f86e59e919c2907e598b80 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 14 Nov 2023 16:55:00 -0800 Subject: [PATCH 064/187] Update js tspconfig --- specification/devcenter/DevCenter/tspconfig.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index b33c3b602f82..ecb09a618566 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -25,13 +25,11 @@ options: models-mode: none "@azure-tools/typespec-ts": title: "Azure Developer DevCenter" - generateMetadata: true - generateTest: true - "emitter-output-dir": "{output-dir}" + package-dir: "developer-devcenter-rest" packageDetails: name: "@azure-rest/developer-devcenter" description: "Azure Developer DevCenter Client" - version: "1.0.0" + version: "1.0.0-beta.3" "@azure-tools/typespec-java": package-dir: "azure-developer-devcenter" namespace: com.azure.developer.devcenter From f0763d54d186b713ec57da77e9956399c31ab43d Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 15 Nov 2023 12:05:51 -0800 Subject: [PATCH 065/187] add generate metadada --- specification/devcenter/DevCenter/tspconfig.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index ecb09a618566..4d591b19df8e 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -26,6 +26,9 @@ options: "@azure-tools/typespec-ts": title: "Azure Developer DevCenter" package-dir: "developer-devcenter-rest" + generateMetadata: true + #generateTest: true + #"emitter-output-dir": "{output-dir}" packageDetails: name: "@azure-rest/developer-devcenter" description: "Azure Developer DevCenter Client" From 0f206625bdc6888c6f5353aeb722acbbafd4b9fa Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 21 Nov 2023 17:12:48 -0800 Subject: [PATCH 066/187] add convenience method generation --- specification/devcenter/DevCenter/client.tsp | 32 ------------------- .../devcenter/DevCenter/python-client.tsp | 32 ------------------- 2 files changed, 64 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index bfb5858eea2d..3f8f3403032e 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -17,9 +17,7 @@ namespace SDKCustomizations; service: DevCenterService, }) interface DevCenterClientOperations { - @convenientAPI(false) ListProjects is DevCenterService.DevCenterOperations.ListProjects; - @convenientAPI(false) GetProject is DevCenterService.DevCenterOperations.GetProject; } @@ -28,43 +26,24 @@ interface DevCenterClientOperations { service: DevCenterService, }) interface DevBoxesClientOperations { - @convenientAPI(false) ListPools is DevCenterService.DevBoxesOperations.ListPools; - @convenientAPI(false) GetPool is DevCenterService.DevBoxesOperations.GetPool; - @convenientAPI(false) ListSchedules is DevCenterService.DevBoxesOperations.ListSchedules; - @convenientAPI(false) GetSchedule is DevCenterService.DevBoxesOperations.GetSchedule; - @convenientAPI(false) ListAllDevBoxes is DevCenterService.DevBoxesDevCenterOperations.ListAllDevBoxes; - @convenientAPI(false) ListAllDevBoxesByUser is DevCenterService.DevBoxesDevCenterOperations.ListAllDevBoxesByUser; - @convenientAPI(false) ListDevBoxes is DevCenterService.DevBoxesOperations.ListDevBoxes; - @convenientAPI(false) GetDevBox is DevCenterService.DevBoxesOperations.GetDevBox; - @convenientAPI(false) CreateDevBox is DevCenterService.DevBoxesOperations.CreateDevBox; - @convenientAPI(false) DeleteDevBox is DevCenterService.DevBoxesOperations.DeleteDevBox; - @convenientAPI(false) StartDevBox is DevCenterService.DevBoxesOperations.StartDevBox; - @convenientAPI(false) StopDevBox is DevCenterService.DevBoxesOperations.StopDevBox; - @convenientAPI(false) RestartDevBox is DevCenterService.DevBoxesOperations.RestartDevBox; - @convenientAPI(false) GetRemoteConnection is DevCenterService.DevBoxesOperations.GetRemoteConnection; - @convenientAPI(false) ListDevBoxActions is DevCenterService.DevBoxesOperations.ListDevBoxActions; - @convenientAPI(false) GetDevBoxAction is DevCenterService.DevBoxesOperations.GetDevBoxAction; - @convenientAPI(false) SkipAction is DevCenterService.DevBoxesOperations.SkipAction; - @convenientAPI(false) DelayAction is DevCenterService.DevBoxesOperations.DelayAction; - @convenientAPI(false) DelayAllActions is DevCenterService.DevBoxesOperations.DelayAllActions; } @@ -73,26 +52,15 @@ interface DevBoxesClientOperations { service: DevCenterService, }) interface EnvironmentClientOperations { - @convenientAPI(false) ListAllEnvironments is DevCenterService.EnvironmentsOperations.ListAllEnvironments; - @convenientAPI(false) ListEnvironments is DevCenterService.EnvironmentsOperations.ListEnvironments; - @convenientAPI(false) GetEnvironment is DevCenterService.EnvironmentsOperations.GetEnvironment; - @convenientAPI(false) CreateOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.CreateOrUpdateEnvironment; - @convenientAPI(false) DeleteEnvironment is DevCenterService.EnvironmentsOperations.DeleteEnvironment; - @convenientAPI(false) ListCatalogs is DevCenterService.EnvironmentsOperations.ListCatalogs; - @convenientAPI(false) GetCatalog is DevCenterService.EnvironmentsOperations.GetCatalog; - @convenientAPI(false) ListEnvironmentDefinitions is DevCenterService.EnvironmentsOperations.ListEnvironmentDefinitions; - @convenientAPI(false) ListEnvironmentDefinitionsByCatalog is DevCenterService.EnvironmentsOperations.ListEnvironmentDefinitionsByCatalog; - @convenientAPI(false) GetEnvironmentDefinition is DevCenterService.EnvironmentsOperations.GetEnvironmentDefinition; - @convenientAPI(false) ListEnvironmentTypes is DevCenterService.EnvironmentsOperations.ListEnvironmentTypes; } diff --git a/specification/devcenter/DevCenter/python-client.tsp b/specification/devcenter/DevCenter/python-client.tsp index d21fd8067b82..8c09531a06ec 100644 --- a/specification/devcenter/DevCenter/python-client.tsp +++ b/specification/devcenter/DevCenter/python-client.tsp @@ -19,72 +19,40 @@ namespace SDKCustomizations; interface DevCenterClientOperations { //DevCenters - @convenientAPI(false) ListProjects is DevCenterService.DevCenterOperations.ListProjects; - @convenientAPI(false) GetProject is DevCenterService.DevCenterOperations.GetProject; //DevBoxes - @convenientAPI(false) ListPools is DevCenterService.DevBoxesOperations.ListPools; - @convenientAPI(false) GetPool is DevCenterService.DevBoxesOperations.GetPool; - @convenientAPI(false) ListSchedules is DevCenterService.DevBoxesOperations.ListSchedules; - @convenientAPI(false) GetSchedule is DevCenterService.DevBoxesOperations.GetSchedule; - @convenientAPI(false) ListAllDevBoxes is DevCenterService.DevBoxesDevCenterOperations.ListAllDevBoxes; - @convenientAPI(false) ListAllDevBoxesByUser is DevCenterService.DevBoxesDevCenterOperations.ListAllDevBoxesByUser; - @convenientAPI(false) ListDevBoxes is DevCenterService.DevBoxesOperations.ListDevBoxes; - @convenientAPI(false) GetDevBox is DevCenterService.DevBoxesOperations.GetDevBox; - @convenientAPI(false) CreateDevBox is DevCenterService.DevBoxesOperations.CreateDevBox; - @convenientAPI(false) DeleteDevBox is DevCenterService.DevBoxesOperations.DeleteDevBox; - @convenientAPI(false) StartDevBox is DevCenterService.DevBoxesOperations.StartDevBox; - @convenientAPI(false) StopDevBox is DevCenterService.DevBoxesOperations.StopDevBox; - @convenientAPI(false) RestartDevBox is DevCenterService.DevBoxesOperations.RestartDevBox; - @convenientAPI(false) GetRemoteConnection is DevCenterService.DevBoxesOperations.GetRemoteConnection; - @convenientAPI(false) ListDevBoxActions is DevCenterService.DevBoxesOperations.ListDevBoxActions; - @convenientAPI(false) GetDevBoxAction is DevCenterService.DevBoxesOperations.GetDevBoxAction; - @convenientAPI(false) SkipDevBoxAction is DevCenterService.DevBoxesOperations.SkipAction; - @convenientAPI(false) DelayDevBoxAction is DevCenterService.DevBoxesOperations.DelayAction; - @convenientAPI(false) DelayAllDevBoxActions is DevCenterService.DevBoxesOperations.DelayAllActions; //Environments - @convenientAPI(false) ListAllEnvironments is DevCenterService.EnvironmentsOperations.ListAllEnvironments; - @convenientAPI(false) ListEnvironments is DevCenterService.EnvironmentsOperations.ListEnvironments; - @convenientAPI(false) GetEnvironment is DevCenterService.EnvironmentsOperations.GetEnvironment; - @convenientAPI(false) CreateOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.CreateOrUpdateEnvironment; - @convenientAPI(false) DeleteEnvironment is DevCenterService.EnvironmentsOperations.DeleteEnvironment; - @convenientAPI(false) ListCatalogs is DevCenterService.EnvironmentsOperations.ListCatalogs; - @convenientAPI(false) GetCatalog is DevCenterService.EnvironmentsOperations.GetCatalog; - @convenientAPI(false) ListEnvironmentDefinitions is DevCenterService.EnvironmentsOperations.ListEnvironmentDefinitions; - @convenientAPI(false) ListEnvironmentDefinitionsByCatalog is DevCenterService.EnvironmentsOperations.ListEnvironmentDefinitionsByCatalog; - @convenientAPI(false) GetEnvironmentDefinition is DevCenterService.EnvironmentsOperations.GetEnvironmentDefinition; - @convenientAPI(false) ListEnvironmentTypes is DevCenterService.EnvironmentsOperations.ListEnvironmentTypes; } \ No newline at end of file From 25738a2b72647bf91d02ef4215da248ffd595f8c Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 27 Nov 2023 15:28:11 -0800 Subject: [PATCH 067/187] Add models for python --- specification/devcenter/DevCenter/tspconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index 4d591b19df8e..38f0ba5fb296 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -22,7 +22,7 @@ options: package-dir: "azure-developer-devcenter" package-name: "{package-dir}" package-mode: "azure-dataplane" - models-mode: none + #models-mode: none "@azure-tools/typespec-ts": title: "Azure Developer DevCenter" package-dir: "developer-devcenter-rest" From fb2bc141214dbf0384cbe965a9fdb152e3dc1a46 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 27 Nov 2023 15:28:48 -0800 Subject: [PATCH 068/187] Add description and rename short name models for csharp --- specification/devcenter/DevCenter/devbox/models.tsp | 12 ++++++++++++ .../devcenter/DevCenter/environments/models.tsp | 6 ++++-- specification/devcenter/DevCenter/shared/models.tsp | 1 + 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index ee7d1ab1f5b3..4812de5a6213 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -8,16 +8,19 @@ using TypeSpec.Http; namespace DevCenterService; +@doc("The operating system type.") enum OsType { @doc("The Windows operating system.") Windows, } +@doc("Indicates whether hibernate is supported and enabled, disabled, or unsupported by the operating system. Unknown hibernate support is represented as null.") enum HibernateSupport { @doc("Hibernate is enabled.") Enabled, @doc("Hibernate is not enabled.") Disabled, @doc("Hibernate is not supported by the operating system.") OsUnsupported, } +@doc("Indicates whether owners of Dev Boxes in a pool are local administrators on the Dev Boxes.") enum LocalAdminStatus { @doc("Owners of Dev Boxes in the pool are local administrators on the Dev Boxes.") Enabled, @@ -25,11 +28,13 @@ enum LocalAdminStatus { Disabled, } +@doc("Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.") enum StopOnDisconnectEnableStatus { @doc("Stop on disconnect is enabled on the Dev Box.") Enabled, @doc("Stop on disconnect is not enabled on the Dev Box.") Disabled, } +@doc("Pool status indicating whether a pool is available to create Dev Boxes.") enum PoolHealthStatus { @doc("The pool health status is not known.") Unknown, @doc("The pool health status waiting for health checks to run.") Pending, @@ -38,14 +43,17 @@ enum PoolHealthStatus { @doc("The pool health status is not healthy.") Unhealthy, } +@doc("The supported types for a scheduled task.") enum ScheduledType { @doc("The scheduled task will stop impacted Dev Boxes.") StopDevBox, } +@doc("The frequency of task execution.") enum ScheduledFrequency { @doc("The scheduled task will run every day.") Daily, } +@doc("The power states of a Dev Box.") enum PowerState { @doc("The Dev Box power state is not known.") Unknown, @doc("The Dev Box is running.") Running, @@ -54,10 +62,12 @@ enum PowerState { @doc("The Dev Box is hibernated.") Hibernated, } +@doc("The type of action which will take place on a Dev Box.") enum DevBoxActionType { @doc("The action will stop the Dev Box.") Stop, } +@doc("The result of the delay operation on this action.") enum DevBoxActionDelayResultStatus { @doc("The delay operation succeeded.") Succeeded, @doc("The delay operation failed.") Failed, @@ -79,6 +89,7 @@ model User { @doc("A pool of Dev Boxes.") @resource("pools") @parentResource(Project) +@projectedName("csharp", "DevBoxesPool") model Pool { @key("poolName") @visibility("read") @@ -192,6 +203,7 @@ model ScheduleListResult is Azure.Core.Page; @doc("A Schedule to execute action.") @resource("schedules") @parentResource(Pool) +@projectedName("csharp", "DevBoxSchedule") model Schedule { @key("scheduleName") @visibility("read") diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index ecba7b9d337e..ffe5881d4500 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -27,6 +27,7 @@ enum EnvironmentTypeEnableStatus { model EnvironmentListResult is Azure.Core.Page; @doc("Properties of an environment.") +@projectedName("csharp", "DevCenterEnvironment") model Environment { ...EnvironmentUpdateProperties; @@ -76,6 +77,7 @@ model EnvironmentUpdateProperties { model CatalogListResult is Azure.Core.Page; @doc("A catalog.") +@projectedName("csharp", "DevCenterCatalog") model Catalog { @doc("Name of the catalog.") name: string; @@ -99,7 +101,7 @@ model EnvironmentDefinition { description?: string; @doc("Input parameters passed to an environment.") - parameters?: EnvironmentDefinitionParameter[]; + parameters?: EnvironmentDefinitionParameters[]; @doc("JSON schema defining the parameters object passed to an environment.") parametersSchema?: string; @@ -109,7 +111,7 @@ model EnvironmentDefinition { } @doc("Properties of an Environment Definition parameter") -model EnvironmentDefinitionParameter { +model EnvironmentDefinitionParameters { @doc("Unique ID of the parameter") id: string; diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index 2815f19dc4e0..c93de3aa109a 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -65,6 +65,7 @@ model OperationStatus { @doc("Project details.") @resource("projects") +@projectedName("csharp", "DevCenterProject") model Project { @key("projectName") @visibility("read") From 51c1194b6d23adb3e15788d85bb4379df0b6ce2d Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 27 Nov 2023 16:17:40 -0800 Subject: [PATCH 069/187] Update documentation in remaining enums --- specification/devcenter/DevCenter/environments/models.tsp | 2 ++ specification/devcenter/DevCenter/shared/models.tsp | 1 + 2 files changed, 3 insertions(+) diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index ffe5881d4500..c374d664261a 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -9,6 +9,7 @@ using TypeSpec.Http; namespace DevCenterService; +@doc("The type of data a parameter accepts.") enum ParameterType { @doc("The parameter accepts an array of values.") array, @doc("The parameter accepts a boolean value.") boolean, @@ -18,6 +19,7 @@ enum ParameterType { @doc("The parameter accepts a string value.") string, } +@doc("Indicates whether an environment type is enabled for use in a project.") enum EnvironmentTypeEnableStatus { @doc("The environment type is enabled for use in the project.") Enabled, @doc("The environment type is not enabled for use in the project.") Disabled, diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index c93de3aa109a..bd8e24aa1b8c 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -19,6 +19,7 @@ model OperationStatusError { message?: string; } +@doc("Indicates whether operation status is running, completed, canceled or failed.") @lroStatus enum OperationStatusValue { Running, From 8442c08da1bea205683d73599ee458da91fae387 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 27 Nov 2023 17:00:44 -0800 Subject: [PATCH 070/187] Fix error AZC0030 csharp model name can't end with Definition or Parameter --- specification/devcenter/DevCenter/environments/models.tsp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index c374d664261a..1b4d9c0ac040 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -89,6 +89,7 @@ model Catalog { model EnvironmentDefinitionListResult is Azure.Core.Page; @doc("An environment definition.") +@projectedName("csharp", "EnvironmentDefinitionModel") model EnvironmentDefinition { @doc("The ID of the environment definition.") id: string; @@ -103,7 +104,7 @@ model EnvironmentDefinition { description?: string; @doc("Input parameters passed to an environment.") - parameters?: EnvironmentDefinitionParameters[]; + parameters?: EnvironmentDefinitionParameter[]; @doc("JSON schema defining the parameters object passed to an environment.") parametersSchema?: string; @@ -113,7 +114,8 @@ model EnvironmentDefinition { } @doc("Properties of an Environment Definition parameter") -model EnvironmentDefinitionParameters { +@projectedName("csharp", "EnvironmentDefinitionParameterModel") +model EnvironmentDefinitionParameter { @doc("Unique ID of the parameter") id: string; From 3cc097e707c93e14832d7b28a4597ceacd758002 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 28 Nov 2023 14:13:12 -0800 Subject: [PATCH 071/187] re-test default userId set to `me` --- specification/devcenter/DevCenter/devbox/routes.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index bcf7c0441f09..7bcec36736cb 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -101,7 +101,7 @@ interface DevBoxesOperations { @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path - userId: string; + userId: string = "me"; @doc("An OData filter clause to apply to the operation.") @query From d5d19a942dd93277121ed693d0347cb837d4c6cc Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 11 Dec 2023 10:47:23 -0800 Subject: [PATCH 072/187] Renaming and adding enums --- .../devcenter/DevCenter/devbox/models.tsp | 101 ++++++++++++++++-- .../devcenter/DevCenter/devbox/routes.tsp | 2 +- .../DevCenter/environments/models.tsp | 38 ++++++- .../devcenter/DevCenter/shared/models.tsp | 20 ++-- 4 files changed, 132 insertions(+), 29 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index 4812de5a6213..4315244e160d 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -9,6 +9,9 @@ using TypeSpec.Http; namespace DevCenterService; @doc("The operating system type.") +@projectedName("csharp", "DevBoxOSType") +@projectedName("java", "DevBoxOsType") +@projectedName("python", "OSType") enum OsType { @doc("The Windows operating system.") Windows, } @@ -21,6 +24,9 @@ enum HibernateSupport { } @doc("Indicates whether owners of Dev Boxes in a pool are local administrators on the Dev Boxes.") +@projectedName("csharp", "LocalAdministratorStatus") +@projectedName("java", "LocalAdministratorStatus") +@projectedName("python", "LocalAdministratorStatus") enum LocalAdminStatus { @doc("Owners of Dev Boxes in the pool are local administrators on the Dev Boxes.") Enabled, @@ -28,7 +34,50 @@ enum LocalAdminStatus { Disabled, } +enum DevBoxProvisioningState { +Succeeded, +Failed, +Canceled, +Creating, +Deleting, +Updating, +Starting, +Stopping, +Provisioning, +ProvisionedWithWarning, +InGracePeriod, +NotProvisioned +} + +enum SkuName { +"general_i_8c32gb256ssd_v2", +"general_i_8c32gb512ssd_v2", +"general_i_8c32gb1024ssd_v2", +"general_i_8c32gb2048ssd_v2", +"general_i_16c64gb256ssd_v2", +"general_i_16c64gb512ssd_v2", +"general_i_16c64gb1024ssd_v2", +"general_i_16c64gb2048ssd_v2", +"general_i_32c128gb512ssd_v2", +"general_i_32c128gb1024ssd_v2", +"general_i_32c128gb2048ssd_v2", +"general_a_8c32gb256ssd_v2", +"general_a_8c32gb512ssd_v2", +"general_a_8c32gb1024ssd_v2", +"general_a_8c32gb2048ssd_v2", +"general_a_16c64gb256ssd_v2", +"general_a_16c64gb512ssd_v2", +"general_a_16c64gb1024ssd_v2", +"general_a_16c64gb2048ssd_v2", +"general_a_32c128gb512ssd_v2", +"general_a_32c128gb1024ssd_v2", +"general_a_32c128gb2048ssd_v2" +} + @doc("Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.") +@projectedName("csharp", "StopOnDisconnectStatus") +@projectedName("java", "StopOnDisconnectStatus") +@projectedName("python", "StopOnDisconnectStatus") enum StopOnDisconnectEnableStatus { @doc("Stop on disconnect is enabled on the Dev Box.") Enabled, @doc("Stop on disconnect is not enabled on the Dev Box.") Disabled, @@ -49,6 +98,8 @@ enum ScheduledType { } @doc("The frequency of task execution.") +@projectedName("csharp", "ScheduleFrequency") +@projectedName("java", "ScheduleFrequency") enum ScheduledFrequency { @doc("The scheduled task will run every day.") Daily, } @@ -68,6 +119,8 @@ enum DevBoxActionType { } @doc("The result of the delay operation on this action.") +@projectedName("csharp", "DevBoxActionDelayStatus") +@projectedName("java", "DevBoxActionDelayStatus") enum DevBoxActionDelayResultStatus { @doc("The delay operation succeeded.") Succeeded, @doc("The delay operation failed.") Failed, @@ -89,7 +142,8 @@ model User { @doc("A pool of Dev Boxes.") @resource("pools") @parentResource(Project) -@projectedName("csharp", "DevBoxesPool") +@projectedName("csharp", "DevBoxPool") +@projectedName("java", "DevBoxPool") model Pool { @key("poolName") @visibility("read") @@ -100,6 +154,7 @@ model Pool { location: string; @doc("The operating system type of Dev Boxes in this pool") + @projectedName("csharp", "OSType") osType?: OsType; @doc("Hardware settings for the Dev Boxes created in this pool") @@ -118,6 +173,8 @@ model Pool { Indicates whether owners of Dev Boxes in this pool are local administrators on the Dev Boxes. """) + @projectedName("csharp", "LocalAdministratorStatus") + @projectedName("java", "LocalAdministratorStatus") localAdministrator?: LocalAdminStatus; @doc("Stop on disconnect configuration settings for Dev Boxes created in this pool.") @@ -131,34 +188,47 @@ available to create Dev Boxes. } @doc("Hardware specifications for the Dev Box.") +@projectedName("csharp", "DevBoxHardwareProfile") +@projectedName("java", "DevBoxHardwareProfile") model HardwareProfile { @doc("The name of the SKU") @visibility("read") - skuName?: string; + skuName?: SkuName; @doc("The number of vCPUs available for the Dev Box.") @visibility("read") + @projectedName("csharp", "VCpus") + @projectedName("java", "vcpus") + @projectedName("python", "vcpus") vCPUs?: int32; @doc("The amount of memory available for the Dev Box.") @visibility("read") + @projectedName("python", "memoryGb") memoryGB?: int32; } @doc("Storage settings for the Dev Box's disks") +@projectedName("csharp", "DevBoxStorageProfile") +@projectedName("java", "DevBoxStorageProfile") model StorageProfile { @doc("Settings for the operating system disk.") + @projectedName("csharp", "OSDisk") osDisk?: OSDisk; } @doc("Settings for the operating system disk.") +@projectedName("java", "OsDisk") model OSDisk { @doc("The size of the OS Disk in gigabytes.") @visibility("read") + @projectedName("python", "diskSizeGb") diskSizeGB?: int32; } @doc("Specifies information about the image used") +@projectedName("csharp", "DevBoxImageReference") +@projectedName("java", "DevBoxImageReference") model ImageReference { @doc("The name of the image used.") @visibility("read") @@ -174,6 +244,7 @@ model ImageReference { @doc("The operating system build number of the image.") @visibility("read") + @projectedName("csharp", "OSBuildNumber") osBuildNumber?: string; @doc("The datetime that the backing image version was published.") @@ -204,6 +275,7 @@ model ScheduleListResult is Azure.Core.Page; @resource("schedules") @parentResource(Pool) @projectedName("csharp", "DevBoxSchedule") +@projectedName("java", "DevBoxSchedule") model Schedule { @key("scheduleName") @visibility("read") @@ -211,13 +283,15 @@ model Schedule { name: string; @doc("Supported type this scheduled task represents.") + @projectedName("csharp", "scheduledType") + @projectedName("java", "scheduledType") type: ScheduledType; @doc("The frequency of this scheduled task.") frequency: ScheduledFrequency; @doc("The target time to trigger the action. The format is HH:MM.") - time: string; + time: plainTime; @doc("The IANA timezone id at which the schedule should execute.") timeZone: string; @@ -233,7 +307,7 @@ model DevBox { @key("devBoxName") @doc("Display name for the Dev Box") @visibility("read") - name: string; // TODO: (devBoxName) Please double check that this is the correct type for your scenario. + name: string; @doc("Name of the project this Dev Box belongs to") @visibility("read") @@ -252,7 +326,7 @@ model DevBox { @doc("The current provisioning state of the Dev Box.") @visibility("read") - provisioningState?: string; + provisioningState?: DevBoxProvisioningState; @doc(""" The current action state of the Dev Box. This is state is based on previous @@ -263,7 +337,7 @@ action performed by user. @doc("The current power state of the Dev Box.") @visibility("read") - powerState?: PowerState; + powerState: PowerState = PowerState.Unknown ; @doc(""" A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. @@ -285,10 +359,13 @@ Virtual Network it is attached to. @doc("The operating system type of this Dev Box.") @visibility("read") + @projectedName("csharp", "OSType") osType?: OsType; @doc("The AAD object id of the user this Dev Box is assigned to.") @visibility("read") + @projectedName("csharp", "userId") + @projectedName("java", "userId") user?: string; @doc("Information about the Dev Box's hardware resources") @@ -305,7 +382,6 @@ Virtual Network it is attached to. @doc("Creation time of this Dev Box") @visibility("read") - // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. createdTime?: utcDateTime; @doc("Indicates whether the owner of the Dev Box is a local administrator.") @@ -315,10 +391,12 @@ Virtual Network it is attached to. @doc("Provides remote connection information for a Dev Box.") model RemoteConnection { @doc("URL to open a browser based RDP session.") - webUrl?: string; + @projectedName("csharp", "webUri") + webUrl?: url; @doc("Link to open a Remote Desktop session.") - rdpConnectionUrl?: string; + @projectedName("csharp", "rdpConnectionUri") + rdpConnectionUrl?: url; } @doc("The actions list result") @@ -340,17 +418,17 @@ model DevBoxAction { sourceId: string; @doc("The earliest time that the action could occur (UTC).") - // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. suspendedUntil?: utcDateTime; @doc("Details about the next run of this action.") + @projectedName("csharp", "nextAction") + @projectedName("java", "nextAction") next?: DevBoxNextAction; } @doc("Details about the next run of an action.") model DevBoxNextAction { @doc("The time the action will be triggered (UTC).") - // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. scheduledTime: utcDateTime; } @@ -361,6 +439,7 @@ model DevBoxActionsDelayMultipleResult @doc("The action delay result") model DevBoxActionDelayResult { @doc("The name of the action.") + @projectedName("csharp", "actionName") name: string; @doc("The result of the delay operation on this action.") diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 7bcec36736cb..e0d8d2cb5e57 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -155,7 +155,7 @@ interface DevBoxesOperations { @doc("Represents a environment.") @body - body: DevBox; + devBox: DevBox; }, DevBox | { @statusCode statusCode: 201; diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index 1b4d9c0ac040..ebd6399841da 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -10,6 +10,8 @@ using TypeSpec.Http; namespace DevCenterService; @doc("The type of data a parameter accepts.") +@projectedName("csharp", "EnvironmentDefinitionParameterType") +@projectedName("java", "EnvironmentDefinitionParameterType") enum ParameterType { @doc("The parameter accepts an array of values.") array, @doc("The parameter accepts a boolean value.") boolean, @@ -20,16 +22,36 @@ enum ParameterType { } @doc("Indicates whether an environment type is enabled for use in a project.") +@projectedName("csharp", "EnvironmentTypeStatus") +@projectedName("java", "EnvironmentTypeStatus") +@projectedName("python", "EnvironmentTypeStatus") enum EnvironmentTypeEnableStatus { @doc("The environment type is enabled for use in the project.") Enabled, @doc("The environment type is not enabled for use in the project.") Disabled, } +enum EnvironmentProvisioningState { +Succeeded, +Failed, +Canceled, +Creating, +Accepted, +Deleting, +Updating, +Preparing, +Running, +Syncing, +MovingResources, +TransientFailure, +StorageProvisioningFailed, +} + @doc("Results of the environment list operation.") model EnvironmentListResult is Azure.Core.Page; @doc("Properties of an environment.") @projectedName("csharp", "DevCenterEnvironment") +@projectedName("java", "DevCenterEnvironment") model Environment { ...EnvironmentUpdateProperties; @@ -39,15 +61,19 @@ model Environment { @doc("Environment type.") @visibility("read", "create") + @projectedName("csharp", "environmentTypeName") + @projectedName("java", "environmentTypeName") environmentType: string; @doc("The AAD object id of the owner of this Environment.") @visibility("read") + @projectedName("csharp", "userId") + @projectedName("java", "userId") user?: string; @doc("The provisioning state of the environment.") @visibility("read") - provisioningState?: string; + provisioningState?: EnvironmentProvisioningState; @doc("The identifier of the resource group containing the environment's resources.") @visibility("read") @@ -89,7 +115,6 @@ model Catalog { model EnvironmentDefinitionListResult is Azure.Core.Page; @doc("An environment definition.") -@projectedName("csharp", "EnvironmentDefinitionModel") model EnvironmentDefinition { @doc("The ID of the environment definition.") id: string; @@ -114,7 +139,6 @@ model EnvironmentDefinition { } @doc("Properties of an Environment Definition parameter") -@projectedName("csharp", "EnvironmentDefinitionParameterModel") model EnvironmentDefinitionParameter { @doc("Unique ID of the parameter") id: string; @@ -126,12 +150,16 @@ model EnvironmentDefinitionParameter { description?: string; @doc("Default value of the parameter") - default?: string; + @projectedName("csharp", "defaultValue") + @projectedName("java", "defaultValue") + default?: {}; @doc(""" A string of one of the basic JSON types (number, integer, array, object, boolean, string) """) + @projectedName("csharp", "parameterType") + @projectedName("java", "parameterType") type: ParameterType; @doc(""" @@ -153,6 +181,8 @@ value. model EnvironmentTypeListResult is Azure.Core.Page; @doc("Properties of an environment type.") +@projectedName("csharp", "DevCenterEnvironmentType") +@projectedName("java", "DevCenterEnvironmentType") model EnvironmentType { @doc("Name of the environment type") name: string; diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index bd8e24aa1b8c..734386aefbc3 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -10,17 +10,11 @@ using TypeSpec.Http; namespace DevCenterService; -@doc("Operation Error message") -model OperationStatusError { - @doc("The error code.") - code?: string; - - @doc("The error message.") - message?: string; -} - @doc("Indicates whether operation status is running, completed, canceled or failed.") @lroStatus +@projectedName("csharp", "DevCenterOperationStatus") +@projectedName("java", "DevCenterOperationStatus") +@projectedName("python", "OperationStatus") enum OperationStatusValue { Running, @lroSucceeded @@ -30,6 +24,9 @@ enum OperationStatusValue { } @doc("The current status of an async operation") +@projectedName("csharp", "DevCenterOperationDetails") +@projectedName("java", "DevCenterOperationDetails") +@projectedName("python", "OperationDetails") model OperationStatus { @doc("Fully qualified ID for the operation status.") id?: string; @@ -44,14 +41,11 @@ model OperationStatus { resourceId?: string; @doc("The start time of the operation") - // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. startTime?: utcDateTime; @doc("The end time of the operation") - // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. endTime?: utcDateTime; - // FIXME: check if this is a float or int @doc("Percent of the operation that is complete") @minValue(0.0) @maxValue(100.0) @@ -61,7 +55,7 @@ model OperationStatus { properties?: unknown; @doc("Operation Error message") - error?: OperationStatusError; + error?: Azure.Core.Foundations.Error; } @doc("Project details.") From 917a82e978570d2bac7233953e992d7d0205061e Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 11 Dec 2023 15:40:58 -0800 Subject: [PATCH 073/187] temp remove enum --- .../devcenter/DevCenter/devbox/models.tsp | 44 +------------------ .../DevCenter/environments/models.tsp | 18 +------- 2 files changed, 3 insertions(+), 59 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index 4315244e160d..6fc84654552b 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -34,46 +34,6 @@ enum LocalAdminStatus { Disabled, } -enum DevBoxProvisioningState { -Succeeded, -Failed, -Canceled, -Creating, -Deleting, -Updating, -Starting, -Stopping, -Provisioning, -ProvisionedWithWarning, -InGracePeriod, -NotProvisioned -} - -enum SkuName { -"general_i_8c32gb256ssd_v2", -"general_i_8c32gb512ssd_v2", -"general_i_8c32gb1024ssd_v2", -"general_i_8c32gb2048ssd_v2", -"general_i_16c64gb256ssd_v2", -"general_i_16c64gb512ssd_v2", -"general_i_16c64gb1024ssd_v2", -"general_i_16c64gb2048ssd_v2", -"general_i_32c128gb512ssd_v2", -"general_i_32c128gb1024ssd_v2", -"general_i_32c128gb2048ssd_v2", -"general_a_8c32gb256ssd_v2", -"general_a_8c32gb512ssd_v2", -"general_a_8c32gb1024ssd_v2", -"general_a_8c32gb2048ssd_v2", -"general_a_16c64gb256ssd_v2", -"general_a_16c64gb512ssd_v2", -"general_a_16c64gb1024ssd_v2", -"general_a_16c64gb2048ssd_v2", -"general_a_32c128gb512ssd_v2", -"general_a_32c128gb1024ssd_v2", -"general_a_32c128gb2048ssd_v2" -} - @doc("Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.") @projectedName("csharp", "StopOnDisconnectStatus") @projectedName("java", "StopOnDisconnectStatus") @@ -193,7 +153,7 @@ available to create Dev Boxes. model HardwareProfile { @doc("The name of the SKU") @visibility("read") - skuName?: SkuName; + skuName?: string; @doc("The number of vCPUs available for the Dev Box.") @visibility("read") @@ -326,7 +286,7 @@ model DevBox { @doc("The current provisioning state of the Dev Box.") @visibility("read") - provisioningState?: DevBoxProvisioningState; + provisioningState?: string; @doc(""" The current action state of the Dev Box. This is state is based on previous diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index ebd6399841da..38b450fc770c 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -30,22 +30,6 @@ enum EnvironmentTypeEnableStatus { @doc("The environment type is not enabled for use in the project.") Disabled, } -enum EnvironmentProvisioningState { -Succeeded, -Failed, -Canceled, -Creating, -Accepted, -Deleting, -Updating, -Preparing, -Running, -Syncing, -MovingResources, -TransientFailure, -StorageProvisioningFailed, -} - @doc("Results of the environment list operation.") model EnvironmentListResult is Azure.Core.Page; @@ -73,7 +57,7 @@ model Environment { @doc("The provisioning state of the environment.") @visibility("read") - provisioningState?: EnvironmentProvisioningState; + provisioningState?: string; @doc("The identifier of the resource group containing the environment's resources.") @visibility("read") From eaea09dee48b2e9b633ffa25d364d06bb4c05917 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 11 Dec 2023 15:47:19 -0800 Subject: [PATCH 074/187] update type to unknown --- specification/devcenter/DevCenter/environments/models.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index 38b450fc770c..41468c5aaea0 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -136,7 +136,7 @@ model EnvironmentDefinitionParameter { @doc("Default value of the parameter") @projectedName("csharp", "defaultValue") @projectedName("java", "defaultValue") - default?: {}; + default?: unknown; @doc(""" A string of one of the basic JSON types (number, integer, array, object, From 89f4b6a1873328b4df4d420d53cc175a89cd3386 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 11 Dec 2023 15:51:31 -0800 Subject: [PATCH 075/187] Revert "temp remove enum" This reverts commit 917a82e978570d2bac7233953e992d7d0205061e. --- .../devcenter/DevCenter/devbox/models.tsp | 44 ++++++++++++++++++- .../DevCenter/environments/models.tsp | 18 +++++++- 2 files changed, 59 insertions(+), 3 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index 6fc84654552b..4315244e160d 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -34,6 +34,46 @@ enum LocalAdminStatus { Disabled, } +enum DevBoxProvisioningState { +Succeeded, +Failed, +Canceled, +Creating, +Deleting, +Updating, +Starting, +Stopping, +Provisioning, +ProvisionedWithWarning, +InGracePeriod, +NotProvisioned +} + +enum SkuName { +"general_i_8c32gb256ssd_v2", +"general_i_8c32gb512ssd_v2", +"general_i_8c32gb1024ssd_v2", +"general_i_8c32gb2048ssd_v2", +"general_i_16c64gb256ssd_v2", +"general_i_16c64gb512ssd_v2", +"general_i_16c64gb1024ssd_v2", +"general_i_16c64gb2048ssd_v2", +"general_i_32c128gb512ssd_v2", +"general_i_32c128gb1024ssd_v2", +"general_i_32c128gb2048ssd_v2", +"general_a_8c32gb256ssd_v2", +"general_a_8c32gb512ssd_v2", +"general_a_8c32gb1024ssd_v2", +"general_a_8c32gb2048ssd_v2", +"general_a_16c64gb256ssd_v2", +"general_a_16c64gb512ssd_v2", +"general_a_16c64gb1024ssd_v2", +"general_a_16c64gb2048ssd_v2", +"general_a_32c128gb512ssd_v2", +"general_a_32c128gb1024ssd_v2", +"general_a_32c128gb2048ssd_v2" +} + @doc("Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.") @projectedName("csharp", "StopOnDisconnectStatus") @projectedName("java", "StopOnDisconnectStatus") @@ -153,7 +193,7 @@ available to create Dev Boxes. model HardwareProfile { @doc("The name of the SKU") @visibility("read") - skuName?: string; + skuName?: SkuName; @doc("The number of vCPUs available for the Dev Box.") @visibility("read") @@ -286,7 +326,7 @@ model DevBox { @doc("The current provisioning state of the Dev Box.") @visibility("read") - provisioningState?: string; + provisioningState?: DevBoxProvisioningState; @doc(""" The current action state of the Dev Box. This is state is based on previous diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index 41468c5aaea0..421e6b45d881 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -30,6 +30,22 @@ enum EnvironmentTypeEnableStatus { @doc("The environment type is not enabled for use in the project.") Disabled, } +enum EnvironmentProvisioningState { +Succeeded, +Failed, +Canceled, +Creating, +Accepted, +Deleting, +Updating, +Preparing, +Running, +Syncing, +MovingResources, +TransientFailure, +StorageProvisioningFailed, +} + @doc("Results of the environment list operation.") model EnvironmentListResult is Azure.Core.Page; @@ -57,7 +73,7 @@ model Environment { @doc("The provisioning state of the environment.") @visibility("read") - provisioningState?: string; + provisioningState?: EnvironmentProvisioningState; @doc("The identifier of the resource group containing the environment's resources.") @visibility("read") From c65868eb055569bfa1a7421d467815cebabff78d Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 11 Dec 2023 17:37:11 -0800 Subject: [PATCH 076/187] update schema type and fix localadim name --- specification/devcenter/DevCenter/devbox/models.tsp | 2 ++ specification/devcenter/DevCenter/environments/models.tsp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index 4315244e160d..8aa1562f4e30 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -385,6 +385,8 @@ Virtual Network it is attached to. createdTime?: utcDateTime; @doc("Indicates whether the owner of the Dev Box is a local administrator.") + @projectedName("csharp", "LocalAdministratorStatus") + @projectedName("java", "LocalAdministratorStatus") localAdministrator?: LocalAdminStatus; } diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index 421e6b45d881..f83e36479a96 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -132,7 +132,7 @@ model EnvironmentDefinition { parameters?: EnvironmentDefinitionParameter[]; @doc("JSON schema defining the parameters object passed to an environment.") - parametersSchema?: string; + parametersSchema?: bytes; @doc("Path to the Environment Definition entrypoint file.") templatePath?: string; From fc4b3c3936452beb6e8410cc9a91e6ffacb645f3 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 12 Dec 2023 19:01:58 -0800 Subject: [PATCH 077/187] Add resourceIdentifier, uuid and doc for enum --- .../devcenter/DevCenter/devbox/models.tsp | 81 ++++++++++--------- .../DevCenter/environments/models.tsp | 34 ++++---- .../devcenter/DevCenter/shared/models.tsp | 3 +- .../devcenter/DevCenter/tspconfig.yaml | 5 +- 4 files changed, 64 insertions(+), 59 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index 8aa1562f4e30..c26f5a236dd1 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -34,44 +34,46 @@ enum LocalAdminStatus { Disabled, } +@doc("Indicates the provisioning state of the Dev Box.") enum DevBoxProvisioningState { -Succeeded, -Failed, -Canceled, -Creating, -Deleting, -Updating, -Starting, -Stopping, -Provisioning, -ProvisionedWithWarning, -InGracePeriod, -NotProvisioned + @doc("Dev Box was successfully provisioned") Succeeded, + @doc("Dev Box failed to provision") Failed, + @doc("Dev Box provision was canceled") Canceled, + @doc("Dev Box is being created") Creating, + @doc("Dev Box is being deleted") Deleting, + @doc("Dev Box is updating") Updating, + @doc("Dev Box is starting") Starting, + @doc("Dev Box is stopping") Stopping, + @doc("Dev Box is provisioning") Provisioning, + @doc("Dev Box was provisioned with warning") ProvisionedWithWarning, + @doc("Dev Box is in grace period") InGracePeriod, + @doc("Dev Box is not provisioned") NotProvisioned } +@doc("Indicates the Dev Box compute.") enum SkuName { -"general_i_8c32gb256ssd_v2", -"general_i_8c32gb512ssd_v2", -"general_i_8c32gb1024ssd_v2", -"general_i_8c32gb2048ssd_v2", -"general_i_16c64gb256ssd_v2", -"general_i_16c64gb512ssd_v2", -"general_i_16c64gb1024ssd_v2", -"general_i_16c64gb2048ssd_v2", -"general_i_32c128gb512ssd_v2", -"general_i_32c128gb1024ssd_v2", -"general_i_32c128gb2048ssd_v2", -"general_a_8c32gb256ssd_v2", -"general_a_8c32gb512ssd_v2", -"general_a_8c32gb1024ssd_v2", -"general_a_8c32gb2048ssd_v2", -"general_a_16c64gb256ssd_v2", -"general_a_16c64gb512ssd_v2", -"general_a_16c64gb1024ssd_v2", -"general_a_16c64gb2048ssd_v2", -"general_a_32c128gb512ssd_v2", -"general_a_32c128gb1024ssd_v2", -"general_a_32c128gb2048ssd_v2" + @doc("Intel, 8 vCPU, 32 GB RAM, 256 GB Storage") "general_i_8c32gb256ssd_v2", + @doc("Intel, 8 vCPU, 32 GB RAM, 512 GB Storage") "general_i_8c32gb512ssd_v2", + @doc("Intel, 8 vCPU, 32 GB RAM, 1024 GB Storage") "general_i_8c32gb1024ssd_v2", + @doc("Intel, 8 vCPU, 32 GB RAM, 2048 GB Storage") "general_i_8c32gb2048ssd_v2", + @doc("Intel, 16 vCPU, 64 GB RAM, 256 GB Storage") "general_i_16c64gb256ssd_v2", + @doc("Intel, 16 vCPU, 64 GB RAM, 512 GB Storage") "general_i_16c64gb512ssd_v2", + @doc("Intel, 16 vCPU, 64 GB RAM, 1024 GB Storage") "general_i_16c64gb1024ssd_v2", + @doc("Intel, 16 vCPU, 64 GB RAM, 2048 GB Storage") "general_i_16c64gb2048ssd_v2", + @doc("Intel, 32 vCPU, 128 GB RAM, 512 GB Storage") "general_i_32c128gb512ssd_v2", + @doc("Intel, 32 vCPU, 128 GB RAM, 1024 GB Storage") "general_i_32c128gb1024ssd_v2", + @doc("Intel, 32 vCPU, 128 GB RAM, 2048 GB Storage") "general_i_32c128gb2048ssd_v2", + @doc("AMD, 8 vCPU, 32 GB RAM, 256 GB Storage") "general_a_8c32gb256ssd_v2", + @doc("AMD, 8 vCPU, 32 GB RAM, 512 GB Storage") "general_a_8c32gb512ssd_v2", + @doc("AMD, 8 vCPU, 32 GB RAM, 1024 GB Storage") "general_a_8c32gb1024ssd_v2", + @doc("AMD, 8 vCPU, 32 GB RAM, 2048 GB Storage") "general_a_8c32gb2048ssd_v2", + @doc("AMD, 16 vCPU, 64 GB RAM, 256 GB Storage") "general_a_16c64gb256ssd_v2", + @doc("AMD, 16 vCPU, 64 GB RAM, 512 GB Storage") "general_a_16c64gb512ssd_v2", + @doc("AMD, 16 vCPU, 64 GB RAM, 1024 GB Storage") "general_a_16c64gb1024ssd_v2", + @doc("AMD, 16 vCPU, 64 GB RAM, 2048 GB Storage") "general_a_16c64gb2048ssd_v2", + @doc("AMD, 32 vCPU, 128 GB RAM, 512 GB Storage") "general_a_32c128gb512ssd_v2", + @doc("AMD, 32 vCPU, 128 GB RAM, 1024 GB Storage") "general_a_32c128gb1024ssd_v2", + @doc("AMD, 32 vCPU, 128 GB RAM, 2048 GB Storage") "general_a_32c128gb2048ssd_v2" } @doc("Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.") @@ -133,10 +135,10 @@ model PoolListResult is Azure.Core.Page; @resource("users") @parentResource(Project) model User { - @key("userName") + @key("userId") @visibility("read") - @doc("User name") - name: string; + @doc("The AAD object id of the user") + user: Azure.Core.uuid; } @doc("A pool of Dev Boxes.") @@ -249,7 +251,6 @@ model ImageReference { @doc("The datetime that the backing image version was published.") @visibility("read") - // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. publishedDate?: utcDateTime; } @@ -344,7 +345,7 @@ A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). """) @visibility("read") - uniqueId?: string; + uniqueId?: Azure.Core.uuid; @doc("Provisioning or action error details. Populated only for error states.") @visibility("read") @@ -366,7 +367,7 @@ Virtual Network it is attached to. @visibility("read") @projectedName("csharp", "userId") @projectedName("java", "userId") - user?: string; + user?: Azure.Core.uuid; @doc("Information about the Dev Box's hardware resources") @visibility("read") diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index f83e36479a96..87015dae3ae0 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -1,6 +1,7 @@ import "@typespec/rest"; import "@typespec/http"; import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; import "../shared/models.tsp"; using TypeSpec.Versioning; @@ -30,20 +31,21 @@ enum EnvironmentTypeEnableStatus { @doc("The environment type is not enabled for use in the project.") Disabled, } +@doc("The provisioning state of the environment.") enum EnvironmentProvisioningState { -Succeeded, -Failed, -Canceled, -Creating, -Accepted, -Deleting, -Updating, -Preparing, -Running, -Syncing, -MovingResources, -TransientFailure, -StorageProvisioningFailed, + @doc("The environment was successfully provisioned.") Succeeded, + @doc("The environment failed to provision.") Failed, + @doc("The environment provisioning was canceled.") Canceled, + @doc("The environment is creating.") Creating, + @doc("The environment was accepted.") Accepted, + @doc("The environment is deleting.") Deleting, + @doc("The environment is updating.") Updating, + @doc("The environment is preparing.") Preparing, + @doc("The environment is running.") Running, + @doc("The environment is Syncing.") Syncing, + @doc("The environment is moving resources.") MovingResources, + @doc("The environment has a transient failure.") TransientFailure, + @doc("The environment storage provisioning failed.") StorageProvisioningFailed, } @doc("Results of the environment list operation.") @@ -69,7 +71,7 @@ model Environment { @visibility("read") @projectedName("csharp", "userId") @projectedName("java", "userId") - user?: string; + user?: Azure.Core.uuid; @doc("The provisioning state of the environment.") @visibility("read") @@ -77,7 +79,7 @@ model Environment { @doc("The identifier of the resource group containing the environment's resources.") @visibility("read") - resourceGroupId?: string; + resourceGroupId?: Azure.ResourceManager.ResourceIdentifier<[{type:"Microsoft.Resources/resourceGroups"}]> ; @doc("Name of the catalog.") @visibility("read", "create") @@ -192,7 +194,7 @@ Id of a subscription or management group that the environment type will be mapped to. The environment's resources will be deployed into this subscription or management group. """) - deploymentTargetId: string; + deploymentTargetId: Azure.ResourceManager.ResourceIdentifier; @doc("Indicates whether this environment type is enabled for use in this project.") status: EnvironmentTypeEnableStatus; diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index 734386aefbc3..d3f3a5eb5f76 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -1,6 +1,7 @@ import "@typespec/rest"; import "@typespec/http"; import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; import "../service.tsp"; using Azure.Core; @@ -38,7 +39,7 @@ model OperationStatus { status: OperationStatusValue; @doc("The id of the resource.") - resourceId?: string; + resourceId?: Azure.ResourceManager.ResourceIdentifier; @doc("The start time of the operation") startTime?: utcDateTime; diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index 38f0ba5fb296..b139a346adaf 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -10,8 +10,9 @@ emit: [ "@azure-tools/typespec-ts", ] linter: - extends: - - "@azure-tools/typespec-azure-core/all" + extends: [ + "@azure-tools/typespec-azure-core/all", + "@azure-tools/typespec-azure-resource-manager/all" ] options: "@azure-tools/typespec-csharp": namespace : "Azure.Developer.DevCenter" From c87673a53bbb636c8cda040abc6b03eefac004cb Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 13 Dec 2023 14:14:34 -0800 Subject: [PATCH 078/187] test without resouceid --- specification/devcenter/DevCenter/environments/models.tsp | 5 ++--- specification/devcenter/DevCenter/shared/models.tsp | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index 87015dae3ae0..4868f0d376ca 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -1,7 +1,6 @@ import "@typespec/rest"; import "@typespec/http"; import "@azure-tools/typespec-azure-core"; -import "@azure-tools/typespec-azure-resource-manager"; import "../shared/models.tsp"; using TypeSpec.Versioning; @@ -79,7 +78,7 @@ model Environment { @doc("The identifier of the resource group containing the environment's resources.") @visibility("read") - resourceGroupId?: Azure.ResourceManager.ResourceIdentifier<[{type:"Microsoft.Resources/resourceGroups"}]> ; + resourceGroupId?: string ; @doc("Name of the catalog.") @visibility("read", "create") @@ -194,7 +193,7 @@ Id of a subscription or management group that the environment type will be mapped to. The environment's resources will be deployed into this subscription or management group. """) - deploymentTargetId: Azure.ResourceManager.ResourceIdentifier; + deploymentTargetId: string; @doc("Indicates whether this environment type is enabled for use in this project.") status: EnvironmentTypeEnableStatus; diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index d3f3a5eb5f76..734386aefbc3 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -1,7 +1,6 @@ import "@typespec/rest"; import "@typespec/http"; import "@azure-tools/typespec-azure-core"; -import "@azure-tools/typespec-azure-resource-manager"; import "../service.tsp"; using Azure.Core; @@ -39,7 +38,7 @@ model OperationStatus { status: OperationStatusValue; @doc("The id of the resource.") - resourceId?: Azure.ResourceManager.ResourceIdentifier; + resourceId?: string; @doc("The start time of the operation") startTime?: utcDateTime; From 86ae0c3338113863df553e08c97333b44799e9c8 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 13 Dec 2023 15:49:54 -0800 Subject: [PATCH 079/187] remove linter extends arm --- specification/devcenter/DevCenter/tspconfig.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index b139a346adaf..8ffa63155f5d 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -10,9 +10,8 @@ emit: [ "@azure-tools/typespec-ts", ] linter: - extends: [ - "@azure-tools/typespec-azure-core/all", - "@azure-tools/typespec-azure-resource-manager/all" ] + extends: + - "@azure-tools/typespec-azure-core/all" options: "@azure-tools/typespec-csharp": namespace : "Azure.Developer.DevCenter" From 9a11d0f9cbd78b4ff70dd0b6aac05562a05052b4 Mon Sep 17 00:00:00 2001 From: Catalina Peralta Date: Wed, 13 Dec 2023 11:23:47 -0800 Subject: [PATCH 080/187] wip createdevbox --- .../devcenter/DevCenter/devbox/models.tsp | 3 +- .../devcenter/DevCenter/devbox/routes.tsp | 72 ++++++++++--------- 2 files changed, 41 insertions(+), 34 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index c26f5a236dd1..f54655731c3c 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -307,10 +307,11 @@ model DevBoxListResult is Azure.Core.Page; model DevBox { @key("devBoxName") @doc("Display name for the Dev Box") - @visibility("read") + @visibility("create", "read") name: string; @doc("Name of the project this Dev Box belongs to") + @path("projectName") @visibility("read") projectName?: string; diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index e0d8d2cb5e57..5f7c2458a52e 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -9,6 +9,8 @@ using TypeSpec.Http; namespace DevCenterService; +alias standardOps = StandardResourceOperations; + interface DevBoxesOperations { @doc("Lists available pools") @route("/projects/{projectName}/pools") @@ -137,39 +139,43 @@ interface DevBoxesOperations { @doc("Creates or replaces a Dev Box.") @finalOperation(DevBoxesOperations.GetDevBox) @pollingOperation(SharedOperations.GetProjectOperationStatus) - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") - @put - CreateDevBox is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - - @doc("Represents a environment.") - @body - devBox: DevBox; - }, - DevBox | { - @statusCode statusCode: 201; - - @header("Location") - location: ResourceLocation; - - @pollingLocation - @header("Operation-Location") - operationLocation: string; - - @body body?: DevBox; - } - >; + CreateDevBox is standardOps.LongRunningResourceCreateOrReplace; + // @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") + // @put + // @createsOrUpdatesResource(DevBox) + // CreateDevBox is Azure.Core.Foundations.Operation< + // { + // @projectedName("client", "name") + // @doc("Display name for the Dev Box") + // @path("devBoxName") + // devBoxName: string; + + // @path("projectName") + // @doc("Name of the project the Dev Box belongs to") + // projectName: string; + + // @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + // @path("userId") + // userId: string; + + // @doc("Represents a DevBox.") + // @body + // devBox: DevBox; + // }, + // DevBox | + // { + // @statusCode statusCode: 201; + + // @header("Location") + // location: ResourceLocation; + + // @pollingLocation + // @header("Operation-Location") + // operationLocation: string; + + // @body body?: DevBox; + // } + // >; @doc("Deletes a Dev Box.") @pollingOperation(SharedOperations.GetProjectOperationStatus) From a8904ad3ee27d20afb0cbe6a5f39d6028d174a65 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 15 Dec 2023 17:22:36 -0800 Subject: [PATCH 081/187] Revert "wip createdevbox" This reverts commit 9a11d0f9cbd78b4ff70dd0b6aac05562a05052b4. --- .../devcenter/DevCenter/devbox/models.tsp | 3 +- .../devcenter/DevCenter/devbox/routes.tsp | 72 +++++++++---------- 2 files changed, 34 insertions(+), 41 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index f54655731c3c..c26f5a236dd1 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -307,11 +307,10 @@ model DevBoxListResult is Azure.Core.Page; model DevBox { @key("devBoxName") @doc("Display name for the Dev Box") - @visibility("create", "read") + @visibility("read") name: string; @doc("Name of the project this Dev Box belongs to") - @path("projectName") @visibility("read") projectName?: string; diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 5f7c2458a52e..e0d8d2cb5e57 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -9,8 +9,6 @@ using TypeSpec.Http; namespace DevCenterService; -alias standardOps = StandardResourceOperations; - interface DevBoxesOperations { @doc("Lists available pools") @route("/projects/{projectName}/pools") @@ -139,43 +137,39 @@ interface DevBoxesOperations { @doc("Creates or replaces a Dev Box.") @finalOperation(DevBoxesOperations.GetDevBox) @pollingOperation(SharedOperations.GetProjectOperationStatus) - CreateDevBox is standardOps.LongRunningResourceCreateOrReplace; - // @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") - // @put - // @createsOrUpdatesResource(DevBox) - // CreateDevBox is Azure.Core.Foundations.Operation< - // { - // @projectedName("client", "name") - // @doc("Display name for the Dev Box") - // @path("devBoxName") - // devBoxName: string; - - // @path("projectName") - // @doc("Name of the project the Dev Box belongs to") - // projectName: string; - - // @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - // @path("userId") - // userId: string; - - // @doc("Represents a DevBox.") - // @body - // devBox: DevBox; - // }, - // DevBox | - // { - // @statusCode statusCode: 201; - - // @header("Location") - // location: ResourceLocation; - - // @pollingLocation - // @header("Operation-Location") - // operationLocation: string; - - // @body body?: DevBox; - // } - // >; + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") + @put + CreateDevBox is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + + @doc("Represents a environment.") + @body + devBox: DevBox; + }, + DevBox | { + @statusCode statusCode: 201; + + @header("Location") + location: ResourceLocation; + + @pollingLocation + @header("Operation-Location") + operationLocation: string; + + @body body?: DevBox; + } + >; @doc("Deletes a Dev Box.") @pollingOperation(SharedOperations.GetProjectOperationStatus) From 6aa435afa6317e99e5cf202670352520f06d256b Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 16 Jan 2024 18:10:26 -0300 Subject: [PATCH 082/187] update create dev box to use pool name as body instead of model --- specification/devcenter/DevCenter/devbox/routes.tsp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index e0d8d2cb5e57..65755e735040 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -141,7 +141,7 @@ interface DevBoxesOperations { @put CreateDevBox is Azure.Core.Foundations.Operation< { - @doc("The DevCenter Project upon which to execute operations.") + @doc("The DevCenter Project upon which to execute the operation.") @path projectName: string; @@ -153,9 +153,9 @@ interface DevBoxesOperations { @path devBoxName: string; - @doc("Represents a environment.") + @doc("The name of the Pool upon which to execute the operation.") @body - devBox: DevBox; + poolName: string; }, DevBox | { @statusCode statusCode: 201; From 9a08d3e700faab104a1759ee9c2ec8de745db274 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 17 Jan 2024 11:49:10 -0300 Subject: [PATCH 083/187] Update type to serialize using string instead of bytes --- specification/devcenter/DevCenter/environments/models.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index 4868f0d376ca..453c5bdc262e 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -133,7 +133,7 @@ model EnvironmentDefinition { parameters?: EnvironmentDefinitionParameter[]; @doc("JSON schema defining the parameters object passed to an environment.") - parametersSchema?: bytes; + parametersSchema?: unknown; @doc("Path to the Environment Definition entrypoint file.") templatePath?: string; From 5562b00cb27bae2c3f1c07986c19e9630748200a Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 17 Jan 2024 12:36:16 -0300 Subject: [PATCH 084/187] add visibility `create` to local administrator --- specification/devcenter/DevCenter/devbox/models.tsp | 1 + specification/devcenter/DevCenter/devbox/routes.tsp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index c26f5a236dd1..946b95469f6d 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -386,6 +386,7 @@ Virtual Network it is attached to. createdTime?: utcDateTime; @doc("Indicates whether the owner of the Dev Box is a local administrator.") + @visibility("read", "create") @projectedName("csharp", "LocalAdministratorStatus") @projectedName("java", "LocalAdministratorStatus") localAdministrator?: LocalAdminStatus; diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 65755e735040..ccd8ec5e8763 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -153,9 +153,9 @@ interface DevBoxesOperations { @path devBoxName: string; - @doc("The name of the Pool upon which to execute the operation.") + @doc("Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator") @body - poolName: string; + devBox: DevBox; }, DevBox | { @statusCode statusCode: 201; From 1a6a0821b9a8edcc34801f96e30b04b3a5e5446c Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 18 Jan 2024 12:22:34 -0300 Subject: [PATCH 085/187] update user to string as it accepts "me" --- specification/devcenter/DevCenter/devbox/models.tsp | 2 +- specification/devcenter/DevCenter/devbox/routes.tsp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index 946b95469f6d..623bc2a18ca9 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -138,7 +138,7 @@ model User { @key("userId") @visibility("read") @doc("The AAD object id of the user") - user: Azure.Core.uuid; + user: string; } @doc("A pool of Dev Boxes.") diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index ccd8ec5e8763..9e201d0290aa 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -101,7 +101,7 @@ interface DevBoxesOperations { @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path - userId: string = "me"; + userId: string; @doc("An OData filter clause to apply to the operation.") @query From 16b8581f55c14c1b01055ab37218c944f813a12a Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 18 Jan 2024 17:47:26 -0300 Subject: [PATCH 086/187] remove emit --- specification/devcenter/DevCenter/tspconfig.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index 8ffa63155f5d..6ddfc464e46d 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -2,12 +2,7 @@ parameters: service-dir: default: "sdk/devcenter" emit: [ - # "@azure-tools/typespec-apiview", "@azure-tools/typespec-autorest", - "@azure-tools/typespec-csharp", - "@azure-tools/typespec-java", - "@azure-tools/typespec-python", - "@azure-tools/typespec-ts", ] linter: extends: From afea630a3f277f9398f582723e792d8f6e5b7bd0 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 18 Jan 2024 18:02:04 -0300 Subject: [PATCH 087/187] Fix error casing-style: The names of Operation types must use camelCase --- specification/devcenter/DevCenter/client.tsp | 66 +++++++++---------- .../devcenter/DevCenter/devbox/routes.tsp | 50 +++++++------- .../devcenter/DevCenter/devcenter/routes.tsp | 4 +- .../DevCenter/environments/routes.tsp | 28 ++++---- .../devcenter/DevCenter/shared/routes.tsp | 2 +- 5 files changed, 75 insertions(+), 75 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 3f8f3403032e..4f6fd8e371b7 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -10,15 +10,15 @@ using DevCenterService; using Azure.ClientGenerator.Core; @useDependency(APIVersions.v2023_04_01) -namespace SDKCustomizations; +namespace SdkCustomizations; @client({ name: "DevCenterClient", service: DevCenterService, }) interface DevCenterClientOperations { - ListProjects is DevCenterService.DevCenterOperations.ListProjects; - GetProject is DevCenterService.DevCenterOperations.GetProject; + listProjects is DevCenterService.DevCenterOperations.listProjects; + getProject is DevCenterService.DevCenterOperations.getProject; } @client({ @@ -26,25 +26,25 @@ interface DevCenterClientOperations { service: DevCenterService, }) interface DevBoxesClientOperations { - ListPools is DevCenterService.DevBoxesOperations.ListPools; - GetPool is DevCenterService.DevBoxesOperations.GetPool; - ListSchedules is DevCenterService.DevBoxesOperations.ListSchedules; - GetSchedule is DevCenterService.DevBoxesOperations.GetSchedule; - ListAllDevBoxes is DevCenterService.DevBoxesDevCenterOperations.ListAllDevBoxes; - ListAllDevBoxesByUser is DevCenterService.DevBoxesDevCenterOperations.ListAllDevBoxesByUser; - ListDevBoxes is DevCenterService.DevBoxesOperations.ListDevBoxes; - GetDevBox is DevCenterService.DevBoxesOperations.GetDevBox; - CreateDevBox is DevCenterService.DevBoxesOperations.CreateDevBox; - DeleteDevBox is DevCenterService.DevBoxesOperations.DeleteDevBox; - StartDevBox is DevCenterService.DevBoxesOperations.StartDevBox; - StopDevBox is DevCenterService.DevBoxesOperations.StopDevBox; - RestartDevBox is DevCenterService.DevBoxesOperations.RestartDevBox; - GetRemoteConnection is DevCenterService.DevBoxesOperations.GetRemoteConnection; - ListDevBoxActions is DevCenterService.DevBoxesOperations.ListDevBoxActions; - GetDevBoxAction is DevCenterService.DevBoxesOperations.GetDevBoxAction; - SkipAction is DevCenterService.DevBoxesOperations.SkipAction; - DelayAction is DevCenterService.DevBoxesOperations.DelayAction; - DelayAllActions is DevCenterService.DevBoxesOperations.DelayAllActions; + listPools is DevCenterService.DevBoxesOperations.listPools; + getPool is DevCenterService.DevBoxesOperations.getPool; + listSchedules is DevCenterService.DevBoxesOperations.listSchedules; + getSchedule is DevCenterService.DevBoxesOperations.getSchedule; + listAllDevBoxes is DevCenterService.DevBoxesDevCenterOperations.listAllDevBoxes; + listAllDevBoxesByUser is DevCenterService.DevBoxesDevCenterOperations.listAllDevBoxesByUser; + listDevBoxes is DevCenterService.DevBoxesOperations.listDevBoxes; + getDevBox is DevCenterService.DevBoxesOperations.getDevBox; + createDevBox is DevCenterService.DevBoxesOperations.createDevBox; + deleteDevBox is DevCenterService.DevBoxesOperations.deleteDevBox; + startDevBox is DevCenterService.DevBoxesOperations.startDevBox; + stopDevBox is DevCenterService.DevBoxesOperations.stopDevBox; + restartDevBox is DevCenterService.DevBoxesOperations.restartDevBox; + getRemoteConnection is DevCenterService.DevBoxesOperations.getRemoteConnection; + listDevBoxActions is DevCenterService.DevBoxesOperations.listDevBoxActions; + getDevBoxAction is DevCenterService.DevBoxesOperations.getDevBoxAction; + skipAction is DevCenterService.DevBoxesOperations.skipAction; + delayAction is DevCenterService.DevBoxesOperations.delayAction; + delayAllActions is DevCenterService.DevBoxesOperations.delayAllActions; } @client({ @@ -52,15 +52,15 @@ interface DevBoxesClientOperations { service: DevCenterService, }) interface EnvironmentClientOperations { - ListAllEnvironments is DevCenterService.EnvironmentsOperations.ListAllEnvironments; - ListEnvironments is DevCenterService.EnvironmentsOperations.ListEnvironments; - GetEnvironment is DevCenterService.EnvironmentsOperations.GetEnvironment; - CreateOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.CreateOrUpdateEnvironment; - DeleteEnvironment is DevCenterService.EnvironmentsOperations.DeleteEnvironment; - ListCatalogs is DevCenterService.EnvironmentsOperations.ListCatalogs; - GetCatalog is DevCenterService.EnvironmentsOperations.GetCatalog; - ListEnvironmentDefinitions is DevCenterService.EnvironmentsOperations.ListEnvironmentDefinitions; - ListEnvironmentDefinitionsByCatalog is DevCenterService.EnvironmentsOperations.ListEnvironmentDefinitionsByCatalog; - GetEnvironmentDefinition is DevCenterService.EnvironmentsOperations.GetEnvironmentDefinition; - ListEnvironmentTypes is DevCenterService.EnvironmentsOperations.ListEnvironmentTypes; + listAllEnvironments is DevCenterService.EnvironmentsOperations.listAllEnvironments; + listEnvironments is DevCenterService.EnvironmentsOperations.listEnvironments; + getEnvironment is DevCenterService.EnvironmentsOperations.getEnvironment; + createOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.createOrUpdateEnvironment; + deleteEnvironment is DevCenterService.EnvironmentsOperations.deleteEnvironment; + listCatalogs is DevCenterService.EnvironmentsOperations.listCatalogs; + getCatalog is DevCenterService.EnvironmentsOperations.getCatalog; + listEnvironmentDefinitions is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitions; + listEnvironmentDefinitionsByCatalog is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitionsByCatalog; + getEnvironmentDefinition is DevCenterService.EnvironmentsOperations.getEnvironmentDefinition; + listEnvironmentTypes is DevCenterService.EnvironmentsOperations.listEnvironmentTypes; } diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 9e201d0290aa..9e700ca2fea1 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -13,7 +13,7 @@ interface DevBoxesOperations { @doc("Lists available pools") @route("/projects/{projectName}/pools") @get - ListPools is Azure.Core.Foundations.Operation< + listPools is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -33,7 +33,7 @@ interface DevBoxesOperations { @doc("Gets a pool") @route("/projects/{projectName}/pools/{poolName}") @get - GetPool is Azure.Core.Foundations.Operation< + getPool is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -49,7 +49,7 @@ interface DevBoxesOperations { @doc("Lists available schedules for a pool.") @route("/projects/{projectName}/pools/{poolName}/schedules") @get - ListSchedules is Azure.Core.Foundations.Operation< + listSchedules is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -73,7 +73,7 @@ interface DevBoxesOperations { @doc("Gets a schedule.") @route("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") @get - GetSchedule is Azure.Core.Foundations.Operation< + getSchedule is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -93,7 +93,7 @@ interface DevBoxesOperations { @doc("Lists Dev Boxes in the project for a particular user.") @route("/projects/{projectName}/users/{userId}/devboxes") @get - ListDevBoxes is Azure.Core.Foundations.Operation< + listDevBoxes is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -117,7 +117,7 @@ interface DevBoxesOperations { @doc("Gets a Dev Box") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @get - GetDevBox is Azure.Core.Foundations.Operation< + getDevBox is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -135,11 +135,11 @@ interface DevBoxesOperations { >; @doc("Creates or replaces a Dev Box.") - @finalOperation(DevBoxesOperations.GetDevBox) - @pollingOperation(SharedOperations.GetProjectOperationStatus) + @finalOperation(DevBoxesOperations.getDevBox) + @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @put - CreateDevBox is Azure.Core.Foundations.Operation< + createDevBox is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute the operation.") @path @@ -172,10 +172,10 @@ interface DevBoxesOperations { >; @doc("Deletes a Dev Box.") - @pollingOperation(SharedOperations.GetProjectOperationStatus) + @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @delete - DeleteDevBox is Azure.Core.Foundations.Operation< + deleteDevBox is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -204,10 +204,10 @@ interface DevBoxesOperations { >; @doc("Starts a Dev Box") - @pollingOperation(SharedOperations.GetProjectOperationStatus) + @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start") @post - StartDevBox is Foundations.LongRunningOperation< + startDevBox is Foundations.LongRunningOperation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -230,10 +230,10 @@ interface DevBoxesOperations { >; @doc("Stops a Dev Box") - @pollingOperation(SharedOperations.GetProjectOperationStatus) + @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop") @post - StopDevBox is Foundations.LongRunningOperation< + stopDevBox is Foundations.LongRunningOperation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -260,10 +260,10 @@ interface DevBoxesOperations { >; @doc("Restarts a Dev Box") - @pollingOperation(SharedOperations.GetProjectOperationStatus) + @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart") @post - RestartDevBox is Foundations.LongRunningOperation< + restartDevBox is Foundations.LongRunningOperation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -288,7 +288,7 @@ interface DevBoxesOperations { @doc("Gets RDP Connection info") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection") @get - GetRemoteConnection is Azure.Core.Foundations.Operation< + getRemoteConnection is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -308,7 +308,7 @@ interface DevBoxesOperations { @doc("Lists actions on a Dev Box.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions") @get - ListDevBoxActions is Azure.Core.Foundations.Operation< + listDevBoxActions is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -328,7 +328,7 @@ interface DevBoxesOperations { @doc("Gets an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}") @get - GetDevBoxAction is Azure.Core.Foundations.Operation< + getDevBoxAction is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -352,7 +352,7 @@ interface DevBoxesOperations { @doc("Skips an occurrence of an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip") @post - SkipAction is Azure.Core.Foundations.Operation< + skipAction is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -376,7 +376,7 @@ interface DevBoxesOperations { @doc("Delays the occurrence of an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay") @post - DelayAction is Azure.Core.Foundations.Operation< + delayAction is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -404,7 +404,7 @@ interface DevBoxesOperations { @doc("Delays all actions.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay") @post - DelayAllActions is Azure.Core.Foundations.Operation< + delayAllActions is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -430,7 +430,7 @@ interface DevBoxesDevCenterOperations { @doc("Lists Dev Boxes that the caller has access to in the DevCenter.") @route("/devboxes") @get - ListAllDevBoxes is Azure.Core.Foundations.Operation< + listAllDevBoxes is Azure.Core.Foundations.Operation< { @doc("An OData filter clause to apply to the operation.") @query @@ -446,7 +446,7 @@ interface DevBoxesDevCenterOperations { @doc("Lists Dev Boxes in the Dev Center for a particular user.") @route("/users/{userId}/devboxes") @get - ListAllDevBoxesByUser is Azure.Core.Foundations.Operation< + listAllDevBoxesByUser is Azure.Core.Foundations.Operation< { @doc("An OData filter clause to apply to the operation.") @query diff --git a/specification/devcenter/DevCenter/devcenter/routes.tsp b/specification/devcenter/DevCenter/devcenter/routes.tsp index 7b2e76215954..326a3ff5e6f3 100644 --- a/specification/devcenter/DevCenter/devcenter/routes.tsp +++ b/specification/devcenter/DevCenter/devcenter/routes.tsp @@ -12,7 +12,7 @@ interface DevCenterOperations { @doc("Lists all projects.") @route("/projects") @get - ListProjects is Azure.Core.Foundations.Operation< + listProjects is Azure.Core.Foundations.Operation< { @doc("An OData filter clause to apply to the operation.") @query @@ -28,7 +28,7 @@ interface DevCenterOperations { @doc("Gets a project.") @route("/projects/{projectName}") @get - GetProject is Azure.Core.Foundations.Operation< + getProject is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index 4f4bb622e056..713384b9d371 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -14,7 +14,7 @@ interface EnvironmentsOperations { @doc("Lists the environments for a project.") @route("/projects/{projectName}/environments") @get - ListAllEnvironments is Azure.Core.Foundations.Operation< + listAllEnvironments is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -30,7 +30,7 @@ interface EnvironmentsOperations { @doc("Lists the environments for a project and user.") @route("/projects/{projectName}/users/{userId}/environments") @get - ListEnvironments is Azure.Core.Foundations.Operation< + listEnvironments is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -50,7 +50,7 @@ interface EnvironmentsOperations { @doc("Gets an environment") @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @get - GetEnvironment is Azure.Core.Foundations.Operation< + getEnvironment is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -68,11 +68,11 @@ interface EnvironmentsOperations { >; @doc("Creates or updates an environment.") - @finalOperation(EnvironmentsOperations.GetEnvironment) - @pollingOperation(SharedOperations.GetProjectOperationStatus) + @finalOperation(EnvironmentsOperations.getEnvironment) + @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @put - CreateOrUpdateEnvironment is Azure.Core.Foundations.Operation< + createOrUpdateEnvironment is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -104,10 +104,10 @@ interface EnvironmentsOperations { // FIXME @doc("Deletes an environment and all its associated resources") - @pollingOperation(SharedOperations.GetProjectOperationStatus) + @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @delete - DeleteEnvironment( + deleteEnvironment( ...Foundations.ApiVersionParameter; @doc("The DevCenter Project upon which to execute operations.") @@ -142,7 +142,7 @@ interface EnvironmentsOperations { @doc("Lists all of the catalogs available for a project.") @route("/projects/{projectName}/catalogs") @get - ListCatalogs is Azure.Core.Foundations.Operation< + listCatalogs is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -158,7 +158,7 @@ interface EnvironmentsOperations { @doc("Gets the specified catalog within the project") @route("/projects/{projectName}/catalogs/{catalogName}") @get - GetCatalog is Azure.Core.Foundations.Operation< + getCatalog is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -174,7 +174,7 @@ interface EnvironmentsOperations { @doc("Lists all environment definitions available for a project.") @route("/projects/{projectName}/environmentDefinitions") @get - ListEnvironmentDefinitions is Azure.Core.Foundations.Operation< + listEnvironmentDefinitions is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -190,7 +190,7 @@ interface EnvironmentsOperations { @doc("Lists all environment definitions available within a catalog.") @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions") @get - ListEnvironmentDefinitionsByCatalog is Azure.Core.Foundations.Operation< + listEnvironmentDefinitionsByCatalog is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -211,7 +211,7 @@ interface EnvironmentsOperations { @doc("Get an environment definition from a catalog.") @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}") @get - GetEnvironmentDefinition is Azure.Core.Foundations.Operation< + getEnvironmentDefinition is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path @@ -231,7 +231,7 @@ interface EnvironmentsOperations { @doc("Lists all environment types configured for a project.") @route("/projects/{projectName}/environmentTypes") @get - ListEnvironmentTypes is Azure.Core.Foundations.Operation< + listEnvironmentTypes is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path diff --git a/specification/devcenter/DevCenter/shared/routes.tsp b/specification/devcenter/DevCenter/shared/routes.tsp index fbd59cd45ae7..6bde8567a7a8 100644 --- a/specification/devcenter/DevCenter/shared/routes.tsp +++ b/specification/devcenter/DevCenter/shared/routes.tsp @@ -10,7 +10,7 @@ interface SharedOperations { @doc("Get the status of an operation.") @route("/projects/{projectName}/operationstatuses/{operationId}") @get - GetProjectOperationStatus is Azure.Core.Foundations.Operation< + getProjectOperationStatus is Azure.Core.Foundations.Operation< { @doc("The DevCenter Project upon which to execute operations.") @path From b87f596105f3343ebfa0e2d7712387baec1e0327 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 19 Jan 2024 13:30:01 -0300 Subject: [PATCH 088/187] test use Standard Operations --- .../devcenter/DevCenter/devbox/routes.tsp | 166 +----------------- .../devcenter/DevCenter/devcenter/routes.tsp | 24 +-- 2 files changed, 11 insertions(+), 179 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 9e700ca2fea1..879f3b3e1224 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -13,195 +13,45 @@ interface DevBoxesOperations { @doc("Lists available pools") @route("/projects/{projectName}/pools") @get - listPools is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - PoolListResult - >; + listPools is StandardResourceOperations.ResourceList; @doc("Gets a pool") @route("/projects/{projectName}/pools/{poolName}") @get - getPool is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The name of a pool of Dev Boxes.") - @path - poolName: string; - }, - Pool - >; + getPool is StandardResourceOperations.ResourceRead; @doc("Lists available schedules for a pool.") @route("/projects/{projectName}/pools/{poolName}/schedules") @get - listSchedules is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The name of a pool of Dev Boxes.") - @path - poolName: string; - - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - ScheduleListResult - >; + listSchedules is StandardResourceOperations.ResourceList; @doc("Gets a schedule.") @route("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") @get - getSchedule is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The name of a pool of Dev Boxes.") - @path - poolName: string; - - @doc("The name of a schedule.") - @path - scheduleName: string; - }, - Schedule - >; + getSchedule is StandardResourceOperations.ResourceRead; @doc("Lists Dev Boxes in the project for a particular user.") @route("/projects/{projectName}/users/{userId}/devboxes") @get - listDevBoxes is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - DevBoxListResult - >; + listDevBoxes is StandardResourceOperations.ResourceList; @doc("Gets a Dev Box") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @get - getDevBox is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - }, - DevBox - >; + getDevBox is StandardResourceOperations.ResourceRead; @doc("Creates or replaces a Dev Box.") @finalOperation(DevBoxesOperations.getDevBox) @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @put - createDevBox is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute the operation.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - - @doc("Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator") - @body - devBox: DevBox; - }, - DevBox | { - @statusCode statusCode: 201; - - @header("Location") - location: ResourceLocation; - - @pollingLocation - @header("Operation-Location") - operationLocation: string; - - @body body?: DevBox; - } - >; + createDevBox is StandardResourceOperations.LongRunningResourceCreateOrReplace; @doc("Deletes a Dev Box.") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @delete - deleteDevBox is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - }, - { - @statusCode statusCode: 202; - - @header("Location") - location: string; - - @pollingLocation - @header("Operation-Location") - operationLocation: string; - - @body body: OperationStatus; - } | { @statusCode statusCode: 204 } - >; + deleteDevBox is StandardResourceOperations.LongRunningResourceDelete; @doc("Starts a Dev Box") @pollingOperation(SharedOperations.getProjectOperationStatus) diff --git a/specification/devcenter/DevCenter/devcenter/routes.tsp b/specification/devcenter/DevCenter/devcenter/routes.tsp index 326a3ff5e6f3..1c0ed3b603f7 100644 --- a/specification/devcenter/DevCenter/devcenter/routes.tsp +++ b/specification/devcenter/DevCenter/devcenter/routes.tsp @@ -12,28 +12,10 @@ interface DevCenterOperations { @doc("Lists all projects.") @route("/projects") @get - listProjects is Azure.Core.Foundations.Operation< - { - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - ProjectListResult - >; + listProjects is StandardResourceOperations.ResourceList; @doc("Gets a project.") @route("/projects/{projectName}") @get - getProject is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - }, - Project - >; -} + getProject is StandardResourceOperations.ResourceRead; +} \ No newline at end of file From 1a5a5e8a503738b410268da23c93c3d56fe04dbb Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 19 Jan 2024 13:31:04 -0300 Subject: [PATCH 089/187] Revert "test use Standard Operations" This reverts commit b87f596105f3343ebfa0e2d7712387baec1e0327. --- .../devcenter/DevCenter/devbox/routes.tsp | 166 +++++++++++++++++- .../devcenter/DevCenter/devcenter/routes.tsp | 24 ++- 2 files changed, 179 insertions(+), 11 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 879f3b3e1224..9e700ca2fea1 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -13,45 +13,195 @@ interface DevBoxesOperations { @doc("Lists available pools") @route("/projects/{projectName}/pools") @get - listPools is StandardResourceOperations.ResourceList; + listPools is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("An OData filter clause to apply to the operation.") + @query + filter?: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, + PoolListResult + >; @doc("Gets a pool") @route("/projects/{projectName}/pools/{poolName}") @get - getPool is StandardResourceOperations.ResourceRead; + getPool is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The name of a pool of Dev Boxes.") + @path + poolName: string; + }, + Pool + >; @doc("Lists available schedules for a pool.") @route("/projects/{projectName}/pools/{poolName}/schedules") @get - listSchedules is StandardResourceOperations.ResourceList; + listSchedules is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The name of a pool of Dev Boxes.") + @path + poolName: string; + + @doc("An OData filter clause to apply to the operation.") + @query + filter?: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, + ScheduleListResult + >; @doc("Gets a schedule.") @route("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") @get - getSchedule is StandardResourceOperations.ResourceRead; + getSchedule is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The name of a pool of Dev Boxes.") + @path + poolName: string; + + @doc("The name of a schedule.") + @path + scheduleName: string; + }, + Schedule + >; @doc("Lists Dev Boxes in the project for a particular user.") @route("/projects/{projectName}/users/{userId}/devboxes") @get - listDevBoxes is StandardResourceOperations.ResourceList; + listDevBoxes is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("An OData filter clause to apply to the operation.") + @query + filter?: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, + DevBoxListResult + >; @doc("Gets a Dev Box") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @get - getDevBox is StandardResourceOperations.ResourceRead; + getDevBox is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + }, + DevBox + >; @doc("Creates or replaces a Dev Box.") @finalOperation(DevBoxesOperations.getDevBox) @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @put - createDevBox is StandardResourceOperations.LongRunningResourceCreateOrReplace; + createDevBox is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute the operation.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + + @doc("Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator") + @body + devBox: DevBox; + }, + DevBox | { + @statusCode statusCode: 201; + + @header("Location") + location: ResourceLocation; + + @pollingLocation + @header("Operation-Location") + operationLocation: string; + + @body body?: DevBox; + } + >; @doc("Deletes a Dev Box.") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @delete - deleteDevBox is StandardResourceOperations.LongRunningResourceDelete; + deleteDevBox is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + }, + { + @statusCode statusCode: 202; + + @header("Location") + location: string; + + @pollingLocation + @header("Operation-Location") + operationLocation: string; + + @body body: OperationStatus; + } | { @statusCode statusCode: 204 } + >; @doc("Starts a Dev Box") @pollingOperation(SharedOperations.getProjectOperationStatus) diff --git a/specification/devcenter/DevCenter/devcenter/routes.tsp b/specification/devcenter/DevCenter/devcenter/routes.tsp index 1c0ed3b603f7..326a3ff5e6f3 100644 --- a/specification/devcenter/DevCenter/devcenter/routes.tsp +++ b/specification/devcenter/DevCenter/devcenter/routes.tsp @@ -12,10 +12,28 @@ interface DevCenterOperations { @doc("Lists all projects.") @route("/projects") @get - listProjects is StandardResourceOperations.ResourceList; + listProjects is Azure.Core.Foundations.Operation< + { + @doc("An OData filter clause to apply to the operation.") + @query + filter?: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, + ProjectListResult + >; @doc("Gets a project.") @route("/projects/{projectName}") @get - getProject is StandardResourceOperations.ResourceRead; -} \ No newline at end of file + getProject is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + }, + Project + >; +} From 3120ac4c8c847610c02679080e76b041ed1b5b36 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 19 Jan 2024 13:34:31 -0300 Subject: [PATCH 090/187] suppress use-standard-operations --- specification/devcenter/DevCenter/client.tsp | 3 +++ specification/devcenter/DevCenter/python-client.tsp | 1 + 2 files changed, 4 insertions(+) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 4f6fd8e371b7..3b2df9fdfe82 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -12,6 +12,7 @@ using Azure.ClientGenerator.Core; @useDependency(APIVersions.v2023_04_01) namespace SdkCustomizations; +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" @client({ name: "DevCenterClient", service: DevCenterService, @@ -21,6 +22,7 @@ interface DevCenterClientOperations { getProject is DevCenterService.DevCenterOperations.getProject; } +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" @client({ name: "DevBoxesClient", service: DevCenterService, @@ -47,6 +49,7 @@ interface DevBoxesClientOperations { delayAllActions is DevCenterService.DevBoxesOperations.delayAllActions; } +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" @client({ name: "DeploymentEnvironmentsClient", service: DevCenterService, diff --git a/specification/devcenter/DevCenter/python-client.tsp b/specification/devcenter/DevCenter/python-client.tsp index 8c09531a06ec..50c608da11aa 100644 --- a/specification/devcenter/DevCenter/python-client.tsp +++ b/specification/devcenter/DevCenter/python-client.tsp @@ -9,6 +9,7 @@ using TypeSpec.Versioning; using DevCenterService; using Azure.ClientGenerator.Core; +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" @useDependency(APIVersions.v2023_04_01) @client({ name: "DevCenterClient", From acff5b0a518656f5ec3f2aae60e778db1f846d35 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 19 Jan 2024 13:34:53 -0300 Subject: [PATCH 091/187] camel case for python client --- .../devcenter/DevCenter/python-client.tsp | 66 +++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/specification/devcenter/DevCenter/python-client.tsp b/specification/devcenter/DevCenter/python-client.tsp index 50c608da11aa..26e4c46b34d3 100644 --- a/specification/devcenter/DevCenter/python-client.tsp +++ b/specification/devcenter/DevCenter/python-client.tsp @@ -15,45 +15,45 @@ using Azure.ClientGenerator.Core; name: "DevCenterClient", service: DevCenterService, }) -namespace SDKCustomizations; +namespace SdkCustomizations; interface DevCenterClientOperations { //DevCenters - ListProjects is DevCenterService.DevCenterOperations.ListProjects; - GetProject is DevCenterService.DevCenterOperations.GetProject; + listProjects is DevCenterService.DevCenterOperations.listProjects; + getProject is DevCenterService.DevCenterOperations.getProject; //DevBoxes - ListPools is DevCenterService.DevBoxesOperations.ListPools; - GetPool is DevCenterService.DevBoxesOperations.GetPool; - ListSchedules is DevCenterService.DevBoxesOperations.ListSchedules; - GetSchedule is DevCenterService.DevBoxesOperations.GetSchedule; - ListAllDevBoxes is DevCenterService.DevBoxesDevCenterOperations.ListAllDevBoxes; - ListAllDevBoxesByUser is DevCenterService.DevBoxesDevCenterOperations.ListAllDevBoxesByUser; - ListDevBoxes is DevCenterService.DevBoxesOperations.ListDevBoxes; - GetDevBox is DevCenterService.DevBoxesOperations.GetDevBox; - CreateDevBox is DevCenterService.DevBoxesOperations.CreateDevBox; - DeleteDevBox is DevCenterService.DevBoxesOperations.DeleteDevBox; - StartDevBox is DevCenterService.DevBoxesOperations.StartDevBox; - StopDevBox is DevCenterService.DevBoxesOperations.StopDevBox; - RestartDevBox is DevCenterService.DevBoxesOperations.RestartDevBox; - GetRemoteConnection is DevCenterService.DevBoxesOperations.GetRemoteConnection; - ListDevBoxActions is DevCenterService.DevBoxesOperations.ListDevBoxActions; - GetDevBoxAction is DevCenterService.DevBoxesOperations.GetDevBoxAction; - SkipDevBoxAction is DevCenterService.DevBoxesOperations.SkipAction; - DelayDevBoxAction is DevCenterService.DevBoxesOperations.DelayAction; - DelayAllDevBoxActions is DevCenterService.DevBoxesOperations.DelayAllActions; + listPools is DevCenterService.DevBoxesOperations.listPools; + getPool is DevCenterService.DevBoxesOperations.getPool; + listSchedules is DevCenterService.DevBoxesOperations.listSchedules; + getSchedule is DevCenterService.DevBoxesOperations.getSchedule; + listAllDevBoxes is DevCenterService.DevBoxesDevCenterOperations.listAllDevBoxes; + listAllDevBoxesByUser is DevCenterService.DevBoxesDevCenterOperations.listAllDevBoxesByUser; + listDevBoxes is DevCenterService.DevBoxesOperations.listDevBoxes; + getDevBox is DevCenterService.DevBoxesOperations.getDevBox; + createDevBox is DevCenterService.DevBoxesOperations.createDevBox; + deleteDevBox is DevCenterService.DevBoxesOperations.deleteDevBox; + startDevBox is DevCenterService.DevBoxesOperations.startDevBox; + stopDevBox is DevCenterService.DevBoxesOperations.stopDevBox; + restartDevBox is DevCenterService.DevBoxesOperations.restartDevBox; + getRemoteConnection is DevCenterService.DevBoxesOperations.getRemoteConnection; + listDevBoxActions is DevCenterService.DevBoxesOperations.listDevBoxActions; + getDevBoxAction is DevCenterService.DevBoxesOperations.getDevBoxAction; + skipAction is DevCenterService.DevBoxesOperations.skipAction; + delayAction is DevCenterService.DevBoxesOperations.delayAction; + delayAllActions is DevCenterService.DevBoxesOperations.delayAllActions; //Environments - ListAllEnvironments is DevCenterService.EnvironmentsOperations.ListAllEnvironments; - ListEnvironments is DevCenterService.EnvironmentsOperations.ListEnvironments; - GetEnvironment is DevCenterService.EnvironmentsOperations.GetEnvironment; - CreateOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.CreateOrUpdateEnvironment; - DeleteEnvironment is DevCenterService.EnvironmentsOperations.DeleteEnvironment; - ListCatalogs is DevCenterService.EnvironmentsOperations.ListCatalogs; - GetCatalog is DevCenterService.EnvironmentsOperations.GetCatalog; - ListEnvironmentDefinitions is DevCenterService.EnvironmentsOperations.ListEnvironmentDefinitions; - ListEnvironmentDefinitionsByCatalog is DevCenterService.EnvironmentsOperations.ListEnvironmentDefinitionsByCatalog; - GetEnvironmentDefinition is DevCenterService.EnvironmentsOperations.GetEnvironmentDefinition; - ListEnvironmentTypes is DevCenterService.EnvironmentsOperations.ListEnvironmentTypes; + listAllEnvironments is DevCenterService.EnvironmentsOperations.listAllEnvironments; + listEnvironments is DevCenterService.EnvironmentsOperations.listEnvironments; + getEnvironment is DevCenterService.EnvironmentsOperations.getEnvironment; + createOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.createOrUpdateEnvironment; + deleteEnvironment is DevCenterService.EnvironmentsOperations.deleteEnvironment; + listCatalogs is DevCenterService.EnvironmentsOperations.listCatalogs; + getCatalog is DevCenterService.EnvironmentsOperations.getCatalog; + listEnvironmentDefinitions is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitions; + listEnvironmentDefinitionsByCatalog is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitionsByCatalog; + getEnvironmentDefinition is DevCenterService.EnvironmentsOperations.getEnvironmentDefinition; + listEnvironmentTypes is DevCenterService.EnvironmentsOperations.listEnvironmentTypes; } \ No newline at end of file From 577320e704bf1e2213a8e234e9817b2ba58328f1 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 19 Jan 2024 13:46:18 -0300 Subject: [PATCH 092/187] suppress stand ope error in the interface --- specification/devcenter/DevCenter/devbox/routes.tsp | 2 ++ specification/devcenter/DevCenter/devcenter/routes.tsp | 1 + specification/devcenter/DevCenter/environments/routes.tsp | 1 + specification/devcenter/DevCenter/shared/routes.tsp | 1 + 4 files changed, 5 insertions(+) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 9e700ca2fea1..5de54ff06e3a 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -9,6 +9,7 @@ using TypeSpec.Http; namespace DevCenterService; +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface DevBoxesOperations { @doc("Lists available pools") @route("/projects/{projectName}/pools") @@ -426,6 +427,7 @@ interface DevBoxesOperations { >; } +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface DevBoxesDevCenterOperations { @doc("Lists Dev Boxes that the caller has access to in the DevCenter.") @route("/devboxes") diff --git a/specification/devcenter/DevCenter/devcenter/routes.tsp b/specification/devcenter/DevCenter/devcenter/routes.tsp index 326a3ff5e6f3..154ca6aee397 100644 --- a/specification/devcenter/DevCenter/devcenter/routes.tsp +++ b/specification/devcenter/DevCenter/devcenter/routes.tsp @@ -8,6 +8,7 @@ using TypeSpec.Http; namespace DevCenterService; +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface DevCenterOperations { @doc("Lists all projects.") @route("/projects") diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index 713384b9d371..fb4789623f4d 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -10,6 +10,7 @@ using TypeSpec.Http; namespace DevCenterService; +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface EnvironmentsOperations { @doc("Lists the environments for a project.") @route("/projects/{projectName}/environments") diff --git a/specification/devcenter/DevCenter/shared/routes.tsp b/specification/devcenter/DevCenter/shared/routes.tsp index 6bde8567a7a8..c30283f8dbfe 100644 --- a/specification/devcenter/DevCenter/shared/routes.tsp +++ b/specification/devcenter/DevCenter/shared/routes.tsp @@ -6,6 +6,7 @@ using TypeSpec.Http; namespace DevCenterService; +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface SharedOperations { @doc("Get the status of an operation.") @route("/projects/{projectName}/operationstatuses/{operationId}") From 0df982c8893b3a370558330d5ac053711c866bdc Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 19 Jan 2024 13:46:47 -0300 Subject: [PATCH 093/187] Fix camelcase on models - NEED TO CHECK SERIALIZATION --- specification/devcenter/DevCenter/devbox/models.tsp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index 623bc2a18ca9..9d88b850127e 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -202,12 +202,12 @@ model HardwareProfile { @projectedName("csharp", "VCpus") @projectedName("java", "vcpus") @projectedName("python", "vcpus") - vCPUs?: int32; + vCpus?: int32; @doc("The amount of memory available for the Dev Box.") @visibility("read") @projectedName("python", "memoryGb") - memoryGB?: int32; + memoryGb?: int32; } @doc("Storage settings for the Dev Box's disks") @@ -216,16 +216,16 @@ model HardwareProfile { model StorageProfile { @doc("Settings for the operating system disk.") @projectedName("csharp", "OSDisk") - osDisk?: OSDisk; + osDisk?: OsDisk; } @doc("Settings for the operating system disk.") @projectedName("java", "OsDisk") -model OSDisk { +model OsDisk { @doc("The size of the OS Disk in gigabytes.") @visibility("read") @projectedName("python", "diskSizeGb") - diskSizeGB?: int32; + diskSizeGb?: int32; } @doc("Specifies information about the image used") From 8157752d8449cdc40e815a2319404681664bc1f7 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 19 Jan 2024 17:35:06 -0300 Subject: [PATCH 094/187] add doc to operation enum --- specification/devcenter/DevCenter/shared/models.tsp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index 734386aefbc3..6c66369132b3 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -16,10 +16,17 @@ namespace DevCenterService; @projectedName("java", "DevCenterOperationStatus") @projectedName("python", "OperationStatus") enum OperationStatusValue { + @doc("Operation is in progress") Running, + + @doc("Operation is completed with success") @lroSucceeded Completed, + + @doc("Operation was canceled") Canceled, + + @doc("Operation failed") Failed, } From b3a356249df7dd3f97c13af5c4e77e5c0bdb0f95 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 19 Jan 2024 17:35:58 -0300 Subject: [PATCH 095/187] update unknow to bytes --- specification/devcenter/DevCenter/environments/models.tsp | 6 +++--- specification/devcenter/DevCenter/shared/models.tsp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index 453c5bdc262e..c1401c7c0194 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -99,7 +99,7 @@ resource has been created. """) model EnvironmentUpdateProperties { @doc("Parameters object for the environment.") - parameters?: unknown; + parameters?: bytes; } @doc("Results of the catalog list operation.") @@ -133,7 +133,7 @@ model EnvironmentDefinition { parameters?: EnvironmentDefinitionParameter[]; @doc("JSON schema defining the parameters object passed to an environment.") - parametersSchema?: unknown; + parametersSchema?: bytes; @doc("Path to the Environment Definition entrypoint file.") templatePath?: string; @@ -153,7 +153,7 @@ model EnvironmentDefinitionParameter { @doc("Default value of the parameter") @projectedName("csharp", "defaultValue") @projectedName("java", "defaultValue") - default?: unknown; + default?: bytes; @doc(""" A string of one of the basic JSON types (number, integer, array, object, diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index 6c66369132b3..5c5fdc65f57c 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -59,7 +59,7 @@ model OperationStatus { percentComplete?: float32; @doc("Custom operation properties, populated only for a successful operation.") - properties?: unknown; + properties?: bytes; @doc("Operation Error message") error?: Azure.Core.Foundations.Error; From ef5053ed4a053b7a8bbf54e491488212e4e9294a Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 19 Jan 2024 17:36:32 -0300 Subject: [PATCH 096/187] fix user model --- specification/devcenter/DevCenter/devbox/models.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index 9d88b850127e..a400f4a2fb86 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -138,7 +138,7 @@ model User { @key("userId") @visibility("read") @doc("The AAD object id of the user") - user: string; + userId: string; } @doc("A pool of Dev Boxes.") From 284814eb82dae14c84091684bcc0b1fb61323f4d Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 19 Jan 2024 17:40:54 -0300 Subject: [PATCH 097/187] tsp format --- specification/devcenter/DevCenter/client.tsp | 76 +- .../devcenter/DevCenter/devbox/main.tsp | 2 +- .../devcenter/DevCenter/devbox/models.tsp | 92 +- .../devcenter/DevCenter/devbox/routes.tsp | 19 +- .../devcenter/DevCenter/devcenter/main.tsp | 2 +- .../devcenter/DevCenter/environments/main.tsp | 2 +- .../DevCenter/environments/models.tsp | 53 +- .../DevCenter/environments/routes.tsp | 38 +- .../devcenter/DevCenter/python-client.tsp | 79 +- specification/devcenter/DevCenter/service.tsp | 2 +- .../devcenter/DevCenter/shared/models.tsp | 1 - .../devcenter/DevCenter/shared/routes.tsp | 30 +- .../typespec-autorest/2023-04-01/openapi.json | 3557 +++++++++++++++++ 13 files changed, 3790 insertions(+), 163 deletions(-) create mode 100644 specification/devcenter/DevCenter/tsp-output/@azure-tools/typespec-autorest/2023-04-01/openapi.json diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 3b2df9fdfe82..d48e8865ed40 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -14,56 +14,56 @@ namespace SdkCustomizations; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" @client({ - name: "DevCenterClient", - service: DevCenterService, + name: "DevCenterClient", + service: DevCenterService, }) interface DevCenterClientOperations { - listProjects is DevCenterService.DevCenterOperations.listProjects; - getProject is DevCenterService.DevCenterOperations.getProject; + listProjects is DevCenterService.DevCenterOperations.listProjects; + getProject is DevCenterService.DevCenterOperations.getProject; } #suppress "@azure-tools/typespec-azure-core/use-standard-operations" @client({ - name: "DevBoxesClient", - service: DevCenterService, + name: "DevBoxesClient", + service: DevCenterService, }) interface DevBoxesClientOperations { - listPools is DevCenterService.DevBoxesOperations.listPools; - getPool is DevCenterService.DevBoxesOperations.getPool; - listSchedules is DevCenterService.DevBoxesOperations.listSchedules; - getSchedule is DevCenterService.DevBoxesOperations.getSchedule; - listAllDevBoxes is DevCenterService.DevBoxesDevCenterOperations.listAllDevBoxes; - listAllDevBoxesByUser is DevCenterService.DevBoxesDevCenterOperations.listAllDevBoxesByUser; - listDevBoxes is DevCenterService.DevBoxesOperations.listDevBoxes; - getDevBox is DevCenterService.DevBoxesOperations.getDevBox; - createDevBox is DevCenterService.DevBoxesOperations.createDevBox; - deleteDevBox is DevCenterService.DevBoxesOperations.deleteDevBox; - startDevBox is DevCenterService.DevBoxesOperations.startDevBox; - stopDevBox is DevCenterService.DevBoxesOperations.stopDevBox; - restartDevBox is DevCenterService.DevBoxesOperations.restartDevBox; - getRemoteConnection is DevCenterService.DevBoxesOperations.getRemoteConnection; - listDevBoxActions is DevCenterService.DevBoxesOperations.listDevBoxActions; - getDevBoxAction is DevCenterService.DevBoxesOperations.getDevBoxAction; - skipAction is DevCenterService.DevBoxesOperations.skipAction; - delayAction is DevCenterService.DevBoxesOperations.delayAction; - delayAllActions is DevCenterService.DevBoxesOperations.delayAllActions; + listPools is DevCenterService.DevBoxesOperations.listPools; + getPool is DevCenterService.DevBoxesOperations.getPool; + listSchedules is DevCenterService.DevBoxesOperations.listSchedules; + getSchedule is DevCenterService.DevBoxesOperations.getSchedule; + listAllDevBoxes is DevCenterService.DevBoxesDevCenterOperations.listAllDevBoxes; + listAllDevBoxesByUser is DevCenterService.DevBoxesDevCenterOperations.listAllDevBoxesByUser; + listDevBoxes is DevCenterService.DevBoxesOperations.listDevBoxes; + getDevBox is DevCenterService.DevBoxesOperations.getDevBox; + createDevBox is DevCenterService.DevBoxesOperations.createDevBox; + deleteDevBox is DevCenterService.DevBoxesOperations.deleteDevBox; + startDevBox is DevCenterService.DevBoxesOperations.startDevBox; + stopDevBox is DevCenterService.DevBoxesOperations.stopDevBox; + restartDevBox is DevCenterService.DevBoxesOperations.restartDevBox; + getRemoteConnection is DevCenterService.DevBoxesOperations.getRemoteConnection; + listDevBoxActions is DevCenterService.DevBoxesOperations.listDevBoxActions; + getDevBoxAction is DevCenterService.DevBoxesOperations.getDevBoxAction; + skipAction is DevCenterService.DevBoxesOperations.skipAction; + delayAction is DevCenterService.DevBoxesOperations.delayAction; + delayAllActions is DevCenterService.DevBoxesOperations.delayAllActions; } #suppress "@azure-tools/typespec-azure-core/use-standard-operations" @client({ - name: "DeploymentEnvironmentsClient", - service: DevCenterService, + name: "DeploymentEnvironmentsClient", + service: DevCenterService, }) interface EnvironmentClientOperations { - listAllEnvironments is DevCenterService.EnvironmentsOperations.listAllEnvironments; - listEnvironments is DevCenterService.EnvironmentsOperations.listEnvironments; - getEnvironment is DevCenterService.EnvironmentsOperations.getEnvironment; - createOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.createOrUpdateEnvironment; - deleteEnvironment is DevCenterService.EnvironmentsOperations.deleteEnvironment; - listCatalogs is DevCenterService.EnvironmentsOperations.listCatalogs; - getCatalog is DevCenterService.EnvironmentsOperations.getCatalog; - listEnvironmentDefinitions is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitions; - listEnvironmentDefinitionsByCatalog is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitionsByCatalog; - getEnvironmentDefinition is DevCenterService.EnvironmentsOperations.getEnvironmentDefinition; - listEnvironmentTypes is DevCenterService.EnvironmentsOperations.listEnvironmentTypes; + listAllEnvironments is DevCenterService.EnvironmentsOperations.listAllEnvironments; + listEnvironments is DevCenterService.EnvironmentsOperations.listEnvironments; + getEnvironment is DevCenterService.EnvironmentsOperations.getEnvironment; + createOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.createOrUpdateEnvironment; + deleteEnvironment is DevCenterService.EnvironmentsOperations.deleteEnvironment; + listCatalogs is DevCenterService.EnvironmentsOperations.listCatalogs; + getCatalog is DevCenterService.EnvironmentsOperations.getCatalog; + listEnvironmentDefinitions is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitions; + listEnvironmentDefinitionsByCatalog is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitionsByCatalog; + getEnvironmentDefinition is DevCenterService.EnvironmentsOperations.getEnvironmentDefinition; + listEnvironmentTypes is DevCenterService.EnvironmentsOperations.listEnvironmentTypes; } diff --git a/specification/devcenter/DevCenter/devbox/main.tsp b/specification/devcenter/DevCenter/devbox/main.tsp index beadbe42275c..5f87a9f6ce2e 100644 --- a/specification/devcenter/DevCenter/devbox/main.tsp +++ b/specification/devcenter/DevCenter/devbox/main.tsp @@ -9,4 +9,4 @@ using TypeSpec.Versioning; using TypeSpec.Rest; using TypeSpec.Http; -namespace DevCenterService; \ No newline at end of file +namespace DevCenterService; diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index a400f4a2fb86..9fece4cc7a80 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -30,6 +30,7 @@ enum HibernateSupport { enum LocalAdminStatus { @doc("Owners of Dev Boxes in the pool are local administrators on the Dev Boxes.") Enabled, + @doc("Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes.") Disabled, } @@ -47,33 +48,76 @@ enum DevBoxProvisioningState { @doc("Dev Box is provisioning") Provisioning, @doc("Dev Box was provisioned with warning") ProvisionedWithWarning, @doc("Dev Box is in grace period") InGracePeriod, - @doc("Dev Box is not provisioned") NotProvisioned + @doc("Dev Box is not provisioned") NotProvisioned, } @doc("Indicates the Dev Box compute.") enum SkuName { - @doc("Intel, 8 vCPU, 32 GB RAM, 256 GB Storage") "general_i_8c32gb256ssd_v2", - @doc("Intel, 8 vCPU, 32 GB RAM, 512 GB Storage") "general_i_8c32gb512ssd_v2", - @doc("Intel, 8 vCPU, 32 GB RAM, 1024 GB Storage") "general_i_8c32gb1024ssd_v2", - @doc("Intel, 8 vCPU, 32 GB RAM, 2048 GB Storage") "general_i_8c32gb2048ssd_v2", - @doc("Intel, 16 vCPU, 64 GB RAM, 256 GB Storage") "general_i_16c64gb256ssd_v2", - @doc("Intel, 16 vCPU, 64 GB RAM, 512 GB Storage") "general_i_16c64gb512ssd_v2", - @doc("Intel, 16 vCPU, 64 GB RAM, 1024 GB Storage") "general_i_16c64gb1024ssd_v2", - @doc("Intel, 16 vCPU, 64 GB RAM, 2048 GB Storage") "general_i_16c64gb2048ssd_v2", - @doc("Intel, 32 vCPU, 128 GB RAM, 512 GB Storage") "general_i_32c128gb512ssd_v2", - @doc("Intel, 32 vCPU, 128 GB RAM, 1024 GB Storage") "general_i_32c128gb1024ssd_v2", - @doc("Intel, 32 vCPU, 128 GB RAM, 2048 GB Storage") "general_i_32c128gb2048ssd_v2", - @doc("AMD, 8 vCPU, 32 GB RAM, 256 GB Storage") "general_a_8c32gb256ssd_v2", - @doc("AMD, 8 vCPU, 32 GB RAM, 512 GB Storage") "general_a_8c32gb512ssd_v2", - @doc("AMD, 8 vCPU, 32 GB RAM, 1024 GB Storage") "general_a_8c32gb1024ssd_v2", - @doc("AMD, 8 vCPU, 32 GB RAM, 2048 GB Storage") "general_a_8c32gb2048ssd_v2", - @doc("AMD, 16 vCPU, 64 GB RAM, 256 GB Storage") "general_a_16c64gb256ssd_v2", - @doc("AMD, 16 vCPU, 64 GB RAM, 512 GB Storage") "general_a_16c64gb512ssd_v2", - @doc("AMD, 16 vCPU, 64 GB RAM, 1024 GB Storage") "general_a_16c64gb1024ssd_v2", - @doc("AMD, 16 vCPU, 64 GB RAM, 2048 GB Storage") "general_a_16c64gb2048ssd_v2", - @doc("AMD, 32 vCPU, 128 GB RAM, 512 GB Storage") "general_a_32c128gb512ssd_v2", - @doc("AMD, 32 vCPU, 128 GB RAM, 1024 GB Storage") "general_a_32c128gb1024ssd_v2", - @doc("AMD, 32 vCPU, 128 GB RAM, 2048 GB Storage") "general_a_32c128gb2048ssd_v2" + @doc("Intel, 8 vCPU, 32 GB RAM, 256 GB Storage") + general_i_8c32gb256ssd_v2, + + @doc("Intel, 8 vCPU, 32 GB RAM, 512 GB Storage") + general_i_8c32gb512ssd_v2, + + @doc("Intel, 8 vCPU, 32 GB RAM, 1024 GB Storage") + general_i_8c32gb1024ssd_v2, + + @doc("Intel, 8 vCPU, 32 GB RAM, 2048 GB Storage") + general_i_8c32gb2048ssd_v2, + + @doc("Intel, 16 vCPU, 64 GB RAM, 256 GB Storage") + general_i_16c64gb256ssd_v2, + + @doc("Intel, 16 vCPU, 64 GB RAM, 512 GB Storage") + general_i_16c64gb512ssd_v2, + + @doc("Intel, 16 vCPU, 64 GB RAM, 1024 GB Storage") + general_i_16c64gb1024ssd_v2, + + @doc("Intel, 16 vCPU, 64 GB RAM, 2048 GB Storage") + general_i_16c64gb2048ssd_v2, + + @doc("Intel, 32 vCPU, 128 GB RAM, 512 GB Storage") + general_i_32c128gb512ssd_v2, + + @doc("Intel, 32 vCPU, 128 GB RAM, 1024 GB Storage") + general_i_32c128gb1024ssd_v2, + + @doc("Intel, 32 vCPU, 128 GB RAM, 2048 GB Storage") + general_i_32c128gb2048ssd_v2, + + @doc("AMD, 8 vCPU, 32 GB RAM, 256 GB Storage") + general_a_8c32gb256ssd_v2, + + @doc("AMD, 8 vCPU, 32 GB RAM, 512 GB Storage") + general_a_8c32gb512ssd_v2, + + @doc("AMD, 8 vCPU, 32 GB RAM, 1024 GB Storage") + general_a_8c32gb1024ssd_v2, + + @doc("AMD, 8 vCPU, 32 GB RAM, 2048 GB Storage") + general_a_8c32gb2048ssd_v2, + + @doc("AMD, 16 vCPU, 64 GB RAM, 256 GB Storage") + general_a_16c64gb256ssd_v2, + + @doc("AMD, 16 vCPU, 64 GB RAM, 512 GB Storage") + general_a_16c64gb512ssd_v2, + + @doc("AMD, 16 vCPU, 64 GB RAM, 1024 GB Storage") + general_a_16c64gb1024ssd_v2, + + @doc("AMD, 16 vCPU, 64 GB RAM, 2048 GB Storage") + general_a_16c64gb2048ssd_v2, + + @doc("AMD, 32 vCPU, 128 GB RAM, 512 GB Storage") + general_a_32c128gb512ssd_v2, + + @doc("AMD, 32 vCPU, 128 GB RAM, 1024 GB Storage") + general_a_32c128gb1024ssd_v2, + + @doc("AMD, 32 vCPU, 128 GB RAM, 2048 GB Storage") + general_a_32c128gb2048ssd_v2, } @doc("Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.") @@ -338,7 +382,7 @@ action performed by user. @doc("The current power state of the Dev Box.") @visibility("read") - powerState: PowerState = PowerState.Unknown ; + powerState: PowerState = PowerState.Unknown; @doc(""" A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 5de54ff06e3a..76bf90cc0027 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -190,7 +190,7 @@ interface DevBoxesOperations { @path devBoxName: string; }, - { + { @statusCode statusCode: 202; @header("Location") @@ -201,7 +201,9 @@ interface DevBoxesOperations { operationLocation: string; @body body: OperationStatus; - } | { @statusCode statusCode: 204 } + } | { + @statusCode statusCode: 204; + } >; @doc("Starts a Dev Box") @@ -225,8 +227,9 @@ interface DevBoxesOperations { { @statusCode statusCode: 202; + @body - body: OperationStatus + body: OperationStatus; } >; @@ -255,8 +258,9 @@ interface DevBoxesOperations { { @statusCode statusCode: 202; + @body - body: OperationStatus + body: OperationStatus; } >; @@ -281,8 +285,9 @@ interface DevBoxesOperations { { @statusCode statusCode: 202; + @body - body: OperationStatus + body: OperationStatus; } >; @@ -396,7 +401,7 @@ interface DevBoxesOperations { actionName: string; @doc("The time to delay the Dev Box action or actions until.") - @query("until") + @query("until") delayUntil: utcDateTime; }, DevBoxAction @@ -420,7 +425,7 @@ interface DevBoxesOperations { devBoxName: string; @doc("The time to delay the Dev Box action or actions until.") - @query("until") + @query("until") delayUntil: utcDateTime; }, DevBoxActionsDelayMultipleResult diff --git a/specification/devcenter/DevCenter/devcenter/main.tsp b/specification/devcenter/DevCenter/devcenter/main.tsp index 5ac90e21b363..0f6d8b544d72 100644 --- a/specification/devcenter/DevCenter/devcenter/main.tsp +++ b/specification/devcenter/DevCenter/devcenter/main.tsp @@ -9,4 +9,4 @@ using TypeSpec.Versioning; using TypeSpec.Rest; using TypeSpec.Http; -namespace DevCenter; \ No newline at end of file +namespace DevCenter; diff --git a/specification/devcenter/DevCenter/environments/main.tsp b/specification/devcenter/DevCenter/environments/main.tsp index beadbe42275c..5f87a9f6ce2e 100644 --- a/specification/devcenter/DevCenter/environments/main.tsp +++ b/specification/devcenter/DevCenter/environments/main.tsp @@ -9,4 +9,4 @@ using TypeSpec.Versioning; using TypeSpec.Rest; using TypeSpec.Http; -namespace DevCenterService; \ No newline at end of file +namespace DevCenterService; diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp index c1401c7c0194..12f3cb595b01 100644 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ b/specification/devcenter/DevCenter/environments/models.tsp @@ -32,19 +32,44 @@ enum EnvironmentTypeEnableStatus { @doc("The provisioning state of the environment.") enum EnvironmentProvisioningState { - @doc("The environment was successfully provisioned.") Succeeded, - @doc("The environment failed to provision.") Failed, - @doc("The environment provisioning was canceled.") Canceled, - @doc("The environment is creating.") Creating, - @doc("The environment was accepted.") Accepted, - @doc("The environment is deleting.") Deleting, - @doc("The environment is updating.") Updating, - @doc("The environment is preparing.") Preparing, - @doc("The environment is running.") Running, - @doc("The environment is Syncing.") Syncing, - @doc("The environment is moving resources.") MovingResources, - @doc("The environment has a transient failure.") TransientFailure, - @doc("The environment storage provisioning failed.") StorageProvisioningFailed, + @doc("The environment was successfully provisioned.") + Succeeded, + + @doc("The environment failed to provision.") + Failed, + + @doc("The environment provisioning was canceled.") + Canceled, + + @doc("The environment is creating.") + Creating, + + @doc("The environment was accepted.") + Accepted, + + @doc("The environment is deleting.") + Deleting, + + @doc("The environment is updating.") + Updating, + + @doc("The environment is preparing.") + Preparing, + + @doc("The environment is running.") + Running, + + @doc("The environment is Syncing.") + Syncing, + + @doc("The environment is moving resources.") + MovingResources, + + @doc("The environment has a transient failure.") + TransientFailure, + + @doc("The environment storage provisioning failed.") + StorageProvisioningFailed, } @doc("Results of the environment list operation.") @@ -78,7 +103,7 @@ model Environment { @doc("The identifier of the resource group containing the environment's resources.") @visibility("read") - resourceGroupId?: string ; + resourceGroupId?: string; @doc("Name of the catalog.") @visibility("read", "create") diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index fb4789623f4d..15848dce25b5 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -103,42 +103,41 @@ interface EnvironmentsOperations { } >; -// FIXME + // FIXME @doc("Deletes an environment and all its associated resources") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @delete deleteEnvironment( - ...Foundations.ApiVersionParameter; + ...Foundations.ApiVersionParameter, @doc("The DevCenter Project upon which to execute operations.") @path - projectName: string; + projectName: string, @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path - userId: string; + userId: string, @doc("The name of the environment.") @path - environmentName: string; - ): - { - @statusCode - statusCode: 202; + environmentName: string, + ): { + @statusCode + statusCode: 202; - @body body: OperationStatus; + @body body: OperationStatus; - @header("Location") - location: string; + @header("Location") + location: string; - @pollingLocation - @header("Operation-Location") - operationLocation: string; - } | { - @statusCode - statusCode: 204; - } | Azure.Core.Foundations.ErrorResponse; + @pollingLocation + @header("Operation-Location") + operationLocation: string; + } | { + @statusCode + statusCode: 204; + } | Azure.Core.Foundations.ErrorResponse; @doc("Lists all of the catalogs available for a project.") @route("/projects/{projectName}/catalogs") @@ -204,7 +203,6 @@ interface EnvironmentsOperations { @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") @query top?: int32; - }, EnvironmentDefinitionListResult >; diff --git a/specification/devcenter/DevCenter/python-client.tsp b/specification/devcenter/DevCenter/python-client.tsp index 26e4c46b34d3..02cf1bb6b64b 100644 --- a/specification/devcenter/DevCenter/python-client.tsp +++ b/specification/devcenter/DevCenter/python-client.tsp @@ -12,48 +12,47 @@ using Azure.ClientGenerator.Core; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" @useDependency(APIVersions.v2023_04_01) @client({ - name: "DevCenterClient", - service: DevCenterService, + name: "DevCenterClient", + service: DevCenterService, }) namespace SdkCustomizations; interface DevCenterClientOperations { - - //DevCenters - listProjects is DevCenterService.DevCenterOperations.listProjects; - getProject is DevCenterService.DevCenterOperations.getProject; - - //DevBoxes - listPools is DevCenterService.DevBoxesOperations.listPools; - getPool is DevCenterService.DevBoxesOperations.getPool; - listSchedules is DevCenterService.DevBoxesOperations.listSchedules; - getSchedule is DevCenterService.DevBoxesOperations.getSchedule; - listAllDevBoxes is DevCenterService.DevBoxesDevCenterOperations.listAllDevBoxes; - listAllDevBoxesByUser is DevCenterService.DevBoxesDevCenterOperations.listAllDevBoxesByUser; - listDevBoxes is DevCenterService.DevBoxesOperations.listDevBoxes; - getDevBox is DevCenterService.DevBoxesOperations.getDevBox; - createDevBox is DevCenterService.DevBoxesOperations.createDevBox; - deleteDevBox is DevCenterService.DevBoxesOperations.deleteDevBox; - startDevBox is DevCenterService.DevBoxesOperations.startDevBox; - stopDevBox is DevCenterService.DevBoxesOperations.stopDevBox; - restartDevBox is DevCenterService.DevBoxesOperations.restartDevBox; - getRemoteConnection is DevCenterService.DevBoxesOperations.getRemoteConnection; - listDevBoxActions is DevCenterService.DevBoxesOperations.listDevBoxActions; - getDevBoxAction is DevCenterService.DevBoxesOperations.getDevBoxAction; - skipAction is DevCenterService.DevBoxesOperations.skipAction; - delayAction is DevCenterService.DevBoxesOperations.delayAction; - delayAllActions is DevCenterService.DevBoxesOperations.delayAllActions; + //DevCenters + listProjects is DevCenterService.DevCenterOperations.listProjects; + getProject is DevCenterService.DevCenterOperations.getProject; - //Environments - listAllEnvironments is DevCenterService.EnvironmentsOperations.listAllEnvironments; - listEnvironments is DevCenterService.EnvironmentsOperations.listEnvironments; - getEnvironment is DevCenterService.EnvironmentsOperations.getEnvironment; - createOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.createOrUpdateEnvironment; - deleteEnvironment is DevCenterService.EnvironmentsOperations.deleteEnvironment; - listCatalogs is DevCenterService.EnvironmentsOperations.listCatalogs; - getCatalog is DevCenterService.EnvironmentsOperations.getCatalog; - listEnvironmentDefinitions is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitions; - listEnvironmentDefinitionsByCatalog is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitionsByCatalog; - getEnvironmentDefinition is DevCenterService.EnvironmentsOperations.getEnvironmentDefinition; - listEnvironmentTypes is DevCenterService.EnvironmentsOperations.listEnvironmentTypes; -} \ No newline at end of file + //DevBoxes + listPools is DevCenterService.DevBoxesOperations.listPools; + getPool is DevCenterService.DevBoxesOperations.getPool; + listSchedules is DevCenterService.DevBoxesOperations.listSchedules; + getSchedule is DevCenterService.DevBoxesOperations.getSchedule; + listAllDevBoxes is DevCenterService.DevBoxesDevCenterOperations.listAllDevBoxes; + listAllDevBoxesByUser is DevCenterService.DevBoxesDevCenterOperations.listAllDevBoxesByUser; + listDevBoxes is DevCenterService.DevBoxesOperations.listDevBoxes; + getDevBox is DevCenterService.DevBoxesOperations.getDevBox; + createDevBox is DevCenterService.DevBoxesOperations.createDevBox; + deleteDevBox is DevCenterService.DevBoxesOperations.deleteDevBox; + startDevBox is DevCenterService.DevBoxesOperations.startDevBox; + stopDevBox is DevCenterService.DevBoxesOperations.stopDevBox; + restartDevBox is DevCenterService.DevBoxesOperations.restartDevBox; + getRemoteConnection is DevCenterService.DevBoxesOperations.getRemoteConnection; + listDevBoxActions is DevCenterService.DevBoxesOperations.listDevBoxActions; + getDevBoxAction is DevCenterService.DevBoxesOperations.getDevBoxAction; + skipAction is DevCenterService.DevBoxesOperations.skipAction; + delayAction is DevCenterService.DevBoxesOperations.delayAction; + delayAllActions is DevCenterService.DevBoxesOperations.delayAllActions; + + //Environments + listAllEnvironments is DevCenterService.EnvironmentsOperations.listAllEnvironments; + listEnvironments is DevCenterService.EnvironmentsOperations.listEnvironments; + getEnvironment is DevCenterService.EnvironmentsOperations.getEnvironment; + createOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.createOrUpdateEnvironment; + deleteEnvironment is DevCenterService.EnvironmentsOperations.deleteEnvironment; + listCatalogs is DevCenterService.EnvironmentsOperations.listCatalogs; + getCatalog is DevCenterService.EnvironmentsOperations.getCatalog; + listEnvironmentDefinitions is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitions; + listEnvironmentDefinitionsByCatalog is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitionsByCatalog; + getEnvironmentDefinition is DevCenterService.EnvironmentsOperations.getEnvironmentDefinition; + listEnvironmentTypes is DevCenterService.EnvironmentsOperations.listEnvironmentTypes; +} diff --git a/specification/devcenter/DevCenter/service.tsp b/specification/devcenter/DevCenter/service.tsp index 01edaead0993..dadeb0d979a2 100644 --- a/specification/devcenter/DevCenter/service.tsp +++ b/specification/devcenter/DevCenter/service.tsp @@ -36,4 +36,4 @@ enum APIVersions { @doc("The 2023-04-01 service API version") @useDependency(Versions.v1_0_Preview_2) v2023_04_01: "2023-04-01", -} \ No newline at end of file +} diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index 5c5fdc65f57c..b11899fe87e5 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -9,7 +9,6 @@ using TypeSpec.Http; namespace DevCenterService; - @doc("Indicates whether operation status is running, completed, canceled or failed.") @lroStatus @projectedName("csharp", "DevCenterOperationStatus") diff --git a/specification/devcenter/DevCenter/shared/routes.tsp b/specification/devcenter/DevCenter/shared/routes.tsp index c30283f8dbfe..b1759d0b4289 100644 --- a/specification/devcenter/DevCenter/shared/routes.tsp +++ b/specification/devcenter/DevCenter/shared/routes.tsp @@ -8,19 +8,19 @@ namespace DevCenterService; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface SharedOperations { - @doc("Get the status of an operation.") - @route("/projects/{projectName}/operationstatuses/{operationId}") - @get - getProjectOperationStatus is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; + @doc("Get the status of an operation.") + @route("/projects/{projectName}/operationstatuses/{operationId}") + @get + getProjectOperationStatus is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; - @doc("Operation Id") - @path - operationId: string; - }, - OperationStatus - >; -} \ No newline at end of file + @doc("Operation Id") + @path + operationId: string; + }, + OperationStatus + >; +} diff --git a/specification/devcenter/DevCenter/tsp-output/@azure-tools/typespec-autorest/2023-04-01/openapi.json b/specification/devcenter/DevCenter/tsp-output/@azure-tools/typespec-autorest/2023-04-01/openapi.json new file mode 100644 index 000000000000..d9de4a4c2c67 --- /dev/null +++ b/specification/devcenter/DevCenter/tsp-output/@azure-tools/typespec-autorest/2023-04-01/openapi.json @@ -0,0 +1,3557 @@ +{ + "swagger": "2.0", + "info": { + "title": "DevCenter", + "version": "2023-04-01", + "description": "DevCenter service", + "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 DevCenter-specific URI to operate on.", + "required": true, + "type": "string" + } + ] + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "OAuth2Auth": [ + "https://devcenter.azure.com/.default" + ] + } + ], + "securityDefinitions": { + "OAuth2Auth": { + "type": "oauth2", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "https://devcenter.azure.com/.default": "" + } + } + }, + "tags": [], + "paths": { + "/devboxes": { + "get": { + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", + "description": "Lists Dev Boxes that the caller has access to in the DevCenter.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": false, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBox" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects": { + "get": { + "operationId": "DevCenterOperations_ListProjects", + "description": "Lists all projects.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": false, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedProject" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}": { + "get": { + "operationId": "DevCenterOperations_GetProject", + "description": "Gets a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Project" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/catalogs": { + "get": { + "operationId": "EnvironmentsOperations_ListCatalogs", + "description": "Lists all of the catalogs available for a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedCatalog" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/catalogs/{catalogName}": { + "get": { + "operationId": "EnvironmentsOperations_GetCatalog", + "description": "Gets the specified catalog within the project", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "catalogName", + "in": "path", + "description": "The name of the catalog", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Catalog" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { + "get": { + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "description": "Lists all environment definitions available within a catalog.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "catalogName", + "in": "path", + "description": "The name of the catalog", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironmentDefinition" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { + "get": { + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "description": "Get an environment definition from a catalog.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "catalogName", + "in": "path", + "description": "The name of the catalog", + "required": true, + "type": "string" + }, + { + "name": "definitionName", + "in": "path", + "description": "The name of the environment definition", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/EnvironmentDefinition" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/environmentDefinitions": { + "get": { + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", + "description": "Lists all environment definitions available for a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironmentDefinition" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/environmentTypes": { + "get": { + "operationId": "EnvironmentsOperations_ListEnvironmentTypes", + "description": "Lists all environment types configured for a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironmentType" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/environments": { + "get": { + "operationId": "EnvironmentsOperations_ListAllEnvironments", + "description": "Lists the environments for a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironment" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/operationstatuses/{operationId}": { + "get": { + "operationId": "SharedOperations_GetProjectOperationStatus", + "description": "Get the status of an operation.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "operationId", + "in": "path", + "description": "Operation Id", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/pools": { + "get": { + "operationId": "DevBoxesOperations_ListPools", + "description": "Lists available pools", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": false, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedPool" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/pools/{poolName}": { + "get": { + "operationId": "DevBoxesOperations_GetPool", + "description": "Gets a pool", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "poolName", + "in": "path", + "description": "The name of a pool of Dev Boxes.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Pool" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/pools/{poolName}/schedules": { + "get": { + "operationId": "DevBoxesOperations_ListSchedules", + "description": "Lists available schedules for a pool.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "poolName", + "in": "path", + "description": "The name of a pool of Dev Boxes.", + "required": true, + "type": "string" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": false, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedSchedule" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { + "get": { + "operationId": "DevBoxesOperations_GetSchedule", + "description": "Gets a schedule.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "poolName", + "in": "path", + "description": "The name of a pool of Dev Boxes.", + "required": true, + "type": "string" + }, + { + "name": "scheduleName", + "in": "path", + "description": "The name of a schedule.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes": { + "get": { + "operationId": "DevBoxesOperations_ListDevBoxes", + "description": "Lists Dev Boxes in the project for a particular user.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": false, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBox" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}": { + "get": { + "operationId": "DevBoxesOperations_GetDevBox", + "description": "Gets a Dev Box", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBox" + } + }, + "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." + } + } + } + } + }, + "put": { + "operationId": "DevBoxesOperations_CreateDevBox", + "description": "Creates or replaces a Dev Box.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute the operation.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "devBox", + "in": "body", + "description": "Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator", + "required": true, + "schema": { + "$ref": "#/definitions/DevBox" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBox" + } + }, + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", + "schema": { + "$ref": "#/definitions/DevBox" + }, + "headers": { + "Location": { + "type": "string", + "format": "uri", + "description": "The location of an instance of DevBox" + }, + "Operation-Location": { + "type": "string" + } + } + }, + "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-long-running-operation": true + }, + "delete": { + "operationId": "DevBoxesOperations_DeleteDevBox", + "description": "Deletes a Dev Box.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "schema": { + "$ref": "#/definitions/OperationStatus" + }, + "headers": { + "Location": { + "type": "string" + }, + "Operation-Location": { + "type": "string" + } + } + }, + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " + }, + "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-long-running-operation": true + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start": { + "post": { + "operationId": "DevBoxesOperations_StartDevBox", + "description": "Starts a Dev Box", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "schema": { + "$ref": "#/definitions/OperationStatus" + }, + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." + } + } + }, + "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-long-running-operation": true + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop": { + "post": { + "operationId": "DevBoxesOperations_StopDevBox", + "description": "Stops a Dev Box", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "hibernate", + "in": "query", + "description": "Optional parameter to hibernate the dev box.", + "required": false, + "type": "boolean" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "schema": { + "$ref": "#/definitions/OperationStatus" + }, + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." + } + } + }, + "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-long-running-operation": true + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart": { + "post": { + "operationId": "DevBoxesOperations_RestartDevBox", + "description": "Restarts a Dev Box", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "schema": { + "$ref": "#/definitions/OperationStatus" + }, + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." + } + } + }, + "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-long-running-operation": true + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions": { + "get": { + "operationId": "DevBoxesOperations_ListDevBoxActions", + "description": "Lists actions on a Dev Box.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBoxAction" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}": { + "get": { + "operationId": "DevBoxesOperations_GetDevBoxAction", + "description": "Gets an action.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "actionName", + "in": "path", + "description": "The name of an action that will take place on a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBoxAction" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip": { + "post": { + "operationId": "DevBoxesOperations_SkipAction", + "description": "Skips an occurrence of an action.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "actionName", + "in": "path", + "description": "The name of an action that will take place on a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay": { + "post": { + "operationId": "DevBoxesOperations_DelayAction", + "description": "Delays the occurrence of an action.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "actionName", + "in": "path", + "description": "The name of an action that will take place on a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "until", + "in": "query", + "description": "The time to delay the Dev Box action or actions until.", + "required": true, + "type": "string", + "format": "date-time", + "x-ms-client-name": "delayUntil" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBoxAction" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay": { + "post": { + "operationId": "DevBoxesOperations_DelayAllActions", + "description": "Delays all actions.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "until", + "in": "query", + "description": "The time to delay the Dev Box action or actions until.", + "required": true, + "type": "string", + "format": "date-time", + "x-ms-client-name": "delayUntil" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBoxActionDelayResult" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection": { + "get": { + "operationId": "DevBoxesOperations_GetRemoteConnection", + "description": "Gets RDP Connection info", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/RemoteConnection" + } + }, + "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." + } + } + } + } + } + }, + "/projects/{projectName}/users/{userId}/environments": { + "get": { + "operationId": "EnvironmentsOperations_ListEnvironments", + "description": "Lists the environments for a project and user.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironment" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/users/{userId}/environments/{environmentName}": { + "get": { + "operationId": "EnvironmentsOperations_GetEnvironment", + "description": "Gets an environment", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Environment" + } + }, + "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." + } + } + } + } + }, + "put": { + "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", + "description": "Creates or updates an environment.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "Represents an environment.", + "required": true, + "schema": { + "$ref": "#/definitions/Environment" + } + } + ], + "responses": { + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", + "schema": { + "$ref": "#/definitions/Environment" + }, + "headers": { + "Operation-Location": { + "type": "string" + } + } + }, + "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-long-running-operation": true + }, + "delete": { + "operationId": "EnvironmentsOperations_DeleteEnvironment", + "description": "Deletes an environment and all its associated resources", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "schema": { + "$ref": "#/definitions/OperationStatus" + }, + "headers": { + "Location": { + "type": "string" + }, + "Operation-Location": { + "type": "string" + } + } + }, + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " + }, + "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-long-running-operation": true + } + }, + "/users/{userId}/devboxes": { + "get": { + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "description": "Lists Dev Boxes in the Dev Center for a particular user.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": false, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBox" + } + }, + "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-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "APIVersions": { + "type": "string", + "description": "DevCenter API versions", + "enum": [ + "2023-04-01" + ], + "x-ms-enum": { + "name": "APIVersions", + "modelAsString": true, + "values": [ + { + "name": "v2023_04_01", + "value": "2023-04-01", + "description": "The 2023-04-01 service API version" + } + ] + } + }, + "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." + } + } + }, + "Azure.Core.uuid": { + "type": "string", + "format": "uuid", + "description": "Universally Unique Identifier" + }, + "Catalog": { + "type": "object", + "description": "A catalog.", + "properties": { + "name": { + "type": "string", + "description": "Name of the catalog." + } + }, + "required": [ + "name" + ] + }, + "DevBox": { + "type": "object", + "description": "A Dev Box", + "properties": { + "name": { + "type": "string", + "description": "Display name for the Dev Box", + "readOnly": true + }, + "projectName": { + "type": "string", + "description": "Name of the project this Dev Box belongs to", + "readOnly": true + }, + "poolName": { + "type": "string", + "description": "The name of the Dev Box pool this machine belongs to.", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "hibernateSupport": { + "$ref": "#/definitions/HibernateSupport", + "description": "Indicates whether hibernate is enabled/disabled or unknown.", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/DevBoxProvisioningState", + "description": "The current provisioning state of the Dev Box.", + "readOnly": true + }, + "actionState": { + "type": "string", + "description": "The current action state of the Dev Box. This is state is based on previous\naction performed by user.", + "readOnly": true + }, + "powerState": { + "$ref": "#/definitions/PowerState", + "description": "The current power state of the Dev Box.", + "default": "Unknown", + "readOnly": true + }, + "uniqueId": { + "$ref": "#/definitions/Azure.Core.uuid", + "description": "A unique identifier for the Dev Box. This is a GUID-formatted string (e.g.\n00000000-0000-0000-0000-000000000000).", + "readOnly": true + }, + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "Provisioning or action error details. Populated only for error states.", + "readOnly": true + }, + "location": { + "type": "string", + "description": "Azure region where this Dev Box is located. This will be the same region as the\nVirtual Network it is attached to.", + "readOnly": true + }, + "osType": { + "$ref": "#/definitions/OsType", + "description": "The operating system type of this Dev Box.", + "readOnly": true + }, + "user": { + "$ref": "#/definitions/Azure.Core.uuid", + "description": "The AAD object id of the user this Dev Box is assigned to.", + "readOnly": true + }, + "hardwareProfile": { + "$ref": "#/definitions/HardwareProfile", + "description": "Information about the Dev Box's hardware resources", + "readOnly": true + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage settings for this Dev Box", + "readOnly": true + }, + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Information about the image used for this Dev Box", + "readOnly": true + }, + "createdTime": { + "type": "string", + "format": "date-time", + "description": "Creation time of this Dev Box", + "readOnly": true + }, + "localAdministrator": { + "$ref": "#/definitions/LocalAdminStatus", + "description": "Indicates whether the owner of the Dev Box is a local administrator.", + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "required": [ + "name", + "poolName", + "powerState" + ] + }, + "DevBoxAction": { + "type": "object", + "description": "An action which will take place on a Dev Box.", + "properties": { + "name": { + "type": "string", + "description": "The name of the action.", + "readOnly": true + }, + "actionType": { + "$ref": "#/definitions/DevBoxActionType", + "description": "The action that will be taken." + }, + "sourceId": { + "type": "string", + "description": "The id of the resource which triggered this action" + }, + "suspendedUntil": { + "type": "string", + "format": "date-time", + "description": "The earliest time that the action could occur (UTC)." + }, + "next": { + "$ref": "#/definitions/DevBoxNextAction", + "description": "Details about the next run of this action." + } + }, + "required": [ + "name", + "actionType", + "sourceId" + ] + }, + "DevBoxActionDelayResult": { + "type": "object", + "description": "The action delay result", + "properties": { + "name": { + "type": "string", + "description": "The name of the action." + }, + "result": { + "$ref": "#/definitions/DevBoxActionDelayResultStatus", + "description": "The result of the delay operation on this action." + }, + "action": { + "$ref": "#/definitions/DevBoxAction", + "description": "The delayed action" + }, + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "Information about the error that occurred. Only populated on error." + } + }, + "required": [ + "name", + "result" + ] + }, + "DevBoxActionDelayResultStatus": { + "type": "string", + "description": "The result of the delay operation on this action.", + "enum": [ + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "DevBoxActionDelayResultStatus", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "The delay operation succeeded." + }, + { + "name": "Failed", + "value": "Failed", + "description": "The delay operation failed." + } + ] + } + }, + "DevBoxActionType": { + "type": "string", + "description": "The type of action which will take place on a Dev Box.", + "enum": [ + "Stop" + ], + "x-ms-enum": { + "name": "DevBoxActionType", + "modelAsString": true, + "values": [ + { + "name": "Stop", + "value": "Stop", + "description": "The action will stop the Dev Box." + } + ] + } + }, + "DevBoxNextAction": { + "type": "object", + "description": "Details about the next run of an action.", + "properties": { + "scheduledTime": { + "type": "string", + "format": "date-time", + "description": "The time the action will be triggered (UTC)." + } + }, + "required": [ + "scheduledTime" + ] + }, + "DevBoxProvisioningState": { + "type": "string", + "description": "Indicates the provisioning state of the Dev Box.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Creating", + "Deleting", + "Updating", + "Starting", + "Stopping", + "Provisioning", + "ProvisionedWithWarning", + "InGracePeriod", + "NotProvisioned" + ], + "x-ms-enum": { + "name": "DevBoxProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Dev Box was successfully provisioned" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Dev Box failed to provision" + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Dev Box provision was canceled" + }, + { + "name": "Creating", + "value": "Creating", + "description": "Dev Box is being created" + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "Dev Box is being deleted" + }, + { + "name": "Updating", + "value": "Updating", + "description": "Dev Box is updating" + }, + { + "name": "Starting", + "value": "Starting", + "description": "Dev Box is starting" + }, + { + "name": "Stopping", + "value": "Stopping", + "description": "Dev Box is stopping" + }, + { + "name": "Provisioning", + "value": "Provisioning", + "description": "Dev Box is provisioning" + }, + { + "name": "ProvisionedWithWarning", + "value": "ProvisionedWithWarning", + "description": "Dev Box was provisioned with warning" + }, + { + "name": "InGracePeriod", + "value": "InGracePeriod", + "description": "Dev Box is in grace period" + }, + { + "name": "NotProvisioned", + "value": "NotProvisioned", + "description": "Dev Box is not provisioned" + } + ] + } + }, + "Environment": { + "type": "object", + "description": "Properties of an environment.", + "properties": { + "parameters": { + "type": "string", + "format": "byte", + "description": "Parameters object for the environment." + }, + "name": { + "type": "string", + "description": "Environment name.", + "readOnly": true + }, + "environmentType": { + "type": "string", + "description": "Environment type.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "user": { + "$ref": "#/definitions/Azure.Core.uuid", + "description": "The AAD object id of the owner of this Environment.", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/EnvironmentProvisioningState", + "description": "The provisioning state of the environment.", + "readOnly": true + }, + "resourceGroupId": { + "type": "string", + "description": "The identifier of the resource group containing the environment's resources.", + "readOnly": true + }, + "catalogName": { + "type": "string", + "description": "Name of the catalog.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "environmentDefinitionName": { + "type": "string", + "description": "Name of the environment definition.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "Provisioning error details. Populated only for error states.", + "readOnly": true + } + }, + "required": [ + "environmentType", + "catalogName", + "environmentDefinitionName" + ] + }, + "EnvironmentDefinition": { + "type": "object", + "description": "An environment definition.", + "properties": { + "id": { + "type": "string", + "description": "The ID of the environment definition." + }, + "name": { + "type": "string", + "description": "Name of the environment definition." + }, + "catalogName": { + "type": "string", + "description": "Name of the catalog." + }, + "description": { + "type": "string", + "description": "A short description of the environment definition." + }, + "parameters": { + "type": "array", + "description": "Input parameters passed to an environment.", + "items": { + "$ref": "#/definitions/EnvironmentDefinitionParameter" + } + }, + "parametersSchema": { + "type": "string", + "format": "byte", + "description": "JSON schema defining the parameters object passed to an environment." + }, + "templatePath": { + "type": "string", + "description": "Path to the Environment Definition entrypoint file." + } + }, + "required": [ + "id", + "name", + "catalogName" + ] + }, + "EnvironmentDefinitionParameter": { + "type": "object", + "description": "Properties of an Environment Definition parameter", + "properties": { + "id": { + "type": "string", + "description": "Unique ID of the parameter" + }, + "name": { + "type": "string", + "description": "Display name of the parameter" + }, + "description": { + "type": "string", + "description": "Description of the parameter" + }, + "default": { + "type": "string", + "format": "byte", + "description": "Default value of the parameter" + }, + "type": { + "$ref": "#/definitions/ParameterType", + "description": "A string of one of the basic JSON types (number, integer, array, object,\nboolean, string)" + }, + "readOnly": { + "type": "boolean", + "description": "Whether or not this parameter is read-only. If true, default should have a\nvalue." + }, + "required": { + "type": "boolean", + "description": "Whether or not this parameter is required" + }, + "allowed": { + "type": "array", + "description": "An array of allowed values", + "minItems": 1, + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "type", + "required" + ] + }, + "EnvironmentProvisioningState": { + "type": "string", + "description": "The provisioning state of the environment.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Creating", + "Accepted", + "Deleting", + "Updating", + "Preparing", + "Running", + "Syncing", + "MovingResources", + "TransientFailure", + "StorageProvisioningFailed" + ], + "x-ms-enum": { + "name": "EnvironmentProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "The environment was successfully provisioned." + }, + { + "name": "Failed", + "value": "Failed", + "description": "The environment failed to provision." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "The environment provisioning was canceled." + }, + { + "name": "Creating", + "value": "Creating", + "description": "The environment is creating." + }, + { + "name": "Accepted", + "value": "Accepted", + "description": "The environment was accepted." + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "The environment is deleting." + }, + { + "name": "Updating", + "value": "Updating", + "description": "The environment is updating." + }, + { + "name": "Preparing", + "value": "Preparing", + "description": "The environment is preparing." + }, + { + "name": "Running", + "value": "Running", + "description": "The environment is running." + }, + { + "name": "Syncing", + "value": "Syncing", + "description": "The environment is Syncing." + }, + { + "name": "MovingResources", + "value": "MovingResources", + "description": "The environment is moving resources." + }, + { + "name": "TransientFailure", + "value": "TransientFailure", + "description": "The environment has a transient failure." + }, + { + "name": "StorageProvisioningFailed", + "value": "StorageProvisioningFailed", + "description": "The environment storage provisioning failed." + } + ] + } + }, + "EnvironmentType": { + "type": "object", + "description": "Properties of an environment type.", + "properties": { + "name": { + "type": "string", + "description": "Name of the environment type" + }, + "deploymentTargetId": { + "type": "string", + "description": "Id of a subscription or management group that the environment type will be\nmapped to. The environment's resources will be deployed into this subscription\nor management group." + }, + "status": { + "$ref": "#/definitions/EnvironmentTypeEnableStatus", + "description": "Indicates whether this environment type is enabled for use in this project." + } + }, + "required": [ + "name", + "deploymentTargetId", + "status" + ] + }, + "EnvironmentTypeEnableStatus": { + "type": "string", + "description": "Indicates whether an environment type is enabled for use in a project.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnvironmentTypeEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "The environment type is enabled for use in the project." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "The environment type is not enabled for use in the project." + } + ] + } + }, + "EnvironmentUpdateProperties": { + "type": "object", + "description": "Properties of an environment. These properties can be updated after the\nresource has been created.", + "properties": { + "parameters": { + "type": "string", + "format": "byte", + "description": "Parameters object for the environment." + } + } + }, + "HardwareProfile": { + "type": "object", + "description": "Hardware specifications for the Dev Box.", + "properties": { + "skuName": { + "$ref": "#/definitions/SkuName", + "description": "The name of the SKU", + "readOnly": true + }, + "vCpus": { + "type": "integer", + "format": "int32", + "description": "The number of vCPUs available for the Dev Box.", + "readOnly": true + }, + "memoryGb": { + "type": "integer", + "format": "int32", + "description": "The amount of memory available for the Dev Box.", + "readOnly": true + } + } + }, + "HibernateSupport": { + "type": "string", + "description": "Indicates whether hibernate is supported and enabled, disabled, or unsupported by the operating system. Unknown hibernate support is represented as null.", + "enum": [ + "Enabled", + "Disabled", + "OsUnsupported" + ], + "x-ms-enum": { + "name": "HibernateSupport", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Hibernate is enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Hibernate is not enabled." + }, + { + "name": "OsUnsupported", + "value": "OsUnsupported", + "description": "Hibernate is not supported by the operating system." + } + ] + } + }, + "ImageReference": { + "type": "object", + "description": "Specifies information about the image used", + "properties": { + "name": { + "type": "string", + "description": "The name of the image used.", + "readOnly": true + }, + "version": { + "type": "string", + "description": "The version of the image.", + "readOnly": true + }, + "operatingSystem": { + "type": "string", + "description": "The operating system of the image.", + "readOnly": true + }, + "osBuildNumber": { + "type": "string", + "description": "The operating system build number of the image.", + "readOnly": true + }, + "publishedDate": { + "type": "string", + "format": "date-time", + "description": "The datetime that the backing image version was published.", + "readOnly": true + } + } + }, + "LocalAdminStatus": { + "type": "string", + "description": "Indicates whether owners of Dev Boxes in a pool are local administrators on the Dev Boxes.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "LocalAdminStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Owners of Dev Boxes in the pool are local administrators on the Dev Boxes." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes." + } + ] + } + }, + "OperationStatus": { + "type": "object", + "description": "The current status of an async operation", + "properties": { + "id": { + "type": "string", + "description": "Fully qualified ID for the operation status." + }, + "name": { + "type": "string", + "description": "The operation id name" + }, + "status": { + "$ref": "#/definitions/OperationStatusValue", + "description": "Provisioning state of the resource." + }, + "resourceId": { + "type": "string", + "description": "The id of the resource." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the operation" + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The end time of the operation" + }, + "percentComplete": { + "type": "number", + "format": "float", + "description": "Percent of the operation that is complete", + "minimum": 0, + "maximum": 100 + }, + "properties": { + "type": "string", + "format": "byte", + "description": "Custom operation properties, populated only for a successful operation." + }, + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "Operation Error message" + } + }, + "required": [ + "status" + ] + }, + "OperationStatusValue": { + "type": "string", + "description": "Indicates whether operation status is running, completed, canceled or failed.", + "enum": [ + "Running", + "Completed", + "Canceled", + "Failed" + ], + "x-ms-enum": { + "name": "OperationStatusValue", + "modelAsString": true, + "values": [ + { + "name": "Running", + "value": "Running", + "description": "Operation is in progress" + }, + { + "name": "Completed", + "value": "Completed", + "description": "Operation is completed with success" + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Operation was canceled" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Operation failed" + } + ] + } + }, + "OsDisk": { + "type": "object", + "description": "Settings for the operating system disk.", + "properties": { + "diskSizeGb": { + "type": "integer", + "format": "int32", + "description": "The size of the OS Disk in gigabytes.", + "readOnly": true + } + } + }, + "OsType": { + "type": "string", + "description": "The operating system type.", + "enum": [ + "Windows" + ], + "x-ms-enum": { + "name": "OsType", + "modelAsString": true, + "values": [ + { + "name": "Windows", + "value": "Windows", + "description": "The Windows operating system." + } + ] + } + }, + "PagedCatalog": { + "type": "object", + "description": "Results of the catalog list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Catalog items on this page", + "items": { + "$ref": "#/definitions/Catalog" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedDevBox": { + "type": "object", + "description": "The Dev Box list result", + "properties": { + "value": { + "type": "array", + "description": "The DevBox items on this page", + "items": { + "$ref": "#/definitions/DevBox" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedDevBoxAction": { + "type": "object", + "description": "The actions list result", + "properties": { + "value": { + "type": "array", + "description": "The DevBoxAction items on this page", + "items": { + "$ref": "#/definitions/DevBoxAction" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedDevBoxActionDelayResult": { + "type": "object", + "description": "The actions list result", + "properties": { + "value": { + "type": "array", + "description": "The DevBoxActionDelayResult items on this page", + "items": { + "$ref": "#/definitions/DevBoxActionDelayResult" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironment": { + "type": "object", + "description": "Results of the environment list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Environment items on this page", + "items": { + "$ref": "#/definitions/Environment" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironmentDefinition": { + "type": "object", + "description": "Results of the environment definition list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnvironmentDefinition items on this page", + "items": { + "$ref": "#/definitions/EnvironmentDefinition" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironmentType": { + "type": "object", + "description": "Result of the environment type list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnvironmentType items on this page", + "items": { + "$ref": "#/definitions/EnvironmentType" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedPool": { + "type": "object", + "description": "The Pool list result", + "properties": { + "value": { + "type": "array", + "description": "The Pool items on this page", + "items": { + "$ref": "#/definitions/Pool" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedProject": { + "type": "object", + "description": "Results of the project list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Project items on this page", + "items": { + "$ref": "#/definitions/Project" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedSchedule": { + "type": "object", + "description": "The Schedule list result", + "properties": { + "value": { + "type": "array", + "description": "The Schedule items on this page", + "items": { + "$ref": "#/definitions/Schedule" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "ParameterType": { + "type": "string", + "description": "The type of data a parameter accepts.", + "enum": [ + "array", + "boolean", + "integer", + "number", + "object", + "string" + ], + "x-ms-enum": { + "name": "ParameterType", + "modelAsString": true, + "values": [ + { + "name": "array", + "value": "array", + "description": "The parameter accepts an array of values." + }, + { + "name": "boolean", + "value": "boolean", + "description": "The parameter accepts a boolean value." + }, + { + "name": "integer", + "value": "integer", + "description": "The parameter accepts an integer value." + }, + { + "name": "number", + "value": "number", + "description": "The parameter accepts a number value." + }, + { + "name": "object", + "value": "object", + "description": "The parameter accepts an object value." + }, + { + "name": "string", + "value": "string", + "description": "The parameter accepts a string value." + } + ] + } + }, + "Pool": { + "type": "object", + "description": "A pool of Dev Boxes.", + "properties": { + "name": { + "type": "string", + "description": "Pool name", + "readOnly": true + }, + "location": { + "type": "string", + "description": "Azure region where Dev Boxes in the pool are located" + }, + "osType": { + "$ref": "#/definitions/OsType", + "description": "The operating system type of Dev Boxes in this pool" + }, + "hardwareProfile": { + "$ref": "#/definitions/HardwareProfile", + "description": "Hardware settings for the Dev Boxes created in this pool" + }, + "hibernateSupport": { + "$ref": "#/definitions/HibernateSupport", + "description": "Indicates whether hibernate is enabled/disabled or unknown." + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage settings for Dev Box created in this pool" + }, + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Image settings for Dev Boxes create in this pool" + }, + "localAdministrator": { + "$ref": "#/definitions/LocalAdminStatus", + "description": "Indicates whether owners of Dev Boxes in this pool are local administrators on\nthe Dev Boxes." + }, + "stopOnDisconnect": { + "$ref": "#/definitions/StopOnDisconnectConfiguration", + "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool." + }, + "healthStatus": { + "$ref": "#/definitions/PoolHealthStatus", + "description": "Overall health status of the Pool. Indicates whether or not the Pool is\navailable to create Dev Boxes." + } + }, + "required": [ + "name", + "location", + "healthStatus" + ] + }, + "PoolHealthStatus": { + "type": "string", + "description": "Pool status indicating whether a pool is available to create Dev Boxes.", + "enum": [ + "Unknown", + "Pending", + "Healthy", + "Warning", + "Unhealthy" + ], + "x-ms-enum": { + "name": "PoolHealthStatus", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "The pool health status is not known." + }, + { + "name": "Pending", + "value": "Pending", + "description": "The pool health status waiting for health checks to run." + }, + { + "name": "Healthy", + "value": "Healthy", + "description": "The pool health status is healthy." + }, + { + "name": "Warning", + "value": "Warning", + "description": "The pool health status has one or more warnings." + }, + { + "name": "Unhealthy", + "value": "Unhealthy", + "description": "The pool health status is not healthy." + } + ] + } + }, + "PowerState": { + "type": "string", + "description": "The power states of a Dev Box.", + "enum": [ + "Unknown", + "Running", + "Deallocated", + "PoweredOff", + "Hibernated" + ], + "x-ms-enum": { + "name": "PowerState", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "The Dev Box power state is not known." + }, + { + "name": "Running", + "value": "Running", + "description": "The Dev Box is running." + }, + { + "name": "Deallocated", + "value": "Deallocated", + "description": "The Dev Box is deallocated." + }, + { + "name": "PoweredOff", + "value": "PoweredOff", + "description": "The Dev Box is powered off." + }, + { + "name": "Hibernated", + "value": "Hibernated", + "description": "The Dev Box is hibernated." + } + ] + } + }, + "Project": { + "type": "object", + "description": "Project details.", + "properties": { + "name": { + "type": "string", + "description": "Name of the project", + "readOnly": true + }, + "description": { + "type": "string", + "description": "Description of the project." + }, + "maxDevBoxesPerUser": { + "type": "integer", + "format": "int32", + "description": "When specified, indicates the maximum number of Dev Boxes a single user can\ncreate across all pools in the project.", + "minimum": 0 + } + }, + "required": [ + "name" + ] + }, + "RemoteConnection": { + "type": "object", + "description": "Provides remote connection information for a Dev Box.", + "properties": { + "webUrl": { + "type": "string", + "format": "uri", + "description": "URL to open a browser based RDP session." + }, + "rdpConnectionUrl": { + "type": "string", + "format": "uri", + "description": "Link to open a Remote Desktop session." + } + } + }, + "Schedule": { + "type": "object", + "description": "A Schedule to execute action.", + "properties": { + "name": { + "type": "string", + "description": "Display name for the Schedule", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/ScheduledType", + "description": "Supported type this scheduled task represents." + }, + "frequency": { + "$ref": "#/definitions/ScheduledFrequency", + "description": "The frequency of this scheduled task." + }, + "time": { + "type": "string", + "format": "time", + "description": "The target time to trigger the action. The format is HH:MM." + }, + "timeZone": { + "type": "string", + "description": "The IANA timezone id at which the schedule should execute." + } + }, + "required": [ + "name", + "type", + "frequency", + "time", + "timeZone" + ] + }, + "ScheduledFrequency": { + "type": "string", + "description": "The frequency of task execution.", + "enum": [ + "Daily" + ], + "x-ms-enum": { + "name": "ScheduledFrequency", + "modelAsString": true, + "values": [ + { + "name": "Daily", + "value": "Daily", + "description": "The scheduled task will run every day." + } + ] + } + }, + "ScheduledType": { + "type": "string", + "description": "The supported types for a scheduled task.", + "enum": [ + "StopDevBox" + ], + "x-ms-enum": { + "name": "ScheduledType", + "modelAsString": true, + "values": [ + { + "name": "StopDevBox", + "value": "StopDevBox", + "description": "The scheduled task will stop impacted Dev Boxes." + } + ] + } + }, + "SkuName": { + "type": "string", + "description": "Indicates the Dev Box compute.", + "enum": [ + "general_i_8c32gb256ssd_v2", + "general_i_8c32gb512ssd_v2", + "general_i_8c32gb1024ssd_v2", + "general_i_8c32gb2048ssd_v2", + "general_i_16c64gb256ssd_v2", + "general_i_16c64gb512ssd_v2", + "general_i_16c64gb1024ssd_v2", + "general_i_16c64gb2048ssd_v2", + "general_i_32c128gb512ssd_v2", + "general_i_32c128gb1024ssd_v2", + "general_i_32c128gb2048ssd_v2", + "general_a_8c32gb256ssd_v2", + "general_a_8c32gb512ssd_v2", + "general_a_8c32gb1024ssd_v2", + "general_a_8c32gb2048ssd_v2", + "general_a_16c64gb256ssd_v2", + "general_a_16c64gb512ssd_v2", + "general_a_16c64gb1024ssd_v2", + "general_a_16c64gb2048ssd_v2", + "general_a_32c128gb512ssd_v2", + "general_a_32c128gb1024ssd_v2", + "general_a_32c128gb2048ssd_v2" + ], + "x-ms-enum": { + "name": "SkuName", + "modelAsString": true, + "values": [ + { + "name": "general_i_8c32gb256ssd_v2", + "value": "general_i_8c32gb256ssd_v2", + "description": "Intel, 8 vCPU, 32 GB RAM, 256 GB Storage" + }, + { + "name": "general_i_8c32gb512ssd_v2", + "value": "general_i_8c32gb512ssd_v2", + "description": "Intel, 8 vCPU, 32 GB RAM, 512 GB Storage" + }, + { + "name": "general_i_8c32gb1024ssd_v2", + "value": "general_i_8c32gb1024ssd_v2", + "description": "Intel, 8 vCPU, 32 GB RAM, 1024 GB Storage" + }, + { + "name": "general_i_8c32gb2048ssd_v2", + "value": "general_i_8c32gb2048ssd_v2", + "description": "Intel, 8 vCPU, 32 GB RAM, 2048 GB Storage" + }, + { + "name": "general_i_16c64gb256ssd_v2", + "value": "general_i_16c64gb256ssd_v2", + "description": "Intel, 16 vCPU, 64 GB RAM, 256 GB Storage" + }, + { + "name": "general_i_16c64gb512ssd_v2", + "value": "general_i_16c64gb512ssd_v2", + "description": "Intel, 16 vCPU, 64 GB RAM, 512 GB Storage" + }, + { + "name": "general_i_16c64gb1024ssd_v2", + "value": "general_i_16c64gb1024ssd_v2", + "description": "Intel, 16 vCPU, 64 GB RAM, 1024 GB Storage" + }, + { + "name": "general_i_16c64gb2048ssd_v2", + "value": "general_i_16c64gb2048ssd_v2", + "description": "Intel, 16 vCPU, 64 GB RAM, 2048 GB Storage" + }, + { + "name": "general_i_32c128gb512ssd_v2", + "value": "general_i_32c128gb512ssd_v2", + "description": "Intel, 32 vCPU, 128 GB RAM, 512 GB Storage" + }, + { + "name": "general_i_32c128gb1024ssd_v2", + "value": "general_i_32c128gb1024ssd_v2", + "description": "Intel, 32 vCPU, 128 GB RAM, 1024 GB Storage" + }, + { + "name": "general_i_32c128gb2048ssd_v2", + "value": "general_i_32c128gb2048ssd_v2", + "description": "Intel, 32 vCPU, 128 GB RAM, 2048 GB Storage" + }, + { + "name": "general_a_8c32gb256ssd_v2", + "value": "general_a_8c32gb256ssd_v2", + "description": "AMD, 8 vCPU, 32 GB RAM, 256 GB Storage" + }, + { + "name": "general_a_8c32gb512ssd_v2", + "value": "general_a_8c32gb512ssd_v2", + "description": "AMD, 8 vCPU, 32 GB RAM, 512 GB Storage" + }, + { + "name": "general_a_8c32gb1024ssd_v2", + "value": "general_a_8c32gb1024ssd_v2", + "description": "AMD, 8 vCPU, 32 GB RAM, 1024 GB Storage" + }, + { + "name": "general_a_8c32gb2048ssd_v2", + "value": "general_a_8c32gb2048ssd_v2", + "description": "AMD, 8 vCPU, 32 GB RAM, 2048 GB Storage" + }, + { + "name": "general_a_16c64gb256ssd_v2", + "value": "general_a_16c64gb256ssd_v2", + "description": "AMD, 16 vCPU, 64 GB RAM, 256 GB Storage" + }, + { + "name": "general_a_16c64gb512ssd_v2", + "value": "general_a_16c64gb512ssd_v2", + "description": "AMD, 16 vCPU, 64 GB RAM, 512 GB Storage" + }, + { + "name": "general_a_16c64gb1024ssd_v2", + "value": "general_a_16c64gb1024ssd_v2", + "description": "AMD, 16 vCPU, 64 GB RAM, 1024 GB Storage" + }, + { + "name": "general_a_16c64gb2048ssd_v2", + "value": "general_a_16c64gb2048ssd_v2", + "description": "AMD, 16 vCPU, 64 GB RAM, 2048 GB Storage" + }, + { + "name": "general_a_32c128gb512ssd_v2", + "value": "general_a_32c128gb512ssd_v2", + "description": "AMD, 32 vCPU, 128 GB RAM, 512 GB Storage" + }, + { + "name": "general_a_32c128gb1024ssd_v2", + "value": "general_a_32c128gb1024ssd_v2", + "description": "AMD, 32 vCPU, 128 GB RAM, 1024 GB Storage" + }, + { + "name": "general_a_32c128gb2048ssd_v2", + "value": "general_a_32c128gb2048ssd_v2", + "description": "AMD, 32 vCPU, 128 GB RAM, 2048 GB Storage" + } + ] + } + }, + "StopOnDisconnectConfiguration": { + "type": "object", + "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", + "properties": { + "status": { + "$ref": "#/definitions/StopOnDisconnectEnableStatus", + "description": "Indicates whether the feature to stop the devbox on disconnect once the grace\nperiod has lapsed is enabled." + }, + "gracePeriodMinutes": { + "type": "integer", + "format": "int32", + "description": "The specified time in minutes to wait before stopping a Dev Box once disconnect\nis detected." + } + }, + "required": [ + "status" + ] + }, + "StopOnDisconnectEnableStatus": { + "type": "string", + "description": "Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "StopOnDisconnectEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Stop on disconnect is enabled on the Dev Box." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Stop on disconnect is not enabled on the Dev Box." + } + ] + } + }, + "StorageProfile": { + "type": "object", + "description": "Storage settings for the Dev Box's disks", + "properties": { + "osDisk": { + "$ref": "#/definitions/OsDisk", + "description": "Settings for the operating system disk." + } + } + }, + "User": { + "type": "object", + "description": "Project user", + "properties": { + "userId": { + "type": "string", + "description": "The AAD object id of the user", + "readOnly": true + } + }, + "required": [ + "userId" + ] + } + }, + "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" + } + } +} From b050c3b3b8076a7d9fce804fa091607626fba32a Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 22 Jan 2024 18:10:00 -0300 Subject: [PATCH 098/187] Revert "Fix camelcase on models - NEED TO CHECK SERIALIZATION" This reverts commit 0df982c8893b3a370558330d5ac053711c866bdc. --- specification/devcenter/DevCenter/devbox/models.tsp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index 9fece4cc7a80..d382eceba760 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -246,12 +246,12 @@ model HardwareProfile { @projectedName("csharp", "VCpus") @projectedName("java", "vcpus") @projectedName("python", "vcpus") - vCpus?: int32; + vCPUs?: int32; @doc("The amount of memory available for the Dev Box.") @visibility("read") @projectedName("python", "memoryGb") - memoryGb?: int32; + memoryGB?: int32; } @doc("Storage settings for the Dev Box's disks") @@ -260,16 +260,16 @@ model HardwareProfile { model StorageProfile { @doc("Settings for the operating system disk.") @projectedName("csharp", "OSDisk") - osDisk?: OsDisk; + osDisk?: OSDisk; } @doc("Settings for the operating system disk.") @projectedName("java", "OsDisk") -model OsDisk { +model OSDisk { @doc("The size of the OS Disk in gigabytes.") @visibility("read") @projectedName("python", "diskSizeGb") - diskSizeGb?: int32; + diskSizeGB?: int32; } @doc("Specifies information about the image used") From b0bc3d8619193e903b3ed5c251f31f688576ab41 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 22 Jan 2024 18:27:13 -0300 Subject: [PATCH 099/187] add suppress for case-sensitive wire format --- specification/devcenter/DevCenter/devbox/models.tsp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index d382eceba760..da1673f207d5 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -233,6 +233,7 @@ available to create Dev Boxes. healthStatus: PoolHealthStatus; } +#suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" @doc("Hardware specifications for the Dev Box.") @projectedName("csharp", "DevBoxHardwareProfile") @projectedName("java", "DevBoxHardwareProfile") @@ -260,12 +261,15 @@ model HardwareProfile { model StorageProfile { @doc("Settings for the operating system disk.") @projectedName("csharp", "OSDisk") - osDisk?: OSDisk; + osDisk?: OsDisk; } @doc("Settings for the operating system disk.") -@projectedName("java", "OsDisk") -model OSDisk { +@projectedName("csharp", "OSDisk") +@projectedName("python", "OSDisk") +@projectedName("javascript", "OSDisk") +model OsDisk { + #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" @doc("The size of the OS Disk in gigabytes.") @visibility("read") @projectedName("python", "diskSizeGb") From 68910280d5abfba48291402e8c48355cccb9d787 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 22 Jan 2024 18:40:07 -0300 Subject: [PATCH 100/187] fix vcpus casing for .net --- specification/devcenter/DevCenter/devbox/models.tsp | 1 - .../@azure-tools/typespec-autorest/2023-04-01/openapi.json | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index da1673f207d5..2e944942ef5f 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -244,7 +244,6 @@ model HardwareProfile { @doc("The number of vCPUs available for the Dev Box.") @visibility("read") - @projectedName("csharp", "VCpus") @projectedName("java", "vcpus") @projectedName("python", "vcpus") vCPUs?: int32; diff --git a/specification/devcenter/DevCenter/tsp-output/@azure-tools/typespec-autorest/2023-04-01/openapi.json b/specification/devcenter/DevCenter/tsp-output/@azure-tools/typespec-autorest/2023-04-01/openapi.json index d9de4a4c2c67..0064c8e01e5b 100644 --- a/specification/devcenter/DevCenter/tsp-output/@azure-tools/typespec-autorest/2023-04-01/openapi.json +++ b/specification/devcenter/DevCenter/tsp-output/@azure-tools/typespec-autorest/2023-04-01/openapi.json @@ -2600,13 +2600,13 @@ "description": "The name of the SKU", "readOnly": true }, - "vCpus": { + "vCPUs": { "type": "integer", "format": "int32", "description": "The number of vCPUs available for the Dev Box.", "readOnly": true }, - "memoryGb": { + "memoryGB": { "type": "integer", "format": "int32", "description": "The amount of memory available for the Dev Box.", @@ -2791,7 +2791,7 @@ "type": "object", "description": "Settings for the operating system disk.", "properties": { - "diskSizeGb": { + "diskSizeGB": { "type": "integer", "format": "int32", "description": "The size of the OS Disk in gigabytes.", From e4e3b475b9702085823355ffbd23c0e213de5d96 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 24 Jan 2024 12:22:53 -0300 Subject: [PATCH 101/187] Add typespec autorest and generate examples --- ..._ListAllDevBoxesByUser_MaximumSet_Gen.json | 60 +++++++++ ...ations_ListAllDevBoxes_MaximumSet_Gen.json | 59 ++++++++ ...perations_CreateDevBox_MaximumSet_Gen.json | 127 ++++++++++++++++++ ...Operations_DelayAction_MaximumSet_Gen.json | 25 ++++ ...Operations_DelayAction_MinimumSet_Gen.json | 21 +++ ...ations_DelayAllActions_MaximumSet_Gen.json | 42 ++++++ ...ations_DelayAllActions_MinimumSet_Gen.json | 23 ++++ ...perations_DeleteDevBox_MaximumSet_Gen.json | 37 +++++ ...perations_DeleteDevBox_MinimumSet_Gen.json | 21 +++ ...ations_GetDevBoxAction_MaximumSet_Gen.json | 24 ++++ ...ations_GetDevBoxAction_MinimumSet_Gen.json | 20 +++ ...esOperations_GetDevBox_MaximumSet_Gen.json | 55 ++++++++ ...oxesOperations_GetPool_MaximumSet_Gen.json | 42 ++++++ ...oxesOperations_GetPool_MinimumSet_Gen.json | 18 +++ ...ns_GetRemoteConnection_MaximumSet_Gen.json | 18 +++ ...ns_GetRemoteConnection_MinimumSet_Gen.json | 15 +++ ...Operations_GetSchedule_MaximumSet_Gen.json | 21 +++ ...ions_ListDevBoxActions_MaximumSet_Gen.json | 28 ++++ ...ions_ListDevBoxActions_MinimumSet_Gen.json | 23 ++++ ...perations_ListDevBoxes_MaximumSet_Gen.json | 61 +++++++++ ...esOperations_ListPools_MaximumSet_Gen.json | 48 +++++++ ...esOperations_ListPools_MinimumSet_Gen.json | 21 +++ ...erations_ListSchedules_MaximumSet_Gen.json | 27 ++++ ...erations_RestartDevBox_MaximumSet_Gen.json | 36 +++++ ...erations_RestartDevBox_MinimumSet_Gen.json | 20 +++ ...sOperations_SkipAction_MaximumSet_Gen.json | 14 ++ ...sOperations_SkipAction_MinimumSet_Gen.json | 14 ++ ...Operations_StartDevBox_MaximumSet_Gen.json | 36 +++++ ...Operations_StartDevBox_MinimumSet_Gen.json | 20 +++ ...sOperations_StopDevBox_MaximumSet_Gen.json | 37 +++++ ...sOperations_StopDevBox_MinimumSet_Gen.json | 20 +++ ...rOperations_GetProject_MaximumSet_Gen.json | 17 +++ ...rOperations_GetProject_MinimumSet_Gen.json | 15 +++ ...perations_ListProjects_MaximumSet_Gen.json | 23 ++++ ...perations_ListProjects_MinimumSet_Gen.json | 18 +++ ...ateOrUpdateEnvironment_MaximumSet_Gen.json | 53 ++++++++ ...ions_DeleteEnvironment_MaximumSet_Gen.json | 37 +++++ ...ions_DeleteEnvironment_MinimumSet_Gen.json | 21 +++ ...sOperations_GetCatalog_MaximumSet_Gen.json | 16 +++ ...sOperations_GetCatalog_MinimumSet_Gen.json | 16 +++ ...tEnvironmentDefinition_MaximumSet_Gen.json | 36 +++++ ...tEnvironmentDefinition_MinimumSet_Gen.json | 19 +++ ...rations_GetEnvironment_MaximumSet_Gen.json | 33 +++++ ...ns_ListAllEnvironments_MaximumSet_Gen.json | 37 +++++ ...perations_ListCatalogs_MaximumSet_Gen.json | 21 +++ ...perations_ListCatalogs_MinimumSet_Gen.json | 19 +++ ...ntDefinitionsByCatalog_MaximumSet_Gen.json | 41 ++++++ ...ntDefinitionsByCatalog_MinimumSet_Gen.json | 22 +++ ...EnvironmentDefinitions_MaximumSet_Gen.json | 40 ++++++ ...EnvironmentDefinitions_MinimumSet_Gen.json | 21 +++ ...s_ListEnvironmentTypes_MaximumSet_Gen.json | 23 ++++ ...s_ListEnvironmentTypes_MinimumSet_Gen.json | 21 +++ ...tions_ListEnvironments_MaximumSet_Gen.json | 38 ++++++ ...ProjectOperationStatus_MaximumSet_Gen.json | 32 +++++ ...ProjectOperationStatus_MinimumSet_Gen.json | 16 +++ ..._ListAllDevBoxesByUser_MaximumSet_Gen.json | 60 +++++++++ ...ations_ListAllDevBoxes_MaximumSet_Gen.json | 59 ++++++++ ...perations_CreateDevBox_MaximumSet_Gen.json | 127 ++++++++++++++++++ ...Operations_DelayAction_MaximumSet_Gen.json | 25 ++++ ...Operations_DelayAction_MinimumSet_Gen.json | 21 +++ ...ations_DelayAllActions_MaximumSet_Gen.json | 42 ++++++ ...ations_DelayAllActions_MinimumSet_Gen.json | 23 ++++ ...perations_DeleteDevBox_MaximumSet_Gen.json | 37 +++++ ...perations_DeleteDevBox_MinimumSet_Gen.json | 21 +++ ...ations_GetDevBoxAction_MaximumSet_Gen.json | 24 ++++ ...ations_GetDevBoxAction_MinimumSet_Gen.json | 20 +++ ...esOperations_GetDevBox_MaximumSet_Gen.json | 55 ++++++++ ...oxesOperations_GetPool_MaximumSet_Gen.json | 42 ++++++ ...oxesOperations_GetPool_MinimumSet_Gen.json | 18 +++ ...ns_GetRemoteConnection_MaximumSet_Gen.json | 18 +++ ...ns_GetRemoteConnection_MinimumSet_Gen.json | 15 +++ ...Operations_GetSchedule_MaximumSet_Gen.json | 21 +++ ...ions_ListDevBoxActions_MaximumSet_Gen.json | 28 ++++ ...ions_ListDevBoxActions_MinimumSet_Gen.json | 23 ++++ ...perations_ListDevBoxes_MaximumSet_Gen.json | 61 +++++++++ ...esOperations_ListPools_MaximumSet_Gen.json | 48 +++++++ ...esOperations_ListPools_MinimumSet_Gen.json | 21 +++ ...erations_ListSchedules_MaximumSet_Gen.json | 27 ++++ ...erations_RestartDevBox_MaximumSet_Gen.json | 36 +++++ ...erations_RestartDevBox_MinimumSet_Gen.json | 20 +++ ...sOperations_SkipAction_MaximumSet_Gen.json | 14 ++ ...sOperations_SkipAction_MinimumSet_Gen.json | 14 ++ ...Operations_StartDevBox_MaximumSet_Gen.json | 36 +++++ ...Operations_StartDevBox_MinimumSet_Gen.json | 20 +++ ...sOperations_StopDevBox_MaximumSet_Gen.json | 37 +++++ ...sOperations_StopDevBox_MinimumSet_Gen.json | 20 +++ ...rOperations_GetProject_MaximumSet_Gen.json | 17 +++ ...rOperations_GetProject_MinimumSet_Gen.json | 15 +++ ...perations_ListProjects_MaximumSet_Gen.json | 23 ++++ ...perations_ListProjects_MinimumSet_Gen.json | 18 +++ ...ateOrUpdateEnvironment_MaximumSet_Gen.json | 53 ++++++++ ...ions_DeleteEnvironment_MaximumSet_Gen.json | 37 +++++ ...ions_DeleteEnvironment_MinimumSet_Gen.json | 21 +++ ...sOperations_GetCatalog_MaximumSet_Gen.json | 16 +++ ...sOperations_GetCatalog_MinimumSet_Gen.json | 16 +++ ...tEnvironmentDefinition_MaximumSet_Gen.json | 36 +++++ ...tEnvironmentDefinition_MinimumSet_Gen.json | 19 +++ ...rations_GetEnvironment_MaximumSet_Gen.json | 33 +++++ ...ns_ListAllEnvironments_MaximumSet_Gen.json | 37 +++++ ...perations_ListCatalogs_MaximumSet_Gen.json | 21 +++ ...perations_ListCatalogs_MinimumSet_Gen.json | 19 +++ ...ntDefinitionsByCatalog_MaximumSet_Gen.json | 41 ++++++ ...ntDefinitionsByCatalog_MinimumSet_Gen.json | 22 +++ ...EnvironmentDefinitions_MaximumSet_Gen.json | 40 ++++++ ...EnvironmentDefinitions_MinimumSet_Gen.json | 21 +++ ...s_ListEnvironmentTypes_MaximumSet_Gen.json | 23 ++++ ...s_ListEnvironmentTypes_MinimumSet_Gen.json | 21 +++ ...tions_ListEnvironments_MaximumSet_Gen.json | 38 ++++++ ...ProjectOperationStatus_MaximumSet_Gen.json | 32 +++++ ...ProjectOperationStatus_MinimumSet_Gen.json | 16 +++ ..._ListAllDevBoxesByUser_MaximumSet_Gen.json | 60 +++++++++ ...ations_ListAllDevBoxes_MaximumSet_Gen.json | 59 ++++++++ ...perations_CreateDevBox_MaximumSet_Gen.json | 127 ++++++++++++++++++ ...Operations_DelayAction_MaximumSet_Gen.json | 25 ++++ ...Operations_DelayAction_MinimumSet_Gen.json | 21 +++ ...ations_DelayAllActions_MaximumSet_Gen.json | 42 ++++++ ...ations_DelayAllActions_MinimumSet_Gen.json | 23 ++++ ...perations_DeleteDevBox_MaximumSet_Gen.json | 37 +++++ ...perations_DeleteDevBox_MinimumSet_Gen.json | 21 +++ ...ations_GetDevBoxAction_MaximumSet_Gen.json | 24 ++++ ...ations_GetDevBoxAction_MinimumSet_Gen.json | 20 +++ ...esOperations_GetDevBox_MaximumSet_Gen.json | 55 ++++++++ ...oxesOperations_GetPool_MaximumSet_Gen.json | 42 ++++++ ...oxesOperations_GetPool_MinimumSet_Gen.json | 18 +++ ...ns_GetRemoteConnection_MaximumSet_Gen.json | 18 +++ ...ns_GetRemoteConnection_MinimumSet_Gen.json | 15 +++ ...Operations_GetSchedule_MaximumSet_Gen.json | 21 +++ ...ions_ListDevBoxActions_MaximumSet_Gen.json | 28 ++++ ...ions_ListDevBoxActions_MinimumSet_Gen.json | 23 ++++ ...perations_ListDevBoxes_MaximumSet_Gen.json | 61 +++++++++ ...esOperations_ListPools_MaximumSet_Gen.json | 48 +++++++ ...esOperations_ListPools_MinimumSet_Gen.json | 21 +++ ...erations_ListSchedules_MaximumSet_Gen.json | 27 ++++ ...erations_RestartDevBox_MaximumSet_Gen.json | 36 +++++ ...erations_RestartDevBox_MinimumSet_Gen.json | 20 +++ ...sOperations_SkipAction_MaximumSet_Gen.json | 14 ++ ...sOperations_SkipAction_MinimumSet_Gen.json | 14 ++ ...Operations_StartDevBox_MaximumSet_Gen.json | 36 +++++ ...Operations_StartDevBox_MinimumSet_Gen.json | 20 +++ ...sOperations_StopDevBox_MaximumSet_Gen.json | 37 +++++ ...sOperations_StopDevBox_MinimumSet_Gen.json | 20 +++ ...rOperations_GetProject_MaximumSet_Gen.json | 17 +++ ...rOperations_GetProject_MinimumSet_Gen.json | 15 +++ ...perations_ListProjects_MaximumSet_Gen.json | 23 ++++ ...perations_ListProjects_MinimumSet_Gen.json | 18 +++ ...ateOrUpdateEnvironment_MaximumSet_Gen.json | 53 ++++++++ ...ions_DeleteEnvironment_MaximumSet_Gen.json | 37 +++++ ...ions_DeleteEnvironment_MinimumSet_Gen.json | 21 +++ ...sOperations_GetCatalog_MaximumSet_Gen.json | 16 +++ ...sOperations_GetCatalog_MinimumSet_Gen.json | 16 +++ ...tEnvironmentDefinition_MaximumSet_Gen.json | 36 +++++ ...tEnvironmentDefinition_MinimumSet_Gen.json | 19 +++ ...rations_GetEnvironment_MaximumSet_Gen.json | 33 +++++ ...ns_ListAllEnvironments_MaximumSet_Gen.json | 37 +++++ ...perations_ListCatalogs_MaximumSet_Gen.json | 21 +++ ...perations_ListCatalogs_MinimumSet_Gen.json | 19 +++ ...ntDefinitionsByCatalog_MaximumSet_Gen.json | 41 ++++++ ...ntDefinitionsByCatalog_MinimumSet_Gen.json | 22 +++ ...EnvironmentDefinitions_MaximumSet_Gen.json | 40 ++++++ ...EnvironmentDefinitions_MinimumSet_Gen.json | 21 +++ ...s_ListEnvironmentTypes_MaximumSet_Gen.json | 23 ++++ ...s_ListEnvironmentTypes_MinimumSet_Gen.json | 21 +++ ...tions_ListEnvironments_MaximumSet_Gen.json | 38 ++++++ ...ProjectOperationStatus_MaximumSet_Gen.json | 32 +++++ ...ProjectOperationStatus_MinimumSet_Gen.json | 16 +++ .../devcenter/DevCenter/tspconfig.yaml | 5 + .../DevCenter/stable}/2023-04-01/openapi.json | 0 167 files changed, 5009 insertions(+) create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/DevBox/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/devcenter/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json create mode 100644 specification/devcenter/DevCenter/environments/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json rename specification/devcenter/{DevCenter/tsp-output/@azure-tools/typespec-autorest => data-plane/DevCenter/stable}/2023-04-01/openapi.json (100%) diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json new file mode 100644 index 000000000000..285a487d25cd --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json @@ -0,0 +1,60 @@ +{ + "title": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "parameters": { + "api-version": "2023-04-01", + "filter": "lwxbqggfq", + "top": 24, + "userId": "nraaavrpkhjpxzrxjcbumcv" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json new file mode 100644 index 000000000000..010a3f51a1a3 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json @@ -0,0 +1,59 @@ +{ + "title": "DevBoxesDevCenterOperations_ListAllDevBoxes", + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", + "parameters": { + "api-version": "2023-04-01", + "filter": "xwnjamlegrgktjkw", + "top": 6 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..c469b064bb57 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json @@ -0,0 +1,127 @@ +{ + "title": "DevBoxesOperations_CreateDevBox", + "operationId": "DevBoxesOperations_CreateDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "hc", + "userId": "zrxzbpxvikzzuxzlgrbqhlt", + "devBoxName": "ojaxfdr", + "devBox": { + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2" + }, + "storageProfile": { + "osDisk": {} + }, + "imageReference": {}, + "localAdministrator": "Enabled" + } + }, + "responses": { + "200": { + "body": { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json new file mode 100644 index 000000000000..3a1bf22fbbd3 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json @@ -0,0 +1,25 @@ +{ + "title": "DevBoxesOperations_DelayAction", + "operationId": "DevBoxesOperations_DelayAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "oq", + "userId": "v", + "devBoxName": "ouhgpydruwdplpfhedd", + "actionName": "tmyli", + "until": "2024-01-24T14:27:28.195Z" + }, + "responses": { + "200": { + "body": { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd", + "suspendedUntil": "2024-01-24T14:27:27.382Z", + "next": { + "scheduledTime": "2024-01-24T14:27:27.382Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json new file mode 100644 index 000000000000..036bb450e403 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "DevBoxesOperations_DelayAction", + "operationId": "DevBoxesOperations_DelayAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "aricsncjmlgemlyvhlxdrchusx", + "userId": "gyguohehwnwjxjg", + "devBoxName": "ybcer", + "actionName": "komblvwlzban", + "until": "2024-01-24T14:27:28.333Z" + }, + "responses": { + "200": { + "body": { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json new file mode 100644 index 000000000000..0198e8bf730f --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json @@ -0,0 +1,42 @@ +{ + "title": "DevBoxesOperations_DelayAllActions", + "operationId": "DevBoxesOperations_DelayAllActions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "qljcioth", + "userId": "tovvhjfwaeuwq", + "devBoxName": "gktlrtlopnpnji", + "until": "2024-01-24T14:27:28.460Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "stbeqwwkldoeahbpcknencysat", + "result": "Succeeded", + "action": { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd", + "suspendedUntil": "2024-01-24T14:27:27.382Z", + "next": { + "scheduledTime": "2024-01-24T14:27:27.382Z" + } + }, + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json new file mode 100644 index 000000000000..34b9a1ee37d1 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "DevBoxesOperations_DelayAllActions", + "operationId": "DevBoxesOperations_DelayAllActions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "xdhidzhdd", + "userId": "sqvhdjkwo", + "devBoxName": "lkihxrrkkwacvwarjntollzvbsfkp", + "until": "2024-01-24T14:27:28.607Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "stbeqwwkldoeahbpcknencysat", + "result": "Succeeded" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..811e287b2e1b --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json @@ -0,0 +1,37 @@ +{ + "title": "DevBoxesOperations_DeleteDevBox", + "operationId": "DevBoxesOperations_DeleteDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "rzmjqdstyynlyrqyydh", + "userId": "pjafwzsacbpapssdhefh", + "devBoxName": "zjquymtrawqtmbga" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json new file mode 100644 index 000000000000..bae4018e44aa --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "DevBoxesOperations_DeleteDevBox", + "operationId": "DevBoxesOperations_DeleteDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "cq", + "userId": "wjyrowpimnkxfcvnmmi", + "devBoxName": "syrqzpjlgmhvo" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "status": "Running" + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json new file mode 100644 index 000000000000..acb97113ef7e --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json @@ -0,0 +1,24 @@ +{ + "title": "DevBoxesOperations_GetDevBoxAction", + "operationId": "DevBoxesOperations_GetDevBoxAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "glxljthnrhpuelubrbojrbjkpwmzmw", + "userId": "osplrrvvaqvfjuoscgemlbushww", + "devBoxName": "xyroziipagygloi", + "actionName": "qsxyptia" + }, + "responses": { + "200": { + "body": { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd", + "suspendedUntil": "2024-01-24T14:27:27.382Z", + "next": { + "scheduledTime": "2024-01-24T14:27:27.382Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json new file mode 100644 index 000000000000..6760b2dd19f7 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "DevBoxesOperations_GetDevBoxAction", + "operationId": "DevBoxesOperations_GetDevBoxAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "alrkctrxkqjap", + "userId": "gvkhxoguxnwiuuhcyfjaqzcvvt", + "devBoxName": "lgrnrwossujasciahkws", + "actionName": "if" + }, + "responses": { + "200": { + "body": { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..0821e899382b --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json @@ -0,0 +1,55 @@ +{ + "title": "DevBoxesOperations_GetDevBox", + "operationId": "DevBoxesOperations_GetDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "tkpwuk", + "userId": "zmfdwcgdqya", + "devBoxName": "jbqeq" + }, + "responses": { + "200": { + "body": { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json new file mode 100644 index 000000000000..adaf69e0ed9f --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json @@ -0,0 +1,42 @@ +{ + "title": "DevBoxesOperations_GetPool", + "operationId": "DevBoxesOperations_GetPool", + "parameters": { + "api-version": "2023-04-01", + "projectName": "qsjqcxtvznybixgmsxxhvwuxgmfru", + "poolName": "pxxkktwzmfwwoa" + }, + "responses": { + "200": { + "body": { + "name": "peoaccqvxjgwhwrn", + "location": "lcmcoqs", + "osType": "Windows", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "hibernateSupport": "Enabled", + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 3 + }, + "healthStatus": "Unknown" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json new file mode 100644 index 000000000000..d61cd338a0ce --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "DevBoxesOperations_GetPool", + "operationId": "DevBoxesOperations_GetPool", + "parameters": { + "api-version": "2023-04-01", + "projectName": "vfhixpfkprhaxnilvakjnbrtw", + "poolName": "q" + }, + "responses": { + "200": { + "body": { + "name": "peoaccqvxjgwhwrn", + "location": "lcmcoqs", + "healthStatus": "Unknown" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json new file mode 100644 index 000000000000..19d78eee0047 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "DevBoxesOperations_GetRemoteConnection", + "operationId": "DevBoxesOperations_GetRemoteConnection", + "parameters": { + "api-version": "2023-04-01", + "projectName": "xuvmn", + "userId": "umvxujnlzpmf", + "devBoxName": "nxuhbdxatqpgw" + }, + "responses": { + "200": { + "body": { + "webUrl": "https://microsoft.com/a", + "rdpConnectionUrl": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json new file mode 100644 index 000000000000..7fa2761a8f3d --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json @@ -0,0 +1,15 @@ +{ + "title": "DevBoxesOperations_GetRemoteConnection", + "operationId": "DevBoxesOperations_GetRemoteConnection", + "parameters": { + "api-version": "2023-04-01", + "projectName": "hwrxgjhgwxvhmpvmwxha", + "userId": "grqeayztkjyzrkoabmniccl", + "devBoxName": "lhnkqhutcz" + }, + "responses": { + "200": { + "body": {} + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json new file mode 100644 index 000000000000..38014eff0993 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "DevBoxesOperations_GetSchedule", + "operationId": "DevBoxesOperations_GetSchedule", + "parameters": { + "api-version": "2023-04-01", + "projectName": "gnzaegjvirufpsa", + "poolName": "uscquok", + "scheduleName": "eamfzjecviossmyccklwr" + }, + "responses": { + "200": { + "body": { + "name": "dttuou", + "type": "StopDevBox", + "frequency": "Daily", + "time": "nxohypdpsxuox", + "timeZone": "gjbehvuedwxxoavcdjn" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json new file mode 100644 index 000000000000..2458a0d89678 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "DevBoxesOperations_ListDevBoxActions", + "operationId": "DevBoxesOperations_ListDevBoxActions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "bcoglkxasdazbhsthyntrt", + "userId": "zsjgkzhvcbb", + "devBoxName": "udackwcvhnoxzukxykmhpove" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd", + "suspendedUntil": "2024-01-24T14:27:27.382Z", + "next": { + "scheduledTime": "2024-01-24T14:27:27.382Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json new file mode 100644 index 000000000000..3cc8ea208c68 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "DevBoxesOperations_ListDevBoxActions", + "operationId": "DevBoxesOperations_ListDevBoxActions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "rwaswcxshhpbuvdch", + "userId": "bgrmovzdiriizgvklduy", + "devBoxName": "xlpbvuhrkejxpjumbq" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json new file mode 100644 index 000000000000..d908f24ec700 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json @@ -0,0 +1,61 @@ +{ + "title": "DevBoxesOperations_ListDevBoxes", + "operationId": "DevBoxesOperations_ListDevBoxes", + "parameters": { + "api-version": "2023-04-01", + "projectName": "lrjfpaknnbligycnycagqaty", + "userId": "iadgmrsmzltydlacort", + "filter": "frmetpxpuutc", + "top": 24 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json new file mode 100644 index 000000000000..cfd1ab64556f --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json @@ -0,0 +1,48 @@ +{ + "title": "DevBoxesOperations_ListPools", + "operationId": "DevBoxesOperations_ListPools", + "parameters": { + "api-version": "2023-04-01", + "projectName": "pxvuaxhadlodudyhfykoe", + "filter": "alduppbkg", + "top": 19 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "peoaccqvxjgwhwrn", + "location": "lcmcoqs", + "osType": "Windows", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "hibernateSupport": "Enabled", + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 3 + }, + "healthStatus": "Unknown" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json new file mode 100644 index 000000000000..e126aed391a6 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "DevBoxesOperations_ListPools", + "operationId": "DevBoxesOperations_ListPools", + "parameters": { + "api-version": "2023-04-01", + "projectName": "ovbxdmmgpmmaft" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "peoaccqvxjgwhwrn", + "location": "lcmcoqs", + "healthStatus": "Unknown" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json new file mode 100644 index 000000000000..1cc8b087e3f7 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json @@ -0,0 +1,27 @@ +{ + "title": "DevBoxesOperations_ListSchedules", + "operationId": "DevBoxesOperations_ListSchedules", + "parameters": { + "api-version": "2023-04-01", + "projectName": "lbzswonmsyglifwwgkz", + "poolName": "yndlcsuaqjtvaht", + "filter": "mgvmdfcaozmzoca", + "top": 7 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dttuou", + "type": "StopDevBox", + "frequency": "Daily", + "time": "nxohypdpsxuox", + "timeZone": "gjbehvuedwxxoavcdjn" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..979b2c130b8c --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json @@ -0,0 +1,36 @@ +{ + "title": "DevBoxesOperations_RestartDevBox", + "operationId": "DevBoxesOperations_RestartDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "jnetbetrcvennkzmgksdypcuckcop", + "userId": "byrgeflxmycdavj", + "devBoxName": "irpblyyaeknrggnduws" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json new file mode 100644 index 000000000000..d4250477fe29 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "DevBoxesOperations_RestartDevBox", + "operationId": "DevBoxesOperations_RestartDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "jjm", + "userId": "sddbzmndqdeyllhgdavgqrnhinqdo", + "devBoxName": "shlzdvyiswk" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "status": "Running" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json new file mode 100644 index 000000000000..06ae68fc5aeb --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json @@ -0,0 +1,14 @@ +{ + "title": "DevBoxesOperations_SkipAction", + "operationId": "DevBoxesOperations_SkipAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "prkbxhmgkmfc", + "userId": "lzqciljtgzvswsyatkc", + "devBoxName": "kale", + "actionName": "khnoyfp" + }, + "responses": { + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json new file mode 100644 index 000000000000..e8c4a580f960 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json @@ -0,0 +1,14 @@ +{ + "title": "DevBoxesOperations_SkipAction", + "operationId": "DevBoxesOperations_SkipAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "wgzgfignbm", + "userId": "i", + "devBoxName": "jqxvgkkrbdctycukptzcov", + "actionName": "fsrpxqrqbdoohqqfpp" + }, + "responses": { + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..739000182051 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json @@ -0,0 +1,36 @@ +{ + "title": "DevBoxesOperations_StartDevBox", + "operationId": "DevBoxesOperations_StartDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "or", + "userId": "yvrgabsfgrwevlnakythltag", + "devBoxName": "tjeptwsraihssxiamr" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json new file mode 100644 index 000000000000..519518be31a5 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "DevBoxesOperations_StartDevBox", + "operationId": "DevBoxesOperations_StartDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "ygt", + "userId": "gaiudhfnzqhxdjjnlwopwjhs", + "devBoxName": "urwps" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "status": "Running" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..59fb1198abd7 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json @@ -0,0 +1,37 @@ +{ + "title": "DevBoxesOperations_StopDevBox", + "operationId": "DevBoxesOperations_StopDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "tlxqhsgz", + "userId": "cxwsxwnrfmouyegvpv", + "devBoxName": "psesagmgxyg", + "hibernate": true + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json new file mode 100644 index 000000000000..ac808f769d2c --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "DevBoxesOperations_StopDevBox", + "operationId": "DevBoxesOperations_StopDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "mz", + "userId": "nqqukcsjqbyumxeipcgbpex", + "devBoxName": "gbdfetswc" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "status": "Running" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json new file mode 100644 index 000000000000..1975d6f8c90d --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json @@ -0,0 +1,17 @@ +{ + "title": "DevCenterOperations_GetProject", + "operationId": "DevCenterOperations_GetProject", + "parameters": { + "api-version": "2023-04-01", + "projectName": "pnyio" + }, + "responses": { + "200": { + "body": { + "name": "upkhozglybnjxyddpkhxbas", + "description": "itwwzmjfhyeef", + "maxDevBoxesPerUser": 0 + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json new file mode 100644 index 000000000000..bfe5d7cb2682 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json @@ -0,0 +1,15 @@ +{ + "title": "DevCenterOperations_GetProject", + "operationId": "DevCenterOperations_GetProject", + "parameters": { + "api-version": "2023-04-01", + "projectName": "gvbfvh" + }, + "responses": { + "200": { + "body": { + "name": "upkhozglybnjxyddpkhxbas" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json new file mode 100644 index 000000000000..2b65e5f7f22b --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "DevCenterOperations_ListProjects", + "operationId": "DevCenterOperations_ListProjects", + "parameters": { + "api-version": "2023-04-01", + "filter": "sehyutainefiv", + "top": 20 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "upkhozglybnjxyddpkhxbas", + "description": "itwwzmjfhyeef", + "maxDevBoxesPerUser": 0 + } + ], + "nextLink": "https://microsoft.com/aadyfglw" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json new file mode 100644 index 000000000000..eb97a861f0eb --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "DevCenterOperations_ListProjects", + "operationId": "DevCenterOperations_ListProjects", + "parameters": { + "api-version": "2023-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "upkhozglybnjxyddpkhxbas" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json new file mode 100644 index 000000000000..94798a9ed07c --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json @@ -0,0 +1,53 @@ +{ + "title": "EnvironmentsOperations_CreateOrUpdateEnvironment", + "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "dddcoym", + "userId": "omhhasnvdzwrcgxdplbtjfdqey", + "environmentName": "zbrq", + "body": { + "parameters": "cGFyYW1ldGVyczE=", + "environmentType": "dofjlkatvtgyrrptdceh", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "provisioningState": "Succeeded", + "catalogName": "kooctlekexoqxtab", + "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + }, + "responses": { + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "parameters": "cGFyYW1ldGVyczE=", + "name": "tssazaenxcdufd", + "environmentType": "dofjlkatvtgyrrptdceh", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "provisioningState": "Succeeded", + "resourceGroupId": "ndkhtkjjllouauuaroljtn", + "catalogName": "kooctlekexoqxtab", + "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json new file mode 100644 index 000000000000..54519b456477 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json @@ -0,0 +1,37 @@ +{ + "title": "EnvironmentsOperations_DeleteEnvironment", + "operationId": "EnvironmentsOperations_DeleteEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "jc", + "userId": "amg", + "environmentName": "hvolzcqeznjuyhtostvwgprwh" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json new file mode 100644 index 000000000000..00b0f00a133b --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "EnvironmentsOperations_DeleteEnvironment", + "operationId": "EnvironmentsOperations_DeleteEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "imtrysrbaujriznz", + "userId": "jqznoedlggzpbhrtbjrymbery", + "environmentName": "vcnzrsiodxomqt" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "status": "Running" + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json new file mode 100644 index 000000000000..2a6a49fbea9d --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "EnvironmentsOperations_GetCatalog", + "operationId": "EnvironmentsOperations_GetCatalog", + "parameters": { + "api-version": "2023-04-01", + "projectName": "rwg", + "catalogName": "mdaw" + }, + "responses": { + "200": { + "body": { + "name": "wpssttjdkaodnmrbs" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json new file mode 100644 index 000000000000..ccd23fcde480 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "EnvironmentsOperations_GetCatalog", + "operationId": "EnvironmentsOperations_GetCatalog", + "parameters": { + "api-version": "2023-04-01", + "projectName": "mlsidvtzl", + "catalogName": "apucizvbayht" + }, + "responses": { + "200": { + "body": { + "name": "wpssttjdkaodnmrbs" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json new file mode 100644 index 000000000000..dc0c4f3ef725 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json @@ -0,0 +1,36 @@ +{ + "title": "EnvironmentsOperations_GetEnvironmentDefinition", + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "parameters": { + "api-version": "2023-04-01", + "projectName": "aimcuhzcmyceybzenjdbhcvdfne", + "catalogName": "jxt", + "definitionName": "lww" + }, + "responses": { + "200": { + "body": { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy", + "description": "bfhukdbxvyqapnchejratrnuqralk", + "parameters": [ + { + "id": "baygybdvioqyauqaxh", + "name": "mprqzpvacjerkbaabzcbfnf", + "description": "lfggsbhzlzrhvwwhkrcscl", + "default": "ZGVmYXVsdDE=", + "type": "array", + "readOnly": true, + "required": true, + "allowed": [ + "vnaaovhotcxdhbadmzxvmh" + ] + } + ], + "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", + "templatePath": "ilkmsnsam" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json new file mode 100644 index 000000000000..4fabb6230b6b --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "title": "EnvironmentsOperations_GetEnvironmentDefinition", + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "parameters": { + "api-version": "2023-04-01", + "projectName": "hqdnkvpdnykkodecirwibwn", + "catalogName": "abjumflcacbkwdnhjsyduha", + "definitionName": "nlonaypdiiotuksvrlp" + }, + "responses": { + "200": { + "body": { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json new file mode 100644 index 000000000000..4fd1d206a1fd --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json @@ -0,0 +1,33 @@ +{ + "title": "EnvironmentsOperations_GetEnvironment", + "operationId": "EnvironmentsOperations_GetEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "kmknuheslpawpzcopvlmgqsxyx", + "userId": "kejihmuayj", + "environmentName": "mpenqcgrgwhgzlkobom" + }, + "responses": { + "200": { + "body": { + "parameters": "cGFyYW1ldGVyczE=", + "name": "tssazaenxcdufd", + "environmentType": "dofjlkatvtgyrrptdceh", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "provisioningState": "Succeeded", + "resourceGroupId": "ndkhtkjjllouauuaroljtn", + "catalogName": "kooctlekexoqxtab", + "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json new file mode 100644 index 000000000000..4ec626766ffc --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json @@ -0,0 +1,37 @@ +{ + "title": "EnvironmentsOperations_ListAllEnvironments", + "operationId": "EnvironmentsOperations_ListAllEnvironments", + "parameters": { + "api-version": "2023-04-01", + "projectName": "dkaownnoxfirsnmw", + "top": 19 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "parameters": "cGFyYW1ldGVyczE=", + "name": "tssazaenxcdufd", + "environmentType": "dofjlkatvtgyrrptdceh", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "provisioningState": "Succeeded", + "resourceGroupId": "ndkhtkjjllouauuaroljtn", + "catalogName": "kooctlekexoqxtab", + "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json new file mode 100644 index 000000000000..2462fae0f6c6 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "EnvironmentsOperations_ListCatalogs", + "operationId": "EnvironmentsOperations_ListCatalogs", + "parameters": { + "api-version": "2023-04-01", + "projectName": "zqzzqennymohasyvlxgzsklapbuv", + "top": 27 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "wpssttjdkaodnmrbs" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json new file mode 100644 index 000000000000..a59043903c95 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "title": "EnvironmentsOperations_ListCatalogs", + "operationId": "EnvironmentsOperations_ListCatalogs", + "parameters": { + "api-version": "2023-04-01", + "projectName": "bpmjift" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "wpssttjdkaodnmrbs" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json new file mode 100644 index 000000000000..6a74a680a4fd --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json @@ -0,0 +1,41 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "parameters": { + "api-version": "2023-04-01", + "projectName": "ujswiqdpxjwxhknbdlpkbtawuvgzab", + "catalogName": "ajstpidghbelakwpuaskglsophuald", + "top": 14 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy", + "description": "bfhukdbxvyqapnchejratrnuqralk", + "parameters": [ + { + "id": "baygybdvioqyauqaxh", + "name": "mprqzpvacjerkbaabzcbfnf", + "description": "lfggsbhzlzrhvwwhkrcscl", + "default": "ZGVmYXVsdDE=", + "type": "array", + "readOnly": true, + "required": true, + "allowed": [ + "vnaaovhotcxdhbadmzxvmh" + ] + } + ], + "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", + "templatePath": "ilkmsnsam" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json new file mode 100644 index 000000000000..891e3e207bd0 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json @@ -0,0 +1,22 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "parameters": { + "api-version": "2023-04-01", + "projectName": "gmxmkiz", + "catalogName": "szzvqfguguxzhho" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json new file mode 100644 index 000000000000..09c47e656419 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json @@ -0,0 +1,40 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentDefinitions", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "uicdwcwgtnyrr", + "top": 18 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy", + "description": "bfhukdbxvyqapnchejratrnuqralk", + "parameters": [ + { + "id": "baygybdvioqyauqaxh", + "name": "mprqzpvacjerkbaabzcbfnf", + "description": "lfggsbhzlzrhvwwhkrcscl", + "default": "ZGVmYXVsdDE=", + "type": "array", + "readOnly": true, + "required": true, + "allowed": [ + "vnaaovhotcxdhbadmzxvmh" + ] + } + ], + "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", + "templatePath": "ilkmsnsam" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json new file mode 100644 index 000000000000..017a1b156745 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentDefinitions", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "csvkkdyyunzdutzznramubczme" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json new file mode 100644 index 000000000000..ace73969a3c1 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentTypes", + "operationId": "EnvironmentsOperations_ListEnvironmentTypes", + "parameters": { + "api-version": "2023-04-01", + "projectName": "tzbpnr", + "top": 13 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "phpzcqpagfzuakwmfwtn", + "deploymentTargetId": "zuzmfjtjrfkooo", + "status": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json new file mode 100644 index 000000000000..0222aa9fcaf5 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentTypes", + "operationId": "EnvironmentsOperations_ListEnvironmentTypes", + "parameters": { + "api-version": "2023-04-01", + "projectName": "yuajufwggbewbpaulopx" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "phpzcqpagfzuakwmfwtn", + "deploymentTargetId": "zuzmfjtjrfkooo", + "status": "Enabled" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json new file mode 100644 index 000000000000..63d1ba5c2995 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json @@ -0,0 +1,38 @@ +{ + "title": "EnvironmentsOperations_ListEnvironments", + "operationId": "EnvironmentsOperations_ListEnvironments", + "parameters": { + "api-version": "2023-04-01", + "projectName": "um", + "userId": "qxxrsqhxchkms", + "top": 6 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "parameters": "cGFyYW1ldGVyczE=", + "name": "tssazaenxcdufd", + "environmentType": "dofjlkatvtgyrrptdceh", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "provisioningState": "Succeeded", + "resourceGroupId": "ndkhtkjjllouauuaroljtn", + "catalogName": "kooctlekexoqxtab", + "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json new file mode 100644 index 000000000000..9528291cc413 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json @@ -0,0 +1,32 @@ +{ + "title": "SharedOperations_GetProjectOperationStatus", + "operationId": "SharedOperations_GetProjectOperationStatus", + "parameters": { + "api-version": "2023-04-01", + "projectName": "yjpezkb", + "operationId": "qfdfglfmalixtemza" + }, + "responses": { + "200": { + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/DevBox/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json b/specification/devcenter/DevCenter/DevBox/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json new file mode 100644 index 000000000000..91133f491634 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "SharedOperations_GetProjectOperationStatus", + "operationId": "SharedOperations_GetProjectOperationStatus", + "parameters": { + "api-version": "2023-04-01", + "projectName": "aakrmvajwvn", + "operationId": "jutxyjwvvdbnsbjgufr" + }, + "responses": { + "200": { + "body": { + "status": "Running" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json new file mode 100644 index 000000000000..285a487d25cd --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json @@ -0,0 +1,60 @@ +{ + "title": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "parameters": { + "api-version": "2023-04-01", + "filter": "lwxbqggfq", + "top": 24, + "userId": "nraaavrpkhjpxzrxjcbumcv" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json new file mode 100644 index 000000000000..010a3f51a1a3 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json @@ -0,0 +1,59 @@ +{ + "title": "DevBoxesDevCenterOperations_ListAllDevBoxes", + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", + "parameters": { + "api-version": "2023-04-01", + "filter": "xwnjamlegrgktjkw", + "top": 6 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..c469b064bb57 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json @@ -0,0 +1,127 @@ +{ + "title": "DevBoxesOperations_CreateDevBox", + "operationId": "DevBoxesOperations_CreateDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "hc", + "userId": "zrxzbpxvikzzuxzlgrbqhlt", + "devBoxName": "ojaxfdr", + "devBox": { + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2" + }, + "storageProfile": { + "osDisk": {} + }, + "imageReference": {}, + "localAdministrator": "Enabled" + } + }, + "responses": { + "200": { + "body": { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json new file mode 100644 index 000000000000..3a1bf22fbbd3 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json @@ -0,0 +1,25 @@ +{ + "title": "DevBoxesOperations_DelayAction", + "operationId": "DevBoxesOperations_DelayAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "oq", + "userId": "v", + "devBoxName": "ouhgpydruwdplpfhedd", + "actionName": "tmyli", + "until": "2024-01-24T14:27:28.195Z" + }, + "responses": { + "200": { + "body": { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd", + "suspendedUntil": "2024-01-24T14:27:27.382Z", + "next": { + "scheduledTime": "2024-01-24T14:27:27.382Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json new file mode 100644 index 000000000000..036bb450e403 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "DevBoxesOperations_DelayAction", + "operationId": "DevBoxesOperations_DelayAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "aricsncjmlgemlyvhlxdrchusx", + "userId": "gyguohehwnwjxjg", + "devBoxName": "ybcer", + "actionName": "komblvwlzban", + "until": "2024-01-24T14:27:28.333Z" + }, + "responses": { + "200": { + "body": { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json new file mode 100644 index 000000000000..0198e8bf730f --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json @@ -0,0 +1,42 @@ +{ + "title": "DevBoxesOperations_DelayAllActions", + "operationId": "DevBoxesOperations_DelayAllActions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "qljcioth", + "userId": "tovvhjfwaeuwq", + "devBoxName": "gktlrtlopnpnji", + "until": "2024-01-24T14:27:28.460Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "stbeqwwkldoeahbpcknencysat", + "result": "Succeeded", + "action": { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd", + "suspendedUntil": "2024-01-24T14:27:27.382Z", + "next": { + "scheduledTime": "2024-01-24T14:27:27.382Z" + } + }, + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json new file mode 100644 index 000000000000..34b9a1ee37d1 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "DevBoxesOperations_DelayAllActions", + "operationId": "DevBoxesOperations_DelayAllActions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "xdhidzhdd", + "userId": "sqvhdjkwo", + "devBoxName": "lkihxrrkkwacvwarjntollzvbsfkp", + "until": "2024-01-24T14:27:28.607Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "stbeqwwkldoeahbpcknencysat", + "result": "Succeeded" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..811e287b2e1b --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json @@ -0,0 +1,37 @@ +{ + "title": "DevBoxesOperations_DeleteDevBox", + "operationId": "DevBoxesOperations_DeleteDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "rzmjqdstyynlyrqyydh", + "userId": "pjafwzsacbpapssdhefh", + "devBoxName": "zjquymtrawqtmbga" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json new file mode 100644 index 000000000000..bae4018e44aa --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "DevBoxesOperations_DeleteDevBox", + "operationId": "DevBoxesOperations_DeleteDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "cq", + "userId": "wjyrowpimnkxfcvnmmi", + "devBoxName": "syrqzpjlgmhvo" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "status": "Running" + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json new file mode 100644 index 000000000000..acb97113ef7e --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json @@ -0,0 +1,24 @@ +{ + "title": "DevBoxesOperations_GetDevBoxAction", + "operationId": "DevBoxesOperations_GetDevBoxAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "glxljthnrhpuelubrbojrbjkpwmzmw", + "userId": "osplrrvvaqvfjuoscgemlbushww", + "devBoxName": "xyroziipagygloi", + "actionName": "qsxyptia" + }, + "responses": { + "200": { + "body": { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd", + "suspendedUntil": "2024-01-24T14:27:27.382Z", + "next": { + "scheduledTime": "2024-01-24T14:27:27.382Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json new file mode 100644 index 000000000000..6760b2dd19f7 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "DevBoxesOperations_GetDevBoxAction", + "operationId": "DevBoxesOperations_GetDevBoxAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "alrkctrxkqjap", + "userId": "gvkhxoguxnwiuuhcyfjaqzcvvt", + "devBoxName": "lgrnrwossujasciahkws", + "actionName": "if" + }, + "responses": { + "200": { + "body": { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..0821e899382b --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json @@ -0,0 +1,55 @@ +{ + "title": "DevBoxesOperations_GetDevBox", + "operationId": "DevBoxesOperations_GetDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "tkpwuk", + "userId": "zmfdwcgdqya", + "devBoxName": "jbqeq" + }, + "responses": { + "200": { + "body": { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json new file mode 100644 index 000000000000..adaf69e0ed9f --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json @@ -0,0 +1,42 @@ +{ + "title": "DevBoxesOperations_GetPool", + "operationId": "DevBoxesOperations_GetPool", + "parameters": { + "api-version": "2023-04-01", + "projectName": "qsjqcxtvznybixgmsxxhvwuxgmfru", + "poolName": "pxxkktwzmfwwoa" + }, + "responses": { + "200": { + "body": { + "name": "peoaccqvxjgwhwrn", + "location": "lcmcoqs", + "osType": "Windows", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "hibernateSupport": "Enabled", + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 3 + }, + "healthStatus": "Unknown" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json new file mode 100644 index 000000000000..d61cd338a0ce --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "DevBoxesOperations_GetPool", + "operationId": "DevBoxesOperations_GetPool", + "parameters": { + "api-version": "2023-04-01", + "projectName": "vfhixpfkprhaxnilvakjnbrtw", + "poolName": "q" + }, + "responses": { + "200": { + "body": { + "name": "peoaccqvxjgwhwrn", + "location": "lcmcoqs", + "healthStatus": "Unknown" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json new file mode 100644 index 000000000000..19d78eee0047 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "DevBoxesOperations_GetRemoteConnection", + "operationId": "DevBoxesOperations_GetRemoteConnection", + "parameters": { + "api-version": "2023-04-01", + "projectName": "xuvmn", + "userId": "umvxujnlzpmf", + "devBoxName": "nxuhbdxatqpgw" + }, + "responses": { + "200": { + "body": { + "webUrl": "https://microsoft.com/a", + "rdpConnectionUrl": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json new file mode 100644 index 000000000000..7fa2761a8f3d --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json @@ -0,0 +1,15 @@ +{ + "title": "DevBoxesOperations_GetRemoteConnection", + "operationId": "DevBoxesOperations_GetRemoteConnection", + "parameters": { + "api-version": "2023-04-01", + "projectName": "hwrxgjhgwxvhmpvmwxha", + "userId": "grqeayztkjyzrkoabmniccl", + "devBoxName": "lhnkqhutcz" + }, + "responses": { + "200": { + "body": {} + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json new file mode 100644 index 000000000000..38014eff0993 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "DevBoxesOperations_GetSchedule", + "operationId": "DevBoxesOperations_GetSchedule", + "parameters": { + "api-version": "2023-04-01", + "projectName": "gnzaegjvirufpsa", + "poolName": "uscquok", + "scheduleName": "eamfzjecviossmyccklwr" + }, + "responses": { + "200": { + "body": { + "name": "dttuou", + "type": "StopDevBox", + "frequency": "Daily", + "time": "nxohypdpsxuox", + "timeZone": "gjbehvuedwxxoavcdjn" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json new file mode 100644 index 000000000000..2458a0d89678 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "DevBoxesOperations_ListDevBoxActions", + "operationId": "DevBoxesOperations_ListDevBoxActions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "bcoglkxasdazbhsthyntrt", + "userId": "zsjgkzhvcbb", + "devBoxName": "udackwcvhnoxzukxykmhpove" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd", + "suspendedUntil": "2024-01-24T14:27:27.382Z", + "next": { + "scheduledTime": "2024-01-24T14:27:27.382Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json new file mode 100644 index 000000000000..3cc8ea208c68 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "DevBoxesOperations_ListDevBoxActions", + "operationId": "DevBoxesOperations_ListDevBoxActions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "rwaswcxshhpbuvdch", + "userId": "bgrmovzdiriizgvklduy", + "devBoxName": "xlpbvuhrkejxpjumbq" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json new file mode 100644 index 000000000000..d908f24ec700 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json @@ -0,0 +1,61 @@ +{ + "title": "DevBoxesOperations_ListDevBoxes", + "operationId": "DevBoxesOperations_ListDevBoxes", + "parameters": { + "api-version": "2023-04-01", + "projectName": "lrjfpaknnbligycnycagqaty", + "userId": "iadgmrsmzltydlacort", + "filter": "frmetpxpuutc", + "top": 24 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json new file mode 100644 index 000000000000..cfd1ab64556f --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json @@ -0,0 +1,48 @@ +{ + "title": "DevBoxesOperations_ListPools", + "operationId": "DevBoxesOperations_ListPools", + "parameters": { + "api-version": "2023-04-01", + "projectName": "pxvuaxhadlodudyhfykoe", + "filter": "alduppbkg", + "top": 19 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "peoaccqvxjgwhwrn", + "location": "lcmcoqs", + "osType": "Windows", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "hibernateSupport": "Enabled", + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 3 + }, + "healthStatus": "Unknown" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json new file mode 100644 index 000000000000..e126aed391a6 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "DevBoxesOperations_ListPools", + "operationId": "DevBoxesOperations_ListPools", + "parameters": { + "api-version": "2023-04-01", + "projectName": "ovbxdmmgpmmaft" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "peoaccqvxjgwhwrn", + "location": "lcmcoqs", + "healthStatus": "Unknown" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json new file mode 100644 index 000000000000..1cc8b087e3f7 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json @@ -0,0 +1,27 @@ +{ + "title": "DevBoxesOperations_ListSchedules", + "operationId": "DevBoxesOperations_ListSchedules", + "parameters": { + "api-version": "2023-04-01", + "projectName": "lbzswonmsyglifwwgkz", + "poolName": "yndlcsuaqjtvaht", + "filter": "mgvmdfcaozmzoca", + "top": 7 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dttuou", + "type": "StopDevBox", + "frequency": "Daily", + "time": "nxohypdpsxuox", + "timeZone": "gjbehvuedwxxoavcdjn" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..979b2c130b8c --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json @@ -0,0 +1,36 @@ +{ + "title": "DevBoxesOperations_RestartDevBox", + "operationId": "DevBoxesOperations_RestartDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "jnetbetrcvennkzmgksdypcuckcop", + "userId": "byrgeflxmycdavj", + "devBoxName": "irpblyyaeknrggnduws" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json new file mode 100644 index 000000000000..d4250477fe29 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "DevBoxesOperations_RestartDevBox", + "operationId": "DevBoxesOperations_RestartDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "jjm", + "userId": "sddbzmndqdeyllhgdavgqrnhinqdo", + "devBoxName": "shlzdvyiswk" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "status": "Running" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json new file mode 100644 index 000000000000..06ae68fc5aeb --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json @@ -0,0 +1,14 @@ +{ + "title": "DevBoxesOperations_SkipAction", + "operationId": "DevBoxesOperations_SkipAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "prkbxhmgkmfc", + "userId": "lzqciljtgzvswsyatkc", + "devBoxName": "kale", + "actionName": "khnoyfp" + }, + "responses": { + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json new file mode 100644 index 000000000000..e8c4a580f960 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json @@ -0,0 +1,14 @@ +{ + "title": "DevBoxesOperations_SkipAction", + "operationId": "DevBoxesOperations_SkipAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "wgzgfignbm", + "userId": "i", + "devBoxName": "jqxvgkkrbdctycukptzcov", + "actionName": "fsrpxqrqbdoohqqfpp" + }, + "responses": { + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..739000182051 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json @@ -0,0 +1,36 @@ +{ + "title": "DevBoxesOperations_StartDevBox", + "operationId": "DevBoxesOperations_StartDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "or", + "userId": "yvrgabsfgrwevlnakythltag", + "devBoxName": "tjeptwsraihssxiamr" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json new file mode 100644 index 000000000000..519518be31a5 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "DevBoxesOperations_StartDevBox", + "operationId": "DevBoxesOperations_StartDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "ygt", + "userId": "gaiudhfnzqhxdjjnlwopwjhs", + "devBoxName": "urwps" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "status": "Running" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..59fb1198abd7 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json @@ -0,0 +1,37 @@ +{ + "title": "DevBoxesOperations_StopDevBox", + "operationId": "DevBoxesOperations_StopDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "tlxqhsgz", + "userId": "cxwsxwnrfmouyegvpv", + "devBoxName": "psesagmgxyg", + "hibernate": true + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json new file mode 100644 index 000000000000..ac808f769d2c --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "DevBoxesOperations_StopDevBox", + "operationId": "DevBoxesOperations_StopDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "mz", + "userId": "nqqukcsjqbyumxeipcgbpex", + "devBoxName": "gbdfetswc" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "status": "Running" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json new file mode 100644 index 000000000000..1975d6f8c90d --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json @@ -0,0 +1,17 @@ +{ + "title": "DevCenterOperations_GetProject", + "operationId": "DevCenterOperations_GetProject", + "parameters": { + "api-version": "2023-04-01", + "projectName": "pnyio" + }, + "responses": { + "200": { + "body": { + "name": "upkhozglybnjxyddpkhxbas", + "description": "itwwzmjfhyeef", + "maxDevBoxesPerUser": 0 + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json new file mode 100644 index 000000000000..bfe5d7cb2682 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json @@ -0,0 +1,15 @@ +{ + "title": "DevCenterOperations_GetProject", + "operationId": "DevCenterOperations_GetProject", + "parameters": { + "api-version": "2023-04-01", + "projectName": "gvbfvh" + }, + "responses": { + "200": { + "body": { + "name": "upkhozglybnjxyddpkhxbas" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json new file mode 100644 index 000000000000..2b65e5f7f22b --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "DevCenterOperations_ListProjects", + "operationId": "DevCenterOperations_ListProjects", + "parameters": { + "api-version": "2023-04-01", + "filter": "sehyutainefiv", + "top": 20 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "upkhozglybnjxyddpkhxbas", + "description": "itwwzmjfhyeef", + "maxDevBoxesPerUser": 0 + } + ], + "nextLink": "https://microsoft.com/aadyfglw" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json new file mode 100644 index 000000000000..eb97a861f0eb --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "DevCenterOperations_ListProjects", + "operationId": "DevCenterOperations_ListProjects", + "parameters": { + "api-version": "2023-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "upkhozglybnjxyddpkhxbas" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json new file mode 100644 index 000000000000..94798a9ed07c --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json @@ -0,0 +1,53 @@ +{ + "title": "EnvironmentsOperations_CreateOrUpdateEnvironment", + "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "dddcoym", + "userId": "omhhasnvdzwrcgxdplbtjfdqey", + "environmentName": "zbrq", + "body": { + "parameters": "cGFyYW1ldGVyczE=", + "environmentType": "dofjlkatvtgyrrptdceh", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "provisioningState": "Succeeded", + "catalogName": "kooctlekexoqxtab", + "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + }, + "responses": { + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "parameters": "cGFyYW1ldGVyczE=", + "name": "tssazaenxcdufd", + "environmentType": "dofjlkatvtgyrrptdceh", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "provisioningState": "Succeeded", + "resourceGroupId": "ndkhtkjjllouauuaroljtn", + "catalogName": "kooctlekexoqxtab", + "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json new file mode 100644 index 000000000000..54519b456477 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json @@ -0,0 +1,37 @@ +{ + "title": "EnvironmentsOperations_DeleteEnvironment", + "operationId": "EnvironmentsOperations_DeleteEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "jc", + "userId": "amg", + "environmentName": "hvolzcqeznjuyhtostvwgprwh" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json new file mode 100644 index 000000000000..00b0f00a133b --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "EnvironmentsOperations_DeleteEnvironment", + "operationId": "EnvironmentsOperations_DeleteEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "imtrysrbaujriznz", + "userId": "jqznoedlggzpbhrtbjrymbery", + "environmentName": "vcnzrsiodxomqt" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "status": "Running" + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json new file mode 100644 index 000000000000..2a6a49fbea9d --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "EnvironmentsOperations_GetCatalog", + "operationId": "EnvironmentsOperations_GetCatalog", + "parameters": { + "api-version": "2023-04-01", + "projectName": "rwg", + "catalogName": "mdaw" + }, + "responses": { + "200": { + "body": { + "name": "wpssttjdkaodnmrbs" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json new file mode 100644 index 000000000000..ccd23fcde480 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "EnvironmentsOperations_GetCatalog", + "operationId": "EnvironmentsOperations_GetCatalog", + "parameters": { + "api-version": "2023-04-01", + "projectName": "mlsidvtzl", + "catalogName": "apucizvbayht" + }, + "responses": { + "200": { + "body": { + "name": "wpssttjdkaodnmrbs" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json new file mode 100644 index 000000000000..dc0c4f3ef725 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json @@ -0,0 +1,36 @@ +{ + "title": "EnvironmentsOperations_GetEnvironmentDefinition", + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "parameters": { + "api-version": "2023-04-01", + "projectName": "aimcuhzcmyceybzenjdbhcvdfne", + "catalogName": "jxt", + "definitionName": "lww" + }, + "responses": { + "200": { + "body": { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy", + "description": "bfhukdbxvyqapnchejratrnuqralk", + "parameters": [ + { + "id": "baygybdvioqyauqaxh", + "name": "mprqzpvacjerkbaabzcbfnf", + "description": "lfggsbhzlzrhvwwhkrcscl", + "default": "ZGVmYXVsdDE=", + "type": "array", + "readOnly": true, + "required": true, + "allowed": [ + "vnaaovhotcxdhbadmzxvmh" + ] + } + ], + "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", + "templatePath": "ilkmsnsam" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json new file mode 100644 index 000000000000..4fabb6230b6b --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "title": "EnvironmentsOperations_GetEnvironmentDefinition", + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "parameters": { + "api-version": "2023-04-01", + "projectName": "hqdnkvpdnykkodecirwibwn", + "catalogName": "abjumflcacbkwdnhjsyduha", + "definitionName": "nlonaypdiiotuksvrlp" + }, + "responses": { + "200": { + "body": { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json new file mode 100644 index 000000000000..4fd1d206a1fd --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json @@ -0,0 +1,33 @@ +{ + "title": "EnvironmentsOperations_GetEnvironment", + "operationId": "EnvironmentsOperations_GetEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "kmknuheslpawpzcopvlmgqsxyx", + "userId": "kejihmuayj", + "environmentName": "mpenqcgrgwhgzlkobom" + }, + "responses": { + "200": { + "body": { + "parameters": "cGFyYW1ldGVyczE=", + "name": "tssazaenxcdufd", + "environmentType": "dofjlkatvtgyrrptdceh", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "provisioningState": "Succeeded", + "resourceGroupId": "ndkhtkjjllouauuaroljtn", + "catalogName": "kooctlekexoqxtab", + "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json new file mode 100644 index 000000000000..4ec626766ffc --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json @@ -0,0 +1,37 @@ +{ + "title": "EnvironmentsOperations_ListAllEnvironments", + "operationId": "EnvironmentsOperations_ListAllEnvironments", + "parameters": { + "api-version": "2023-04-01", + "projectName": "dkaownnoxfirsnmw", + "top": 19 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "parameters": "cGFyYW1ldGVyczE=", + "name": "tssazaenxcdufd", + "environmentType": "dofjlkatvtgyrrptdceh", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "provisioningState": "Succeeded", + "resourceGroupId": "ndkhtkjjllouauuaroljtn", + "catalogName": "kooctlekexoqxtab", + "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json new file mode 100644 index 000000000000..2462fae0f6c6 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "EnvironmentsOperations_ListCatalogs", + "operationId": "EnvironmentsOperations_ListCatalogs", + "parameters": { + "api-version": "2023-04-01", + "projectName": "zqzzqennymohasyvlxgzsklapbuv", + "top": 27 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "wpssttjdkaodnmrbs" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json new file mode 100644 index 000000000000..a59043903c95 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "title": "EnvironmentsOperations_ListCatalogs", + "operationId": "EnvironmentsOperations_ListCatalogs", + "parameters": { + "api-version": "2023-04-01", + "projectName": "bpmjift" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "wpssttjdkaodnmrbs" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json new file mode 100644 index 000000000000..6a74a680a4fd --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json @@ -0,0 +1,41 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "parameters": { + "api-version": "2023-04-01", + "projectName": "ujswiqdpxjwxhknbdlpkbtawuvgzab", + "catalogName": "ajstpidghbelakwpuaskglsophuald", + "top": 14 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy", + "description": "bfhukdbxvyqapnchejratrnuqralk", + "parameters": [ + { + "id": "baygybdvioqyauqaxh", + "name": "mprqzpvacjerkbaabzcbfnf", + "description": "lfggsbhzlzrhvwwhkrcscl", + "default": "ZGVmYXVsdDE=", + "type": "array", + "readOnly": true, + "required": true, + "allowed": [ + "vnaaovhotcxdhbadmzxvmh" + ] + } + ], + "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", + "templatePath": "ilkmsnsam" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json new file mode 100644 index 000000000000..891e3e207bd0 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json @@ -0,0 +1,22 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "parameters": { + "api-version": "2023-04-01", + "projectName": "gmxmkiz", + "catalogName": "szzvqfguguxzhho" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json new file mode 100644 index 000000000000..09c47e656419 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json @@ -0,0 +1,40 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentDefinitions", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "uicdwcwgtnyrr", + "top": 18 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy", + "description": "bfhukdbxvyqapnchejratrnuqralk", + "parameters": [ + { + "id": "baygybdvioqyauqaxh", + "name": "mprqzpvacjerkbaabzcbfnf", + "description": "lfggsbhzlzrhvwwhkrcscl", + "default": "ZGVmYXVsdDE=", + "type": "array", + "readOnly": true, + "required": true, + "allowed": [ + "vnaaovhotcxdhbadmzxvmh" + ] + } + ], + "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", + "templatePath": "ilkmsnsam" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json new file mode 100644 index 000000000000..017a1b156745 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentDefinitions", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "csvkkdyyunzdutzznramubczme" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json new file mode 100644 index 000000000000..ace73969a3c1 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentTypes", + "operationId": "EnvironmentsOperations_ListEnvironmentTypes", + "parameters": { + "api-version": "2023-04-01", + "projectName": "tzbpnr", + "top": 13 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "phpzcqpagfzuakwmfwtn", + "deploymentTargetId": "zuzmfjtjrfkooo", + "status": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json new file mode 100644 index 000000000000..0222aa9fcaf5 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentTypes", + "operationId": "EnvironmentsOperations_ListEnvironmentTypes", + "parameters": { + "api-version": "2023-04-01", + "projectName": "yuajufwggbewbpaulopx" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "phpzcqpagfzuakwmfwtn", + "deploymentTargetId": "zuzmfjtjrfkooo", + "status": "Enabled" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json new file mode 100644 index 000000000000..63d1ba5c2995 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json @@ -0,0 +1,38 @@ +{ + "title": "EnvironmentsOperations_ListEnvironments", + "operationId": "EnvironmentsOperations_ListEnvironments", + "parameters": { + "api-version": "2023-04-01", + "projectName": "um", + "userId": "qxxrsqhxchkms", + "top": 6 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "parameters": "cGFyYW1ldGVyczE=", + "name": "tssazaenxcdufd", + "environmentType": "dofjlkatvtgyrrptdceh", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "provisioningState": "Succeeded", + "resourceGroupId": "ndkhtkjjllouauuaroljtn", + "catalogName": "kooctlekexoqxtab", + "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json new file mode 100644 index 000000000000..9528291cc413 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json @@ -0,0 +1,32 @@ +{ + "title": "SharedOperations_GetProjectOperationStatus", + "operationId": "SharedOperations_GetProjectOperationStatus", + "parameters": { + "api-version": "2023-04-01", + "projectName": "yjpezkb", + "operationId": "qfdfglfmalixtemza" + }, + "responses": { + "200": { + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json new file mode 100644 index 000000000000..91133f491634 --- /dev/null +++ b/specification/devcenter/DevCenter/devcenter/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "SharedOperations_GetProjectOperationStatus", + "operationId": "SharedOperations_GetProjectOperationStatus", + "parameters": { + "api-version": "2023-04-01", + "projectName": "aakrmvajwvn", + "operationId": "jutxyjwvvdbnsbjgufr" + }, + "responses": { + "200": { + "body": { + "status": "Running" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json new file mode 100644 index 000000000000..285a487d25cd --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json @@ -0,0 +1,60 @@ +{ + "title": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "parameters": { + "api-version": "2023-04-01", + "filter": "lwxbqggfq", + "top": 24, + "userId": "nraaavrpkhjpxzrxjcbumcv" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json new file mode 100644 index 000000000000..010a3f51a1a3 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json @@ -0,0 +1,59 @@ +{ + "title": "DevBoxesDevCenterOperations_ListAllDevBoxes", + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", + "parameters": { + "api-version": "2023-04-01", + "filter": "xwnjamlegrgktjkw", + "top": 6 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..c469b064bb57 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json @@ -0,0 +1,127 @@ +{ + "title": "DevBoxesOperations_CreateDevBox", + "operationId": "DevBoxesOperations_CreateDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "hc", + "userId": "zrxzbpxvikzzuxzlgrbqhlt", + "devBoxName": "ojaxfdr", + "devBox": { + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2" + }, + "storageProfile": { + "osDisk": {} + }, + "imageReference": {}, + "localAdministrator": "Enabled" + } + }, + "responses": { + "200": { + "body": { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json new file mode 100644 index 000000000000..3a1bf22fbbd3 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json @@ -0,0 +1,25 @@ +{ + "title": "DevBoxesOperations_DelayAction", + "operationId": "DevBoxesOperations_DelayAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "oq", + "userId": "v", + "devBoxName": "ouhgpydruwdplpfhedd", + "actionName": "tmyli", + "until": "2024-01-24T14:27:28.195Z" + }, + "responses": { + "200": { + "body": { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd", + "suspendedUntil": "2024-01-24T14:27:27.382Z", + "next": { + "scheduledTime": "2024-01-24T14:27:27.382Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json new file mode 100644 index 000000000000..036bb450e403 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "DevBoxesOperations_DelayAction", + "operationId": "DevBoxesOperations_DelayAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "aricsncjmlgemlyvhlxdrchusx", + "userId": "gyguohehwnwjxjg", + "devBoxName": "ybcer", + "actionName": "komblvwlzban", + "until": "2024-01-24T14:27:28.333Z" + }, + "responses": { + "200": { + "body": { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json new file mode 100644 index 000000000000..0198e8bf730f --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json @@ -0,0 +1,42 @@ +{ + "title": "DevBoxesOperations_DelayAllActions", + "operationId": "DevBoxesOperations_DelayAllActions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "qljcioth", + "userId": "tovvhjfwaeuwq", + "devBoxName": "gktlrtlopnpnji", + "until": "2024-01-24T14:27:28.460Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "stbeqwwkldoeahbpcknencysat", + "result": "Succeeded", + "action": { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd", + "suspendedUntil": "2024-01-24T14:27:27.382Z", + "next": { + "scheduledTime": "2024-01-24T14:27:27.382Z" + } + }, + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json new file mode 100644 index 000000000000..34b9a1ee37d1 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "DevBoxesOperations_DelayAllActions", + "operationId": "DevBoxesOperations_DelayAllActions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "xdhidzhdd", + "userId": "sqvhdjkwo", + "devBoxName": "lkihxrrkkwacvwarjntollzvbsfkp", + "until": "2024-01-24T14:27:28.607Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "stbeqwwkldoeahbpcknencysat", + "result": "Succeeded" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..811e287b2e1b --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json @@ -0,0 +1,37 @@ +{ + "title": "DevBoxesOperations_DeleteDevBox", + "operationId": "DevBoxesOperations_DeleteDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "rzmjqdstyynlyrqyydh", + "userId": "pjafwzsacbpapssdhefh", + "devBoxName": "zjquymtrawqtmbga" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json new file mode 100644 index 000000000000..bae4018e44aa --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "DevBoxesOperations_DeleteDevBox", + "operationId": "DevBoxesOperations_DeleteDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "cq", + "userId": "wjyrowpimnkxfcvnmmi", + "devBoxName": "syrqzpjlgmhvo" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "status": "Running" + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json new file mode 100644 index 000000000000..acb97113ef7e --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json @@ -0,0 +1,24 @@ +{ + "title": "DevBoxesOperations_GetDevBoxAction", + "operationId": "DevBoxesOperations_GetDevBoxAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "glxljthnrhpuelubrbojrbjkpwmzmw", + "userId": "osplrrvvaqvfjuoscgemlbushww", + "devBoxName": "xyroziipagygloi", + "actionName": "qsxyptia" + }, + "responses": { + "200": { + "body": { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd", + "suspendedUntil": "2024-01-24T14:27:27.382Z", + "next": { + "scheduledTime": "2024-01-24T14:27:27.382Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json new file mode 100644 index 000000000000..6760b2dd19f7 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "DevBoxesOperations_GetDevBoxAction", + "operationId": "DevBoxesOperations_GetDevBoxAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "alrkctrxkqjap", + "userId": "gvkhxoguxnwiuuhcyfjaqzcvvt", + "devBoxName": "lgrnrwossujasciahkws", + "actionName": "if" + }, + "responses": { + "200": { + "body": { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..0821e899382b --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json @@ -0,0 +1,55 @@ +{ + "title": "DevBoxesOperations_GetDevBox", + "operationId": "DevBoxesOperations_GetDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "tkpwuk", + "userId": "zmfdwcgdqya", + "devBoxName": "jbqeq" + }, + "responses": { + "200": { + "body": { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json new file mode 100644 index 000000000000..adaf69e0ed9f --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json @@ -0,0 +1,42 @@ +{ + "title": "DevBoxesOperations_GetPool", + "operationId": "DevBoxesOperations_GetPool", + "parameters": { + "api-version": "2023-04-01", + "projectName": "qsjqcxtvznybixgmsxxhvwuxgmfru", + "poolName": "pxxkktwzmfwwoa" + }, + "responses": { + "200": { + "body": { + "name": "peoaccqvxjgwhwrn", + "location": "lcmcoqs", + "osType": "Windows", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "hibernateSupport": "Enabled", + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 3 + }, + "healthStatus": "Unknown" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json new file mode 100644 index 000000000000..d61cd338a0ce --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "DevBoxesOperations_GetPool", + "operationId": "DevBoxesOperations_GetPool", + "parameters": { + "api-version": "2023-04-01", + "projectName": "vfhixpfkprhaxnilvakjnbrtw", + "poolName": "q" + }, + "responses": { + "200": { + "body": { + "name": "peoaccqvxjgwhwrn", + "location": "lcmcoqs", + "healthStatus": "Unknown" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json new file mode 100644 index 000000000000..19d78eee0047 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "DevBoxesOperations_GetRemoteConnection", + "operationId": "DevBoxesOperations_GetRemoteConnection", + "parameters": { + "api-version": "2023-04-01", + "projectName": "xuvmn", + "userId": "umvxujnlzpmf", + "devBoxName": "nxuhbdxatqpgw" + }, + "responses": { + "200": { + "body": { + "webUrl": "https://microsoft.com/a", + "rdpConnectionUrl": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json new file mode 100644 index 000000000000..7fa2761a8f3d --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json @@ -0,0 +1,15 @@ +{ + "title": "DevBoxesOperations_GetRemoteConnection", + "operationId": "DevBoxesOperations_GetRemoteConnection", + "parameters": { + "api-version": "2023-04-01", + "projectName": "hwrxgjhgwxvhmpvmwxha", + "userId": "grqeayztkjyzrkoabmniccl", + "devBoxName": "lhnkqhutcz" + }, + "responses": { + "200": { + "body": {} + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json new file mode 100644 index 000000000000..38014eff0993 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "DevBoxesOperations_GetSchedule", + "operationId": "DevBoxesOperations_GetSchedule", + "parameters": { + "api-version": "2023-04-01", + "projectName": "gnzaegjvirufpsa", + "poolName": "uscquok", + "scheduleName": "eamfzjecviossmyccklwr" + }, + "responses": { + "200": { + "body": { + "name": "dttuou", + "type": "StopDevBox", + "frequency": "Daily", + "time": "nxohypdpsxuox", + "timeZone": "gjbehvuedwxxoavcdjn" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json new file mode 100644 index 000000000000..2458a0d89678 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "DevBoxesOperations_ListDevBoxActions", + "operationId": "DevBoxesOperations_ListDevBoxActions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "bcoglkxasdazbhsthyntrt", + "userId": "zsjgkzhvcbb", + "devBoxName": "udackwcvhnoxzukxykmhpove" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd", + "suspendedUntil": "2024-01-24T14:27:27.382Z", + "next": { + "scheduledTime": "2024-01-24T14:27:27.382Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json new file mode 100644 index 000000000000..3cc8ea208c68 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "DevBoxesOperations_ListDevBoxActions", + "operationId": "DevBoxesOperations_ListDevBoxActions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "rwaswcxshhpbuvdch", + "userId": "bgrmovzdiriizgvklduy", + "devBoxName": "xlpbvuhrkejxpjumbq" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "mxpakmzoihivqlqnbsyvpznggxjlh", + "actionType": "Stop", + "sourceId": "yngdletjzfexgyd" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json new file mode 100644 index 000000000000..d908f24ec700 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json @@ -0,0 +1,61 @@ +{ + "title": "DevBoxesOperations_ListDevBoxes", + "operationId": "DevBoxesOperations_ListDevBoxes", + "parameters": { + "api-version": "2023-04-01", + "projectName": "lrjfpaknnbligycnycagqaty", + "userId": "iadgmrsmzltydlacort", + "filter": "frmetpxpuutc", + "top": 24 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nerjepw", + "projectName": "gxvvgesijsbrstauthpd", + "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "zldicwirbsezeuj", + "powerState": "Unknown", + "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + }, + "location": "bwyoxyk", + "osType": "Windows", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "createdTime": "2024-01-24T14:27:22.803Z", + "localAdministrator": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json new file mode 100644 index 000000000000..cfd1ab64556f --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json @@ -0,0 +1,48 @@ +{ + "title": "DevBoxesOperations_ListPools", + "operationId": "DevBoxesOperations_ListPools", + "parameters": { + "api-version": "2023-04-01", + "projectName": "pxvuaxhadlodudyhfykoe", + "filter": "alduppbkg", + "top": 19 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "peoaccqvxjgwhwrn", + "location": "lcmcoqs", + "osType": "Windows", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 22, + "memoryGB": 6 + }, + "hibernateSupport": "Enabled", + "storageProfile": { + "osDisk": { + "diskSizeGB": 17 + } + }, + "imageReference": { + "name": "guhafsfggdvnnmtab", + "version": "giit", + "operatingSystem": "mjlop", + "osBuildNumber": "agktsd", + "publishedDate": "2024-01-24T14:27:22.803Z" + }, + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 3 + }, + "healthStatus": "Unknown" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json new file mode 100644 index 000000000000..e126aed391a6 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "DevBoxesOperations_ListPools", + "operationId": "DevBoxesOperations_ListPools", + "parameters": { + "api-version": "2023-04-01", + "projectName": "ovbxdmmgpmmaft" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "peoaccqvxjgwhwrn", + "location": "lcmcoqs", + "healthStatus": "Unknown" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json new file mode 100644 index 000000000000..1cc8b087e3f7 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json @@ -0,0 +1,27 @@ +{ + "title": "DevBoxesOperations_ListSchedules", + "operationId": "DevBoxesOperations_ListSchedules", + "parameters": { + "api-version": "2023-04-01", + "projectName": "lbzswonmsyglifwwgkz", + "poolName": "yndlcsuaqjtvaht", + "filter": "mgvmdfcaozmzoca", + "top": 7 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dttuou", + "type": "StopDevBox", + "frequency": "Daily", + "time": "nxohypdpsxuox", + "timeZone": "gjbehvuedwxxoavcdjn" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..979b2c130b8c --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json @@ -0,0 +1,36 @@ +{ + "title": "DevBoxesOperations_RestartDevBox", + "operationId": "DevBoxesOperations_RestartDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "jnetbetrcvennkzmgksdypcuckcop", + "userId": "byrgeflxmycdavj", + "devBoxName": "irpblyyaeknrggnduws" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json new file mode 100644 index 000000000000..d4250477fe29 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "DevBoxesOperations_RestartDevBox", + "operationId": "DevBoxesOperations_RestartDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "jjm", + "userId": "sddbzmndqdeyllhgdavgqrnhinqdo", + "devBoxName": "shlzdvyiswk" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "status": "Running" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json new file mode 100644 index 000000000000..06ae68fc5aeb --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json @@ -0,0 +1,14 @@ +{ + "title": "DevBoxesOperations_SkipAction", + "operationId": "DevBoxesOperations_SkipAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "prkbxhmgkmfc", + "userId": "lzqciljtgzvswsyatkc", + "devBoxName": "kale", + "actionName": "khnoyfp" + }, + "responses": { + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json new file mode 100644 index 000000000000..e8c4a580f960 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json @@ -0,0 +1,14 @@ +{ + "title": "DevBoxesOperations_SkipAction", + "operationId": "DevBoxesOperations_SkipAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "wgzgfignbm", + "userId": "i", + "devBoxName": "jqxvgkkrbdctycukptzcov", + "actionName": "fsrpxqrqbdoohqqfpp" + }, + "responses": { + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..739000182051 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json @@ -0,0 +1,36 @@ +{ + "title": "DevBoxesOperations_StartDevBox", + "operationId": "DevBoxesOperations_StartDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "or", + "userId": "yvrgabsfgrwevlnakythltag", + "devBoxName": "tjeptwsraihssxiamr" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json new file mode 100644 index 000000000000..519518be31a5 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "DevBoxesOperations_StartDevBox", + "operationId": "DevBoxesOperations_StartDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "ygt", + "userId": "gaiudhfnzqhxdjjnlwopwjhs", + "devBoxName": "urwps" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "status": "Running" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json new file mode 100644 index 000000000000..59fb1198abd7 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json @@ -0,0 +1,37 @@ +{ + "title": "DevBoxesOperations_StopDevBox", + "operationId": "DevBoxesOperations_StopDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "tlxqhsgz", + "userId": "cxwsxwnrfmouyegvpv", + "devBoxName": "psesagmgxyg", + "hibernate": true + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json new file mode 100644 index 000000000000..ac808f769d2c --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "DevBoxesOperations_StopDevBox", + "operationId": "DevBoxesOperations_StopDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "mz", + "userId": "nqqukcsjqbyumxeipcgbpex", + "devBoxName": "gbdfetswc" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "status": "Running" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json new file mode 100644 index 000000000000..1975d6f8c90d --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json @@ -0,0 +1,17 @@ +{ + "title": "DevCenterOperations_GetProject", + "operationId": "DevCenterOperations_GetProject", + "parameters": { + "api-version": "2023-04-01", + "projectName": "pnyio" + }, + "responses": { + "200": { + "body": { + "name": "upkhozglybnjxyddpkhxbas", + "description": "itwwzmjfhyeef", + "maxDevBoxesPerUser": 0 + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json new file mode 100644 index 000000000000..bfe5d7cb2682 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json @@ -0,0 +1,15 @@ +{ + "title": "DevCenterOperations_GetProject", + "operationId": "DevCenterOperations_GetProject", + "parameters": { + "api-version": "2023-04-01", + "projectName": "gvbfvh" + }, + "responses": { + "200": { + "body": { + "name": "upkhozglybnjxyddpkhxbas" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json new file mode 100644 index 000000000000..2b65e5f7f22b --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "DevCenterOperations_ListProjects", + "operationId": "DevCenterOperations_ListProjects", + "parameters": { + "api-version": "2023-04-01", + "filter": "sehyutainefiv", + "top": 20 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "upkhozglybnjxyddpkhxbas", + "description": "itwwzmjfhyeef", + "maxDevBoxesPerUser": 0 + } + ], + "nextLink": "https://microsoft.com/aadyfglw" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json new file mode 100644 index 000000000000..eb97a861f0eb --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "DevCenterOperations_ListProjects", + "operationId": "DevCenterOperations_ListProjects", + "parameters": { + "api-version": "2023-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "upkhozglybnjxyddpkhxbas" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json new file mode 100644 index 000000000000..94798a9ed07c --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json @@ -0,0 +1,53 @@ +{ + "title": "EnvironmentsOperations_CreateOrUpdateEnvironment", + "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "dddcoym", + "userId": "omhhasnvdzwrcgxdplbtjfdqey", + "environmentName": "zbrq", + "body": { + "parameters": "cGFyYW1ldGVyczE=", + "environmentType": "dofjlkatvtgyrrptdceh", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "provisioningState": "Succeeded", + "catalogName": "kooctlekexoqxtab", + "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + }, + "responses": { + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "parameters": "cGFyYW1ldGVyczE=", + "name": "tssazaenxcdufd", + "environmentType": "dofjlkatvtgyrrptdceh", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "provisioningState": "Succeeded", + "resourceGroupId": "ndkhtkjjllouauuaroljtn", + "catalogName": "kooctlekexoqxtab", + "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json new file mode 100644 index 000000000000..54519b456477 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json @@ -0,0 +1,37 @@ +{ + "title": "EnvironmentsOperations_DeleteEnvironment", + "operationId": "EnvironmentsOperations_DeleteEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "jc", + "userId": "amg", + "environmentName": "hvolzcqeznjuyhtostvwgprwh" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json new file mode 100644 index 000000000000..00b0f00a133b --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "EnvironmentsOperations_DeleteEnvironment", + "operationId": "EnvironmentsOperations_DeleteEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "imtrysrbaujriznz", + "userId": "jqznoedlggzpbhrtbjrymbery", + "environmentName": "vcnzrsiodxomqt" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "status": "Running" + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json new file mode 100644 index 000000000000..2a6a49fbea9d --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "EnvironmentsOperations_GetCatalog", + "operationId": "EnvironmentsOperations_GetCatalog", + "parameters": { + "api-version": "2023-04-01", + "projectName": "rwg", + "catalogName": "mdaw" + }, + "responses": { + "200": { + "body": { + "name": "wpssttjdkaodnmrbs" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json new file mode 100644 index 000000000000..ccd23fcde480 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "EnvironmentsOperations_GetCatalog", + "operationId": "EnvironmentsOperations_GetCatalog", + "parameters": { + "api-version": "2023-04-01", + "projectName": "mlsidvtzl", + "catalogName": "apucizvbayht" + }, + "responses": { + "200": { + "body": { + "name": "wpssttjdkaodnmrbs" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json new file mode 100644 index 000000000000..dc0c4f3ef725 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json @@ -0,0 +1,36 @@ +{ + "title": "EnvironmentsOperations_GetEnvironmentDefinition", + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "parameters": { + "api-version": "2023-04-01", + "projectName": "aimcuhzcmyceybzenjdbhcvdfne", + "catalogName": "jxt", + "definitionName": "lww" + }, + "responses": { + "200": { + "body": { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy", + "description": "bfhukdbxvyqapnchejratrnuqralk", + "parameters": [ + { + "id": "baygybdvioqyauqaxh", + "name": "mprqzpvacjerkbaabzcbfnf", + "description": "lfggsbhzlzrhvwwhkrcscl", + "default": "ZGVmYXVsdDE=", + "type": "array", + "readOnly": true, + "required": true, + "allowed": [ + "vnaaovhotcxdhbadmzxvmh" + ] + } + ], + "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", + "templatePath": "ilkmsnsam" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json new file mode 100644 index 000000000000..4fabb6230b6b --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "title": "EnvironmentsOperations_GetEnvironmentDefinition", + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "parameters": { + "api-version": "2023-04-01", + "projectName": "hqdnkvpdnykkodecirwibwn", + "catalogName": "abjumflcacbkwdnhjsyduha", + "definitionName": "nlonaypdiiotuksvrlp" + }, + "responses": { + "200": { + "body": { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json new file mode 100644 index 000000000000..4fd1d206a1fd --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json @@ -0,0 +1,33 @@ +{ + "title": "EnvironmentsOperations_GetEnvironment", + "operationId": "EnvironmentsOperations_GetEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "kmknuheslpawpzcopvlmgqsxyx", + "userId": "kejihmuayj", + "environmentName": "mpenqcgrgwhgzlkobom" + }, + "responses": { + "200": { + "body": { + "parameters": "cGFyYW1ldGVyczE=", + "name": "tssazaenxcdufd", + "environmentType": "dofjlkatvtgyrrptdceh", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "provisioningState": "Succeeded", + "resourceGroupId": "ndkhtkjjllouauuaroljtn", + "catalogName": "kooctlekexoqxtab", + "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json new file mode 100644 index 000000000000..4ec626766ffc --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json @@ -0,0 +1,37 @@ +{ + "title": "EnvironmentsOperations_ListAllEnvironments", + "operationId": "EnvironmentsOperations_ListAllEnvironments", + "parameters": { + "api-version": "2023-04-01", + "projectName": "dkaownnoxfirsnmw", + "top": 19 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "parameters": "cGFyYW1ldGVyczE=", + "name": "tssazaenxcdufd", + "environmentType": "dofjlkatvtgyrrptdceh", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "provisioningState": "Succeeded", + "resourceGroupId": "ndkhtkjjllouauuaroljtn", + "catalogName": "kooctlekexoqxtab", + "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json new file mode 100644 index 000000000000..2462fae0f6c6 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "EnvironmentsOperations_ListCatalogs", + "operationId": "EnvironmentsOperations_ListCatalogs", + "parameters": { + "api-version": "2023-04-01", + "projectName": "zqzzqennymohasyvlxgzsklapbuv", + "top": 27 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "wpssttjdkaodnmrbs" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json new file mode 100644 index 000000000000..a59043903c95 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "title": "EnvironmentsOperations_ListCatalogs", + "operationId": "EnvironmentsOperations_ListCatalogs", + "parameters": { + "api-version": "2023-04-01", + "projectName": "bpmjift" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "wpssttjdkaodnmrbs" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json new file mode 100644 index 000000000000..6a74a680a4fd --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json @@ -0,0 +1,41 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "parameters": { + "api-version": "2023-04-01", + "projectName": "ujswiqdpxjwxhknbdlpkbtawuvgzab", + "catalogName": "ajstpidghbelakwpuaskglsophuald", + "top": 14 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy", + "description": "bfhukdbxvyqapnchejratrnuqralk", + "parameters": [ + { + "id": "baygybdvioqyauqaxh", + "name": "mprqzpvacjerkbaabzcbfnf", + "description": "lfggsbhzlzrhvwwhkrcscl", + "default": "ZGVmYXVsdDE=", + "type": "array", + "readOnly": true, + "required": true, + "allowed": [ + "vnaaovhotcxdhbadmzxvmh" + ] + } + ], + "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", + "templatePath": "ilkmsnsam" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json new file mode 100644 index 000000000000..891e3e207bd0 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json @@ -0,0 +1,22 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "parameters": { + "api-version": "2023-04-01", + "projectName": "gmxmkiz", + "catalogName": "szzvqfguguxzhho" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json new file mode 100644 index 000000000000..09c47e656419 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json @@ -0,0 +1,40 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentDefinitions", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "uicdwcwgtnyrr", + "top": 18 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy", + "description": "bfhukdbxvyqapnchejratrnuqralk", + "parameters": [ + { + "id": "baygybdvioqyauqaxh", + "name": "mprqzpvacjerkbaabzcbfnf", + "description": "lfggsbhzlzrhvwwhkrcscl", + "default": "ZGVmYXVsdDE=", + "type": "array", + "readOnly": true, + "required": true, + "allowed": [ + "vnaaovhotcxdhbadmzxvmh" + ] + } + ], + "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", + "templatePath": "ilkmsnsam" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json new file mode 100644 index 000000000000..017a1b156745 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentDefinitions", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "csvkkdyyunzdutzznramubczme" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", + "name": "b", + "catalogName": "nlmwqwffmecy" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json new file mode 100644 index 000000000000..ace73969a3c1 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentTypes", + "operationId": "EnvironmentsOperations_ListEnvironmentTypes", + "parameters": { + "api-version": "2023-04-01", + "projectName": "tzbpnr", + "top": 13 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "phpzcqpagfzuakwmfwtn", + "deploymentTargetId": "zuzmfjtjrfkooo", + "status": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json new file mode 100644 index 000000000000..0222aa9fcaf5 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "EnvironmentsOperations_ListEnvironmentTypes", + "operationId": "EnvironmentsOperations_ListEnvironmentTypes", + "parameters": { + "api-version": "2023-04-01", + "projectName": "yuajufwggbewbpaulopx" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "phpzcqpagfzuakwmfwtn", + "deploymentTargetId": "zuzmfjtjrfkooo", + "status": "Enabled" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json new file mode 100644 index 000000000000..63d1ba5c2995 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json @@ -0,0 +1,38 @@ +{ + "title": "EnvironmentsOperations_ListEnvironments", + "operationId": "EnvironmentsOperations_ListEnvironments", + "parameters": { + "api-version": "2023-04-01", + "projectName": "um", + "userId": "qxxrsqhxchkms", + "top": 6 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "parameters": "cGFyYW1ldGVyczE=", + "name": "tssazaenxcdufd", + "environmentType": "dofjlkatvtgyrrptdceh", + "user": "oifzytyyzqscdvtcbmgezfnifkhipq", + "provisioningState": "Succeeded", + "resourceGroupId": "ndkhtkjjllouauuaroljtn", + "catalogName": "kooctlekexoqxtab", + "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json new file mode 100644 index 000000000000..9528291cc413 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json @@ -0,0 +1,32 @@ +{ + "title": "SharedOperations_GetProjectOperationStatus", + "operationId": "SharedOperations_GetProjectOperationStatus", + "parameters": { + "api-version": "2023-04-01", + "projectName": "yjpezkb", + "operationId": "qfdfglfmalixtemza" + }, + "responses": { + "200": { + "body": { + "id": "in", + "name": "onyfyxwmwgnlxgrzpwaamouvgh", + "status": "Running", + "resourceId": "cevpositrvfowiz", + "startTime": "2024-01-24T14:27:25.012Z", + "endTime": "2024-01-24T14:27:25.012Z", + "percentComplete": 76, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "xq", + "message": "xv", + "target": "ocbyawprqnesxbktrinywjh", + "details": [], + "innererror": { + "code": "echraitucknphbjptxeslbp" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json new file mode 100644 index 000000000000..91133f491634 --- /dev/null +++ b/specification/devcenter/DevCenter/environments/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "SharedOperations_GetProjectOperationStatus", + "operationId": "SharedOperations_GetProjectOperationStatus", + "parameters": { + "api-version": "2023-04-01", + "projectName": "aakrmvajwvn", + "operationId": "jutxyjwvvdbnsbjgufr" + }, + "responses": { + "200": { + "body": { + "status": "Running" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index 6ddfc464e46d..bcc7ca298cf5 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -8,6 +8,11 @@ linter: extends: - "@azure-tools/typespec-azure-core/all" options: + "@azure-tools/typespec-autorest": + azure-resource-provider-folder: "data-plane" + emitter-output-dir: "{project-root}/.." + output-file: "{azure-resource-provider-folder}/DevCenter/{version-status}/{version}/openapi.json" + examples-directory: "examples" "@azure-tools/typespec-csharp": namespace : "Azure.Developer.DevCenter" clear-output-folder : true diff --git a/specification/devcenter/DevCenter/tsp-output/@azure-tools/typespec-autorest/2023-04-01/openapi.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/openapi.json similarity index 100% rename from specification/devcenter/DevCenter/tsp-output/@azure-tools/typespec-autorest/2023-04-01/openapi.json rename to specification/devcenter/data-plane/DevCenter/stable/2023-04-01/openapi.json From 08412a80068497cbbf8616f9cce1413098dff8a7 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 24 Jan 2024 13:37:41 -0300 Subject: [PATCH 102/187] move main and examples to DevCenter --- .../devcenter/DevCenter/devbox/main.tsp | 12 -- .../devcenter/DevCenter/devbox/tspconfig.yaml | 3 - ..._ListAllDevBoxesByUser_MaximumSet_Gen.json | 60 --------- ...ations_ListAllDevBoxes_MaximumSet_Gen.json | 59 -------- ...perations_CreateDevBox_MaximumSet_Gen.json | 127 ------------------ ...Operations_DelayAction_MaximumSet_Gen.json | 25 ---- ...Operations_DelayAction_MinimumSet_Gen.json | 21 --- ...ations_DelayAllActions_MaximumSet_Gen.json | 42 ------ ...ations_DelayAllActions_MinimumSet_Gen.json | 23 ---- ...perations_DeleteDevBox_MaximumSet_Gen.json | 37 ----- ...perations_DeleteDevBox_MinimumSet_Gen.json | 21 --- ...ations_GetDevBoxAction_MaximumSet_Gen.json | 24 ---- ...ations_GetDevBoxAction_MinimumSet_Gen.json | 20 --- ...esOperations_GetDevBox_MaximumSet_Gen.json | 55 -------- ...oxesOperations_GetPool_MaximumSet_Gen.json | 42 ------ ...oxesOperations_GetPool_MinimumSet_Gen.json | 18 --- ...ns_GetRemoteConnection_MaximumSet_Gen.json | 18 --- ...ns_GetRemoteConnection_MinimumSet_Gen.json | 15 --- ...Operations_GetSchedule_MaximumSet_Gen.json | 21 --- ...ions_ListDevBoxActions_MaximumSet_Gen.json | 28 ---- ...ions_ListDevBoxActions_MinimumSet_Gen.json | 23 ---- ...perations_ListDevBoxes_MaximumSet_Gen.json | 61 --------- ...esOperations_ListPools_MaximumSet_Gen.json | 48 ------- ...esOperations_ListPools_MinimumSet_Gen.json | 21 --- ...erations_ListSchedules_MaximumSet_Gen.json | 27 ---- ...erations_RestartDevBox_MaximumSet_Gen.json | 36 ----- ...erations_RestartDevBox_MinimumSet_Gen.json | 20 --- ...sOperations_SkipAction_MaximumSet_Gen.json | 14 -- ...sOperations_SkipAction_MinimumSet_Gen.json | 14 -- ...Operations_StartDevBox_MaximumSet_Gen.json | 36 ----- ...Operations_StartDevBox_MinimumSet_Gen.json | 20 --- ...sOperations_StopDevBox_MaximumSet_Gen.json | 37 ----- ...sOperations_StopDevBox_MinimumSet_Gen.json | 20 --- ...rOperations_GetProject_MaximumSet_Gen.json | 17 --- ...rOperations_GetProject_MinimumSet_Gen.json | 15 --- ...perations_ListProjects_MaximumSet_Gen.json | 23 ---- ...perations_ListProjects_MinimumSet_Gen.json | 18 --- ...ateOrUpdateEnvironment_MaximumSet_Gen.json | 53 -------- ...ions_DeleteEnvironment_MaximumSet_Gen.json | 37 ----- ...ions_DeleteEnvironment_MinimumSet_Gen.json | 21 --- ...sOperations_GetCatalog_MaximumSet_Gen.json | 16 --- ...sOperations_GetCatalog_MinimumSet_Gen.json | 16 --- ...tEnvironmentDefinition_MaximumSet_Gen.json | 36 ----- ...tEnvironmentDefinition_MinimumSet_Gen.json | 19 --- ...rations_GetEnvironment_MaximumSet_Gen.json | 33 ----- ...ns_ListAllEnvironments_MaximumSet_Gen.json | 37 ----- ...perations_ListCatalogs_MaximumSet_Gen.json | 21 --- ...perations_ListCatalogs_MinimumSet_Gen.json | 19 --- ...ntDefinitionsByCatalog_MaximumSet_Gen.json | 41 ------ ...ntDefinitionsByCatalog_MinimumSet_Gen.json | 22 --- ...EnvironmentDefinitions_MaximumSet_Gen.json | 40 ------ ...EnvironmentDefinitions_MinimumSet_Gen.json | 21 --- ...s_ListEnvironmentTypes_MaximumSet_Gen.json | 23 ---- ...s_ListEnvironmentTypes_MinimumSet_Gen.json | 21 --- ...tions_ListEnvironments_MaximumSet_Gen.json | 38 ------ ...ProjectOperationStatus_MaximumSet_Gen.json | 32 ----- ...ProjectOperationStatus_MinimumSet_Gen.json | 16 --- .../DevCenter/devcenter/tspconfig.yaml | 3 - ..._ListAllDevBoxesByUser_MaximumSet_Gen.json | 60 --------- ...ations_ListAllDevBoxes_MaximumSet_Gen.json | 59 -------- ...perations_CreateDevBox_MaximumSet_Gen.json | 127 ------------------ ...Operations_DelayAction_MaximumSet_Gen.json | 25 ---- ...Operations_DelayAction_MinimumSet_Gen.json | 21 --- ...ations_DelayAllActions_MaximumSet_Gen.json | 42 ------ ...ations_DelayAllActions_MinimumSet_Gen.json | 23 ---- ...perations_DeleteDevBox_MaximumSet_Gen.json | 37 ----- ...perations_DeleteDevBox_MinimumSet_Gen.json | 21 --- ...ations_GetDevBoxAction_MaximumSet_Gen.json | 24 ---- ...ations_GetDevBoxAction_MinimumSet_Gen.json | 20 --- ...esOperations_GetDevBox_MaximumSet_Gen.json | 55 -------- ...oxesOperations_GetPool_MaximumSet_Gen.json | 42 ------ ...oxesOperations_GetPool_MinimumSet_Gen.json | 18 --- ...ns_GetRemoteConnection_MaximumSet_Gen.json | 18 --- ...ns_GetRemoteConnection_MinimumSet_Gen.json | 15 --- ...Operations_GetSchedule_MaximumSet_Gen.json | 21 --- ...ions_ListDevBoxActions_MaximumSet_Gen.json | 28 ---- ...ions_ListDevBoxActions_MinimumSet_Gen.json | 23 ---- ...perations_ListDevBoxes_MaximumSet_Gen.json | 61 --------- ...esOperations_ListPools_MaximumSet_Gen.json | 48 ------- ...esOperations_ListPools_MinimumSet_Gen.json | 21 --- ...erations_ListSchedules_MaximumSet_Gen.json | 27 ---- ...erations_RestartDevBox_MaximumSet_Gen.json | 36 ----- ...erations_RestartDevBox_MinimumSet_Gen.json | 20 --- ...sOperations_SkipAction_MaximumSet_Gen.json | 14 -- ...sOperations_SkipAction_MinimumSet_Gen.json | 14 -- ...Operations_StartDevBox_MaximumSet_Gen.json | 36 ----- ...Operations_StartDevBox_MinimumSet_Gen.json | 20 --- ...sOperations_StopDevBox_MaximumSet_Gen.json | 37 ----- ...sOperations_StopDevBox_MinimumSet_Gen.json | 20 --- ...rOperations_GetProject_MaximumSet_Gen.json | 17 --- ...rOperations_GetProject_MinimumSet_Gen.json | 15 --- ...perations_ListProjects_MaximumSet_Gen.json | 23 ---- ...perations_ListProjects_MinimumSet_Gen.json | 18 --- ...ateOrUpdateEnvironment_MaximumSet_Gen.json | 53 -------- ...ions_DeleteEnvironment_MaximumSet_Gen.json | 37 ----- ...ions_DeleteEnvironment_MinimumSet_Gen.json | 21 --- ...sOperations_GetCatalog_MaximumSet_Gen.json | 16 --- ...sOperations_GetCatalog_MinimumSet_Gen.json | 16 --- ...tEnvironmentDefinition_MaximumSet_Gen.json | 36 ----- ...tEnvironmentDefinition_MinimumSet_Gen.json | 19 --- ...rations_GetEnvironment_MaximumSet_Gen.json | 33 ----- ...ns_ListAllEnvironments_MaximumSet_Gen.json | 37 ----- ...perations_ListCatalogs_MaximumSet_Gen.json | 21 --- ...perations_ListCatalogs_MinimumSet_Gen.json | 19 --- ...ntDefinitionsByCatalog_MaximumSet_Gen.json | 41 ------ ...ntDefinitionsByCatalog_MinimumSet_Gen.json | 22 --- ...EnvironmentDefinitions_MaximumSet_Gen.json | 40 ------ ...EnvironmentDefinitions_MinimumSet_Gen.json | 21 --- ...s_ListEnvironmentTypes_MaximumSet_Gen.json | 23 ---- ...s_ListEnvironmentTypes_MinimumSet_Gen.json | 21 --- ...tions_ListEnvironments_MaximumSet_Gen.json | 38 ------ ...ProjectOperationStatus_MaximumSet_Gen.json | 32 ----- ...ProjectOperationStatus_MinimumSet_Gen.json | 16 --- .../devcenter/DevCenter/environments/main.tsp | 12 -- .../DevCenter/environments/tspconfig.yaml | 3 - ..._ListAllDevBoxesByUser_MaximumSet_Gen.json | 0 ...ations_ListAllDevBoxes_MaximumSet_Gen.json | 0 ...perations_CreateDevBox_MaximumSet_Gen.json | 0 ...Operations_DelayAction_MaximumSet_Gen.json | 0 ...Operations_DelayAction_MinimumSet_Gen.json | 0 ...ations_DelayAllActions_MaximumSet_Gen.json | 0 ...ations_DelayAllActions_MinimumSet_Gen.json | 0 ...perations_DeleteDevBox_MaximumSet_Gen.json | 0 ...perations_DeleteDevBox_MinimumSet_Gen.json | 0 ...ations_GetDevBoxAction_MaximumSet_Gen.json | 0 ...ations_GetDevBoxAction_MinimumSet_Gen.json | 0 ...esOperations_GetDevBox_MaximumSet_Gen.json | 0 ...oxesOperations_GetPool_MaximumSet_Gen.json | 0 ...oxesOperations_GetPool_MinimumSet_Gen.json | 0 ...ns_GetRemoteConnection_MaximumSet_Gen.json | 0 ...ns_GetRemoteConnection_MinimumSet_Gen.json | 0 ...Operations_GetSchedule_MaximumSet_Gen.json | 0 ...ions_ListDevBoxActions_MaximumSet_Gen.json | 0 ...ions_ListDevBoxActions_MinimumSet_Gen.json | 0 ...perations_ListDevBoxes_MaximumSet_Gen.json | 0 ...esOperations_ListPools_MaximumSet_Gen.json | 0 ...esOperations_ListPools_MinimumSet_Gen.json | 0 ...erations_ListSchedules_MaximumSet_Gen.json | 0 ...erations_RestartDevBox_MaximumSet_Gen.json | 0 ...erations_RestartDevBox_MinimumSet_Gen.json | 0 ...sOperations_SkipAction_MaximumSet_Gen.json | 0 ...sOperations_SkipAction_MinimumSet_Gen.json | 0 ...Operations_StartDevBox_MaximumSet_Gen.json | 0 ...Operations_StartDevBox_MinimumSet_Gen.json | 0 ...sOperations_StopDevBox_MaximumSet_Gen.json | 0 ...sOperations_StopDevBox_MinimumSet_Gen.json | 0 ...rOperations_GetProject_MaximumSet_Gen.json | 0 ...rOperations_GetProject_MinimumSet_Gen.json | 0 ...perations_ListProjects_MaximumSet_Gen.json | 0 ...perations_ListProjects_MinimumSet_Gen.json | 0 ...ateOrUpdateEnvironment_MaximumSet_Gen.json | 0 ...ions_DeleteEnvironment_MaximumSet_Gen.json | 0 ...ions_DeleteEnvironment_MinimumSet_Gen.json | 0 ...sOperations_GetCatalog_MaximumSet_Gen.json | 0 ...sOperations_GetCatalog_MinimumSet_Gen.json | 0 ...tEnvironmentDefinition_MaximumSet_Gen.json | 0 ...tEnvironmentDefinition_MinimumSet_Gen.json | 0 ...rations_GetEnvironment_MaximumSet_Gen.json | 0 ...ns_ListAllEnvironments_MaximumSet_Gen.json | 0 ...perations_ListCatalogs_MaximumSet_Gen.json | 0 ...perations_ListCatalogs_MinimumSet_Gen.json | 0 ...ntDefinitionsByCatalog_MaximumSet_Gen.json | 0 ...ntDefinitionsByCatalog_MinimumSet_Gen.json | 0 ...EnvironmentDefinitions_MaximumSet_Gen.json | 0 ...EnvironmentDefinitions_MinimumSet_Gen.json | 0 ...s_ListEnvironmentTypes_MaximumSet_Gen.json | 0 ...s_ListEnvironmentTypes_MinimumSet_Gen.json | 0 ...tions_ListEnvironments_MaximumSet_Gen.json | 0 ...ProjectOperationStatus_MaximumSet_Gen.json | 0 ...ProjectOperationStatus_MinimumSet_Gen.json | 0 .../DevCenter/{devcenter => }/main.tsp | 5 +- 171 files changed, 3 insertions(+), 3371 deletions(-) delete mode 100644 specification/devcenter/DevCenter/devbox/main.tsp delete mode 100644 specification/devcenter/DevCenter/devbox/tspconfig.yaml delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/devcenter/tspconfig.yaml delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/environments/main.tsp delete mode 100644 specification/devcenter/DevCenter/environments/tspconfig.yaml rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json (100%) rename specification/devcenter/DevCenter/{devcenter => }/main.tsp (67%) diff --git a/specification/devcenter/DevCenter/devbox/main.tsp b/specification/devcenter/DevCenter/devbox/main.tsp deleted file mode 100644 index 5f87a9f6ce2e..000000000000 --- a/specification/devcenter/DevCenter/devbox/main.tsp +++ /dev/null @@ -1,12 +0,0 @@ -import "@typespec/rest"; -import "@typespec/http"; -import "@azure-tools/typespec-azure-core"; -import "../service.tsp"; -import "./routes.tsp"; - -using Azure.Core; -using TypeSpec.Versioning; -using TypeSpec.Rest; -using TypeSpec.Http; - -namespace DevCenterService; diff --git a/specification/devcenter/DevCenter/devbox/tspconfig.yaml b/specification/devcenter/DevCenter/devbox/tspconfig.yaml deleted file mode 100644 index 8ba6e3eff7c1..000000000000 --- a/specification/devcenter/DevCenter/devbox/tspconfig.yaml +++ /dev/null @@ -1,3 +0,0 @@ -emit: [ - "@azure-tools/typespec-autorest", -] diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json deleted file mode 100644 index 285a487d25cd..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "title": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", - "parameters": { - "api-version": "2023-04-01", - "filter": "lwxbqggfq", - "top": 24, - "userId": "nraaavrpkhjpxzrxjcbumcv" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json deleted file mode 100644 index 010a3f51a1a3..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "title": "DevBoxesDevCenterOperations_ListAllDevBoxes", - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", - "parameters": { - "api-version": "2023-04-01", - "filter": "xwnjamlegrgktjkw", - "top": 6 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json deleted file mode 100644 index c469b064bb57..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "title": "DevBoxesOperations_CreateDevBox", - "operationId": "DevBoxesOperations_CreateDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "hc", - "userId": "zrxzbpxvikzzuxzlgrbqhlt", - "devBoxName": "ojaxfdr", - "devBox": { - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2" - }, - "storageProfile": { - "osDisk": {} - }, - "imageReference": {}, - "localAdministrator": "Enabled" - } - }, - "responses": { - "200": { - "body": { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - }, - "201": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json deleted file mode 100644 index 3a1bf22fbbd3..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "title": "DevBoxesOperations_DelayAction", - "operationId": "DevBoxesOperations_DelayAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "oq", - "userId": "v", - "devBoxName": "ouhgpydruwdplpfhedd", - "actionName": "tmyli", - "until": "2024-01-24T14:27:28.195Z" - }, - "responses": { - "200": { - "body": { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd", - "suspendedUntil": "2024-01-24T14:27:27.382Z", - "next": { - "scheduledTime": "2024-01-24T14:27:27.382Z" - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json deleted file mode 100644 index 036bb450e403..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "DevBoxesOperations_DelayAction", - "operationId": "DevBoxesOperations_DelayAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "aricsncjmlgemlyvhlxdrchusx", - "userId": "gyguohehwnwjxjg", - "devBoxName": "ybcer", - "actionName": "komblvwlzban", - "until": "2024-01-24T14:27:28.333Z" - }, - "responses": { - "200": { - "body": { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json deleted file mode 100644 index 0198e8bf730f..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "title": "DevBoxesOperations_DelayAllActions", - "operationId": "DevBoxesOperations_DelayAllActions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "qljcioth", - "userId": "tovvhjfwaeuwq", - "devBoxName": "gktlrtlopnpnji", - "until": "2024-01-24T14:27:28.460Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "stbeqwwkldoeahbpcknencysat", - "result": "Succeeded", - "action": { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd", - "suspendedUntil": "2024-01-24T14:27:27.382Z", - "next": { - "scheduledTime": "2024-01-24T14:27:27.382Z" - } - }, - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json deleted file mode 100644 index 34b9a1ee37d1..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "DevBoxesOperations_DelayAllActions", - "operationId": "DevBoxesOperations_DelayAllActions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "xdhidzhdd", - "userId": "sqvhdjkwo", - "devBoxName": "lkihxrrkkwacvwarjntollzvbsfkp", - "until": "2024-01-24T14:27:28.607Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "stbeqwwkldoeahbpcknencysat", - "result": "Succeeded" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json deleted file mode 100644 index 811e287b2e1b..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "DevBoxesOperations_DeleteDevBox", - "operationId": "DevBoxesOperations_DeleteDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "rzmjqdstyynlyrqyydh", - "userId": "pjafwzsacbpapssdhefh", - "devBoxName": "zjquymtrawqtmbga" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - }, - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json deleted file mode 100644 index bae4018e44aa..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "DevBoxesOperations_DeleteDevBox", - "operationId": "DevBoxesOperations_DeleteDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "cq", - "userId": "wjyrowpimnkxfcvnmmi", - "devBoxName": "syrqzpjlgmhvo" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "status": "Running" - } - }, - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json deleted file mode 100644 index acb97113ef7e..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": "DevBoxesOperations_GetDevBoxAction", - "operationId": "DevBoxesOperations_GetDevBoxAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "glxljthnrhpuelubrbojrbjkpwmzmw", - "userId": "osplrrvvaqvfjuoscgemlbushww", - "devBoxName": "xyroziipagygloi", - "actionName": "qsxyptia" - }, - "responses": { - "200": { - "body": { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd", - "suspendedUntil": "2024-01-24T14:27:27.382Z", - "next": { - "scheduledTime": "2024-01-24T14:27:27.382Z" - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json deleted file mode 100644 index 6760b2dd19f7..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "DevBoxesOperations_GetDevBoxAction", - "operationId": "DevBoxesOperations_GetDevBoxAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "alrkctrxkqjap", - "userId": "gvkhxoguxnwiuuhcyfjaqzcvvt", - "devBoxName": "lgrnrwossujasciahkws", - "actionName": "if" - }, - "responses": { - "200": { - "body": { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json deleted file mode 100644 index 0821e899382b..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "title": "DevBoxesOperations_GetDevBox", - "operationId": "DevBoxesOperations_GetDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "tkpwuk", - "userId": "zmfdwcgdqya", - "devBoxName": "jbqeq" - }, - "responses": { - "200": { - "body": { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json deleted file mode 100644 index adaf69e0ed9f..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "title": "DevBoxesOperations_GetPool", - "operationId": "DevBoxesOperations_GetPool", - "parameters": { - "api-version": "2023-04-01", - "projectName": "qsjqcxtvznybixgmsxxhvwuxgmfru", - "poolName": "pxxkktwzmfwwoa" - }, - "responses": { - "200": { - "body": { - "name": "peoaccqvxjgwhwrn", - "location": "lcmcoqs", - "osType": "Windows", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "hibernateSupport": "Enabled", - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 3 - }, - "healthStatus": "Unknown" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json deleted file mode 100644 index d61cd338a0ce..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "title": "DevBoxesOperations_GetPool", - "operationId": "DevBoxesOperations_GetPool", - "parameters": { - "api-version": "2023-04-01", - "projectName": "vfhixpfkprhaxnilvakjnbrtw", - "poolName": "q" - }, - "responses": { - "200": { - "body": { - "name": "peoaccqvxjgwhwrn", - "location": "lcmcoqs", - "healthStatus": "Unknown" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json deleted file mode 100644 index 19d78eee0047..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "title": "DevBoxesOperations_GetRemoteConnection", - "operationId": "DevBoxesOperations_GetRemoteConnection", - "parameters": { - "api-version": "2023-04-01", - "projectName": "xuvmn", - "userId": "umvxujnlzpmf", - "devBoxName": "nxuhbdxatqpgw" - }, - "responses": { - "200": { - "body": { - "webUrl": "https://microsoft.com/a", - "rdpConnectionUrl": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json deleted file mode 100644 index 7fa2761a8f3d..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "title": "DevBoxesOperations_GetRemoteConnection", - "operationId": "DevBoxesOperations_GetRemoteConnection", - "parameters": { - "api-version": "2023-04-01", - "projectName": "hwrxgjhgwxvhmpvmwxha", - "userId": "grqeayztkjyzrkoabmniccl", - "devBoxName": "lhnkqhutcz" - }, - "responses": { - "200": { - "body": {} - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json deleted file mode 100644 index 38014eff0993..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "DevBoxesOperations_GetSchedule", - "operationId": "DevBoxesOperations_GetSchedule", - "parameters": { - "api-version": "2023-04-01", - "projectName": "gnzaegjvirufpsa", - "poolName": "uscquok", - "scheduleName": "eamfzjecviossmyccklwr" - }, - "responses": { - "200": { - "body": { - "name": "dttuou", - "type": "StopDevBox", - "frequency": "Daily", - "time": "nxohypdpsxuox", - "timeZone": "gjbehvuedwxxoavcdjn" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json deleted file mode 100644 index 2458a0d89678..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "title": "DevBoxesOperations_ListDevBoxActions", - "operationId": "DevBoxesOperations_ListDevBoxActions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "bcoglkxasdazbhsthyntrt", - "userId": "zsjgkzhvcbb", - "devBoxName": "udackwcvhnoxzukxykmhpove" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd", - "suspendedUntil": "2024-01-24T14:27:27.382Z", - "next": { - "scheduledTime": "2024-01-24T14:27:27.382Z" - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json deleted file mode 100644 index 3cc8ea208c68..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "DevBoxesOperations_ListDevBoxActions", - "operationId": "DevBoxesOperations_ListDevBoxActions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "rwaswcxshhpbuvdch", - "userId": "bgrmovzdiriizgvklduy", - "devBoxName": "xlpbvuhrkejxpjumbq" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json deleted file mode 100644 index d908f24ec700..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "title": "DevBoxesOperations_ListDevBoxes", - "operationId": "DevBoxesOperations_ListDevBoxes", - "parameters": { - "api-version": "2023-04-01", - "projectName": "lrjfpaknnbligycnycagqaty", - "userId": "iadgmrsmzltydlacort", - "filter": "frmetpxpuutc", - "top": 24 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json deleted file mode 100644 index cfd1ab64556f..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "title": "DevBoxesOperations_ListPools", - "operationId": "DevBoxesOperations_ListPools", - "parameters": { - "api-version": "2023-04-01", - "projectName": "pxvuaxhadlodudyhfykoe", - "filter": "alduppbkg", - "top": 19 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "peoaccqvxjgwhwrn", - "location": "lcmcoqs", - "osType": "Windows", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "hibernateSupport": "Enabled", - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 3 - }, - "healthStatus": "Unknown" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json deleted file mode 100644 index e126aed391a6..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "DevBoxesOperations_ListPools", - "operationId": "DevBoxesOperations_ListPools", - "parameters": { - "api-version": "2023-04-01", - "projectName": "ovbxdmmgpmmaft" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "peoaccqvxjgwhwrn", - "location": "lcmcoqs", - "healthStatus": "Unknown" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json deleted file mode 100644 index 1cc8b087e3f7..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "DevBoxesOperations_ListSchedules", - "operationId": "DevBoxesOperations_ListSchedules", - "parameters": { - "api-version": "2023-04-01", - "projectName": "lbzswonmsyglifwwgkz", - "poolName": "yndlcsuaqjtvaht", - "filter": "mgvmdfcaozmzoca", - "top": 7 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "dttuou", - "type": "StopDevBox", - "frequency": "Daily", - "time": "nxohypdpsxuox", - "timeZone": "gjbehvuedwxxoavcdjn" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json deleted file mode 100644 index 979b2c130b8c..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "DevBoxesOperations_RestartDevBox", - "operationId": "DevBoxesOperations_RestartDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "jnetbetrcvennkzmgksdypcuckcop", - "userId": "byrgeflxmycdavj", - "devBoxName": "irpblyyaeknrggnduws" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json deleted file mode 100644 index d4250477fe29..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "DevBoxesOperations_RestartDevBox", - "operationId": "DevBoxesOperations_RestartDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "jjm", - "userId": "sddbzmndqdeyllhgdavgqrnhinqdo", - "devBoxName": "shlzdvyiswk" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "status": "Running" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json deleted file mode 100644 index 06ae68fc5aeb..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "title": "DevBoxesOperations_SkipAction", - "operationId": "DevBoxesOperations_SkipAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "prkbxhmgkmfc", - "userId": "lzqciljtgzvswsyatkc", - "devBoxName": "kale", - "actionName": "khnoyfp" - }, - "responses": { - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json deleted file mode 100644 index e8c4a580f960..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "title": "DevBoxesOperations_SkipAction", - "operationId": "DevBoxesOperations_SkipAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "wgzgfignbm", - "userId": "i", - "devBoxName": "jqxvgkkrbdctycukptzcov", - "actionName": "fsrpxqrqbdoohqqfpp" - }, - "responses": { - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json deleted file mode 100644 index 739000182051..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "DevBoxesOperations_StartDevBox", - "operationId": "DevBoxesOperations_StartDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "or", - "userId": "yvrgabsfgrwevlnakythltag", - "devBoxName": "tjeptwsraihssxiamr" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json deleted file mode 100644 index 519518be31a5..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "DevBoxesOperations_StartDevBox", - "operationId": "DevBoxesOperations_StartDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "ygt", - "userId": "gaiudhfnzqhxdjjnlwopwjhs", - "devBoxName": "urwps" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "status": "Running" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json deleted file mode 100644 index 59fb1198abd7..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "DevBoxesOperations_StopDevBox", - "operationId": "DevBoxesOperations_StopDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "tlxqhsgz", - "userId": "cxwsxwnrfmouyegvpv", - "devBoxName": "psesagmgxyg", - "hibernate": true - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json deleted file mode 100644 index ac808f769d2c..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "DevBoxesOperations_StopDevBox", - "operationId": "DevBoxesOperations_StopDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "mz", - "userId": "nqqukcsjqbyumxeipcgbpex", - "devBoxName": "gbdfetswc" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "status": "Running" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json deleted file mode 100644 index 1975d6f8c90d..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "title": "DevCenterOperations_GetProject", - "operationId": "DevCenterOperations_GetProject", - "parameters": { - "api-version": "2023-04-01", - "projectName": "pnyio" - }, - "responses": { - "200": { - "body": { - "name": "upkhozglybnjxyddpkhxbas", - "description": "itwwzmjfhyeef", - "maxDevBoxesPerUser": 0 - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json deleted file mode 100644 index bfe5d7cb2682..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "title": "DevCenterOperations_GetProject", - "operationId": "DevCenterOperations_GetProject", - "parameters": { - "api-version": "2023-04-01", - "projectName": "gvbfvh" - }, - "responses": { - "200": { - "body": { - "name": "upkhozglybnjxyddpkhxbas" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json deleted file mode 100644 index 2b65e5f7f22b..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "DevCenterOperations_ListProjects", - "operationId": "DevCenterOperations_ListProjects", - "parameters": { - "api-version": "2023-04-01", - "filter": "sehyutainefiv", - "top": 20 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "upkhozglybnjxyddpkhxbas", - "description": "itwwzmjfhyeef", - "maxDevBoxesPerUser": 0 - } - ], - "nextLink": "https://microsoft.com/aadyfglw" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json deleted file mode 100644 index eb97a861f0eb..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "title": "DevCenterOperations_ListProjects", - "operationId": "DevCenterOperations_ListProjects", - "parameters": { - "api-version": "2023-04-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "upkhozglybnjxyddpkhxbas" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json deleted file mode 100644 index 94798a9ed07c..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "title": "EnvironmentsOperations_CreateOrUpdateEnvironment", - "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "dddcoym", - "userId": "omhhasnvdzwrcgxdplbtjfdqey", - "environmentName": "zbrq", - "body": { - "parameters": "cGFyYW1ldGVyczE=", - "environmentType": "dofjlkatvtgyrrptdceh", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "provisioningState": "Succeeded", - "catalogName": "kooctlekexoqxtab", - "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - }, - "responses": { - "201": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "parameters": "cGFyYW1ldGVyczE=", - "name": "tssazaenxcdufd", - "environmentType": "dofjlkatvtgyrrptdceh", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "provisioningState": "Succeeded", - "resourceGroupId": "ndkhtkjjllouauuaroljtn", - "catalogName": "kooctlekexoqxtab", - "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json deleted file mode 100644 index 54519b456477..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "EnvironmentsOperations_DeleteEnvironment", - "operationId": "EnvironmentsOperations_DeleteEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "jc", - "userId": "amg", - "environmentName": "hvolzcqeznjuyhtostvwgprwh" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - }, - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json deleted file mode 100644 index 00b0f00a133b..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "EnvironmentsOperations_DeleteEnvironment", - "operationId": "EnvironmentsOperations_DeleteEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "imtrysrbaujriznz", - "userId": "jqznoedlggzpbhrtbjrymbery", - "environmentName": "vcnzrsiodxomqt" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "status": "Running" - } - }, - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json deleted file mode 100644 index 2a6a49fbea9d..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "title": "EnvironmentsOperations_GetCatalog", - "operationId": "EnvironmentsOperations_GetCatalog", - "parameters": { - "api-version": "2023-04-01", - "projectName": "rwg", - "catalogName": "mdaw" - }, - "responses": { - "200": { - "body": { - "name": "wpssttjdkaodnmrbs" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json deleted file mode 100644 index ccd23fcde480..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "title": "EnvironmentsOperations_GetCatalog", - "operationId": "EnvironmentsOperations_GetCatalog", - "parameters": { - "api-version": "2023-04-01", - "projectName": "mlsidvtzl", - "catalogName": "apucizvbayht" - }, - "responses": { - "200": { - "body": { - "name": "wpssttjdkaodnmrbs" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json deleted file mode 100644 index dc0c4f3ef725..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "EnvironmentsOperations_GetEnvironmentDefinition", - "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", - "parameters": { - "api-version": "2023-04-01", - "projectName": "aimcuhzcmyceybzenjdbhcvdfne", - "catalogName": "jxt", - "definitionName": "lww" - }, - "responses": { - "200": { - "body": { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy", - "description": "bfhukdbxvyqapnchejratrnuqralk", - "parameters": [ - { - "id": "baygybdvioqyauqaxh", - "name": "mprqzpvacjerkbaabzcbfnf", - "description": "lfggsbhzlzrhvwwhkrcscl", - "default": "ZGVmYXVsdDE=", - "type": "array", - "readOnly": true, - "required": true, - "allowed": [ - "vnaaovhotcxdhbadmzxvmh" - ] - } - ], - "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", - "templatePath": "ilkmsnsam" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json deleted file mode 100644 index 4fabb6230b6b..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title": "EnvironmentsOperations_GetEnvironmentDefinition", - "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", - "parameters": { - "api-version": "2023-04-01", - "projectName": "hqdnkvpdnykkodecirwibwn", - "catalogName": "abjumflcacbkwdnhjsyduha", - "definitionName": "nlonaypdiiotuksvrlp" - }, - "responses": { - "200": { - "body": { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json deleted file mode 100644 index 4fd1d206a1fd..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "title": "EnvironmentsOperations_GetEnvironment", - "operationId": "EnvironmentsOperations_GetEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "kmknuheslpawpzcopvlmgqsxyx", - "userId": "kejihmuayj", - "environmentName": "mpenqcgrgwhgzlkobom" - }, - "responses": { - "200": { - "body": { - "parameters": "cGFyYW1ldGVyczE=", - "name": "tssazaenxcdufd", - "environmentType": "dofjlkatvtgyrrptdceh", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "provisioningState": "Succeeded", - "resourceGroupId": "ndkhtkjjllouauuaroljtn", - "catalogName": "kooctlekexoqxtab", - "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json deleted file mode 100644 index 4ec626766ffc..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListAllEnvironments", - "operationId": "EnvironmentsOperations_ListAllEnvironments", - "parameters": { - "api-version": "2023-04-01", - "projectName": "dkaownnoxfirsnmw", - "top": 19 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "parameters": "cGFyYW1ldGVyczE=", - "name": "tssazaenxcdufd", - "environmentType": "dofjlkatvtgyrrptdceh", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "provisioningState": "Succeeded", - "resourceGroupId": "ndkhtkjjllouauuaroljtn", - "catalogName": "kooctlekexoqxtab", - "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json deleted file mode 100644 index 2462fae0f6c6..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListCatalogs", - "operationId": "EnvironmentsOperations_ListCatalogs", - "parameters": { - "api-version": "2023-04-01", - "projectName": "zqzzqennymohasyvlxgzsklapbuv", - "top": 27 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "wpssttjdkaodnmrbs" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json deleted file mode 100644 index a59043903c95..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListCatalogs", - "operationId": "EnvironmentsOperations_ListCatalogs", - "parameters": { - "api-version": "2023-04-01", - "projectName": "bpmjift" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "wpssttjdkaodnmrbs" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json deleted file mode 100644 index 6a74a680a4fd..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", - "parameters": { - "api-version": "2023-04-01", - "projectName": "ujswiqdpxjwxhknbdlpkbtawuvgzab", - "catalogName": "ajstpidghbelakwpuaskglsophuald", - "top": 14 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy", - "description": "bfhukdbxvyqapnchejratrnuqralk", - "parameters": [ - { - "id": "baygybdvioqyauqaxh", - "name": "mprqzpvacjerkbaabzcbfnf", - "description": "lfggsbhzlzrhvwwhkrcscl", - "default": "ZGVmYXVsdDE=", - "type": "array", - "readOnly": true, - "required": true, - "allowed": [ - "vnaaovhotcxdhbadmzxvmh" - ] - } - ], - "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", - "templatePath": "ilkmsnsam" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json deleted file mode 100644 index 891e3e207bd0..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", - "parameters": { - "api-version": "2023-04-01", - "projectName": "gmxmkiz", - "catalogName": "szzvqfguguxzhho" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json deleted file mode 100644 index 09c47e656419..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironmentDefinitions", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "uicdwcwgtnyrr", - "top": 18 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy", - "description": "bfhukdbxvyqapnchejratrnuqralk", - "parameters": [ - { - "id": "baygybdvioqyauqaxh", - "name": "mprqzpvacjerkbaabzcbfnf", - "description": "lfggsbhzlzrhvwwhkrcscl", - "default": "ZGVmYXVsdDE=", - "type": "array", - "readOnly": true, - "required": true, - "allowed": [ - "vnaaovhotcxdhbadmzxvmh" - ] - } - ], - "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", - "templatePath": "ilkmsnsam" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json deleted file mode 100644 index 017a1b156745..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironmentDefinitions", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "csvkkdyyunzdutzznramubczme" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json deleted file mode 100644 index ace73969a3c1..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironmentTypes", - "operationId": "EnvironmentsOperations_ListEnvironmentTypes", - "parameters": { - "api-version": "2023-04-01", - "projectName": "tzbpnr", - "top": 13 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "phpzcqpagfzuakwmfwtn", - "deploymentTargetId": "zuzmfjtjrfkooo", - "status": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json deleted file mode 100644 index 0222aa9fcaf5..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironmentTypes", - "operationId": "EnvironmentsOperations_ListEnvironmentTypes", - "parameters": { - "api-version": "2023-04-01", - "projectName": "yuajufwggbewbpaulopx" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "phpzcqpagfzuakwmfwtn", - "deploymentTargetId": "zuzmfjtjrfkooo", - "status": "Enabled" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json deleted file mode 100644 index 63d1ba5c2995..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironments", - "operationId": "EnvironmentsOperations_ListEnvironments", - "parameters": { - "api-version": "2023-04-01", - "projectName": "um", - "userId": "qxxrsqhxchkms", - "top": 6 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "parameters": "cGFyYW1ldGVyczE=", - "name": "tssazaenxcdufd", - "environmentType": "dofjlkatvtgyrrptdceh", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "provisioningState": "Succeeded", - "resourceGroupId": "ndkhtkjjllouauuaroljtn", - "catalogName": "kooctlekexoqxtab", - "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json deleted file mode 100644 index 9528291cc413..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "title": "SharedOperations_GetProjectOperationStatus", - "operationId": "SharedOperations_GetProjectOperationStatus", - "parameters": { - "api-version": "2023-04-01", - "projectName": "yjpezkb", - "operationId": "qfdfglfmalixtemza" - }, - "responses": { - "200": { - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json b/specification/devcenter/DevCenter/devcenter/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json deleted file mode 100644 index 91133f491634..000000000000 --- a/specification/devcenter/DevCenter/devcenter/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "title": "SharedOperations_GetProjectOperationStatus", - "operationId": "SharedOperations_GetProjectOperationStatus", - "parameters": { - "api-version": "2023-04-01", - "projectName": "aakrmvajwvn", - "operationId": "jutxyjwvvdbnsbjgufr" - }, - "responses": { - "200": { - "body": { - "status": "Running" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/devcenter/tspconfig.yaml b/specification/devcenter/DevCenter/devcenter/tspconfig.yaml deleted file mode 100644 index 8ba6e3eff7c1..000000000000 --- a/specification/devcenter/DevCenter/devcenter/tspconfig.yaml +++ /dev/null @@ -1,3 +0,0 @@ -emit: [ - "@azure-tools/typespec-autorest", -] diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json deleted file mode 100644 index 285a487d25cd..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "title": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", - "parameters": { - "api-version": "2023-04-01", - "filter": "lwxbqggfq", - "top": 24, - "userId": "nraaavrpkhjpxzrxjcbumcv" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json deleted file mode 100644 index 010a3f51a1a3..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "title": "DevBoxesDevCenterOperations_ListAllDevBoxes", - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", - "parameters": { - "api-version": "2023-04-01", - "filter": "xwnjamlegrgktjkw", - "top": 6 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json deleted file mode 100644 index c469b064bb57..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "title": "DevBoxesOperations_CreateDevBox", - "operationId": "DevBoxesOperations_CreateDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "hc", - "userId": "zrxzbpxvikzzuxzlgrbqhlt", - "devBoxName": "ojaxfdr", - "devBox": { - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2" - }, - "storageProfile": { - "osDisk": {} - }, - "imageReference": {}, - "localAdministrator": "Enabled" - } - }, - "responses": { - "200": { - "body": { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - }, - "201": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json deleted file mode 100644 index 3a1bf22fbbd3..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "title": "DevBoxesOperations_DelayAction", - "operationId": "DevBoxesOperations_DelayAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "oq", - "userId": "v", - "devBoxName": "ouhgpydruwdplpfhedd", - "actionName": "tmyli", - "until": "2024-01-24T14:27:28.195Z" - }, - "responses": { - "200": { - "body": { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd", - "suspendedUntil": "2024-01-24T14:27:27.382Z", - "next": { - "scheduledTime": "2024-01-24T14:27:27.382Z" - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json deleted file mode 100644 index 036bb450e403..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "DevBoxesOperations_DelayAction", - "operationId": "DevBoxesOperations_DelayAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "aricsncjmlgemlyvhlxdrchusx", - "userId": "gyguohehwnwjxjg", - "devBoxName": "ybcer", - "actionName": "komblvwlzban", - "until": "2024-01-24T14:27:28.333Z" - }, - "responses": { - "200": { - "body": { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json deleted file mode 100644 index 0198e8bf730f..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "title": "DevBoxesOperations_DelayAllActions", - "operationId": "DevBoxesOperations_DelayAllActions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "qljcioth", - "userId": "tovvhjfwaeuwq", - "devBoxName": "gktlrtlopnpnji", - "until": "2024-01-24T14:27:28.460Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "stbeqwwkldoeahbpcknencysat", - "result": "Succeeded", - "action": { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd", - "suspendedUntil": "2024-01-24T14:27:27.382Z", - "next": { - "scheduledTime": "2024-01-24T14:27:27.382Z" - } - }, - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json deleted file mode 100644 index 34b9a1ee37d1..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "DevBoxesOperations_DelayAllActions", - "operationId": "DevBoxesOperations_DelayAllActions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "xdhidzhdd", - "userId": "sqvhdjkwo", - "devBoxName": "lkihxrrkkwacvwarjntollzvbsfkp", - "until": "2024-01-24T14:27:28.607Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "stbeqwwkldoeahbpcknencysat", - "result": "Succeeded" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json deleted file mode 100644 index 811e287b2e1b..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "DevBoxesOperations_DeleteDevBox", - "operationId": "DevBoxesOperations_DeleteDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "rzmjqdstyynlyrqyydh", - "userId": "pjafwzsacbpapssdhefh", - "devBoxName": "zjquymtrawqtmbga" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - }, - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json deleted file mode 100644 index bae4018e44aa..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "DevBoxesOperations_DeleteDevBox", - "operationId": "DevBoxesOperations_DeleteDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "cq", - "userId": "wjyrowpimnkxfcvnmmi", - "devBoxName": "syrqzpjlgmhvo" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "status": "Running" - } - }, - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json deleted file mode 100644 index acb97113ef7e..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": "DevBoxesOperations_GetDevBoxAction", - "operationId": "DevBoxesOperations_GetDevBoxAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "glxljthnrhpuelubrbojrbjkpwmzmw", - "userId": "osplrrvvaqvfjuoscgemlbushww", - "devBoxName": "xyroziipagygloi", - "actionName": "qsxyptia" - }, - "responses": { - "200": { - "body": { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd", - "suspendedUntil": "2024-01-24T14:27:27.382Z", - "next": { - "scheduledTime": "2024-01-24T14:27:27.382Z" - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json deleted file mode 100644 index 6760b2dd19f7..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "DevBoxesOperations_GetDevBoxAction", - "operationId": "DevBoxesOperations_GetDevBoxAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "alrkctrxkqjap", - "userId": "gvkhxoguxnwiuuhcyfjaqzcvvt", - "devBoxName": "lgrnrwossujasciahkws", - "actionName": "if" - }, - "responses": { - "200": { - "body": { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json deleted file mode 100644 index 0821e899382b..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "title": "DevBoxesOperations_GetDevBox", - "operationId": "DevBoxesOperations_GetDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "tkpwuk", - "userId": "zmfdwcgdqya", - "devBoxName": "jbqeq" - }, - "responses": { - "200": { - "body": { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json deleted file mode 100644 index adaf69e0ed9f..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "title": "DevBoxesOperations_GetPool", - "operationId": "DevBoxesOperations_GetPool", - "parameters": { - "api-version": "2023-04-01", - "projectName": "qsjqcxtvznybixgmsxxhvwuxgmfru", - "poolName": "pxxkktwzmfwwoa" - }, - "responses": { - "200": { - "body": { - "name": "peoaccqvxjgwhwrn", - "location": "lcmcoqs", - "osType": "Windows", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "hibernateSupport": "Enabled", - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 3 - }, - "healthStatus": "Unknown" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json deleted file mode 100644 index d61cd338a0ce..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "title": "DevBoxesOperations_GetPool", - "operationId": "DevBoxesOperations_GetPool", - "parameters": { - "api-version": "2023-04-01", - "projectName": "vfhixpfkprhaxnilvakjnbrtw", - "poolName": "q" - }, - "responses": { - "200": { - "body": { - "name": "peoaccqvxjgwhwrn", - "location": "lcmcoqs", - "healthStatus": "Unknown" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json deleted file mode 100644 index 19d78eee0047..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "title": "DevBoxesOperations_GetRemoteConnection", - "operationId": "DevBoxesOperations_GetRemoteConnection", - "parameters": { - "api-version": "2023-04-01", - "projectName": "xuvmn", - "userId": "umvxujnlzpmf", - "devBoxName": "nxuhbdxatqpgw" - }, - "responses": { - "200": { - "body": { - "webUrl": "https://microsoft.com/a", - "rdpConnectionUrl": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json deleted file mode 100644 index 7fa2761a8f3d..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "title": "DevBoxesOperations_GetRemoteConnection", - "operationId": "DevBoxesOperations_GetRemoteConnection", - "parameters": { - "api-version": "2023-04-01", - "projectName": "hwrxgjhgwxvhmpvmwxha", - "userId": "grqeayztkjyzrkoabmniccl", - "devBoxName": "lhnkqhutcz" - }, - "responses": { - "200": { - "body": {} - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json deleted file mode 100644 index 38014eff0993..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "DevBoxesOperations_GetSchedule", - "operationId": "DevBoxesOperations_GetSchedule", - "parameters": { - "api-version": "2023-04-01", - "projectName": "gnzaegjvirufpsa", - "poolName": "uscquok", - "scheduleName": "eamfzjecviossmyccklwr" - }, - "responses": { - "200": { - "body": { - "name": "dttuou", - "type": "StopDevBox", - "frequency": "Daily", - "time": "nxohypdpsxuox", - "timeZone": "gjbehvuedwxxoavcdjn" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json deleted file mode 100644 index 2458a0d89678..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "title": "DevBoxesOperations_ListDevBoxActions", - "operationId": "DevBoxesOperations_ListDevBoxActions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "bcoglkxasdazbhsthyntrt", - "userId": "zsjgkzhvcbb", - "devBoxName": "udackwcvhnoxzukxykmhpove" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd", - "suspendedUntil": "2024-01-24T14:27:27.382Z", - "next": { - "scheduledTime": "2024-01-24T14:27:27.382Z" - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json deleted file mode 100644 index 3cc8ea208c68..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "DevBoxesOperations_ListDevBoxActions", - "operationId": "DevBoxesOperations_ListDevBoxActions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "rwaswcxshhpbuvdch", - "userId": "bgrmovzdiriizgvklduy", - "devBoxName": "xlpbvuhrkejxpjumbq" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json deleted file mode 100644 index d908f24ec700..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "title": "DevBoxesOperations_ListDevBoxes", - "operationId": "DevBoxesOperations_ListDevBoxes", - "parameters": { - "api-version": "2023-04-01", - "projectName": "lrjfpaknnbligycnycagqaty", - "userId": "iadgmrsmzltydlacort", - "filter": "frmetpxpuutc", - "top": 24 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json deleted file mode 100644 index cfd1ab64556f..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "title": "DevBoxesOperations_ListPools", - "operationId": "DevBoxesOperations_ListPools", - "parameters": { - "api-version": "2023-04-01", - "projectName": "pxvuaxhadlodudyhfykoe", - "filter": "alduppbkg", - "top": 19 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "peoaccqvxjgwhwrn", - "location": "lcmcoqs", - "osType": "Windows", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "hibernateSupport": "Enabled", - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 3 - }, - "healthStatus": "Unknown" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json deleted file mode 100644 index e126aed391a6..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "DevBoxesOperations_ListPools", - "operationId": "DevBoxesOperations_ListPools", - "parameters": { - "api-version": "2023-04-01", - "projectName": "ovbxdmmgpmmaft" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "peoaccqvxjgwhwrn", - "location": "lcmcoqs", - "healthStatus": "Unknown" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json deleted file mode 100644 index 1cc8b087e3f7..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "DevBoxesOperations_ListSchedules", - "operationId": "DevBoxesOperations_ListSchedules", - "parameters": { - "api-version": "2023-04-01", - "projectName": "lbzswonmsyglifwwgkz", - "poolName": "yndlcsuaqjtvaht", - "filter": "mgvmdfcaozmzoca", - "top": 7 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "dttuou", - "type": "StopDevBox", - "frequency": "Daily", - "time": "nxohypdpsxuox", - "timeZone": "gjbehvuedwxxoavcdjn" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json deleted file mode 100644 index 979b2c130b8c..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "DevBoxesOperations_RestartDevBox", - "operationId": "DevBoxesOperations_RestartDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "jnetbetrcvennkzmgksdypcuckcop", - "userId": "byrgeflxmycdavj", - "devBoxName": "irpblyyaeknrggnduws" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json deleted file mode 100644 index d4250477fe29..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "DevBoxesOperations_RestartDevBox", - "operationId": "DevBoxesOperations_RestartDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "jjm", - "userId": "sddbzmndqdeyllhgdavgqrnhinqdo", - "devBoxName": "shlzdvyiswk" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "status": "Running" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json deleted file mode 100644 index 06ae68fc5aeb..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "title": "DevBoxesOperations_SkipAction", - "operationId": "DevBoxesOperations_SkipAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "prkbxhmgkmfc", - "userId": "lzqciljtgzvswsyatkc", - "devBoxName": "kale", - "actionName": "khnoyfp" - }, - "responses": { - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json deleted file mode 100644 index e8c4a580f960..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "title": "DevBoxesOperations_SkipAction", - "operationId": "DevBoxesOperations_SkipAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "wgzgfignbm", - "userId": "i", - "devBoxName": "jqxvgkkrbdctycukptzcov", - "actionName": "fsrpxqrqbdoohqqfpp" - }, - "responses": { - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json deleted file mode 100644 index 739000182051..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "DevBoxesOperations_StartDevBox", - "operationId": "DevBoxesOperations_StartDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "or", - "userId": "yvrgabsfgrwevlnakythltag", - "devBoxName": "tjeptwsraihssxiamr" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json deleted file mode 100644 index 519518be31a5..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "DevBoxesOperations_StartDevBox", - "operationId": "DevBoxesOperations_StartDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "ygt", - "userId": "gaiudhfnzqhxdjjnlwopwjhs", - "devBoxName": "urwps" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "status": "Running" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json deleted file mode 100644 index 59fb1198abd7..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "DevBoxesOperations_StopDevBox", - "operationId": "DevBoxesOperations_StopDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "tlxqhsgz", - "userId": "cxwsxwnrfmouyegvpv", - "devBoxName": "psesagmgxyg", - "hibernate": true - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json deleted file mode 100644 index ac808f769d2c..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "DevBoxesOperations_StopDevBox", - "operationId": "DevBoxesOperations_StopDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "mz", - "userId": "nqqukcsjqbyumxeipcgbpex", - "devBoxName": "gbdfetswc" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "status": "Running" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json deleted file mode 100644 index 1975d6f8c90d..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "title": "DevCenterOperations_GetProject", - "operationId": "DevCenterOperations_GetProject", - "parameters": { - "api-version": "2023-04-01", - "projectName": "pnyio" - }, - "responses": { - "200": { - "body": { - "name": "upkhozglybnjxyddpkhxbas", - "description": "itwwzmjfhyeef", - "maxDevBoxesPerUser": 0 - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json deleted file mode 100644 index bfe5d7cb2682..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "title": "DevCenterOperations_GetProject", - "operationId": "DevCenterOperations_GetProject", - "parameters": { - "api-version": "2023-04-01", - "projectName": "gvbfvh" - }, - "responses": { - "200": { - "body": { - "name": "upkhozglybnjxyddpkhxbas" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json deleted file mode 100644 index 2b65e5f7f22b..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "DevCenterOperations_ListProjects", - "operationId": "DevCenterOperations_ListProjects", - "parameters": { - "api-version": "2023-04-01", - "filter": "sehyutainefiv", - "top": 20 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "upkhozglybnjxyddpkhxbas", - "description": "itwwzmjfhyeef", - "maxDevBoxesPerUser": 0 - } - ], - "nextLink": "https://microsoft.com/aadyfglw" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json deleted file mode 100644 index eb97a861f0eb..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "title": "DevCenterOperations_ListProjects", - "operationId": "DevCenterOperations_ListProjects", - "parameters": { - "api-version": "2023-04-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "upkhozglybnjxyddpkhxbas" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json deleted file mode 100644 index 94798a9ed07c..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "title": "EnvironmentsOperations_CreateOrUpdateEnvironment", - "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "dddcoym", - "userId": "omhhasnvdzwrcgxdplbtjfdqey", - "environmentName": "zbrq", - "body": { - "parameters": "cGFyYW1ldGVyczE=", - "environmentType": "dofjlkatvtgyrrptdceh", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "provisioningState": "Succeeded", - "catalogName": "kooctlekexoqxtab", - "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - }, - "responses": { - "201": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "parameters": "cGFyYW1ldGVyczE=", - "name": "tssazaenxcdufd", - "environmentType": "dofjlkatvtgyrrptdceh", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "provisioningState": "Succeeded", - "resourceGroupId": "ndkhtkjjllouauuaroljtn", - "catalogName": "kooctlekexoqxtab", - "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json deleted file mode 100644 index 54519b456477..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "EnvironmentsOperations_DeleteEnvironment", - "operationId": "EnvironmentsOperations_DeleteEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "jc", - "userId": "amg", - "environmentName": "hvolzcqeznjuyhtostvwgprwh" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - }, - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json deleted file mode 100644 index 00b0f00a133b..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "EnvironmentsOperations_DeleteEnvironment", - "operationId": "EnvironmentsOperations_DeleteEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "imtrysrbaujriznz", - "userId": "jqznoedlggzpbhrtbjrymbery", - "environmentName": "vcnzrsiodxomqt" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "status": "Running" - } - }, - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json deleted file mode 100644 index 2a6a49fbea9d..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "title": "EnvironmentsOperations_GetCatalog", - "operationId": "EnvironmentsOperations_GetCatalog", - "parameters": { - "api-version": "2023-04-01", - "projectName": "rwg", - "catalogName": "mdaw" - }, - "responses": { - "200": { - "body": { - "name": "wpssttjdkaodnmrbs" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json deleted file mode 100644 index ccd23fcde480..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "title": "EnvironmentsOperations_GetCatalog", - "operationId": "EnvironmentsOperations_GetCatalog", - "parameters": { - "api-version": "2023-04-01", - "projectName": "mlsidvtzl", - "catalogName": "apucizvbayht" - }, - "responses": { - "200": { - "body": { - "name": "wpssttjdkaodnmrbs" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json deleted file mode 100644 index dc0c4f3ef725..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "EnvironmentsOperations_GetEnvironmentDefinition", - "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", - "parameters": { - "api-version": "2023-04-01", - "projectName": "aimcuhzcmyceybzenjdbhcvdfne", - "catalogName": "jxt", - "definitionName": "lww" - }, - "responses": { - "200": { - "body": { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy", - "description": "bfhukdbxvyqapnchejratrnuqralk", - "parameters": [ - { - "id": "baygybdvioqyauqaxh", - "name": "mprqzpvacjerkbaabzcbfnf", - "description": "lfggsbhzlzrhvwwhkrcscl", - "default": "ZGVmYXVsdDE=", - "type": "array", - "readOnly": true, - "required": true, - "allowed": [ - "vnaaovhotcxdhbadmzxvmh" - ] - } - ], - "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", - "templatePath": "ilkmsnsam" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json deleted file mode 100644 index 4fabb6230b6b..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title": "EnvironmentsOperations_GetEnvironmentDefinition", - "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", - "parameters": { - "api-version": "2023-04-01", - "projectName": "hqdnkvpdnykkodecirwibwn", - "catalogName": "abjumflcacbkwdnhjsyduha", - "definitionName": "nlonaypdiiotuksvrlp" - }, - "responses": { - "200": { - "body": { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json deleted file mode 100644 index 4fd1d206a1fd..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "title": "EnvironmentsOperations_GetEnvironment", - "operationId": "EnvironmentsOperations_GetEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "kmknuheslpawpzcopvlmgqsxyx", - "userId": "kejihmuayj", - "environmentName": "mpenqcgrgwhgzlkobom" - }, - "responses": { - "200": { - "body": { - "parameters": "cGFyYW1ldGVyczE=", - "name": "tssazaenxcdufd", - "environmentType": "dofjlkatvtgyrrptdceh", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "provisioningState": "Succeeded", - "resourceGroupId": "ndkhtkjjllouauuaroljtn", - "catalogName": "kooctlekexoqxtab", - "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json deleted file mode 100644 index 4ec626766ffc..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListAllEnvironments", - "operationId": "EnvironmentsOperations_ListAllEnvironments", - "parameters": { - "api-version": "2023-04-01", - "projectName": "dkaownnoxfirsnmw", - "top": 19 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "parameters": "cGFyYW1ldGVyczE=", - "name": "tssazaenxcdufd", - "environmentType": "dofjlkatvtgyrrptdceh", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "provisioningState": "Succeeded", - "resourceGroupId": "ndkhtkjjllouauuaroljtn", - "catalogName": "kooctlekexoqxtab", - "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json deleted file mode 100644 index 2462fae0f6c6..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListCatalogs", - "operationId": "EnvironmentsOperations_ListCatalogs", - "parameters": { - "api-version": "2023-04-01", - "projectName": "zqzzqennymohasyvlxgzsklapbuv", - "top": 27 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "wpssttjdkaodnmrbs" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json deleted file mode 100644 index a59043903c95..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListCatalogs", - "operationId": "EnvironmentsOperations_ListCatalogs", - "parameters": { - "api-version": "2023-04-01", - "projectName": "bpmjift" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "wpssttjdkaodnmrbs" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json deleted file mode 100644 index 6a74a680a4fd..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", - "parameters": { - "api-version": "2023-04-01", - "projectName": "ujswiqdpxjwxhknbdlpkbtawuvgzab", - "catalogName": "ajstpidghbelakwpuaskglsophuald", - "top": 14 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy", - "description": "bfhukdbxvyqapnchejratrnuqralk", - "parameters": [ - { - "id": "baygybdvioqyauqaxh", - "name": "mprqzpvacjerkbaabzcbfnf", - "description": "lfggsbhzlzrhvwwhkrcscl", - "default": "ZGVmYXVsdDE=", - "type": "array", - "readOnly": true, - "required": true, - "allowed": [ - "vnaaovhotcxdhbadmzxvmh" - ] - } - ], - "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", - "templatePath": "ilkmsnsam" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json deleted file mode 100644 index 891e3e207bd0..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", - "parameters": { - "api-version": "2023-04-01", - "projectName": "gmxmkiz", - "catalogName": "szzvqfguguxzhho" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json deleted file mode 100644 index 09c47e656419..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironmentDefinitions", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "uicdwcwgtnyrr", - "top": 18 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy", - "description": "bfhukdbxvyqapnchejratrnuqralk", - "parameters": [ - { - "id": "baygybdvioqyauqaxh", - "name": "mprqzpvacjerkbaabzcbfnf", - "description": "lfggsbhzlzrhvwwhkrcscl", - "default": "ZGVmYXVsdDE=", - "type": "array", - "readOnly": true, - "required": true, - "allowed": [ - "vnaaovhotcxdhbadmzxvmh" - ] - } - ], - "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", - "templatePath": "ilkmsnsam" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json deleted file mode 100644 index 017a1b156745..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironmentDefinitions", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "csvkkdyyunzdutzznramubczme" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json deleted file mode 100644 index ace73969a3c1..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironmentTypes", - "operationId": "EnvironmentsOperations_ListEnvironmentTypes", - "parameters": { - "api-version": "2023-04-01", - "projectName": "tzbpnr", - "top": 13 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "phpzcqpagfzuakwmfwtn", - "deploymentTargetId": "zuzmfjtjrfkooo", - "status": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json deleted file mode 100644 index 0222aa9fcaf5..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironmentTypes", - "operationId": "EnvironmentsOperations_ListEnvironmentTypes", - "parameters": { - "api-version": "2023-04-01", - "projectName": "yuajufwggbewbpaulopx" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "phpzcqpagfzuakwmfwtn", - "deploymentTargetId": "zuzmfjtjrfkooo", - "status": "Enabled" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json deleted file mode 100644 index 63d1ba5c2995..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironments", - "operationId": "EnvironmentsOperations_ListEnvironments", - "parameters": { - "api-version": "2023-04-01", - "projectName": "um", - "userId": "qxxrsqhxchkms", - "top": 6 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "parameters": "cGFyYW1ldGVyczE=", - "name": "tssazaenxcdufd", - "environmentType": "dofjlkatvtgyrrptdceh", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "provisioningState": "Succeeded", - "resourceGroupId": "ndkhtkjjllouauuaroljtn", - "catalogName": "kooctlekexoqxtab", - "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json deleted file mode 100644 index 9528291cc413..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "title": "SharedOperations_GetProjectOperationStatus", - "operationId": "SharedOperations_GetProjectOperationStatus", - "parameters": { - "api-version": "2023-04-01", - "projectName": "yjpezkb", - "operationId": "qfdfglfmalixtemza" - }, - "responses": { - "200": { - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json b/specification/devcenter/DevCenter/environments/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json deleted file mode 100644 index 91133f491634..000000000000 --- a/specification/devcenter/DevCenter/environments/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "title": "SharedOperations_GetProjectOperationStatus", - "operationId": "SharedOperations_GetProjectOperationStatus", - "parameters": { - "api-version": "2023-04-01", - "projectName": "aakrmvajwvn", - "operationId": "jutxyjwvvdbnsbjgufr" - }, - "responses": { - "200": { - "body": { - "status": "Running" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/environments/main.tsp b/specification/devcenter/DevCenter/environments/main.tsp deleted file mode 100644 index 5f87a9f6ce2e..000000000000 --- a/specification/devcenter/DevCenter/environments/main.tsp +++ /dev/null @@ -1,12 +0,0 @@ -import "@typespec/rest"; -import "@typespec/http"; -import "@azure-tools/typespec-azure-core"; -import "../service.tsp"; -import "./routes.tsp"; - -using Azure.Core; -using TypeSpec.Versioning; -using TypeSpec.Rest; -using TypeSpec.Http; - -namespace DevCenterService; diff --git a/specification/devcenter/DevCenter/environments/tspconfig.yaml b/specification/devcenter/DevCenter/environments/tspconfig.yaml deleted file mode 100644 index 8ba6e3eff7c1..000000000000 --- a/specification/devcenter/DevCenter/environments/tspconfig.yaml +++ /dev/null @@ -1,3 +0,0 @@ -emit: [ - "@azure-tools/typespec-autorest", -] diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json rename to specification/devcenter/DevCenter/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json diff --git a/specification/devcenter/DevCenter/devcenter/main.tsp b/specification/devcenter/DevCenter/main.tsp similarity index 67% rename from specification/devcenter/DevCenter/devcenter/main.tsp rename to specification/devcenter/DevCenter/main.tsp index 0f6d8b544d72..52ce754fb8be 100644 --- a/specification/devcenter/DevCenter/devcenter/main.tsp +++ b/specification/devcenter/DevCenter/main.tsp @@ -1,8 +1,9 @@ import "@typespec/rest"; import "@typespec/http"; import "@azure-tools/typespec-azure-core"; -import "../service.tsp"; -import "./routes.tsp"; +import "./devbox/routes.tsp"; +import "./devcenter/routes.tsp"; +import "./environments/routes.tsp"; using Azure.Core; using TypeSpec.Versioning; From a256badb2ebd4ad5ae0776fbf28afd58f9309e7a Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 24 Jan 2024 19:50:46 -0300 Subject: [PATCH 103/187] fix examples --- .../devcenter/DevCenter/devbox/routes.tsp | 19 ++ .../devcenter/DevCenter/devcenter/routes.tsp | 2 + .../DevCenter/environments/routes.tsp | 11 + ...esDevCenterOperations_ListAllDevBoxes.json | 59 ++++++ ...enterOperations_ListAllDevBoxesByUser.json | 60 ++++++ .../DevBoxesOperations_CreateDevBox.json | 127 ++++++++++++ .../DevBoxesOperations_DelayAction.json | 25 +++ .../DevBoxesOperations_DelayAllActions.json | 42 ++++ .../DevBoxesOperations_DeleteDevBox.json | 37 ++++ .../DevBoxesOperations_GetDevBox.json | 55 +++++ .../DevBoxesOperations_GetDevBoxAction.json | 24 +++ .../DevBoxesOperations_GetPool.json} | 28 +-- ...vBoxesOperations_GetRemoteConnection.json} | 10 +- .../DevBoxesOperations_GetSchedule.json | 21 ++ .../DevBoxesOperations_ListDevBoxActions.json | 28 +++ .../DevBoxesOperations_ListDevBoxes.json | 61 ++++++ .../DevBoxesOperations_ListPools.json} | 30 +-- .../DevBoxesOperations_ListSchedules.json} | 16 +- .../DevBoxesOperations_RestartDevBox.json | 36 ++++ .../DevBoxesOperations_SkipAction.json | 14 ++ .../DevBoxesOperations_StartDevBox.json | 36 ++++ .../DevBoxesOperations_StopDevBox.json | 37 ++++ .../DevCenterOperations_GetProject.json} | 6 +- .../DevCenterOperations_ListProjects.json} | 10 +- ...sOperations_CreateOrUpdateEnvironment.json | 53 +++++ ...ironmentsOperations_DeleteEnvironment.json | 37 ++++ .../EnvironmentsOperations_GetCatalog.json | 16 ++ ...EnvironmentsOperations_GetEnvironment.json | 33 +++ ...tsOperations_GetEnvironmentDefinition.json | 36 ++++ ...onmentsOperations_ListAllEnvironments.json | 37 ++++ .../EnvironmentsOperations_ListCatalogs.json} | 8 +- ...perations_ListEnvironmentDefinitions.json} | 24 +-- ..._ListEnvironmentDefinitionsByCatalog.json} | 26 +-- ...mentsOperations_ListEnvironmentTypes.json} | 10 +- ...vironmentsOperations_ListEnvironments.json | 38 ++++ ...dOperations_GetProjectOperationStatus.json | 32 +++ ..._ListAllDevBoxesByUser_MaximumSet_Gen.json | 60 ------ ...ations_ListAllDevBoxes_MaximumSet_Gen.json | 59 ------ ...perations_CreateDevBox_MaximumSet_Gen.json | 127 ------------ ...Operations_DelayAction_MaximumSet_Gen.json | 25 --- ...Operations_DelayAction_MinimumSet_Gen.json | 21 -- ...ations_DelayAllActions_MaximumSet_Gen.json | 42 ---- ...ations_DelayAllActions_MinimumSet_Gen.json | 23 --- ...perations_DeleteDevBox_MaximumSet_Gen.json | 37 ---- ...perations_DeleteDevBox_MinimumSet_Gen.json | 21 -- ...ations_GetDevBoxAction_MaximumSet_Gen.json | 24 --- ...ations_GetDevBoxAction_MinimumSet_Gen.json | 20 -- ...esOperations_GetDevBox_MaximumSet_Gen.json | 55 ----- ...oxesOperations_GetPool_MinimumSet_Gen.json | 18 -- ...ns_GetRemoteConnection_MinimumSet_Gen.json | 15 -- ...Operations_GetSchedule_MaximumSet_Gen.json | 21 -- ...ions_ListDevBoxActions_MaximumSet_Gen.json | 28 --- ...ions_ListDevBoxActions_MinimumSet_Gen.json | 23 --- ...perations_ListDevBoxes_MaximumSet_Gen.json | 61 ------ ...esOperations_ListPools_MinimumSet_Gen.json | 21 -- ...erations_RestartDevBox_MaximumSet_Gen.json | 36 ---- ...erations_RestartDevBox_MinimumSet_Gen.json | 20 -- ...sOperations_SkipAction_MaximumSet_Gen.json | 14 -- ...sOperations_SkipAction_MinimumSet_Gen.json | 14 -- ...Operations_StartDevBox_MaximumSet_Gen.json | 36 ---- ...Operations_StartDevBox_MinimumSet_Gen.json | 20 -- ...sOperations_StopDevBox_MaximumSet_Gen.json | 37 ---- ...sOperations_StopDevBox_MinimumSet_Gen.json | 20 -- ...perations_ListProjects_MinimumSet_Gen.json | 18 -- ...ateOrUpdateEnvironment_MaximumSet_Gen.json | 53 ----- ...ions_DeleteEnvironment_MaximumSet_Gen.json | 37 ---- ...ions_DeleteEnvironment_MinimumSet_Gen.json | 21 -- ...sOperations_GetCatalog_MaximumSet_Gen.json | 16 -- ...sOperations_GetCatalog_MinimumSet_Gen.json | 16 -- ...tEnvironmentDefinition_MaximumSet_Gen.json | 36 ---- ...tEnvironmentDefinition_MinimumSet_Gen.json | 19 -- ...rations_GetEnvironment_MaximumSet_Gen.json | 33 --- ...ns_ListAllEnvironments_MaximumSet_Gen.json | 37 ---- ...ntDefinitionsByCatalog_MinimumSet_Gen.json | 22 -- ...EnvironmentDefinitions_MinimumSet_Gen.json | 21 -- ...s_ListEnvironmentTypes_MinimumSet_Gen.json | 21 -- ...tions_ListEnvironments_MaximumSet_Gen.json | 38 ---- ...ProjectOperationStatus_MaximumSet_Gen.json | 32 --- ...ProjectOperationStatus_MinimumSet_Gen.json | 16 -- ...esDevCenterOperations_ListAllDevBoxes.json | 59 ++++++ ...enterOperations_ListAllDevBoxesByUser.json | 60 ++++++ .../DevBoxesOperations_CreateDevBox.json | 127 ++++++++++++ .../DevBoxesOperations_DelayAction.json | 25 +++ .../DevBoxesOperations_DelayAllActions.json | 42 ++++ .../DevBoxesOperations_DeleteDevBox.json | 37 ++++ .../DevBoxesOperations_GetDevBox.json | 55 +++++ .../DevBoxesOperations_GetDevBoxAction.json | 24 +++ .../examples/DevBoxesOperations_GetPool.json | 42 ++++ ...evBoxesOperations_GetRemoteConnection.json | 18 ++ .../DevBoxesOperations_GetSchedule.json | 21 ++ .../DevBoxesOperations_ListDevBoxActions.json | 28 +++ .../DevBoxesOperations_ListDevBoxes.json | 61 ++++++ .../DevBoxesOperations_ListPools.json | 48 +++++ .../DevBoxesOperations_ListSchedules.json | 27 +++ .../DevBoxesOperations_RestartDevBox.json | 36 ++++ .../DevBoxesOperations_SkipAction.json | 14 ++ .../DevBoxesOperations_StartDevBox.json | 36 ++++ .../DevBoxesOperations_StopDevBox.json | 37 ++++ .../DevCenterOperations_GetProject.json} | 6 +- .../DevCenterOperations_ListProjects.json | 23 +++ ...sOperations_CreateOrUpdateEnvironment.json | 53 +++++ ...ironmentsOperations_DeleteEnvironment.json | 37 ++++ .../EnvironmentsOperations_GetCatalog.json | 16 ++ ...EnvironmentsOperations_GetEnvironment.json | 33 +++ ...tsOperations_GetEnvironmentDefinition.json | 36 ++++ ...onmentsOperations_ListAllEnvironments.json | 37 ++++ .../EnvironmentsOperations_ListCatalogs.json} | 10 +- ...Operations_ListEnvironmentDefinitions.json | 40 ++++ ...s_ListEnvironmentDefinitionsByCatalog.json | 41 ++++ ...nmentsOperations_ListEnvironmentTypes.json | 23 +++ ...vironmentsOperations_ListEnvironments.json | 38 ++++ ...dOperations_GetProjectOperationStatus.json | 32 +++ .../DevCenter/stable/2023-04-01/openapi.json | 195 ++++++++++++++++++ 113 files changed, 2471 insertions(+), 1424 deletions(-) create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAction.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBox.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json rename specification/devcenter/DevCenter/examples/{DevBoxesOperations_GetPool_MaximumSet_Gen.json => 2023-04-01/DevBoxesOperations_GetPool.json} (54%) rename specification/devcenter/DevCenter/examples/{DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json => 2023-04-01/DevBoxesOperations_GetRemoteConnection.json} (52%) create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetSchedule.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json rename specification/devcenter/DevCenter/examples/{DevBoxesOperations_ListPools_MaximumSet_Gen.json => 2023-04-01/DevBoxesOperations_ListPools.json} (57%) rename specification/devcenter/DevCenter/examples/{DevBoxesOperations_ListSchedules_MaximumSet_Gen.json => 2023-04-01/DevBoxesOperations_ListSchedules.json} (52%) create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_SkipAction.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StartDevBox.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StopDevBox.json rename specification/devcenter/DevCenter/examples/{DevCenterOperations_GetProject_MaximumSet_Gen.json => 2023-04-01/DevCenterOperations_GetProject.json} (69%) rename specification/devcenter/DevCenter/examples/{DevCenterOperations_ListProjects_MaximumSet_Gen.json => 2023-04-01/DevCenterOperations_ListProjects.json} (62%) create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json rename specification/devcenter/DevCenter/examples/{EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json => 2023-04-01/EnvironmentsOperations_ListCatalogs.json} (63%) rename specification/devcenter/DevCenter/examples/{EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json => 2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json} (53%) rename specification/devcenter/DevCenter/examples/{EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json => 2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json} (50%) rename specification/devcenter/DevCenter/examples/{EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json => 2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json} (60%) create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json delete mode 100644 specification/devcenter/DevCenter/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json rename specification/devcenter/{DevCenter/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json => data-plane/DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json} (62%) create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json rename specification/devcenter/{DevCenter/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json => data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json} (50%) create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json create mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/SharedOperations_GetProjectOperationStatus.json diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 76bf90cc0027..9b5a89a0c5f2 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -11,6 +11,7 @@ namespace DevCenterService; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface DevBoxesOperations { + @summary("Lists available pools") @doc("Lists available pools") @route("/projects/{projectName}/pools") @get @@ -31,6 +32,7 @@ interface DevBoxesOperations { PoolListResult >; + @summary("Gets a pool") @doc("Gets a pool") @route("/projects/{projectName}/pools/{poolName}") @get @@ -47,6 +49,7 @@ interface DevBoxesOperations { Pool >; + @summary("Lists available schedules for a pool.") @doc("Lists available schedules for a pool.") @route("/projects/{projectName}/pools/{poolName}/schedules") @get @@ -71,6 +74,7 @@ interface DevBoxesOperations { ScheduleListResult >; + @summary("Gets a schedule.") @doc("Gets a schedule.") @route("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") @get @@ -91,6 +95,7 @@ interface DevBoxesOperations { Schedule >; + @summary("Lists Dev Boxes in the project for a particular user.") @doc("Lists Dev Boxes in the project for a particular user.") @route("/projects/{projectName}/users/{userId}/devboxes") @get @@ -115,6 +120,7 @@ interface DevBoxesOperations { DevBoxListResult >; + @summary("Gets a Dev Box") @doc("Gets a Dev Box") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @get @@ -135,6 +141,7 @@ interface DevBoxesOperations { DevBox >; + @summary("Creates or replaces a Dev Box.") @doc("Creates or replaces a Dev Box.") @finalOperation(DevBoxesOperations.getDevBox) @pollingOperation(SharedOperations.getProjectOperationStatus) @@ -172,6 +179,7 @@ interface DevBoxesOperations { } >; + @summary("Deletes a Dev Box.") @doc("Deletes a Dev Box.") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @@ -206,6 +214,7 @@ interface DevBoxesOperations { } >; + @summary("Starts a Dev Box") @doc("Starts a Dev Box") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start") @@ -233,6 +242,7 @@ interface DevBoxesOperations { } >; + @summary("Stops a Dev Box") @doc("Stops a Dev Box") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop") @@ -264,6 +274,7 @@ interface DevBoxesOperations { } >; + @summary("Restarts a Dev Box") @doc("Restarts a Dev Box") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart") @@ -291,6 +302,7 @@ interface DevBoxesOperations { } >; + @summary("Gets RDP Connection info") @doc("Gets RDP Connection info") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection") @get @@ -311,6 +323,7 @@ interface DevBoxesOperations { RemoteConnection >; + @summary("Lists actions on a Dev Box.") @doc("Lists actions on a Dev Box.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions") @get @@ -331,6 +344,7 @@ interface DevBoxesOperations { DevBoxActionsListResult >; + @summary("Gets an action.") @doc("Gets an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}") @get @@ -355,6 +369,7 @@ interface DevBoxesOperations { DevBoxAction >; + @summary("Skips an occurrence of an action.") @doc("Skips an occurrence of an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip") @post @@ -379,6 +394,7 @@ interface DevBoxesOperations { void >; + @summary("Delays the occurrence of an action.") @doc("Delays the occurrence of an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay") @post @@ -407,6 +423,7 @@ interface DevBoxesOperations { DevBoxAction >; + @summary("Delays all actions.") @doc("Delays all actions.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay") @post @@ -434,6 +451,7 @@ interface DevBoxesOperations { #suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface DevBoxesDevCenterOperations { + @summary("Lists Dev Boxes that the caller has access to in the DevCenter.") @doc("Lists Dev Boxes that the caller has access to in the DevCenter.") @route("/devboxes") @get @@ -450,6 +468,7 @@ interface DevBoxesDevCenterOperations { DevBoxListResult >; + @summary("Lists Dev Boxes in the Dev Center for a particular user.") @doc("Lists Dev Boxes in the Dev Center for a particular user.") @route("/users/{userId}/devboxes") @get diff --git a/specification/devcenter/DevCenter/devcenter/routes.tsp b/specification/devcenter/DevCenter/devcenter/routes.tsp index 154ca6aee397..9626c54966f5 100644 --- a/specification/devcenter/DevCenter/devcenter/routes.tsp +++ b/specification/devcenter/DevCenter/devcenter/routes.tsp @@ -15,6 +15,7 @@ interface DevCenterOperations { @get listProjects is Azure.Core.Foundations.Operation< { + @summary("An OData filter clause to apply to the operation.") @doc("An OData filter clause to apply to the operation.") @query filter?: string; @@ -31,6 +32,7 @@ interface DevCenterOperations { @get getProject is Azure.Core.Foundations.Operation< { + @summary("The DevCenter Project upon which to execute operations.") @doc("The DevCenter Project upon which to execute operations.") @path projectName: string; diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index 15848dce25b5..707cdebfb82c 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -12,6 +12,7 @@ namespace DevCenterService; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface EnvironmentsOperations { + @summary("Lists the environments for a project.") @doc("Lists the environments for a project.") @route("/projects/{projectName}/environments") @get @@ -28,6 +29,7 @@ interface EnvironmentsOperations { EnvironmentListResult >; + @summary("Lists the environments for a project and user.") @doc("Lists the environments for a project and user.") @route("/projects/{projectName}/users/{userId}/environments") @get @@ -48,6 +50,7 @@ interface EnvironmentsOperations { EnvironmentListResult >; + @summary("Gets an environment") @doc("Gets an environment") @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @get @@ -68,6 +71,7 @@ interface EnvironmentsOperations { Environment >; + @summary("Creates or updates an environment.") @doc("Creates or updates an environment.") @finalOperation(EnvironmentsOperations.getEnvironment) @pollingOperation(SharedOperations.getProjectOperationStatus) @@ -104,6 +108,7 @@ interface EnvironmentsOperations { >; // FIXME + @summary("Deletes an environment and all its associated resources") @doc("Deletes an environment and all its associated resources") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @@ -139,6 +144,7 @@ interface EnvironmentsOperations { statusCode: 204; } | Azure.Core.Foundations.ErrorResponse; + @summary("Lists all of the catalogs available for a project.") @doc("Lists all of the catalogs available for a project.") @route("/projects/{projectName}/catalogs") @get @@ -155,6 +161,7 @@ interface EnvironmentsOperations { CatalogListResult >; + @summary("Gets the specified catalog within the project") @doc("Gets the specified catalog within the project") @route("/projects/{projectName}/catalogs/{catalogName}") @get @@ -171,6 +178,7 @@ interface EnvironmentsOperations { Catalog >; + @summary("Lists all environment definitions available for a project.") @doc("Lists all environment definitions available for a project.") @route("/projects/{projectName}/environmentDefinitions") @get @@ -187,6 +195,7 @@ interface EnvironmentsOperations { EnvironmentDefinitionListResult >; + @summary("Lists all environment definitions available within a catalog.") @doc("Lists all environment definitions available within a catalog.") @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions") @get @@ -207,6 +216,7 @@ interface EnvironmentsOperations { EnvironmentDefinitionListResult >; + @summary("Get an environment definition from a catalog.") @doc("Get an environment definition from a catalog.") @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}") @get @@ -227,6 +237,7 @@ interface EnvironmentsOperations { EnvironmentDefinition >; + @summary("Lists all environment types configured for a project.") @doc("Lists all environment types configured for a project.") @route("/projects/{projectName}/environmentTypes") @get diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json new file mode 100644 index 000000000000..51f94500e3db --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json @@ -0,0 +1,59 @@ +{ + "title": "Lists Dev Boxes that the caller has access to in the DevCenter.", + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", + "parameters": { + "api-version": "2023-04-01", + "filter": "bawvkgqrdej", + "top": 27 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "umfutyopjqlkfpnsrstaksogsub", + "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", + "poolName": "lFR5__5-_E0gWK__-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "gzcgcb", + "powerState": "Unknown", + "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + }, + "location": "libjfmzzzfmvpwmxnblsmwykh", + "osType": "Windows", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 3, + "memoryGB": 30 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 24 + } + }, + "imageReference": { + "name": "m", + "version": "fqvya", + "operatingSystem": "q", + "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", + "publishedDate": "2024-01-24T21:14:56.489Z" + }, + "createdTime": "2024-01-24T21:14:56.489Z", + "localAdministrator": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json new file mode 100644 index 000000000000..2eb0b237c3ed --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json @@ -0,0 +1,60 @@ +{ + "title": "Lists Dev Boxes in the Dev Center for a particular user.", + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "parameters": { + "api-version": "2023-04-01", + "filter": "ismwy", + "top": 9, + "userId": "jehwvcrwpfddenzyf" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "umfutyopjqlkfpnsrstaksogsub", + "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", + "poolName": "lFR5__5-_E0gWK__-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "gzcgcb", + "powerState": "Unknown", + "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + }, + "location": "libjfmzzzfmvpwmxnblsmwykh", + "osType": "Windows", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 3, + "memoryGB": 30 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 24 + } + }, + "imageReference": { + "name": "m", + "version": "fqvya", + "operatingSystem": "q", + "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", + "publishedDate": "2024-01-24T21:14:56.489Z" + }, + "createdTime": "2024-01-24T21:14:56.489Z", + "localAdministrator": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json new file mode 100644 index 000000000000..6842b686c998 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json @@ -0,0 +1,127 @@ +{ + "title": "Creates or replaces a Dev Box.", + "operationId": "DevBoxesOperations_CreateDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "sakfxntevmehtdbtwjsfxnbnbcc", + "userId": "wfbmdncbebsq", + "devBoxName": "tjhqutmfdvy", + "devBox": { + "poolName": "lFR5__5-_E0gWK__-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "powerState": "Unknown", + "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + }, + "osType": "Windows", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2" + }, + "storageProfile": { + "osDisk": {} + }, + "imageReference": {}, + "localAdministrator": "Enabled" + } + }, + "responses": { + "200": { + "body": { + "name": "umfutyopjqlkfpnsrstaksogsub", + "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", + "poolName": "lFR5__5-_E0gWK__-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "gzcgcb", + "powerState": "Unknown", + "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + }, + "location": "libjfmzzzfmvpwmxnblsmwykh", + "osType": "Windows", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 3, + "memoryGB": 30 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 24 + } + }, + "imageReference": { + "name": "m", + "version": "fqvya", + "operatingSystem": "q", + "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", + "publishedDate": "2024-01-24T21:14:56.489Z" + }, + "createdTime": "2024-01-24T21:14:56.489Z", + "localAdministrator": "Enabled" + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "name": "umfutyopjqlkfpnsrstaksogsub", + "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", + "poolName": "lFR5__5-_E0gWK__-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "gzcgcb", + "powerState": "Unknown", + "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + }, + "location": "libjfmzzzfmvpwmxnblsmwykh", + "osType": "Windows", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 3, + "memoryGB": 30 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 24 + } + }, + "imageReference": { + "name": "m", + "version": "fqvya", + "operatingSystem": "q", + "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", + "publishedDate": "2024-01-24T21:14:56.489Z" + }, + "createdTime": "2024-01-24T21:14:56.489Z", + "localAdministrator": "Enabled" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAction.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAction.json new file mode 100644 index 000000000000..fac9749acc5f --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAction.json @@ -0,0 +1,25 @@ +{ + "title": "Delays the occurrence of an action.", + "operationId": "DevBoxesOperations_DelayAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "weeutabqporpt", + "userId": "hpltjhjacjpvdujb", + "devBoxName": "kv", + "actionName": "mmmcpjfeveltcfdkasvavovihx", + "until": "2024-01-24T21:15:01.753Z" + }, + "responses": { + "200": { + "body": { + "name": "pjj", + "actionType": "Stop", + "sourceId": "rqdtniydrmnkdmdxssgid", + "suspendedUntil": "2024-01-24T21:15:00.943Z", + "next": { + "scheduledTime": "2024-01-24T21:15:00.943Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json new file mode 100644 index 000000000000..1d6da069ad00 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json @@ -0,0 +1,42 @@ +{ + "title": "Delays all actions.", + "operationId": "DevBoxesOperations_DelayAllActions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "sqffqdbpbwz", + "userId": "hhwmgjcpvlalfiyvfitvyor", + "devBoxName": "eczuupvnmezorxwevpdqeepj", + "until": "2024-01-24T21:15:02.027Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "desjl", + "result": "Succeeded", + "action": { + "name": "pjj", + "actionType": "Stop", + "sourceId": "rqdtniydrmnkdmdxssgid", + "suspendedUntil": "2024-01-24T21:15:00.943Z", + "next": { + "scheduledTime": "2024-01-24T21:15:00.943Z" + } + }, + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json new file mode 100644 index 000000000000..0052e4242aeb --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json @@ -0,0 +1,37 @@ +{ + "title": "Deletes a Dev Box.", + "operationId": "DevBoxesOperations_DeleteDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "tfy", + "userId": "uyeccgmzsqokjbudcpovzqpnwzx", + "devBoxName": "imofroozhmowydi" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "qgqvydkahfqdnvyapn", + "name": "gmjnhbpwdycxlnwgrcl", + "status": "Running", + "resourceId": "enfyiqikaoxyte", + "startTime": "2024-01-24T21:14:58.472Z", + "endTime": "2024-01-24T21:14:58.472Z", + "percentComplete": 3, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBox.json new file mode 100644 index 000000000000..8107c2b01996 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBox.json @@ -0,0 +1,55 @@ +{ + "title": "Gets a Dev Box", + "operationId": "DevBoxesOperations_GetDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "abnt", + "userId": "slzcqbrtifikxbizrbzejnbxaunyg", + "devBoxName": "iuoxkfqb" + }, + "responses": { + "200": { + "body": { + "name": "umfutyopjqlkfpnsrstaksogsub", + "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", + "poolName": "lFR5__5-_E0gWK__-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "gzcgcb", + "powerState": "Unknown", + "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + }, + "location": "libjfmzzzfmvpwmxnblsmwykh", + "osType": "Windows", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 3, + "memoryGB": 30 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 24 + } + }, + "imageReference": { + "name": "m", + "version": "fqvya", + "operatingSystem": "q", + "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", + "publishedDate": "2024-01-24T21:14:56.489Z" + }, + "createdTime": "2024-01-24T21:14:56.489Z", + "localAdministrator": "Enabled" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json new file mode 100644 index 000000000000..3805bb777fa8 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json @@ -0,0 +1,24 @@ +{ + "title": "Gets an action.", + "operationId": "DevBoxesOperations_GetDevBoxAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "pcvmmsjcsemqeltystiofpxh", + "userId": "dvcvzpbpfurburhes", + "devBoxName": "tzqgsjkakbgeksgoflcxkzhrxdfsm", + "actionName": "wbcv" + }, + "responses": { + "200": { + "body": { + "name": "pjj", + "actionType": "Stop", + "sourceId": "rqdtniydrmnkdmdxssgid", + "suspendedUntil": "2024-01-24T21:15:00.943Z", + "next": { + "scheduledTime": "2024-01-24T21:15:00.943Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetPool.json similarity index 54% rename from specification/devcenter/DevCenter/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetPool.json index adaf69e0ed9f..306862e514a4 100644 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetPool_MaximumSet_Gen.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetPool.json @@ -1,39 +1,39 @@ { - "title": "DevBoxesOperations_GetPool", + "title": "Gets a pool", "operationId": "DevBoxesOperations_GetPool", "parameters": { "api-version": "2023-04-01", - "projectName": "qsjqcxtvznybixgmsxxhvwuxgmfru", - "poolName": "pxxkktwzmfwwoa" + "projectName": "gbjtzzssqvgqx", + "poolName": "fbopjwaybuhzrvgd" }, "responses": { "200": { "body": { - "name": "peoaccqvxjgwhwrn", - "location": "lcmcoqs", + "name": "xseeobjdsdpjl", + "location": "cyzkbkpj", "osType": "Windows", "hardwareProfile": { "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 + "vCPUs": 3, + "memoryGB": 30 }, "hibernateSupport": "Enabled", "storageProfile": { "osDisk": { - "diskSizeGB": 17 + "diskSizeGB": 24 } }, "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" + "name": "m", + "version": "fqvya", + "operatingSystem": "q", + "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", + "publishedDate": "2024-01-24T21:14:56.489Z" }, "localAdministrator": "Enabled", "stopOnDisconnect": { "status": "Enabled", - "gracePeriodMinutes": 3 + "gracePeriodMinutes": 12 }, "healthStatus": "Unknown" } diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json similarity index 52% rename from specification/devcenter/DevCenter/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json index 19d78eee0047..e03afee8a3a2 100644 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetRemoteConnection_MaximumSet_Gen.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json @@ -1,16 +1,16 @@ { - "title": "DevBoxesOperations_GetRemoteConnection", + "title": "Gets RDP Connection info", "operationId": "DevBoxesOperations_GetRemoteConnection", "parameters": { "api-version": "2023-04-01", - "projectName": "xuvmn", - "userId": "umvxujnlzpmf", - "devBoxName": "nxuhbdxatqpgw" + "projectName": "yhhkvvjywohpykksfkbnyvxpdzoonm", + "userId": "actefvzkfnruvwkhqreqwvtxey", + "devBoxName": "oizhaeta" }, "responses": { "200": { "body": { - "webUrl": "https://microsoft.com/a", + "webUrl": "https://microsoft.com/axdulmg", "rdpConnectionUrl": "https://microsoft.com/a" } } diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetSchedule.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetSchedule.json new file mode 100644 index 000000000000..8e0bfa84b694 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetSchedule.json @@ -0,0 +1,21 @@ +{ + "title": "Gets a schedule.", + "operationId": "DevBoxesOperations_GetSchedule", + "parameters": { + "api-version": "2023-04-01", + "projectName": "xkpiitmwrpbo", + "poolName": "tkhvhyfjkewjrce", + "scheduleName": "xthiqb" + }, + "responses": { + "200": { + "body": { + "name": "wjkgmsestuxvsqnzrdfvyojwozs", + "type": "StopDevBox", + "frequency": "Daily", + "time": "dpotf", + "timeZone": "frdpbsljjcxu" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json new file mode 100644 index 000000000000..864b8cd45134 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json @@ -0,0 +1,28 @@ +{ + "title": "Lists actions on a Dev Box.", + "operationId": "DevBoxesOperations_ListDevBoxActions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "bozdcianuefdzhxpbwxquna", + "userId": "pkxoszxdayvqo", + "devBoxName": "iyusuizyzdoozbm" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "pjj", + "actionType": "Stop", + "sourceId": "rqdtniydrmnkdmdxssgid", + "suspendedUntil": "2024-01-24T21:15:00.943Z", + "next": { + "scheduledTime": "2024-01-24T21:15:00.943Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json new file mode 100644 index 000000000000..77447f0e35a7 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json @@ -0,0 +1,61 @@ +{ + "title": "Lists Dev Boxes in the project for a particular user.", + "operationId": "DevBoxesOperations_ListDevBoxes", + "parameters": { + "api-version": "2023-04-01", + "projectName": "zoeuqoedpb", + "userId": "jswwayblmdmdgavyxmmhls", + "filter": "zxrh", + "top": 19 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "umfutyopjqlkfpnsrstaksogsub", + "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", + "poolName": "lFR5__5-_E0gWK__-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "gzcgcb", + "powerState": "Unknown", + "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + }, + "location": "libjfmzzzfmvpwmxnblsmwykh", + "osType": "Windows", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 3, + "memoryGB": 30 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 24 + } + }, + "imageReference": { + "name": "m", + "version": "fqvya", + "operatingSystem": "q", + "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", + "publishedDate": "2024-01-24T21:14:56.489Z" + }, + "createdTime": "2024-01-24T21:14:56.489Z", + "localAdministrator": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListPools.json similarity index 57% rename from specification/devcenter/DevCenter/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListPools.json index cfd1ab64556f..ea6633977a60 100644 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListPools_MaximumSet_Gen.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListPools.json @@ -1,42 +1,42 @@ { - "title": "DevBoxesOperations_ListPools", + "title": "Lists available pools", "operationId": "DevBoxesOperations_ListPools", "parameters": { "api-version": "2023-04-01", - "projectName": "pxvuaxhadlodudyhfykoe", - "filter": "alduppbkg", - "top": 19 + "projectName": "lujxbvczu", + "filter": "mrbumagoudkbnjfnaczpjiihojn", + "top": 21 }, "responses": { "200": { "body": { "value": [ { - "name": "peoaccqvxjgwhwrn", - "location": "lcmcoqs", + "name": "xseeobjdsdpjl", + "location": "cyzkbkpj", "osType": "Windows", "hardwareProfile": { "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 + "vCPUs": 3, + "memoryGB": 30 }, "hibernateSupport": "Enabled", "storageProfile": { "osDisk": { - "diskSizeGB": 17 + "diskSizeGB": 24 } }, "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" + "name": "m", + "version": "fqvya", + "operatingSystem": "q", + "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", + "publishedDate": "2024-01-24T21:14:56.489Z" }, "localAdministrator": "Enabled", "stopOnDisconnect": { "status": "Enabled", - "gracePeriodMinutes": 3 + "gracePeriodMinutes": 12 }, "healthStatus": "Unknown" } diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListSchedules.json similarity index 52% rename from specification/devcenter/DevCenter/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListSchedules.json index 1cc8b087e3f7..a0a09fbb09be 100644 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListSchedules_MaximumSet_Gen.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListSchedules.json @@ -1,23 +1,23 @@ { - "title": "DevBoxesOperations_ListSchedules", + "title": "Lists available schedules for a pool.", "operationId": "DevBoxesOperations_ListSchedules", "parameters": { "api-version": "2023-04-01", - "projectName": "lbzswonmsyglifwwgkz", - "poolName": "yndlcsuaqjtvaht", - "filter": "mgvmdfcaozmzoca", - "top": 7 + "projectName": "dcdenfonrmyqdelhxyfkg", + "poolName": "dpwmmxjwbwhcbie", + "filter": "cpazhrejyrzummhwkcxatkem", + "top": 12 }, "responses": { "200": { "body": { "value": [ { - "name": "dttuou", + "name": "wjkgmsestuxvsqnzrdfvyojwozs", "type": "StopDevBox", "frequency": "Daily", - "time": "nxohypdpsxuox", - "timeZone": "gjbehvuedwxxoavcdjn" + "time": "dpotf", + "timeZone": "frdpbsljjcxu" } ], "nextLink": "https://microsoft.com/a" diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json new file mode 100644 index 000000000000..f4ded33cf025 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json @@ -0,0 +1,36 @@ +{ + "title": "Restarts a Dev Box", + "operationId": "DevBoxesOperations_RestartDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "cfdsnqksinmveazbmvjzhgqcwk", + "userId": "npcxuhbzsptftyoj", + "devBoxName": "hheqmxzsfkcbadaooeg" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "qgqvydkahfqdnvyapn", + "name": "gmjnhbpwdycxlnwgrcl", + "status": "Running", + "resourceId": "enfyiqikaoxyte", + "startTime": "2024-01-24T21:14:58.472Z", + "endTime": "2024-01-24T21:14:58.472Z", + "percentComplete": 3, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_SkipAction.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_SkipAction.json new file mode 100644 index 000000000000..91bf430b3ab1 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_SkipAction.json @@ -0,0 +1,14 @@ +{ + "title": "Skips an occurrence of an action.", + "operationId": "DevBoxesOperations_SkipAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "aeaaemtbnqiziap", + "userId": "pxfmitbjrwllkltp", + "devBoxName": "yefugsximdb", + "actionName": "aspdnasqei" + }, + "responses": { + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StartDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StartDevBox.json new file mode 100644 index 000000000000..1684ea81b392 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StartDevBox.json @@ -0,0 +1,36 @@ +{ + "title": "Starts a Dev Box", + "operationId": "DevBoxesOperations_StartDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "risstmlxqhpratecjnsoaegvnba", + "userId": "ufupmdhb", + "devBoxName": "i" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "qgqvydkahfqdnvyapn", + "name": "gmjnhbpwdycxlnwgrcl", + "status": "Running", + "resourceId": "enfyiqikaoxyte", + "startTime": "2024-01-24T21:14:58.472Z", + "endTime": "2024-01-24T21:14:58.472Z", + "percentComplete": 3, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StopDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StopDevBox.json new file mode 100644 index 000000000000..42678144eef6 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StopDevBox.json @@ -0,0 +1,37 @@ +{ + "title": "Stops a Dev Box", + "operationId": "DevBoxesOperations_StopDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "vdmmuwewyosv", + "userId": "avuflfdiptbox", + "devBoxName": "qgmmtshrvpeqhmwrgyygldupfoah", + "hibernate": true + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "qgqvydkahfqdnvyapn", + "name": "gmjnhbpwdycxlnwgrcl", + "status": "Running", + "resourceId": "enfyiqikaoxyte", + "startTime": "2024-01-24T21:14:58.472Z", + "endTime": "2024-01-24T21:14:58.472Z", + "percentComplete": 3, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json similarity index 69% rename from specification/devcenter/DevCenter/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json index 1975d6f8c90d..47cec0d6e1a0 100644 --- a/specification/devcenter/DevCenter/examples/DevCenterOperations_GetProject_MaximumSet_Gen.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json @@ -3,13 +3,13 @@ "operationId": "DevCenterOperations_GetProject", "parameters": { "api-version": "2023-04-01", - "projectName": "pnyio" + "projectName": "thzm" }, "responses": { "200": { "body": { - "name": "upkhozglybnjxyddpkhxbas", - "description": "itwwzmjfhyeef", + "name": "kjqmqcsuudovwzfudo", + "description": "sprbsjrouoo", "maxDevBoxesPerUser": 0 } } diff --git a/specification/devcenter/DevCenter/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json similarity index 62% rename from specification/devcenter/DevCenter/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json index 2b65e5f7f22b..cacdc26ee7d6 100644 --- a/specification/devcenter/DevCenter/examples/DevCenterOperations_ListProjects_MaximumSet_Gen.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json @@ -3,20 +3,20 @@ "operationId": "DevCenterOperations_ListProjects", "parameters": { "api-version": "2023-04-01", - "filter": "sehyutainefiv", - "top": 20 + "filter": "cwyvyioiha", + "top": 27 }, "responses": { "200": { "body": { "value": [ { - "name": "upkhozglybnjxyddpkhxbas", - "description": "itwwzmjfhyeef", + "name": "kjqmqcsuudovwzfudo", + "description": "sprbsjrouoo", "maxDevBoxesPerUser": 0 } ], - "nextLink": "https://microsoft.com/aadyfglw" + "nextLink": "https://microsoft.com/a" } } } diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json new file mode 100644 index 000000000000..19648f9f454e --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json @@ -0,0 +1,53 @@ +{ + "title": "Creates or updates an environment.", + "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "rm", + "userId": "ecllhdlf", + "environmentName": "ybibmcucjxloaiamlghemtibifijdt", + "body": { + "parameters": "cGFyYW1ldGVyczE=", + "environmentType": "zlqyvqtrinekx", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "provisioningState": "Succeeded", + "catalogName": "ayyxfyzejoicocelmprq", + "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + }, + "responses": { + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "parameters": "cGFyYW1ldGVyczE=", + "name": "jurl", + "environmentType": "zlqyvqtrinekx", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "provisioningState": "Succeeded", + "resourceGroupId": "morqkeokwmlevjbhatdup", + "catalogName": "ayyxfyzejoicocelmprq", + "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json new file mode 100644 index 000000000000..7bdc410d6aa3 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json @@ -0,0 +1,37 @@ +{ + "title": "Deletes an environment and all its associated resources", + "operationId": "EnvironmentsOperations_DeleteEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "makxpclulitaedryotaezhsarc", + "userId": "fbmcwpownjucshzdnndefdcp", + "environmentName": "pmqqjc" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "qgqvydkahfqdnvyapn", + "name": "gmjnhbpwdycxlnwgrcl", + "status": "Running", + "resourceId": "enfyiqikaoxyte", + "startTime": "2024-01-24T21:14:58.472Z", + "endTime": "2024-01-24T21:14:58.472Z", + "percentComplete": 3, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json new file mode 100644 index 000000000000..f26c03357d1a --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json @@ -0,0 +1,16 @@ +{ + "title": "Gets the specified catalog within the project", + "operationId": "EnvironmentsOperations_GetCatalog", + "parameters": { + "api-version": "2023-04-01", + "projectName": "sdjsxjfeyljbfgngnvcxjjlwn", + "catalogName": "cuinanezvalmogietninyaepn" + }, + "responses": { + "200": { + "body": { + "name": "vbbkoceucvtleblkqekdaexqepgyc" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json new file mode 100644 index 000000000000..3f067523d4c7 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json @@ -0,0 +1,33 @@ +{ + "title": "Gets an environment", + "operationId": "EnvironmentsOperations_GetEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "xzxvhmulzlerr", + "userId": "rnlkjyggdaasja", + "environmentName": "ilau" + }, + "responses": { + "200": { + "body": { + "parameters": "cGFyYW1ldGVyczE=", + "name": "jurl", + "environmentType": "zlqyvqtrinekx", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "provisioningState": "Succeeded", + "resourceGroupId": "morqkeokwmlevjbhatdup", + "catalogName": "ayyxfyzejoicocelmprq", + "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json new file mode 100644 index 000000000000..20d9956dfd90 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json @@ -0,0 +1,36 @@ +{ + "title": "Get an environment definition from a catalog.", + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "parameters": { + "api-version": "2023-04-01", + "projectName": "cgwaeehpqtuwppbntwihwhxffz", + "catalogName": "sjggejuqzlqswvsmkgnnl", + "definitionName": "sjop" + }, + "responses": { + "200": { + "body": { + "id": "pkatvpvrpiioenfnrqe", + "name": "rhabcivgyiwaah", + "catalogName": "uzvgkbgkmk", + "description": "ofjoroavqhsib", + "parameters": [ + { + "id": "jkfdpgw", + "name": "wbppqxcgj", + "description": "gmlxqlcuqccnprmgnukbwduxswnh", + "default": "ZGVmYXVsdDE=", + "type": "array", + "readOnly": true, + "required": true, + "allowed": [ + "gqyuynxzeuwqtvpbocfgc" + ] + } + ], + "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", + "templatePath": "rar" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json new file mode 100644 index 000000000000..b59a65207bc8 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json @@ -0,0 +1,37 @@ +{ + "title": "Lists the environments for a project.", + "operationId": "EnvironmentsOperations_ListAllEnvironments", + "parameters": { + "api-version": "2023-04-01", + "projectName": "rtxnbdeugarpqhejuj", + "top": 12 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "parameters": "cGFyYW1ldGVyczE=", + "name": "jurl", + "environmentType": "zlqyvqtrinekx", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "provisioningState": "Succeeded", + "resourceGroupId": "morqkeokwmlevjbhatdup", + "catalogName": "ayyxfyzejoicocelmprq", + "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json similarity index 63% rename from specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json index 2462fae0f6c6..a4ba5ad02d88 100644 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListCatalogs_MaximumSet_Gen.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json @@ -1,17 +1,17 @@ { - "title": "EnvironmentsOperations_ListCatalogs", + "title": "Lists all of the catalogs available for a project.", "operationId": "EnvironmentsOperations_ListCatalogs", "parameters": { "api-version": "2023-04-01", - "projectName": "zqzzqennymohasyvlxgzsklapbuv", - "top": 27 + "projectName": "qmhuusf", + "top": 2 }, "responses": { "200": { "body": { "value": [ { - "name": "wpssttjdkaodnmrbs" + "name": "vbbkoceucvtleblkqekdaexqepgyc" } ], "nextLink": "https://microsoft.com/a" diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json similarity index 53% rename from specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json index 09c47e656419..0e50041306ff 100644 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MaximumSet_Gen.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json @@ -1,36 +1,36 @@ { - "title": "EnvironmentsOperations_ListEnvironmentDefinitions", + "title": "Lists all environment definitions available for a project.", "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", "parameters": { "api-version": "2023-04-01", - "projectName": "uicdwcwgtnyrr", - "top": 18 + "projectName": "frgamecqz", + "top": 16 }, "responses": { "200": { "body": { "value": [ { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy", - "description": "bfhukdbxvyqapnchejratrnuqralk", + "id": "pkatvpvrpiioenfnrqe", + "name": "rhabcivgyiwaah", + "catalogName": "uzvgkbgkmk", + "description": "ofjoroavqhsib", "parameters": [ { - "id": "baygybdvioqyauqaxh", - "name": "mprqzpvacjerkbaabzcbfnf", - "description": "lfggsbhzlzrhvwwhkrcscl", + "id": "jkfdpgw", + "name": "wbppqxcgj", + "description": "gmlxqlcuqccnprmgnukbwduxswnh", "default": "ZGVmYXVsdDE=", "type": "array", "readOnly": true, "required": true, "allowed": [ - "vnaaovhotcxdhbadmzxvmh" + "gqyuynxzeuwqtvpbocfgc" ] } ], "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", - "templatePath": "ilkmsnsam" + "templatePath": "rar" } ], "nextLink": "https://microsoft.com/a" diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json similarity index 50% rename from specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json index 6a74a680a4fd..b56e0e2f1237 100644 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MaximumSet_Gen.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json @@ -1,37 +1,37 @@ { - "title": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "title": "Lists all environment definitions available within a catalog.", "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", "parameters": { "api-version": "2023-04-01", - "projectName": "ujswiqdpxjwxhknbdlpkbtawuvgzab", - "catalogName": "ajstpidghbelakwpuaskglsophuald", - "top": 14 + "projectName": "pbunknfrtjnqkbz", + "catalogName": "oimgviuwixhp", + "top": 29 }, "responses": { "200": { "body": { "value": [ { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy", - "description": "bfhukdbxvyqapnchejratrnuqralk", + "id": "pkatvpvrpiioenfnrqe", + "name": "rhabcivgyiwaah", + "catalogName": "uzvgkbgkmk", + "description": "ofjoroavqhsib", "parameters": [ { - "id": "baygybdvioqyauqaxh", - "name": "mprqzpvacjerkbaabzcbfnf", - "description": "lfggsbhzlzrhvwwhkrcscl", + "id": "jkfdpgw", + "name": "wbppqxcgj", + "description": "gmlxqlcuqccnprmgnukbwduxswnh", "default": "ZGVmYXVsdDE=", "type": "array", "readOnly": true, "required": true, "allowed": [ - "vnaaovhotcxdhbadmzxvmh" + "gqyuynxzeuwqtvpbocfgc" ] } ], "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", - "templatePath": "ilkmsnsam" + "templatePath": "rar" } ], "nextLink": "https://microsoft.com/a" diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json similarity index 60% rename from specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json rename to specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json index ace73969a3c1..d6c76e309021 100644 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MaximumSet_Gen.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json @@ -1,18 +1,18 @@ { - "title": "EnvironmentsOperations_ListEnvironmentTypes", + "title": "Lists all environment types configured for a project.", "operationId": "EnvironmentsOperations_ListEnvironmentTypes", "parameters": { "api-version": "2023-04-01", - "projectName": "tzbpnr", - "top": 13 + "projectName": "c", + "top": 7 }, "responses": { "200": { "body": { "value": [ { - "name": "phpzcqpagfzuakwmfwtn", - "deploymentTargetId": "zuzmfjtjrfkooo", + "name": "rvlfnpsglaihocattmhdswncjmn", + "deploymentTargetId": "rspdrsmefyxegg", "status": "Enabled" } ], diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json new file mode 100644 index 000000000000..c5757533a30a --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json @@ -0,0 +1,38 @@ +{ + "title": "Lists the environments for a project and user.", + "operationId": "EnvironmentsOperations_ListEnvironments", + "parameters": { + "api-version": "2023-04-01", + "projectName": "dusvmkqsfvpuwblcypodtmdutqlaip", + "userId": "hkdwumpqihnvpkivnfofjfeklzpoxo", + "top": 17 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "parameters": "cGFyYW1ldGVyczE=", + "name": "jurl", + "environmentType": "zlqyvqtrinekx", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "provisioningState": "Succeeded", + "resourceGroupId": "morqkeokwmlevjbhatdup", + "catalogName": "ayyxfyzejoicocelmprq", + "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json b/specification/devcenter/DevCenter/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json new file mode 100644 index 000000000000..5310b772d744 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json @@ -0,0 +1,32 @@ +{ + "title": "SharedOperations_GetProjectOperationStatus", + "operationId": "SharedOperations_GetProjectOperationStatus", + "parameters": { + "api-version": "2023-04-01", + "projectName": "nuuuznfzityiftaeeegmu", + "operationId": "njnpajhbysgc" + }, + "responses": { + "200": { + "body": { + "id": "qgqvydkahfqdnvyapn", + "name": "gmjnhbpwdycxlnwgrcl", + "status": "Running", + "resourceId": "enfyiqikaoxyte", + "startTime": "2024-01-24T21:14:58.472Z", + "endTime": "2024-01-24T21:14:58.472Z", + "percentComplete": 3, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json deleted file mode 100644 index 285a487d25cd..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser_MaximumSet_Gen.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "title": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", - "parameters": { - "api-version": "2023-04-01", - "filter": "lwxbqggfq", - "top": 24, - "userId": "nraaavrpkhjpxzrxjcbumcv" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json deleted file mode 100644 index 010a3f51a1a3..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesDevCenterOperations_ListAllDevBoxes_MaximumSet_Gen.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "title": "DevBoxesDevCenterOperations_ListAllDevBoxes", - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", - "parameters": { - "api-version": "2023-04-01", - "filter": "xwnjamlegrgktjkw", - "top": 6 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json deleted file mode 100644 index c469b064bb57..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_CreateDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "title": "DevBoxesOperations_CreateDevBox", - "operationId": "DevBoxesOperations_CreateDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "hc", - "userId": "zrxzbpxvikzzuxzlgrbqhlt", - "devBoxName": "ojaxfdr", - "devBox": { - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2" - }, - "storageProfile": { - "osDisk": {} - }, - "imageReference": {}, - "localAdministrator": "Enabled" - } - }, - "responses": { - "200": { - "body": { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - }, - "201": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json deleted file mode 100644 index 3a1bf22fbbd3..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAction_MaximumSet_Gen.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "title": "DevBoxesOperations_DelayAction", - "operationId": "DevBoxesOperations_DelayAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "oq", - "userId": "v", - "devBoxName": "ouhgpydruwdplpfhedd", - "actionName": "tmyli", - "until": "2024-01-24T14:27:28.195Z" - }, - "responses": { - "200": { - "body": { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd", - "suspendedUntil": "2024-01-24T14:27:27.382Z", - "next": { - "scheduledTime": "2024-01-24T14:27:27.382Z" - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json deleted file mode 100644 index 036bb450e403..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAction_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "DevBoxesOperations_DelayAction", - "operationId": "DevBoxesOperations_DelayAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "aricsncjmlgemlyvhlxdrchusx", - "userId": "gyguohehwnwjxjg", - "devBoxName": "ybcer", - "actionName": "komblvwlzban", - "until": "2024-01-24T14:27:28.333Z" - }, - "responses": { - "200": { - "body": { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json deleted file mode 100644 index 0198e8bf730f..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAllActions_MaximumSet_Gen.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "title": "DevBoxesOperations_DelayAllActions", - "operationId": "DevBoxesOperations_DelayAllActions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "qljcioth", - "userId": "tovvhjfwaeuwq", - "devBoxName": "gktlrtlopnpnji", - "until": "2024-01-24T14:27:28.460Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "stbeqwwkldoeahbpcknencysat", - "result": "Succeeded", - "action": { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd", - "suspendedUntil": "2024-01-24T14:27:27.382Z", - "next": { - "scheduledTime": "2024-01-24T14:27:27.382Z" - } - }, - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json deleted file mode 100644 index 34b9a1ee37d1..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_DelayAllActions_MinimumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "DevBoxesOperations_DelayAllActions", - "operationId": "DevBoxesOperations_DelayAllActions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "xdhidzhdd", - "userId": "sqvhdjkwo", - "devBoxName": "lkihxrrkkwacvwarjntollzvbsfkp", - "until": "2024-01-24T14:27:28.607Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "stbeqwwkldoeahbpcknencysat", - "result": "Succeeded" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json deleted file mode 100644 index 811e287b2e1b..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_DeleteDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "DevBoxesOperations_DeleteDevBox", - "operationId": "DevBoxesOperations_DeleteDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "rzmjqdstyynlyrqyydh", - "userId": "pjafwzsacbpapssdhefh", - "devBoxName": "zjquymtrawqtmbga" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - }, - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json deleted file mode 100644 index bae4018e44aa..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_DeleteDevBox_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "DevBoxesOperations_DeleteDevBox", - "operationId": "DevBoxesOperations_DeleteDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "cq", - "userId": "wjyrowpimnkxfcvnmmi", - "devBoxName": "syrqzpjlgmhvo" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "status": "Running" - } - }, - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json deleted file mode 100644 index acb97113ef7e..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBoxAction_MaximumSet_Gen.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": "DevBoxesOperations_GetDevBoxAction", - "operationId": "DevBoxesOperations_GetDevBoxAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "glxljthnrhpuelubrbojrbjkpwmzmw", - "userId": "osplrrvvaqvfjuoscgemlbushww", - "devBoxName": "xyroziipagygloi", - "actionName": "qsxyptia" - }, - "responses": { - "200": { - "body": { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd", - "suspendedUntil": "2024-01-24T14:27:27.382Z", - "next": { - "scheduledTime": "2024-01-24T14:27:27.382Z" - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json deleted file mode 100644 index 6760b2dd19f7..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBoxAction_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "DevBoxesOperations_GetDevBoxAction", - "operationId": "DevBoxesOperations_GetDevBoxAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "alrkctrxkqjap", - "userId": "gvkhxoguxnwiuuhcyfjaqzcvvt", - "devBoxName": "lgrnrwossujasciahkws", - "actionName": "if" - }, - "responses": { - "200": { - "body": { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json deleted file mode 100644 index 0821e899382b..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "title": "DevBoxesOperations_GetDevBox", - "operationId": "DevBoxesOperations_GetDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "tkpwuk", - "userId": "zmfdwcgdqya", - "devBoxName": "jbqeq" - }, - "responses": { - "200": { - "body": { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json deleted file mode 100644 index d61cd338a0ce..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetPool_MinimumSet_Gen.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "title": "DevBoxesOperations_GetPool", - "operationId": "DevBoxesOperations_GetPool", - "parameters": { - "api-version": "2023-04-01", - "projectName": "vfhixpfkprhaxnilvakjnbrtw", - "poolName": "q" - }, - "responses": { - "200": { - "body": { - "name": "peoaccqvxjgwhwrn", - "location": "lcmcoqs", - "healthStatus": "Unknown" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json deleted file mode 100644 index 7fa2761a8f3d..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetRemoteConnection_MinimumSet_Gen.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "title": "DevBoxesOperations_GetRemoteConnection", - "operationId": "DevBoxesOperations_GetRemoteConnection", - "parameters": { - "api-version": "2023-04-01", - "projectName": "hwrxgjhgwxvhmpvmwxha", - "userId": "grqeayztkjyzrkoabmniccl", - "devBoxName": "lhnkqhutcz" - }, - "responses": { - "200": { - "body": {} - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json deleted file mode 100644 index 38014eff0993..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_GetSchedule_MaximumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "DevBoxesOperations_GetSchedule", - "operationId": "DevBoxesOperations_GetSchedule", - "parameters": { - "api-version": "2023-04-01", - "projectName": "gnzaegjvirufpsa", - "poolName": "uscquok", - "scheduleName": "eamfzjecviossmyccklwr" - }, - "responses": { - "200": { - "body": { - "name": "dttuou", - "type": "StopDevBox", - "frequency": "Daily", - "time": "nxohypdpsxuox", - "timeZone": "gjbehvuedwxxoavcdjn" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json deleted file mode 100644 index 2458a0d89678..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxActions_MaximumSet_Gen.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "title": "DevBoxesOperations_ListDevBoxActions", - "operationId": "DevBoxesOperations_ListDevBoxActions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "bcoglkxasdazbhsthyntrt", - "userId": "zsjgkzhvcbb", - "devBoxName": "udackwcvhnoxzukxykmhpove" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd", - "suspendedUntil": "2024-01-24T14:27:27.382Z", - "next": { - "scheduledTime": "2024-01-24T14:27:27.382Z" - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json deleted file mode 100644 index 3cc8ea208c68..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxActions_MinimumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "DevBoxesOperations_ListDevBoxActions", - "operationId": "DevBoxesOperations_ListDevBoxActions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "rwaswcxshhpbuvdch", - "userId": "bgrmovzdiriizgvklduy", - "devBoxName": "xlpbvuhrkejxpjumbq" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "mxpakmzoihivqlqnbsyvpznggxjlh", - "actionType": "Stop", - "sourceId": "yngdletjzfexgyd" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json deleted file mode 100644 index d908f24ec700..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListDevBoxes_MaximumSet_Gen.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "title": "DevBoxesOperations_ListDevBoxes", - "operationId": "DevBoxesOperations_ListDevBoxes", - "parameters": { - "api-version": "2023-04-01", - "projectName": "lrjfpaknnbligycnycagqaty", - "userId": "iadgmrsmzltydlacort", - "filter": "frmetpxpuutc", - "top": 24 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "nerjepw", - "projectName": "gxvvgesijsbrstauthpd", - "poolName": "G_.W4_63__.-_24-e_n-6-4_8_-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "zldicwirbsezeuj", - "powerState": "Unknown", - "uniqueId": "oifzytyyzqscdvtcbmgezfnifkhipq", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - }, - "location": "bwyoxyk", - "osType": "Windows", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 22, - "memoryGB": 6 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 17 - } - }, - "imageReference": { - "name": "guhafsfggdvnnmtab", - "version": "giit", - "operatingSystem": "mjlop", - "osBuildNumber": "agktsd", - "publishedDate": "2024-01-24T14:27:22.803Z" - }, - "createdTime": "2024-01-24T14:27:22.803Z", - "localAdministrator": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json deleted file mode 100644 index e126aed391a6..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_ListPools_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "DevBoxesOperations_ListPools", - "operationId": "DevBoxesOperations_ListPools", - "parameters": { - "api-version": "2023-04-01", - "projectName": "ovbxdmmgpmmaft" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "peoaccqvxjgwhwrn", - "location": "lcmcoqs", - "healthStatus": "Unknown" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json deleted file mode 100644 index 979b2c130b8c..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_RestartDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "DevBoxesOperations_RestartDevBox", - "operationId": "DevBoxesOperations_RestartDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "jnetbetrcvennkzmgksdypcuckcop", - "userId": "byrgeflxmycdavj", - "devBoxName": "irpblyyaeknrggnduws" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json deleted file mode 100644 index d4250477fe29..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_RestartDevBox_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "DevBoxesOperations_RestartDevBox", - "operationId": "DevBoxesOperations_RestartDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "jjm", - "userId": "sddbzmndqdeyllhgdavgqrnhinqdo", - "devBoxName": "shlzdvyiswk" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "status": "Running" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json deleted file mode 100644 index 06ae68fc5aeb..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_SkipAction_MaximumSet_Gen.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "title": "DevBoxesOperations_SkipAction", - "operationId": "DevBoxesOperations_SkipAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "prkbxhmgkmfc", - "userId": "lzqciljtgzvswsyatkc", - "devBoxName": "kale", - "actionName": "khnoyfp" - }, - "responses": { - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json deleted file mode 100644 index e8c4a580f960..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_SkipAction_MinimumSet_Gen.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "title": "DevBoxesOperations_SkipAction", - "operationId": "DevBoxesOperations_SkipAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "wgzgfignbm", - "userId": "i", - "devBoxName": "jqxvgkkrbdctycukptzcov", - "actionName": "fsrpxqrqbdoohqqfpp" - }, - "responses": { - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json deleted file mode 100644 index 739000182051..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_StartDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "DevBoxesOperations_StartDevBox", - "operationId": "DevBoxesOperations_StartDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "or", - "userId": "yvrgabsfgrwevlnakythltag", - "devBoxName": "tjeptwsraihssxiamr" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json deleted file mode 100644 index 519518be31a5..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_StartDevBox_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "DevBoxesOperations_StartDevBox", - "operationId": "DevBoxesOperations_StartDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "ygt", - "userId": "gaiudhfnzqhxdjjnlwopwjhs", - "devBoxName": "urwps" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "status": "Running" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json deleted file mode 100644 index 59fb1198abd7..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_StopDevBox_MaximumSet_Gen.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "DevBoxesOperations_StopDevBox", - "operationId": "DevBoxesOperations_StopDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "tlxqhsgz", - "userId": "cxwsxwnrfmouyegvpv", - "devBoxName": "psesagmgxyg", - "hibernate": true - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json deleted file mode 100644 index ac808f769d2c..000000000000 --- a/specification/devcenter/DevCenter/examples/DevBoxesOperations_StopDevBox_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "DevBoxesOperations_StopDevBox", - "operationId": "DevBoxesOperations_StopDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "mz", - "userId": "nqqukcsjqbyumxeipcgbpex", - "devBoxName": "gbdfetswc" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "status": "Running" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json deleted file mode 100644 index eb97a861f0eb..000000000000 --- a/specification/devcenter/DevCenter/examples/DevCenterOperations_ListProjects_MinimumSet_Gen.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "title": "DevCenterOperations_ListProjects", - "operationId": "DevCenterOperations_ListProjects", - "parameters": { - "api-version": "2023-04-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "upkhozglybnjxyddpkhxbas" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json deleted file mode 100644 index 94798a9ed07c..000000000000 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_CreateOrUpdateEnvironment_MaximumSet_Gen.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "title": "EnvironmentsOperations_CreateOrUpdateEnvironment", - "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "dddcoym", - "userId": "omhhasnvdzwrcgxdplbtjfdqey", - "environmentName": "zbrq", - "body": { - "parameters": "cGFyYW1ldGVyczE=", - "environmentType": "dofjlkatvtgyrrptdceh", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "provisioningState": "Succeeded", - "catalogName": "kooctlekexoqxtab", - "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - }, - "responses": { - "201": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "parameters": "cGFyYW1ldGVyczE=", - "name": "tssazaenxcdufd", - "environmentType": "dofjlkatvtgyrrptdceh", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "provisioningState": "Succeeded", - "resourceGroupId": "ndkhtkjjllouauuaroljtn", - "catalogName": "kooctlekexoqxtab", - "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json deleted file mode 100644 index 54519b456477..000000000000 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_DeleteEnvironment_MaximumSet_Gen.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "EnvironmentsOperations_DeleteEnvironment", - "operationId": "EnvironmentsOperations_DeleteEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "jc", - "userId": "amg", - "environmentName": "hvolzcqeznjuyhtostvwgprwh" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - }, - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json deleted file mode 100644 index 00b0f00a133b..000000000000 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_DeleteEnvironment_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "EnvironmentsOperations_DeleteEnvironment", - "operationId": "EnvironmentsOperations_DeleteEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "imtrysrbaujriznz", - "userId": "jqznoedlggzpbhrtbjrymbery", - "environmentName": "vcnzrsiodxomqt" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "status": "Running" - } - }, - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json deleted file mode 100644 index 2a6a49fbea9d..000000000000 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetCatalog_MaximumSet_Gen.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "title": "EnvironmentsOperations_GetCatalog", - "operationId": "EnvironmentsOperations_GetCatalog", - "parameters": { - "api-version": "2023-04-01", - "projectName": "rwg", - "catalogName": "mdaw" - }, - "responses": { - "200": { - "body": { - "name": "wpssttjdkaodnmrbs" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json deleted file mode 100644 index ccd23fcde480..000000000000 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetCatalog_MinimumSet_Gen.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "title": "EnvironmentsOperations_GetCatalog", - "operationId": "EnvironmentsOperations_GetCatalog", - "parameters": { - "api-version": "2023-04-01", - "projectName": "mlsidvtzl", - "catalogName": "apucizvbayht" - }, - "responses": { - "200": { - "body": { - "name": "wpssttjdkaodnmrbs" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json deleted file mode 100644 index dc0c4f3ef725..000000000000 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MaximumSet_Gen.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "EnvironmentsOperations_GetEnvironmentDefinition", - "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", - "parameters": { - "api-version": "2023-04-01", - "projectName": "aimcuhzcmyceybzenjdbhcvdfne", - "catalogName": "jxt", - "definitionName": "lww" - }, - "responses": { - "200": { - "body": { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy", - "description": "bfhukdbxvyqapnchejratrnuqralk", - "parameters": [ - { - "id": "baygybdvioqyauqaxh", - "name": "mprqzpvacjerkbaabzcbfnf", - "description": "lfggsbhzlzrhvwwhkrcscl", - "default": "ZGVmYXVsdDE=", - "type": "array", - "readOnly": true, - "required": true, - "allowed": [ - "vnaaovhotcxdhbadmzxvmh" - ] - } - ], - "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", - "templatePath": "ilkmsnsam" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json deleted file mode 100644 index 4fabb6230b6b..000000000000 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironmentDefinition_MinimumSet_Gen.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title": "EnvironmentsOperations_GetEnvironmentDefinition", - "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", - "parameters": { - "api-version": "2023-04-01", - "projectName": "hqdnkvpdnykkodecirwibwn", - "catalogName": "abjumflcacbkwdnhjsyduha", - "definitionName": "nlonaypdiiotuksvrlp" - }, - "responses": { - "200": { - "body": { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json deleted file mode 100644 index 4fd1d206a1fd..000000000000 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_GetEnvironment_MaximumSet_Gen.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "title": "EnvironmentsOperations_GetEnvironment", - "operationId": "EnvironmentsOperations_GetEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "kmknuheslpawpzcopvlmgqsxyx", - "userId": "kejihmuayj", - "environmentName": "mpenqcgrgwhgzlkobom" - }, - "responses": { - "200": { - "body": { - "parameters": "cGFyYW1ldGVyczE=", - "name": "tssazaenxcdufd", - "environmentType": "dofjlkatvtgyrrptdceh", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "provisioningState": "Succeeded", - "resourceGroupId": "ndkhtkjjllouauuaroljtn", - "catalogName": "kooctlekexoqxtab", - "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json deleted file mode 100644 index 4ec626766ffc..000000000000 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListAllEnvironments_MaximumSet_Gen.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListAllEnvironments", - "operationId": "EnvironmentsOperations_ListAllEnvironments", - "parameters": { - "api-version": "2023-04-01", - "projectName": "dkaownnoxfirsnmw", - "top": 19 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "parameters": "cGFyYW1ldGVyczE=", - "name": "tssazaenxcdufd", - "environmentType": "dofjlkatvtgyrrptdceh", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "provisioningState": "Succeeded", - "resourceGroupId": "ndkhtkjjllouauuaroljtn", - "catalogName": "kooctlekexoqxtab", - "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json deleted file mode 100644 index 891e3e207bd0..000000000000 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog_MinimumSet_Gen.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", - "parameters": { - "api-version": "2023-04-01", - "projectName": "gmxmkiz", - "catalogName": "szzvqfguguxzhho" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json deleted file mode 100644 index 017a1b156745..000000000000 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentDefinitions_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironmentDefinitions", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "csvkkdyyunzdutzznramubczme" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "jmlgzggbzdtkerrynrvylxdtcwsfsz", - "name": "b", - "catalogName": "nlmwqwffmecy" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json deleted file mode 100644 index 0222aa9fcaf5..000000000000 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironmentTypes_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironmentTypes", - "operationId": "EnvironmentsOperations_ListEnvironmentTypes", - "parameters": { - "api-version": "2023-04-01", - "projectName": "yuajufwggbewbpaulopx" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "phpzcqpagfzuakwmfwtn", - "deploymentTargetId": "zuzmfjtjrfkooo", - "status": "Enabled" - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json deleted file mode 100644 index 63d1ba5c2995..000000000000 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListEnvironments_MaximumSet_Gen.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "title": "EnvironmentsOperations_ListEnvironments", - "operationId": "EnvironmentsOperations_ListEnvironments", - "parameters": { - "api-version": "2023-04-01", - "projectName": "um", - "userId": "qxxrsqhxchkms", - "top": 6 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "parameters": "cGFyYW1ldGVyczE=", - "name": "tssazaenxcdufd", - "environmentType": "dofjlkatvtgyrrptdceh", - "user": "oifzytyyzqscdvtcbmgezfnifkhipq", - "provisioningState": "Succeeded", - "resourceGroupId": "ndkhtkjjllouauuaroljtn", - "catalogName": "kooctlekexoqxtab", - "environmentDefinitionName": "brwpwbsyqdxjgmxfwhmzlmvbehzly", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json b/specification/devcenter/DevCenter/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json deleted file mode 100644 index 9528291cc413..000000000000 --- a/specification/devcenter/DevCenter/examples/SharedOperations_GetProjectOperationStatus_MaximumSet_Gen.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "title": "SharedOperations_GetProjectOperationStatus", - "operationId": "SharedOperations_GetProjectOperationStatus", - "parameters": { - "api-version": "2023-04-01", - "projectName": "yjpezkb", - "operationId": "qfdfglfmalixtemza" - }, - "responses": { - "200": { - "body": { - "id": "in", - "name": "onyfyxwmwgnlxgrzpwaamouvgh", - "status": "Running", - "resourceId": "cevpositrvfowiz", - "startTime": "2024-01-24T14:27:25.012Z", - "endTime": "2024-01-24T14:27:25.012Z", - "percentComplete": 76, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "xq", - "message": "xv", - "target": "ocbyawprqnesxbktrinywjh", - "details": [], - "innererror": { - "code": "echraitucknphbjptxeslbp" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json b/specification/devcenter/DevCenter/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json deleted file mode 100644 index 91133f491634..000000000000 --- a/specification/devcenter/DevCenter/examples/SharedOperations_GetProjectOperationStatus_MinimumSet_Gen.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "title": "SharedOperations_GetProjectOperationStatus", - "operationId": "SharedOperations_GetProjectOperationStatus", - "parameters": { - "api-version": "2023-04-01", - "projectName": "aakrmvajwvn", - "operationId": "jutxyjwvvdbnsbjgufr" - }, - "responses": { - "200": { - "body": { - "status": "Running" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json new file mode 100644 index 000000000000..51f94500e3db --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json @@ -0,0 +1,59 @@ +{ + "title": "Lists Dev Boxes that the caller has access to in the DevCenter.", + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", + "parameters": { + "api-version": "2023-04-01", + "filter": "bawvkgqrdej", + "top": 27 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "umfutyopjqlkfpnsrstaksogsub", + "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", + "poolName": "lFR5__5-_E0gWK__-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "gzcgcb", + "powerState": "Unknown", + "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + }, + "location": "libjfmzzzfmvpwmxnblsmwykh", + "osType": "Windows", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 3, + "memoryGB": 30 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 24 + } + }, + "imageReference": { + "name": "m", + "version": "fqvya", + "operatingSystem": "q", + "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", + "publishedDate": "2024-01-24T21:14:56.489Z" + }, + "createdTime": "2024-01-24T21:14:56.489Z", + "localAdministrator": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json new file mode 100644 index 000000000000..2eb0b237c3ed --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json @@ -0,0 +1,60 @@ +{ + "title": "Lists Dev Boxes in the Dev Center for a particular user.", + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "parameters": { + "api-version": "2023-04-01", + "filter": "ismwy", + "top": 9, + "userId": "jehwvcrwpfddenzyf" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "umfutyopjqlkfpnsrstaksogsub", + "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", + "poolName": "lFR5__5-_E0gWK__-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "gzcgcb", + "powerState": "Unknown", + "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + }, + "location": "libjfmzzzfmvpwmxnblsmwykh", + "osType": "Windows", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 3, + "memoryGB": 30 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 24 + } + }, + "imageReference": { + "name": "m", + "version": "fqvya", + "operatingSystem": "q", + "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", + "publishedDate": "2024-01-24T21:14:56.489Z" + }, + "createdTime": "2024-01-24T21:14:56.489Z", + "localAdministrator": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json new file mode 100644 index 000000000000..6842b686c998 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json @@ -0,0 +1,127 @@ +{ + "title": "Creates or replaces a Dev Box.", + "operationId": "DevBoxesOperations_CreateDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "sakfxntevmehtdbtwjsfxnbnbcc", + "userId": "wfbmdncbebsq", + "devBoxName": "tjhqutmfdvy", + "devBox": { + "poolName": "lFR5__5-_E0gWK__-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "powerState": "Unknown", + "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + }, + "osType": "Windows", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2" + }, + "storageProfile": { + "osDisk": {} + }, + "imageReference": {}, + "localAdministrator": "Enabled" + } + }, + "responses": { + "200": { + "body": { + "name": "umfutyopjqlkfpnsrstaksogsub", + "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", + "poolName": "lFR5__5-_E0gWK__-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "gzcgcb", + "powerState": "Unknown", + "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + }, + "location": "libjfmzzzfmvpwmxnblsmwykh", + "osType": "Windows", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 3, + "memoryGB": 30 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 24 + } + }, + "imageReference": { + "name": "m", + "version": "fqvya", + "operatingSystem": "q", + "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", + "publishedDate": "2024-01-24T21:14:56.489Z" + }, + "createdTime": "2024-01-24T21:14:56.489Z", + "localAdministrator": "Enabled" + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "name": "umfutyopjqlkfpnsrstaksogsub", + "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", + "poolName": "lFR5__5-_E0gWK__-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "gzcgcb", + "powerState": "Unknown", + "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + }, + "location": "libjfmzzzfmvpwmxnblsmwykh", + "osType": "Windows", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 3, + "memoryGB": 30 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 24 + } + }, + "imageReference": { + "name": "m", + "version": "fqvya", + "operatingSystem": "q", + "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", + "publishedDate": "2024-01-24T21:14:56.489Z" + }, + "createdTime": "2024-01-24T21:14:56.489Z", + "localAdministrator": "Enabled" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json new file mode 100644 index 000000000000..fac9749acc5f --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json @@ -0,0 +1,25 @@ +{ + "title": "Delays the occurrence of an action.", + "operationId": "DevBoxesOperations_DelayAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "weeutabqporpt", + "userId": "hpltjhjacjpvdujb", + "devBoxName": "kv", + "actionName": "mmmcpjfeveltcfdkasvavovihx", + "until": "2024-01-24T21:15:01.753Z" + }, + "responses": { + "200": { + "body": { + "name": "pjj", + "actionType": "Stop", + "sourceId": "rqdtniydrmnkdmdxssgid", + "suspendedUntil": "2024-01-24T21:15:00.943Z", + "next": { + "scheduledTime": "2024-01-24T21:15:00.943Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json new file mode 100644 index 000000000000..1d6da069ad00 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json @@ -0,0 +1,42 @@ +{ + "title": "Delays all actions.", + "operationId": "DevBoxesOperations_DelayAllActions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "sqffqdbpbwz", + "userId": "hhwmgjcpvlalfiyvfitvyor", + "devBoxName": "eczuupvnmezorxwevpdqeepj", + "until": "2024-01-24T21:15:02.027Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "desjl", + "result": "Succeeded", + "action": { + "name": "pjj", + "actionType": "Stop", + "sourceId": "rqdtniydrmnkdmdxssgid", + "suspendedUntil": "2024-01-24T21:15:00.943Z", + "next": { + "scheduledTime": "2024-01-24T21:15:00.943Z" + } + }, + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json new file mode 100644 index 000000000000..0052e4242aeb --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json @@ -0,0 +1,37 @@ +{ + "title": "Deletes a Dev Box.", + "operationId": "DevBoxesOperations_DeleteDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "tfy", + "userId": "uyeccgmzsqokjbudcpovzqpnwzx", + "devBoxName": "imofroozhmowydi" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "qgqvydkahfqdnvyapn", + "name": "gmjnhbpwdycxlnwgrcl", + "status": "Running", + "resourceId": "enfyiqikaoxyte", + "startTime": "2024-01-24T21:14:58.472Z", + "endTime": "2024-01-24T21:14:58.472Z", + "percentComplete": 3, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json new file mode 100644 index 000000000000..8107c2b01996 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json @@ -0,0 +1,55 @@ +{ + "title": "Gets a Dev Box", + "operationId": "DevBoxesOperations_GetDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "abnt", + "userId": "slzcqbrtifikxbizrbzejnbxaunyg", + "devBoxName": "iuoxkfqb" + }, + "responses": { + "200": { + "body": { + "name": "umfutyopjqlkfpnsrstaksogsub", + "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", + "poolName": "lFR5__5-_E0gWK__-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "gzcgcb", + "powerState": "Unknown", + "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + }, + "location": "libjfmzzzfmvpwmxnblsmwykh", + "osType": "Windows", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 3, + "memoryGB": 30 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 24 + } + }, + "imageReference": { + "name": "m", + "version": "fqvya", + "operatingSystem": "q", + "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", + "publishedDate": "2024-01-24T21:14:56.489Z" + }, + "createdTime": "2024-01-24T21:14:56.489Z", + "localAdministrator": "Enabled" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json new file mode 100644 index 000000000000..3805bb777fa8 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json @@ -0,0 +1,24 @@ +{ + "title": "Gets an action.", + "operationId": "DevBoxesOperations_GetDevBoxAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "pcvmmsjcsemqeltystiofpxh", + "userId": "dvcvzpbpfurburhes", + "devBoxName": "tzqgsjkakbgeksgoflcxkzhrxdfsm", + "actionName": "wbcv" + }, + "responses": { + "200": { + "body": { + "name": "pjj", + "actionType": "Stop", + "sourceId": "rqdtniydrmnkdmdxssgid", + "suspendedUntil": "2024-01-24T21:15:00.943Z", + "next": { + "scheduledTime": "2024-01-24T21:15:00.943Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json new file mode 100644 index 000000000000..306862e514a4 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json @@ -0,0 +1,42 @@ +{ + "title": "Gets a pool", + "operationId": "DevBoxesOperations_GetPool", + "parameters": { + "api-version": "2023-04-01", + "projectName": "gbjtzzssqvgqx", + "poolName": "fbopjwaybuhzrvgd" + }, + "responses": { + "200": { + "body": { + "name": "xseeobjdsdpjl", + "location": "cyzkbkpj", + "osType": "Windows", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 3, + "memoryGB": 30 + }, + "hibernateSupport": "Enabled", + "storageProfile": { + "osDisk": { + "diskSizeGB": 24 + } + }, + "imageReference": { + "name": "m", + "version": "fqvya", + "operatingSystem": "q", + "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", + "publishedDate": "2024-01-24T21:14:56.489Z" + }, + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 12 + }, + "healthStatus": "Unknown" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json new file mode 100644 index 000000000000..e03afee8a3a2 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json @@ -0,0 +1,18 @@ +{ + "title": "Gets RDP Connection info", + "operationId": "DevBoxesOperations_GetRemoteConnection", + "parameters": { + "api-version": "2023-04-01", + "projectName": "yhhkvvjywohpykksfkbnyvxpdzoonm", + "userId": "actefvzkfnruvwkhqreqwvtxey", + "devBoxName": "oizhaeta" + }, + "responses": { + "200": { + "body": { + "webUrl": "https://microsoft.com/axdulmg", + "rdpConnectionUrl": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json new file mode 100644 index 000000000000..8e0bfa84b694 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json @@ -0,0 +1,21 @@ +{ + "title": "Gets a schedule.", + "operationId": "DevBoxesOperations_GetSchedule", + "parameters": { + "api-version": "2023-04-01", + "projectName": "xkpiitmwrpbo", + "poolName": "tkhvhyfjkewjrce", + "scheduleName": "xthiqb" + }, + "responses": { + "200": { + "body": { + "name": "wjkgmsestuxvsqnzrdfvyojwozs", + "type": "StopDevBox", + "frequency": "Daily", + "time": "dpotf", + "timeZone": "frdpbsljjcxu" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json new file mode 100644 index 000000000000..864b8cd45134 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json @@ -0,0 +1,28 @@ +{ + "title": "Lists actions on a Dev Box.", + "operationId": "DevBoxesOperations_ListDevBoxActions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "bozdcianuefdzhxpbwxquna", + "userId": "pkxoszxdayvqo", + "devBoxName": "iyusuizyzdoozbm" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "pjj", + "actionType": "Stop", + "sourceId": "rqdtniydrmnkdmdxssgid", + "suspendedUntil": "2024-01-24T21:15:00.943Z", + "next": { + "scheduledTime": "2024-01-24T21:15:00.943Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json new file mode 100644 index 000000000000..77447f0e35a7 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json @@ -0,0 +1,61 @@ +{ + "title": "Lists Dev Boxes in the project for a particular user.", + "operationId": "DevBoxesOperations_ListDevBoxes", + "parameters": { + "api-version": "2023-04-01", + "projectName": "zoeuqoedpb", + "userId": "jswwayblmdmdgavyxmmhls", + "filter": "zxrh", + "top": 19 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "umfutyopjqlkfpnsrstaksogsub", + "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", + "poolName": "lFR5__5-_E0gWK__-", + "hibernateSupport": "Enabled", + "provisioningState": "Succeeded", + "actionState": "gzcgcb", + "powerState": "Unknown", + "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + }, + "location": "libjfmzzzfmvpwmxnblsmwykh", + "osType": "Windows", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 3, + "memoryGB": 30 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 24 + } + }, + "imageReference": { + "name": "m", + "version": "fqvya", + "operatingSystem": "q", + "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", + "publishedDate": "2024-01-24T21:14:56.489Z" + }, + "createdTime": "2024-01-24T21:14:56.489Z", + "localAdministrator": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json new file mode 100644 index 000000000000..ea6633977a60 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json @@ -0,0 +1,48 @@ +{ + "title": "Lists available pools", + "operationId": "DevBoxesOperations_ListPools", + "parameters": { + "api-version": "2023-04-01", + "projectName": "lujxbvczu", + "filter": "mrbumagoudkbnjfnaczpjiihojn", + "top": 21 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "xseeobjdsdpjl", + "location": "cyzkbkpj", + "osType": "Windows", + "hardwareProfile": { + "skuName": "general_i_8c32gb256ssd_v2", + "vCPUs": 3, + "memoryGB": 30 + }, + "hibernateSupport": "Enabled", + "storageProfile": { + "osDisk": { + "diskSizeGB": 24 + } + }, + "imageReference": { + "name": "m", + "version": "fqvya", + "operatingSystem": "q", + "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", + "publishedDate": "2024-01-24T21:14:56.489Z" + }, + "localAdministrator": "Enabled", + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 12 + }, + "healthStatus": "Unknown" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json new file mode 100644 index 000000000000..a0a09fbb09be --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json @@ -0,0 +1,27 @@ +{ + "title": "Lists available schedules for a pool.", + "operationId": "DevBoxesOperations_ListSchedules", + "parameters": { + "api-version": "2023-04-01", + "projectName": "dcdenfonrmyqdelhxyfkg", + "poolName": "dpwmmxjwbwhcbie", + "filter": "cpazhrejyrzummhwkcxatkem", + "top": 12 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "wjkgmsestuxvsqnzrdfvyojwozs", + "type": "StopDevBox", + "frequency": "Daily", + "time": "dpotf", + "timeZone": "frdpbsljjcxu" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json new file mode 100644 index 000000000000..f4ded33cf025 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json @@ -0,0 +1,36 @@ +{ + "title": "Restarts a Dev Box", + "operationId": "DevBoxesOperations_RestartDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "cfdsnqksinmveazbmvjzhgqcwk", + "userId": "npcxuhbzsptftyoj", + "devBoxName": "hheqmxzsfkcbadaooeg" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "qgqvydkahfqdnvyapn", + "name": "gmjnhbpwdycxlnwgrcl", + "status": "Running", + "resourceId": "enfyiqikaoxyte", + "startTime": "2024-01-24T21:14:58.472Z", + "endTime": "2024-01-24T21:14:58.472Z", + "percentComplete": 3, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json new file mode 100644 index 000000000000..91bf430b3ab1 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json @@ -0,0 +1,14 @@ +{ + "title": "Skips an occurrence of an action.", + "operationId": "DevBoxesOperations_SkipAction", + "parameters": { + "api-version": "2023-04-01", + "projectName": "aeaaemtbnqiziap", + "userId": "pxfmitbjrwllkltp", + "devBoxName": "yefugsximdb", + "actionName": "aspdnasqei" + }, + "responses": { + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json new file mode 100644 index 000000000000..1684ea81b392 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json @@ -0,0 +1,36 @@ +{ + "title": "Starts a Dev Box", + "operationId": "DevBoxesOperations_StartDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "risstmlxqhpratecjnsoaegvnba", + "userId": "ufupmdhb", + "devBoxName": "i" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "qgqvydkahfqdnvyapn", + "name": "gmjnhbpwdycxlnwgrcl", + "status": "Running", + "resourceId": "enfyiqikaoxyte", + "startTime": "2024-01-24T21:14:58.472Z", + "endTime": "2024-01-24T21:14:58.472Z", + "percentComplete": 3, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json new file mode 100644 index 000000000000..42678144eef6 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json @@ -0,0 +1,37 @@ +{ + "title": "Stops a Dev Box", + "operationId": "DevBoxesOperations_StopDevBox", + "parameters": { + "api-version": "2023-04-01", + "projectName": "vdmmuwewyosv", + "userId": "avuflfdiptbox", + "devBoxName": "qgmmtshrvpeqhmwrgyygldupfoah", + "hibernate": true + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "qgqvydkahfqdnvyapn", + "name": "gmjnhbpwdycxlnwgrcl", + "status": "Running", + "resourceId": "enfyiqikaoxyte", + "startTime": "2024-01-24T21:14:58.472Z", + "endTime": "2024-01-24T21:14:58.472Z", + "percentComplete": 3, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json similarity index 62% rename from specification/devcenter/DevCenter/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json rename to specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json index bfe5d7cb2682..47cec0d6e1a0 100644 --- a/specification/devcenter/DevCenter/examples/DevCenterOperations_GetProject_MinimumSet_Gen.json +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json @@ -3,12 +3,14 @@ "operationId": "DevCenterOperations_GetProject", "parameters": { "api-version": "2023-04-01", - "projectName": "gvbfvh" + "projectName": "thzm" }, "responses": { "200": { "body": { - "name": "upkhozglybnjxyddpkhxbas" + "name": "kjqmqcsuudovwzfudo", + "description": "sprbsjrouoo", + "maxDevBoxesPerUser": 0 } } } diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json new file mode 100644 index 000000000000..cacdc26ee7d6 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json @@ -0,0 +1,23 @@ +{ + "title": "DevCenterOperations_ListProjects", + "operationId": "DevCenterOperations_ListProjects", + "parameters": { + "api-version": "2023-04-01", + "filter": "cwyvyioiha", + "top": 27 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "kjqmqcsuudovwzfudo", + "description": "sprbsjrouoo", + "maxDevBoxesPerUser": 0 + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json new file mode 100644 index 000000000000..19648f9f454e --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json @@ -0,0 +1,53 @@ +{ + "title": "Creates or updates an environment.", + "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "rm", + "userId": "ecllhdlf", + "environmentName": "ybibmcucjxloaiamlghemtibifijdt", + "body": { + "parameters": "cGFyYW1ldGVyczE=", + "environmentType": "zlqyvqtrinekx", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "provisioningState": "Succeeded", + "catalogName": "ayyxfyzejoicocelmprq", + "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + }, + "responses": { + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "parameters": "cGFyYW1ldGVyczE=", + "name": "jurl", + "environmentType": "zlqyvqtrinekx", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "provisioningState": "Succeeded", + "resourceGroupId": "morqkeokwmlevjbhatdup", + "catalogName": "ayyxfyzejoicocelmprq", + "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json new file mode 100644 index 000000000000..7bdc410d6aa3 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json @@ -0,0 +1,37 @@ +{ + "title": "Deletes an environment and all its associated resources", + "operationId": "EnvironmentsOperations_DeleteEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "makxpclulitaedryotaezhsarc", + "userId": "fbmcwpownjucshzdnndefdcp", + "environmentName": "pmqqjc" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "qgqvydkahfqdnvyapn", + "name": "gmjnhbpwdycxlnwgrcl", + "status": "Running", + "resourceId": "enfyiqikaoxyte", + "startTime": "2024-01-24T21:14:58.472Z", + "endTime": "2024-01-24T21:14:58.472Z", + "percentComplete": 3, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json new file mode 100644 index 000000000000..f26c03357d1a --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json @@ -0,0 +1,16 @@ +{ + "title": "Gets the specified catalog within the project", + "operationId": "EnvironmentsOperations_GetCatalog", + "parameters": { + "api-version": "2023-04-01", + "projectName": "sdjsxjfeyljbfgngnvcxjjlwn", + "catalogName": "cuinanezvalmogietninyaepn" + }, + "responses": { + "200": { + "body": { + "name": "vbbkoceucvtleblkqekdaexqepgyc" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json new file mode 100644 index 000000000000..3f067523d4c7 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json @@ -0,0 +1,33 @@ +{ + "title": "Gets an environment", + "operationId": "EnvironmentsOperations_GetEnvironment", + "parameters": { + "api-version": "2023-04-01", + "projectName": "xzxvhmulzlerr", + "userId": "rnlkjyggdaasja", + "environmentName": "ilau" + }, + "responses": { + "200": { + "body": { + "parameters": "cGFyYW1ldGVyczE=", + "name": "jurl", + "environmentType": "zlqyvqtrinekx", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "provisioningState": "Succeeded", + "resourceGroupId": "morqkeokwmlevjbhatdup", + "catalogName": "ayyxfyzejoicocelmprq", + "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json new file mode 100644 index 000000000000..20d9956dfd90 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json @@ -0,0 +1,36 @@ +{ + "title": "Get an environment definition from a catalog.", + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "parameters": { + "api-version": "2023-04-01", + "projectName": "cgwaeehpqtuwppbntwihwhxffz", + "catalogName": "sjggejuqzlqswvsmkgnnl", + "definitionName": "sjop" + }, + "responses": { + "200": { + "body": { + "id": "pkatvpvrpiioenfnrqe", + "name": "rhabcivgyiwaah", + "catalogName": "uzvgkbgkmk", + "description": "ofjoroavqhsib", + "parameters": [ + { + "id": "jkfdpgw", + "name": "wbppqxcgj", + "description": "gmlxqlcuqccnprmgnukbwduxswnh", + "default": "ZGVmYXVsdDE=", + "type": "array", + "readOnly": true, + "required": true, + "allowed": [ + "gqyuynxzeuwqtvpbocfgc" + ] + } + ], + "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", + "templatePath": "rar" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json new file mode 100644 index 000000000000..b59a65207bc8 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json @@ -0,0 +1,37 @@ +{ + "title": "Lists the environments for a project.", + "operationId": "EnvironmentsOperations_ListAllEnvironments", + "parameters": { + "api-version": "2023-04-01", + "projectName": "rtxnbdeugarpqhejuj", + "top": 12 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "parameters": "cGFyYW1ldGVyczE=", + "name": "jurl", + "environmentType": "zlqyvqtrinekx", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "provisioningState": "Succeeded", + "resourceGroupId": "morqkeokwmlevjbhatdup", + "catalogName": "ayyxfyzejoicocelmprq", + "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json similarity index 50% rename from specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json rename to specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json index a59043903c95..a4ba5ad02d88 100644 --- a/specification/devcenter/DevCenter/examples/EnvironmentsOperations_ListCatalogs_MinimumSet_Gen.json +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json @@ -1,18 +1,20 @@ { - "title": "EnvironmentsOperations_ListCatalogs", + "title": "Lists all of the catalogs available for a project.", "operationId": "EnvironmentsOperations_ListCatalogs", "parameters": { "api-version": "2023-04-01", - "projectName": "bpmjift" + "projectName": "qmhuusf", + "top": 2 }, "responses": { "200": { "body": { "value": [ { - "name": "wpssttjdkaodnmrbs" + "name": "vbbkoceucvtleblkqekdaexqepgyc" } - ] + ], + "nextLink": "https://microsoft.com/a" } } } diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json new file mode 100644 index 000000000000..0e50041306ff --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json @@ -0,0 +1,40 @@ +{ + "title": "Lists all environment definitions available for a project.", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", + "parameters": { + "api-version": "2023-04-01", + "projectName": "frgamecqz", + "top": 16 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "pkatvpvrpiioenfnrqe", + "name": "rhabcivgyiwaah", + "catalogName": "uzvgkbgkmk", + "description": "ofjoroavqhsib", + "parameters": [ + { + "id": "jkfdpgw", + "name": "wbppqxcgj", + "description": "gmlxqlcuqccnprmgnukbwduxswnh", + "default": "ZGVmYXVsdDE=", + "type": "array", + "readOnly": true, + "required": true, + "allowed": [ + "gqyuynxzeuwqtvpbocfgc" + ] + } + ], + "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", + "templatePath": "rar" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json new file mode 100644 index 000000000000..b56e0e2f1237 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json @@ -0,0 +1,41 @@ +{ + "title": "Lists all environment definitions available within a catalog.", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "parameters": { + "api-version": "2023-04-01", + "projectName": "pbunknfrtjnqkbz", + "catalogName": "oimgviuwixhp", + "top": 29 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "pkatvpvrpiioenfnrqe", + "name": "rhabcivgyiwaah", + "catalogName": "uzvgkbgkmk", + "description": "ofjoroavqhsib", + "parameters": [ + { + "id": "jkfdpgw", + "name": "wbppqxcgj", + "description": "gmlxqlcuqccnprmgnukbwduxswnh", + "default": "ZGVmYXVsdDE=", + "type": "array", + "readOnly": true, + "required": true, + "allowed": [ + "gqyuynxzeuwqtvpbocfgc" + ] + } + ], + "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", + "templatePath": "rar" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json new file mode 100644 index 000000000000..d6c76e309021 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json @@ -0,0 +1,23 @@ +{ + "title": "Lists all environment types configured for a project.", + "operationId": "EnvironmentsOperations_ListEnvironmentTypes", + "parameters": { + "api-version": "2023-04-01", + "projectName": "c", + "top": 7 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "rvlfnpsglaihocattmhdswncjmn", + "deploymentTargetId": "rspdrsmefyxegg", + "status": "Enabled" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json new file mode 100644 index 000000000000..c5757533a30a --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json @@ -0,0 +1,38 @@ +{ + "title": "Lists the environments for a project and user.", + "operationId": "EnvironmentsOperations_ListEnvironments", + "parameters": { + "api-version": "2023-04-01", + "projectName": "dusvmkqsfvpuwblcypodtmdutqlaip", + "userId": "hkdwumpqihnvpkivnfofjfeklzpoxo", + "top": 17 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "parameters": "cGFyYW1ldGVyczE=", + "name": "jurl", + "environmentType": "zlqyvqtrinekx", + "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", + "provisioningState": "Succeeded", + "resourceGroupId": "morqkeokwmlevjbhatdup", + "catalogName": "ayyxfyzejoicocelmprq", + "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/SharedOperations_GetProjectOperationStatus.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/SharedOperations_GetProjectOperationStatus.json new file mode 100644 index 000000000000..5310b772d744 --- /dev/null +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/SharedOperations_GetProjectOperationStatus.json @@ -0,0 +1,32 @@ +{ + "title": "SharedOperations_GetProjectOperationStatus", + "operationId": "SharedOperations_GetProjectOperationStatus", + "parameters": { + "api-version": "2023-04-01", + "projectName": "nuuuznfzityiftaeeegmu", + "operationId": "njnpajhbysgc" + }, + "responses": { + "200": { + "body": { + "id": "qgqvydkahfqdnvyapn", + "name": "gmjnhbpwdycxlnwgrcl", + "status": "Running", + "resourceId": "enfyiqikaoxyte", + "startTime": "2024-01-24T21:14:58.472Z", + "endTime": "2024-01-24T21:14:58.472Z", + "percentComplete": 3, + "properties": "cHJvcGVydGllczE=", + "error": { + "code": "hrqhligembrqwosguwvdiabokar", + "message": "fcpf", + "target": "jyizhrocqk", + "details": [], + "innererror": { + "code": "fra" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/openapi.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/openapi.json index 0064c8e01e5b..5776702d7909 100644 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/openapi.json +++ b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/openapi.json @@ -54,6 +54,7 @@ "/devboxes": { "get": { "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", + "summary": "Lists Dev Boxes that the caller has access to in the DevCenter.", "description": "Lists Dev Boxes that the caller has access to in the DevCenter.", "parameters": [ { @@ -95,6 +96,11 @@ } } }, + "x-ms-examples": { + "Lists Dev Boxes that the caller has access to in the DevCenter.": { + "$ref": "./examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -144,6 +150,11 @@ } } }, + "x-ms-examples": { + "DevCenterOperations_ListProjects": { + "$ref": "./examples/DevCenterOperations_ListProjects.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -184,12 +195,18 @@ } } } + }, + "x-ms-examples": { + "DevCenterOperations_GetProject": { + "$ref": "./examples/DevCenterOperations_GetProject.json" + } } } }, "/projects/{projectName}/catalogs": { "get": { "operationId": "EnvironmentsOperations_ListCatalogs", + "summary": "Lists all of the catalogs available for a project.", "description": "Lists all of the catalogs available for a project.", "parameters": [ { @@ -231,6 +248,11 @@ } } }, + "x-ms-examples": { + "Lists all of the catalogs available for a project.": { + "$ref": "./examples/EnvironmentsOperations_ListCatalogs.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -239,6 +261,7 @@ "/projects/{projectName}/catalogs/{catalogName}": { "get": { "operationId": "EnvironmentsOperations_GetCatalog", + "summary": "Gets the specified catalog within the project", "description": "Gets the specified catalog within the project", "parameters": [ { @@ -278,12 +301,18 @@ } } } + }, + "x-ms-examples": { + "Gets the specified catalog within the project": { + "$ref": "./examples/EnvironmentsOperations_GetCatalog.json" + } } } }, "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { "get": { "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "summary": "Lists all environment definitions available within a catalog.", "description": "Lists all environment definitions available within a catalog.", "parameters": [ { @@ -332,6 +361,11 @@ } } }, + "x-ms-examples": { + "Lists all environment definitions available within a catalog.": { + "$ref": "./examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -340,6 +374,7 @@ "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { "get": { "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "summary": "Get an environment definition from a catalog.", "description": "Get an environment definition from a catalog.", "parameters": [ { @@ -386,12 +421,18 @@ } } } + }, + "x-ms-examples": { + "Get an environment definition from a catalog.": { + "$ref": "./examples/EnvironmentsOperations_GetEnvironmentDefinition.json" + } } } }, "/projects/{projectName}/environmentDefinitions": { "get": { "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", + "summary": "Lists all environment definitions available for a project.", "description": "Lists all environment definitions available for a project.", "parameters": [ { @@ -433,6 +474,11 @@ } } }, + "x-ms-examples": { + "Lists all environment definitions available for a project.": { + "$ref": "./examples/EnvironmentsOperations_ListEnvironmentDefinitions.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -441,6 +487,7 @@ "/projects/{projectName}/environmentTypes": { "get": { "operationId": "EnvironmentsOperations_ListEnvironmentTypes", + "summary": "Lists all environment types configured for a project.", "description": "Lists all environment types configured for a project.", "parameters": [ { @@ -482,6 +529,11 @@ } } }, + "x-ms-examples": { + "Lists all environment types configured for a project.": { + "$ref": "./examples/EnvironmentsOperations_ListEnvironmentTypes.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -490,6 +542,7 @@ "/projects/{projectName}/environments": { "get": { "operationId": "EnvironmentsOperations_ListAllEnvironments", + "summary": "Lists the environments for a project.", "description": "Lists the environments for a project.", "parameters": [ { @@ -531,6 +584,11 @@ } } }, + "x-ms-examples": { + "Lists the environments for a project.": { + "$ref": "./examples/EnvironmentsOperations_ListAllEnvironments.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -578,12 +636,18 @@ } } } + }, + "x-ms-examples": { + "SharedOperations_GetProjectOperationStatus": { + "$ref": "./examples/SharedOperations_GetProjectOperationStatus.json" + } } } }, "/projects/{projectName}/pools": { "get": { "operationId": "DevBoxesOperations_ListPools", + "summary": "Lists available pools", "description": "Lists available pools", "parameters": [ { @@ -632,6 +696,11 @@ } } }, + "x-ms-examples": { + "Lists available pools": { + "$ref": "./examples/DevBoxesOperations_ListPools.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -640,6 +709,7 @@ "/projects/{projectName}/pools/{poolName}": { "get": { "operationId": "DevBoxesOperations_GetPool", + "summary": "Gets a pool", "description": "Gets a pool", "parameters": [ { @@ -679,12 +749,18 @@ } } } + }, + "x-ms-examples": { + "Gets a pool": { + "$ref": "./examples/DevBoxesOperations_GetPool.json" + } } } }, "/projects/{projectName}/pools/{poolName}/schedules": { "get": { "operationId": "DevBoxesOperations_ListSchedules", + "summary": "Lists available schedules for a pool.", "description": "Lists available schedules for a pool.", "parameters": [ { @@ -740,6 +816,11 @@ } } }, + "x-ms-examples": { + "Lists available schedules for a pool.": { + "$ref": "./examples/DevBoxesOperations_ListSchedules.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -748,6 +829,7 @@ "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { "get": { "operationId": "DevBoxesOperations_GetSchedule", + "summary": "Gets a schedule.", "description": "Gets a schedule.", "parameters": [ { @@ -794,12 +876,18 @@ } } } + }, + "x-ms-examples": { + "Gets a schedule.": { + "$ref": "./examples/DevBoxesOperations_GetSchedule.json" + } } } }, "/projects/{projectName}/users/{userId}/devboxes": { "get": { "operationId": "DevBoxesOperations_ListDevBoxes", + "summary": "Lists Dev Boxes in the project for a particular user.", "description": "Lists Dev Boxes in the project for a particular user.", "parameters": [ { @@ -855,6 +943,11 @@ } } }, + "x-ms-examples": { + "Lists Dev Boxes in the project for a particular user.": { + "$ref": "./examples/DevBoxesOperations_ListDevBoxes.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -863,6 +956,7 @@ "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}": { "get": { "operationId": "DevBoxesOperations_GetDevBox", + "summary": "Gets a Dev Box", "description": "Gets a Dev Box", "parameters": [ { @@ -909,10 +1003,16 @@ } } } + }, + "x-ms-examples": { + "Gets a Dev Box": { + "$ref": "./examples/DevBoxesOperations_GetDevBox.json" + } } }, "put": { "operationId": "DevBoxesOperations_CreateDevBox", + "summary": "Creates or replaces a Dev Box.", "description": "Creates or replaces a Dev Box.", "parameters": [ { @@ -985,10 +1085,16 @@ } } }, + "x-ms-examples": { + "Creates or replaces a Dev Box.": { + "$ref": "./examples/DevBoxesOperations_CreateDevBox.json" + } + }, "x-ms-long-running-operation": true }, "delete": { "operationId": "DevBoxesOperations_DeleteDevBox", + "summary": "Deletes a Dev Box.", "description": "Deletes a Dev Box.", "parameters": [ { @@ -1047,12 +1153,18 @@ } } }, + "x-ms-examples": { + "Deletes a Dev Box.": { + "$ref": "./examples/DevBoxesOperations_DeleteDevBox.json" + } + }, "x-ms-long-running-operation": true } }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start": { "post": { "operationId": "DevBoxesOperations_StartDevBox", + "summary": "Starts a Dev Box", "description": "Starts a Dev Box", "parameters": [ { @@ -1107,12 +1219,18 @@ } } }, + "x-ms-examples": { + "Starts a Dev Box": { + "$ref": "./examples/DevBoxesOperations_StartDevBox.json" + } + }, "x-ms-long-running-operation": true } }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop": { "post": { "operationId": "DevBoxesOperations_StopDevBox", + "summary": "Stops a Dev Box", "description": "Stops a Dev Box", "parameters": [ { @@ -1174,12 +1292,18 @@ } } }, + "x-ms-examples": { + "Stops a Dev Box": { + "$ref": "./examples/DevBoxesOperations_StopDevBox.json" + } + }, "x-ms-long-running-operation": true } }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart": { "post": { "operationId": "DevBoxesOperations_RestartDevBox", + "summary": "Restarts a Dev Box", "description": "Restarts a Dev Box", "parameters": [ { @@ -1234,12 +1358,18 @@ } } }, + "x-ms-examples": { + "Restarts a Dev Box": { + "$ref": "./examples/DevBoxesOperations_RestartDevBox.json" + } + }, "x-ms-long-running-operation": true } }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions": { "get": { "operationId": "DevBoxesOperations_ListDevBoxActions", + "summary": "Lists actions on a Dev Box.", "description": "Lists actions on a Dev Box.", "parameters": [ { @@ -1287,6 +1417,11 @@ } } }, + "x-ms-examples": { + "Lists actions on a Dev Box.": { + "$ref": "./examples/DevBoxesOperations_ListDevBoxActions.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -1295,6 +1430,7 @@ "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}": { "get": { "operationId": "DevBoxesOperations_GetDevBoxAction", + "summary": "Gets an action.", "description": "Gets an action.", "parameters": [ { @@ -1348,12 +1484,18 @@ } } } + }, + "x-ms-examples": { + "Gets an action.": { + "$ref": "./examples/DevBoxesOperations_GetDevBoxAction.json" + } } } }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip": { "post": { "operationId": "DevBoxesOperations_SkipAction", + "summary": "Skips an occurrence of an action.", "description": "Skips an occurrence of an action.", "parameters": [ { @@ -1404,12 +1546,18 @@ } } } + }, + "x-ms-examples": { + "Skips an occurrence of an action.": { + "$ref": "./examples/DevBoxesOperations_SkipAction.json" + } } } }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay": { "post": { "operationId": "DevBoxesOperations_DelayAction", + "summary": "Delays the occurrence of an action.", "description": "Delays the occurrence of an action.", "parameters": [ { @@ -1472,12 +1620,18 @@ } } } + }, + "x-ms-examples": { + "Delays the occurrence of an action.": { + "$ref": "./examples/DevBoxesOperations_DelayAction.json" + } } } }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay": { "post": { "operationId": "DevBoxesOperations_DelayAllActions", + "summary": "Delays all actions.", "description": "Delays all actions.", "parameters": [ { @@ -1534,6 +1688,11 @@ } } }, + "x-ms-examples": { + "Delays all actions.": { + "$ref": "./examples/DevBoxesOperations_DelayAllActions.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -1542,6 +1701,7 @@ "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection": { "get": { "operationId": "DevBoxesOperations_GetRemoteConnection", + "summary": "Gets RDP Connection info", "description": "Gets RDP Connection info", "parameters": [ { @@ -1588,12 +1748,18 @@ } } } + }, + "x-ms-examples": { + "Gets RDP Connection info": { + "$ref": "./examples/DevBoxesOperations_GetRemoteConnection.json" + } } } }, "/projects/{projectName}/users/{userId}/environments": { "get": { "operationId": "EnvironmentsOperations_ListEnvironments", + "summary": "Lists the environments for a project and user.", "description": "Lists the environments for a project and user.", "parameters": [ { @@ -1642,6 +1808,11 @@ } } }, + "x-ms-examples": { + "Lists the environments for a project and user.": { + "$ref": "./examples/EnvironmentsOperations_ListEnvironments.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -1650,6 +1821,7 @@ "/projects/{projectName}/users/{userId}/environments/{environmentName}": { "get": { "operationId": "EnvironmentsOperations_GetEnvironment", + "summary": "Gets an environment", "description": "Gets an environment", "parameters": [ { @@ -1696,10 +1868,16 @@ } } } + }, + "x-ms-examples": { + "Gets an environment": { + "$ref": "./examples/EnvironmentsOperations_GetEnvironment.json" + } } }, "put": { "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", + "summary": "Creates or updates an environment.", "description": "Creates or updates an environment.", "parameters": [ { @@ -1761,10 +1939,16 @@ } } }, + "x-ms-examples": { + "Creates or updates an environment.": { + "$ref": "./examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json" + } + }, "x-ms-long-running-operation": true }, "delete": { "operationId": "EnvironmentsOperations_DeleteEnvironment", + "summary": "Deletes an environment and all its associated resources", "description": "Deletes an environment and all its associated resources", "parameters": [ { @@ -1823,12 +2007,18 @@ } } }, + "x-ms-examples": { + "Deletes an environment and all its associated resources": { + "$ref": "./examples/EnvironmentsOperations_DeleteEnvironment.json" + } + }, "x-ms-long-running-operation": true } }, "/users/{userId}/devboxes": { "get": { "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "summary": "Lists Dev Boxes in the Dev Center for a particular user.", "description": "Lists Dev Boxes in the Dev Center for a particular user.", "parameters": [ { @@ -1877,6 +2067,11 @@ } } }, + "x-ms-examples": { + "Lists Dev Boxes in the Dev Center for a particular user.": { + "$ref": "./examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } From e609863faa341ed59ba6a2c6542867ba4f749404 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 30 Jan 2024 14:59:26 -0800 Subject: [PATCH 104/187] turn off convinience api and make access public for create dev box op --- specification/devcenter/DevCenter/client.tsp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index d48e8865ed40..53d3d24cb005 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -36,6 +36,8 @@ interface DevBoxesClientOperations { listAllDevBoxesByUser is DevCenterService.DevBoxesDevCenterOperations.listAllDevBoxesByUser; listDevBoxes is DevCenterService.DevBoxesOperations.listDevBoxes; getDevBox is DevCenterService.DevBoxesOperations.getDevBox; + @convenientAPI(false) + @access(Access.public) createDevBox is DevCenterService.DevBoxesOperations.createDevBox; deleteDevBox is DevCenterService.DevBoxesOperations.deleteDevBox; startDevBox is DevCenterService.DevBoxesOperations.startDevBox; From f4a27ef654d57e50f8b5059cde265d3e424094be Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 30 Jan 2024 15:10:51 -0800 Subject: [PATCH 105/187] add access and usage to dev box model --- specification/devcenter/DevCenter/client.tsp | 1 - specification/devcenter/DevCenter/devbox/models.tsp | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 53d3d24cb005..31629d890bb1 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -37,7 +37,6 @@ interface DevBoxesClientOperations { listDevBoxes is DevCenterService.DevBoxesOperations.listDevBoxes; getDevBox is DevCenterService.DevBoxesOperations.getDevBox; @convenientAPI(false) - @access(Access.public) createDevBox is DevCenterService.DevBoxesOperations.createDevBox; deleteDevBox is DevCenterService.DevBoxesOperations.deleteDevBox; startDevBox is DevCenterService.DevBoxesOperations.startDevBox; diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp index 2e944942ef5f..d46ada918469 100644 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ b/specification/devcenter/DevCenter/devbox/models.tsp @@ -1,10 +1,12 @@ import "@typespec/rest"; import "@typespec/http"; import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-client-generator-core"; import "../shared/models.tsp"; using TypeSpec.Rest; using TypeSpec.Http; +using Azure.ClientGenerator.Core; namespace DevCenterService; @@ -351,6 +353,8 @@ model DevBoxListResult is Azure.Core.Page; @doc("A Dev Box") @resource("devboxes") @parentResource(User) +@access(Access.public) +@usage(Usage.input | Usage.output) model DevBox { @key("devBoxName") @doc("Display name for the Dev Box") From da7669a728adbc85be62a0b7b14642ed5993115a Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 1 Feb 2024 11:39:25 -0800 Subject: [PATCH 106/187] re-use existing examples --- .../devcenter/DevCenter/devbox/routes.tsp | 19 --- .../devcenter/DevCenter/devcenter/routes.tsp | 2 - .../DevCenter/environments/routes.tsp | 11 -- ...ions_GetCatalog.json => Catalogs_Get.json} | 9 +- ...alogs.json => Catalogs_ListByProject.json} | 11 +- .../2023-04-01/DevBoxActions_Delay.json | 26 ++++ .../DevBoxActions_DelayMultiple.json | 43 ++++++ .../DevBoxActions_DelayMultipleWithError.json | 38 ++++++ .../2023-04-01/DevBoxActions_Get.json | 24 ++++ .../2023-04-01/DevBoxActions_List.json | 36 +++++ .../2023-04-01/DevBoxActions_Skip.json | 15 +++ ...esDevCenterOperations_ListAllDevBoxes.json | 59 -------- ...enterOperations_ListAllDevBoxesByUser.json | 60 --------- .../DevBoxesOperations_CreateDevBox.json | 127 ------------------ .../DevBoxesOperations_DelayAction.json | 25 ---- .../DevBoxesOperations_DelayAllActions.json | 42 ------ .../DevBoxesOperations_DeleteDevBox.json | 37 ----- .../DevBoxesOperations_GetDevBox.json | 55 -------- .../DevBoxesOperations_GetDevBoxAction.json | 24 ---- .../DevBoxesOperations_GetPool.json | 42 ------ ...evBoxesOperations_GetRemoteConnection.json | 18 --- .../DevBoxesOperations_GetSchedule.json | 21 --- .../DevBoxesOperations_ListDevBoxActions.json | 28 ---- .../DevBoxesOperations_ListDevBoxes.json | 61 --------- .../DevBoxesOperations_ListPools.json | 48 ------- .../DevBoxesOperations_ListSchedules.json | 27 ---- .../DevBoxesOperations_RestartDevBox.json | 36 ----- .../DevBoxesOperations_SkipAction.json | 14 -- .../DevBoxesOperations_StartDevBox.json | 36 ----- .../DevBoxesOperations_StopDevBox.json | 37 ----- .../examples/2023-04-01/DevBoxes_Create.json | 72 ++++++++++ .../examples/2023-04-01/DevBoxes_Delete.json | 26 ++++ .../examples/2023-04-01/DevBoxes_Get.json | 39 ++++++ .../DevBoxes_GetRemoteConnection.json | 18 +++ .../examples/2023-04-01/DevBoxes_List.json | 40 ++++++ .../DevBoxes_ListByUserByProject.json | 42 ++++++ .../examples/2023-04-01/DevBoxes_Restart.json | 25 ++++ .../examples/2023-04-01/DevBoxes_Start.json | 25 ++++ .../examples/2023-04-01/DevBoxes_Stop.json | 26 ++++ .../DevCenterOperations_GetProject.json | 17 --- .../DevCenterOperations_ListProjects.json | 23 ---- .../EnvironmentDefinitions_Get.json | 57 ++++++++ .../EnvironmentDefinitions_ListByCatalog.json | 67 +++++++++ .../EnvironmentDefinitions_ListByProject.json | 66 +++++++++ .../EnvironmentTypes_ListByProject.json | 22 +++ ...sOperations_CreateOrUpdateEnvironment.json | 53 -------- ...ironmentsOperations_DeleteEnvironment.json | 37 ----- ...EnvironmentsOperations_GetEnvironment.json | 33 ----- ...tsOperations_GetEnvironmentDefinition.json | 36 ----- ...onmentsOperations_ListAllEnvironments.json | 37 ----- ...Operations_ListEnvironmentDefinitions.json | 40 ------ ...s_ListEnvironmentDefinitionsByCatalog.json | 41 ------ ...nmentsOperations_ListEnvironmentTypes.json | 23 ---- ...vironmentsOperations_ListEnvironments.json | 38 ------ ...onments_CreateByEnvironmentDefinition.json | 40 ++++++ .../2023-04-01/Environments_Delete.json | 26 ++++ .../examples/2023-04-01/Environments_Get.json | 28 ++++ .../Environments_ListByProject.json | 30 +++++ .../Environments_ListByProjectByUser.json | 31 +++++ .../examples/2023-04-01/Pools_Get.json | 39 ++++++ .../examples/2023-04-01/Pools_List.json | 67 +++++++++ .../examples/2023-04-01/Projects_Get.json | 17 +++ .../2023-04-01/Projects_ListByDevCenter.json | 20 +++ .../examples/2023-04-01/Schedules_Get.json | 22 +++ .../examples/2023-04-01/Schedules_List.json | 25 ++++ ...dOperations_GetProjectOperationStatus.json | 32 ----- .../devcenter/DevCenter/tspconfig.yaml | 2 +- ...esDevCenterOperations_ListAllDevBoxes.json | 59 -------- ...enterOperations_ListAllDevBoxesByUser.json | 60 --------- .../DevBoxesOperations_CreateDevBox.json | 127 ------------------ .../DevBoxesOperations_DelayAction.json | 25 ---- .../DevBoxesOperations_DelayAllActions.json | 42 ------ .../DevBoxesOperations_DeleteDevBox.json | 37 ----- .../DevBoxesOperations_GetDevBox.json | 55 -------- .../DevBoxesOperations_GetDevBoxAction.json | 24 ---- .../examples/DevBoxesOperations_GetPool.json | 42 ------ ...evBoxesOperations_GetRemoteConnection.json | 18 --- .../DevBoxesOperations_GetSchedule.json | 21 --- .../DevBoxesOperations_ListDevBoxActions.json | 28 ---- .../DevBoxesOperations_ListDevBoxes.json | 61 --------- .../DevBoxesOperations_ListPools.json | 48 ------- .../DevBoxesOperations_ListSchedules.json | 27 ---- .../DevBoxesOperations_RestartDevBox.json | 36 ----- .../DevBoxesOperations_SkipAction.json | 14 -- .../DevBoxesOperations_StartDevBox.json | 36 ----- .../DevBoxesOperations_StopDevBox.json | 37 ----- .../DevCenterOperations_GetProject.json | 17 --- .../DevCenterOperations_ListProjects.json | 23 ---- ...sOperations_CreateOrUpdateEnvironment.json | 53 -------- ...ironmentsOperations_DeleteEnvironment.json | 37 ----- .../EnvironmentsOperations_GetCatalog.json | 16 --- ...EnvironmentsOperations_GetEnvironment.json | 33 ----- ...tsOperations_GetEnvironmentDefinition.json | 36 ----- ...onmentsOperations_ListAllEnvironments.json | 37 ----- .../EnvironmentsOperations_ListCatalogs.json | 21 --- ...Operations_ListEnvironmentDefinitions.json | 40 ------ ...s_ListEnvironmentDefinitionsByCatalog.json | 41 ------ ...nmentsOperations_ListEnvironmentTypes.json | 23 ---- ...vironmentsOperations_ListEnvironments.json | 38 ------ ...dOperations_GetProjectOperationStatus.json | 32 ----- .../2023-04-01/examples/Catalogs_Get.json | 2 + .../examples/Catalogs_ListByProject.json | 2 + .../examples/DevBoxActions_Delay.json | 2 + .../examples/DevBoxActions_DelayMultiple.json | 2 + .../DevBoxActions_DelayMultipleWithError.json | 2 + .../examples/DevBoxActions_Get.json | 2 + .../examples/DevBoxActions_List.json | 2 + .../examples/DevBoxActions_Skip.json | 2 + .../2023-04-01/examples/DevBoxes_Create.json | 2 + .../2023-04-01/examples/DevBoxes_Delete.json | 2 + .../2023-04-01/examples/DevBoxes_Get.json | 2 + .../DevBoxes_GetRemoteConnection.json | 2 + .../2023-04-01/examples/DevBoxes_List.json | 2 + .../DevBoxes_ListByUserByProject.json | 2 + .../2023-04-01/examples/DevBoxes_Restart.json | 2 + .../2023-04-01/examples/DevBoxes_Start.json | 2 + .../2023-04-01/examples/DevBoxes_Stop.json | 2 + .../examples/EnvironmentDefinitions_Get.json | 2 + .../EnvironmentDefinitions_ListByCatalog.json | 2 + .../EnvironmentDefinitions_ListByProject.json | 2 + .../EnvironmentTypes_ListByProject.json | 2 + ...onments_CreateByEnvironmentDefinition.json | 2 + .../examples/Environments_Delete.json | 2 + .../2023-04-01/examples/Environments_Get.json | 2 + .../examples/Environments_ListByProject.json | 2 + .../Environments_ListByProjectByUser.json | 2 + .../stable/2023-04-01/examples/Pools_Get.json | 2 + .../2023-04-01/examples/Pools_List.json | 2 + .../2023-04-01/examples/Projects_Get.json | 2 + .../examples/Projects_ListByDevCenter.json | 2 + .../2023-04-01/examples/Schedules_Get.json | 2 + .../2023-04-01/examples/Schedules_List.json | 2 + .../stable/2023-04-01/openapi.json | 106 +++++---------- 133 files changed, 1160 insertions(+), 2567 deletions(-) rename specification/devcenter/DevCenter/examples/2023-04-01/{EnvironmentsOperations_GetCatalog.json => Catalogs_Get.json} (55%) rename specification/devcenter/DevCenter/examples/2023-04-01/{EnvironmentsOperations_ListCatalogs.json => Catalogs_ListByProject.json} (61%) create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Delay.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_DelayMultiple.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_DelayMultipleWithError.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Get.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_List.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Skip.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAction.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBox.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetPool.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetSchedule.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListPools.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListSchedules.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_SkipAction.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StartDevBox.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StopDevBox.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Create.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Delete.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Get.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_GetRemoteConnection.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_List.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_ListByUserByProject.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Restart.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Start.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Stop.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_Get.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_ListByCatalog.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_ListByProject.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentTypes_ListByProject.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/Environments_CreateByEnvironmentDefinition.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/Environments_Delete.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/Environments_Get.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/Environments_ListByProject.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/Environments_ListByProjectByUser.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/Pools_Get.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/Pools_List.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/Projects_Get.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/Projects_ListByDevCenter.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/Schedules_Get.json create mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/Schedules_List.json delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json delete mode 100644 specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/SharedOperations_GetProjectOperationStatus.json rename specification/devcenter/data-plane/{DevCenter => Microsoft.DevCenter}/stable/2023-04-01/openapi.json (96%) diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp index 9b5a89a0c5f2..76bf90cc0027 100644 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ b/specification/devcenter/DevCenter/devbox/routes.tsp @@ -11,7 +11,6 @@ namespace DevCenterService; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface DevBoxesOperations { - @summary("Lists available pools") @doc("Lists available pools") @route("/projects/{projectName}/pools") @get @@ -32,7 +31,6 @@ interface DevBoxesOperations { PoolListResult >; - @summary("Gets a pool") @doc("Gets a pool") @route("/projects/{projectName}/pools/{poolName}") @get @@ -49,7 +47,6 @@ interface DevBoxesOperations { Pool >; - @summary("Lists available schedules for a pool.") @doc("Lists available schedules for a pool.") @route("/projects/{projectName}/pools/{poolName}/schedules") @get @@ -74,7 +71,6 @@ interface DevBoxesOperations { ScheduleListResult >; - @summary("Gets a schedule.") @doc("Gets a schedule.") @route("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") @get @@ -95,7 +91,6 @@ interface DevBoxesOperations { Schedule >; - @summary("Lists Dev Boxes in the project for a particular user.") @doc("Lists Dev Boxes in the project for a particular user.") @route("/projects/{projectName}/users/{userId}/devboxes") @get @@ -120,7 +115,6 @@ interface DevBoxesOperations { DevBoxListResult >; - @summary("Gets a Dev Box") @doc("Gets a Dev Box") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @get @@ -141,7 +135,6 @@ interface DevBoxesOperations { DevBox >; - @summary("Creates or replaces a Dev Box.") @doc("Creates or replaces a Dev Box.") @finalOperation(DevBoxesOperations.getDevBox) @pollingOperation(SharedOperations.getProjectOperationStatus) @@ -179,7 +172,6 @@ interface DevBoxesOperations { } >; - @summary("Deletes a Dev Box.") @doc("Deletes a Dev Box.") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @@ -214,7 +206,6 @@ interface DevBoxesOperations { } >; - @summary("Starts a Dev Box") @doc("Starts a Dev Box") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start") @@ -242,7 +233,6 @@ interface DevBoxesOperations { } >; - @summary("Stops a Dev Box") @doc("Stops a Dev Box") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop") @@ -274,7 +264,6 @@ interface DevBoxesOperations { } >; - @summary("Restarts a Dev Box") @doc("Restarts a Dev Box") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart") @@ -302,7 +291,6 @@ interface DevBoxesOperations { } >; - @summary("Gets RDP Connection info") @doc("Gets RDP Connection info") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection") @get @@ -323,7 +311,6 @@ interface DevBoxesOperations { RemoteConnection >; - @summary("Lists actions on a Dev Box.") @doc("Lists actions on a Dev Box.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions") @get @@ -344,7 +331,6 @@ interface DevBoxesOperations { DevBoxActionsListResult >; - @summary("Gets an action.") @doc("Gets an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}") @get @@ -369,7 +355,6 @@ interface DevBoxesOperations { DevBoxAction >; - @summary("Skips an occurrence of an action.") @doc("Skips an occurrence of an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip") @post @@ -394,7 +379,6 @@ interface DevBoxesOperations { void >; - @summary("Delays the occurrence of an action.") @doc("Delays the occurrence of an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay") @post @@ -423,7 +407,6 @@ interface DevBoxesOperations { DevBoxAction >; - @summary("Delays all actions.") @doc("Delays all actions.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay") @post @@ -451,7 +434,6 @@ interface DevBoxesOperations { #suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface DevBoxesDevCenterOperations { - @summary("Lists Dev Boxes that the caller has access to in the DevCenter.") @doc("Lists Dev Boxes that the caller has access to in the DevCenter.") @route("/devboxes") @get @@ -468,7 +450,6 @@ interface DevBoxesDevCenterOperations { DevBoxListResult >; - @summary("Lists Dev Boxes in the Dev Center for a particular user.") @doc("Lists Dev Boxes in the Dev Center for a particular user.") @route("/users/{userId}/devboxes") @get diff --git a/specification/devcenter/DevCenter/devcenter/routes.tsp b/specification/devcenter/DevCenter/devcenter/routes.tsp index 9626c54966f5..154ca6aee397 100644 --- a/specification/devcenter/DevCenter/devcenter/routes.tsp +++ b/specification/devcenter/DevCenter/devcenter/routes.tsp @@ -15,7 +15,6 @@ interface DevCenterOperations { @get listProjects is Azure.Core.Foundations.Operation< { - @summary("An OData filter clause to apply to the operation.") @doc("An OData filter clause to apply to the operation.") @query filter?: string; @@ -32,7 +31,6 @@ interface DevCenterOperations { @get getProject is Azure.Core.Foundations.Operation< { - @summary("The DevCenter Project upon which to execute operations.") @doc("The DevCenter Project upon which to execute operations.") @path projectName: string; diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp index 707cdebfb82c..15848dce25b5 100644 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ b/specification/devcenter/DevCenter/environments/routes.tsp @@ -12,7 +12,6 @@ namespace DevCenterService; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface EnvironmentsOperations { - @summary("Lists the environments for a project.") @doc("Lists the environments for a project.") @route("/projects/{projectName}/environments") @get @@ -29,7 +28,6 @@ interface EnvironmentsOperations { EnvironmentListResult >; - @summary("Lists the environments for a project and user.") @doc("Lists the environments for a project and user.") @route("/projects/{projectName}/users/{userId}/environments") @get @@ -50,7 +48,6 @@ interface EnvironmentsOperations { EnvironmentListResult >; - @summary("Gets an environment") @doc("Gets an environment") @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @get @@ -71,7 +68,6 @@ interface EnvironmentsOperations { Environment >; - @summary("Creates or updates an environment.") @doc("Creates or updates an environment.") @finalOperation(EnvironmentsOperations.getEnvironment) @pollingOperation(SharedOperations.getProjectOperationStatus) @@ -108,7 +104,6 @@ interface EnvironmentsOperations { >; // FIXME - @summary("Deletes an environment and all its associated resources") @doc("Deletes an environment and all its associated resources") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @@ -144,7 +139,6 @@ interface EnvironmentsOperations { statusCode: 204; } | Azure.Core.Foundations.ErrorResponse; - @summary("Lists all of the catalogs available for a project.") @doc("Lists all of the catalogs available for a project.") @route("/projects/{projectName}/catalogs") @get @@ -161,7 +155,6 @@ interface EnvironmentsOperations { CatalogListResult >; - @summary("Gets the specified catalog within the project") @doc("Gets the specified catalog within the project") @route("/projects/{projectName}/catalogs/{catalogName}") @get @@ -178,7 +171,6 @@ interface EnvironmentsOperations { Catalog >; - @summary("Lists all environment definitions available for a project.") @doc("Lists all environment definitions available for a project.") @route("/projects/{projectName}/environmentDefinitions") @get @@ -195,7 +187,6 @@ interface EnvironmentsOperations { EnvironmentDefinitionListResult >; - @summary("Lists all environment definitions available within a catalog.") @doc("Lists all environment definitions available within a catalog.") @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions") @get @@ -216,7 +207,6 @@ interface EnvironmentsOperations { EnvironmentDefinitionListResult >; - @summary("Get an environment definition from a catalog.") @doc("Get an environment definition from a catalog.") @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}") @get @@ -237,7 +227,6 @@ interface EnvironmentsOperations { EnvironmentDefinition >; - @summary("Lists all environment types configured for a project.") @doc("Lists all environment types configured for a project.") @route("/projects/{projectName}/environmentTypes") @get diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json b/specification/devcenter/DevCenter/examples/2023-04-01/Catalogs_Get.json similarity index 55% rename from specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json rename to specification/devcenter/DevCenter/examples/2023-04-01/Catalogs_Get.json index f26c03357d1a..7d9de8e13786 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/Catalogs_Get.json @@ -3,14 +3,15 @@ "operationId": "EnvironmentsOperations_GetCatalog", "parameters": { "api-version": "2023-04-01", - "projectName": "sdjsxjfeyljbfgngnvcxjjlwn", - "catalogName": "cuinanezvalmogietninyaepn" + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "catalogName": "foo" }, "responses": { "200": { "body": { - "name": "vbbkoceucvtleblkqekdaexqepgyc" + "name": "foo" } } } -} \ No newline at end of file +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json b/specification/devcenter/DevCenter/examples/2023-04-01/Catalogs_ListByProject.json similarity index 61% rename from specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json rename to specification/devcenter/DevCenter/examples/2023-04-01/Catalogs_ListByProject.json index a4ba5ad02d88..17c683e6c9b3 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/Catalogs_ListByProject.json @@ -3,19 +3,18 @@ "operationId": "EnvironmentsOperations_ListCatalogs", "parameters": { "api-version": "2023-04-01", - "projectName": "qmhuusf", - "top": 2 + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject" }, "responses": { "200": { "body": { "value": [ { - "name": "vbbkoceucvtleblkqekdaexqepgyc" + "name": "foo" } - ], - "nextLink": "https://microsoft.com/a" + ] } } } -} \ No newline at end of file +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Delay.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Delay.json new file mode 100644 index 000000000000..db7107cfc6bc --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Delay.json @@ -0,0 +1,26 @@ +{ + "title": "Delays the occurrence of an action.", + "operationId": "DevBoxesOperations_DelayAction", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "userId": "me", + "devBoxName": "myDevBox", + "actionName": "schedule-default", + "until": "2022-09-30T17:00:00Z" + }, + "responses": { + "200": { + "body": { + "name": "schedule-default", + "actionType": "Stop", + "sourceId": "/projects/myProject/pools/myPool/schedules/default", + "suspendedUntil": "2022-09-30T17:00:00Z", + "next": { + "scheduledTime": "2022-09-30T17:00:00Z" + } + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_DelayMultiple.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_DelayMultiple.json new file mode 100644 index 000000000000..6a7ade1eef30 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_DelayMultiple.json @@ -0,0 +1,43 @@ +{ + "title": "Delays all actions.", + "operationId": "DevBoxesOperations_DelayAllActions", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "userId": "me", + "devBoxName": "myDevBox", + "until": "2022-09-30T17:00:00Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "schedule-default", + "result": "Succeeded", + "action": { + "name": "schedule-default", + "actionType": "Stop", + "sourceId": "/projects/myProject/pools/myPool/schedules/default", + "suspendedUntil": "2022-09-30T17:00:00Z", + "next": { + "scheduledTime": "2022-09-30T17:00:00Z" + } + } + }, + { + "name": "idle-hibernateondisconnect", + "result": "Succeeded", + "action": { + "name": "idle-hibernateondisconnect", + "actionType": "Stop", + "sourceId": "/projects/myProject/pools/myPool", + "suspendedUntil": "2022-09-30T17:00:00Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_DelayMultipleWithError.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_DelayMultipleWithError.json new file mode 100644 index 000000000000..231f3de8c47a --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_DelayMultipleWithError.json @@ -0,0 +1,38 @@ +{ + "title": "Delays all actions with error.", + "operationId": "DevBoxesOperations_DelayAllActions_WithError", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "userId": "me", + "devBoxName": "myDevBox", + "until": "2022-09-30T17:00:00Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "schedule-default", + "result": "Failed", + "error": { + "code": "DelayOverMaxTime", + "message": "The schedule cannot be delayed more than 8 hours from the original invocation time." + } + }, + { + "name": "idle-hibernateondisconnect", + "result": "Succeeded", + "action": { + "name": "idle-hibernateondisconnect", + "actionType": "Stop", + "sourceId": "/projects/myProject/pools/myPool", + "suspendedUntil": "2022-09-30T17:00:00Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Get.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Get.json new file mode 100644 index 000000000000..0d94918c712d --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Get.json @@ -0,0 +1,24 @@ +{ + "title": "Gets an action.", + "operationId": "DevBoxesOperations_GetDevBoxAction", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "userId": "me", + "devBoxName": "myDevBox", + "actionName": "schedule-default" + }, + "responses": { + "200": { + "body": { + "name": "schedule-default", + "actionType": "Stop", + "sourceId": "/projects/myProject/pools/myPool/schedules/default", + "next": { + "scheduledTime": "2022-09-30T17:00:00Z" + } + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_List.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_List.json new file mode 100644 index 000000000000..db1ae0af7c62 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_List.json @@ -0,0 +1,36 @@ +{ + "title": "Lists actions on a Dev Box.", + "operationId": "DevBoxesOperations_ListDevBoxActions", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "userId": "me", + "devBoxName": "myDevBox" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "idle-hibernateondisconnect", + "actionType": "Stop", + "sourceId": "/projects/myProject/pools/myPool", + "next": { + "scheduledTime": "2022-09-30T15:23:00Z" + } + }, + { + "name": "schedule-default", + "actionType": "Stop", + "sourceId": "/projects/myProject/pools/myPool/schedules/default", + "suspendedUntil": "2022-09-30T17:00:00Z", + "next": { + "scheduledTime": "2022-09-30T17:00:00Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Skip.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Skip.json new file mode 100644 index 000000000000..1e8552d6bd35 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Skip.json @@ -0,0 +1,15 @@ +{ + "title": "Skips an occurrence of an action.", + "operationId": "DevBoxesOperations_SkipAction", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "userId": "me", + "devBoxName": "myDevBox", + "actionName": "schedule-default" + }, + "responses": { + "204": {} + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json deleted file mode 100644 index 51f94500e3db..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "title": "Lists Dev Boxes that the caller has access to in the DevCenter.", - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", - "parameters": { - "api-version": "2023-04-01", - "filter": "bawvkgqrdej", - "top": 27 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "umfutyopjqlkfpnsrstaksogsub", - "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", - "poolName": "lFR5__5-_E0gWK__-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "gzcgcb", - "powerState": "Unknown", - "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - }, - "location": "libjfmzzzfmvpwmxnblsmwykh", - "osType": "Windows", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 3, - "memoryGB": 30 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 24 - } - }, - "imageReference": { - "name": "m", - "version": "fqvya", - "operatingSystem": "q", - "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", - "publishedDate": "2024-01-24T21:14:56.489Z" - }, - "createdTime": "2024-01-24T21:14:56.489Z", - "localAdministrator": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json deleted file mode 100644 index 2eb0b237c3ed..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "title": "Lists Dev Boxes in the Dev Center for a particular user.", - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", - "parameters": { - "api-version": "2023-04-01", - "filter": "ismwy", - "top": 9, - "userId": "jehwvcrwpfddenzyf" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "umfutyopjqlkfpnsrstaksogsub", - "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", - "poolName": "lFR5__5-_E0gWK__-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "gzcgcb", - "powerState": "Unknown", - "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - }, - "location": "libjfmzzzfmvpwmxnblsmwykh", - "osType": "Windows", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 3, - "memoryGB": 30 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 24 - } - }, - "imageReference": { - "name": "m", - "version": "fqvya", - "operatingSystem": "q", - "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", - "publishedDate": "2024-01-24T21:14:56.489Z" - }, - "createdTime": "2024-01-24T21:14:56.489Z", - "localAdministrator": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json deleted file mode 100644 index 6842b686c998..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "title": "Creates or replaces a Dev Box.", - "operationId": "DevBoxesOperations_CreateDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "sakfxntevmehtdbtwjsfxnbnbcc", - "userId": "wfbmdncbebsq", - "devBoxName": "tjhqutmfdvy", - "devBox": { - "poolName": "lFR5__5-_E0gWK__-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "powerState": "Unknown", - "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - }, - "osType": "Windows", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2" - }, - "storageProfile": { - "osDisk": {} - }, - "imageReference": {}, - "localAdministrator": "Enabled" - } - }, - "responses": { - "200": { - "body": { - "name": "umfutyopjqlkfpnsrstaksogsub", - "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", - "poolName": "lFR5__5-_E0gWK__-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "gzcgcb", - "powerState": "Unknown", - "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - }, - "location": "libjfmzzzfmvpwmxnblsmwykh", - "osType": "Windows", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 3, - "memoryGB": 30 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 24 - } - }, - "imageReference": { - "name": "m", - "version": "fqvya", - "operatingSystem": "q", - "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", - "publishedDate": "2024-01-24T21:14:56.489Z" - }, - "createdTime": "2024-01-24T21:14:56.489Z", - "localAdministrator": "Enabled" - } - }, - "201": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "name": "umfutyopjqlkfpnsrstaksogsub", - "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", - "poolName": "lFR5__5-_E0gWK__-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "gzcgcb", - "powerState": "Unknown", - "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - }, - "location": "libjfmzzzfmvpwmxnblsmwykh", - "osType": "Windows", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 3, - "memoryGB": 30 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 24 - } - }, - "imageReference": { - "name": "m", - "version": "fqvya", - "operatingSystem": "q", - "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", - "publishedDate": "2024-01-24T21:14:56.489Z" - }, - "createdTime": "2024-01-24T21:14:56.489Z", - "localAdministrator": "Enabled" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAction.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAction.json deleted file mode 100644 index fac9749acc5f..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAction.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "title": "Delays the occurrence of an action.", - "operationId": "DevBoxesOperations_DelayAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "weeutabqporpt", - "userId": "hpltjhjacjpvdujb", - "devBoxName": "kv", - "actionName": "mmmcpjfeveltcfdkasvavovihx", - "until": "2024-01-24T21:15:01.753Z" - }, - "responses": { - "200": { - "body": { - "name": "pjj", - "actionType": "Stop", - "sourceId": "rqdtniydrmnkdmdxssgid", - "suspendedUntil": "2024-01-24T21:15:00.943Z", - "next": { - "scheduledTime": "2024-01-24T21:15:00.943Z" - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json deleted file mode 100644 index 1d6da069ad00..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "title": "Delays all actions.", - "operationId": "DevBoxesOperations_DelayAllActions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "sqffqdbpbwz", - "userId": "hhwmgjcpvlalfiyvfitvyor", - "devBoxName": "eczuupvnmezorxwevpdqeepj", - "until": "2024-01-24T21:15:02.027Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "desjl", - "result": "Succeeded", - "action": { - "name": "pjj", - "actionType": "Stop", - "sourceId": "rqdtniydrmnkdmdxssgid", - "suspendedUntil": "2024-01-24T21:15:00.943Z", - "next": { - "scheduledTime": "2024-01-24T21:15:00.943Z" - } - }, - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json deleted file mode 100644 index 0052e4242aeb..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "Deletes a Dev Box.", - "operationId": "DevBoxesOperations_DeleteDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "tfy", - "userId": "uyeccgmzsqokjbudcpovzqpnwzx", - "devBoxName": "imofroozhmowydi" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "qgqvydkahfqdnvyapn", - "name": "gmjnhbpwdycxlnwgrcl", - "status": "Running", - "resourceId": "enfyiqikaoxyte", - "startTime": "2024-01-24T21:14:58.472Z", - "endTime": "2024-01-24T21:14:58.472Z", - "percentComplete": 3, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - }, - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBox.json deleted file mode 100644 index 8107c2b01996..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBox.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "title": "Gets a Dev Box", - "operationId": "DevBoxesOperations_GetDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "abnt", - "userId": "slzcqbrtifikxbizrbzejnbxaunyg", - "devBoxName": "iuoxkfqb" - }, - "responses": { - "200": { - "body": { - "name": "umfutyopjqlkfpnsrstaksogsub", - "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", - "poolName": "lFR5__5-_E0gWK__-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "gzcgcb", - "powerState": "Unknown", - "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - }, - "location": "libjfmzzzfmvpwmxnblsmwykh", - "osType": "Windows", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 3, - "memoryGB": 30 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 24 - } - }, - "imageReference": { - "name": "m", - "version": "fqvya", - "operatingSystem": "q", - "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", - "publishedDate": "2024-01-24T21:14:56.489Z" - }, - "createdTime": "2024-01-24T21:14:56.489Z", - "localAdministrator": "Enabled" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json deleted file mode 100644 index 3805bb777fa8..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": "Gets an action.", - "operationId": "DevBoxesOperations_GetDevBoxAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "pcvmmsjcsemqeltystiofpxh", - "userId": "dvcvzpbpfurburhes", - "devBoxName": "tzqgsjkakbgeksgoflcxkzhrxdfsm", - "actionName": "wbcv" - }, - "responses": { - "200": { - "body": { - "name": "pjj", - "actionType": "Stop", - "sourceId": "rqdtniydrmnkdmdxssgid", - "suspendedUntil": "2024-01-24T21:15:00.943Z", - "next": { - "scheduledTime": "2024-01-24T21:15:00.943Z" - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetPool.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetPool.json deleted file mode 100644 index 306862e514a4..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetPool.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "title": "Gets a pool", - "operationId": "DevBoxesOperations_GetPool", - "parameters": { - "api-version": "2023-04-01", - "projectName": "gbjtzzssqvgqx", - "poolName": "fbopjwaybuhzrvgd" - }, - "responses": { - "200": { - "body": { - "name": "xseeobjdsdpjl", - "location": "cyzkbkpj", - "osType": "Windows", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 3, - "memoryGB": 30 - }, - "hibernateSupport": "Enabled", - "storageProfile": { - "osDisk": { - "diskSizeGB": 24 - } - }, - "imageReference": { - "name": "m", - "version": "fqvya", - "operatingSystem": "q", - "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", - "publishedDate": "2024-01-24T21:14:56.489Z" - }, - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 12 - }, - "healthStatus": "Unknown" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json deleted file mode 100644 index e03afee8a3a2..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "title": "Gets RDP Connection info", - "operationId": "DevBoxesOperations_GetRemoteConnection", - "parameters": { - "api-version": "2023-04-01", - "projectName": "yhhkvvjywohpykksfkbnyvxpdzoonm", - "userId": "actefvzkfnruvwkhqreqwvtxey", - "devBoxName": "oizhaeta" - }, - "responses": { - "200": { - "body": { - "webUrl": "https://microsoft.com/axdulmg", - "rdpConnectionUrl": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetSchedule.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetSchedule.json deleted file mode 100644 index 8e0bfa84b694..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetSchedule.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "Gets a schedule.", - "operationId": "DevBoxesOperations_GetSchedule", - "parameters": { - "api-version": "2023-04-01", - "projectName": "xkpiitmwrpbo", - "poolName": "tkhvhyfjkewjrce", - "scheduleName": "xthiqb" - }, - "responses": { - "200": { - "body": { - "name": "wjkgmsestuxvsqnzrdfvyojwozs", - "type": "StopDevBox", - "frequency": "Daily", - "time": "dpotf", - "timeZone": "frdpbsljjcxu" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json deleted file mode 100644 index 864b8cd45134..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "title": "Lists actions on a Dev Box.", - "operationId": "DevBoxesOperations_ListDevBoxActions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "bozdcianuefdzhxpbwxquna", - "userId": "pkxoszxdayvqo", - "devBoxName": "iyusuizyzdoozbm" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "pjj", - "actionType": "Stop", - "sourceId": "rqdtniydrmnkdmdxssgid", - "suspendedUntil": "2024-01-24T21:15:00.943Z", - "next": { - "scheduledTime": "2024-01-24T21:15:00.943Z" - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json deleted file mode 100644 index 77447f0e35a7..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "title": "Lists Dev Boxes in the project for a particular user.", - "operationId": "DevBoxesOperations_ListDevBoxes", - "parameters": { - "api-version": "2023-04-01", - "projectName": "zoeuqoedpb", - "userId": "jswwayblmdmdgavyxmmhls", - "filter": "zxrh", - "top": 19 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "umfutyopjqlkfpnsrstaksogsub", - "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", - "poolName": "lFR5__5-_E0gWK__-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "gzcgcb", - "powerState": "Unknown", - "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - }, - "location": "libjfmzzzfmvpwmxnblsmwykh", - "osType": "Windows", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 3, - "memoryGB": 30 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 24 - } - }, - "imageReference": { - "name": "m", - "version": "fqvya", - "operatingSystem": "q", - "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", - "publishedDate": "2024-01-24T21:14:56.489Z" - }, - "createdTime": "2024-01-24T21:14:56.489Z", - "localAdministrator": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListPools.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListPools.json deleted file mode 100644 index ea6633977a60..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListPools.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "title": "Lists available pools", - "operationId": "DevBoxesOperations_ListPools", - "parameters": { - "api-version": "2023-04-01", - "projectName": "lujxbvczu", - "filter": "mrbumagoudkbnjfnaczpjiihojn", - "top": 21 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "xseeobjdsdpjl", - "location": "cyzkbkpj", - "osType": "Windows", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 3, - "memoryGB": 30 - }, - "hibernateSupport": "Enabled", - "storageProfile": { - "osDisk": { - "diskSizeGB": 24 - } - }, - "imageReference": { - "name": "m", - "version": "fqvya", - "operatingSystem": "q", - "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", - "publishedDate": "2024-01-24T21:14:56.489Z" - }, - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 12 - }, - "healthStatus": "Unknown" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListSchedules.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListSchedules.json deleted file mode 100644 index a0a09fbb09be..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListSchedules.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "Lists available schedules for a pool.", - "operationId": "DevBoxesOperations_ListSchedules", - "parameters": { - "api-version": "2023-04-01", - "projectName": "dcdenfonrmyqdelhxyfkg", - "poolName": "dpwmmxjwbwhcbie", - "filter": "cpazhrejyrzummhwkcxatkem", - "top": 12 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "wjkgmsestuxvsqnzrdfvyojwozs", - "type": "StopDevBox", - "frequency": "Daily", - "time": "dpotf", - "timeZone": "frdpbsljjcxu" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json deleted file mode 100644 index f4ded33cf025..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "Restarts a Dev Box", - "operationId": "DevBoxesOperations_RestartDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "cfdsnqksinmveazbmvjzhgqcwk", - "userId": "npcxuhbzsptftyoj", - "devBoxName": "hheqmxzsfkcbadaooeg" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "qgqvydkahfqdnvyapn", - "name": "gmjnhbpwdycxlnwgrcl", - "status": "Running", - "resourceId": "enfyiqikaoxyte", - "startTime": "2024-01-24T21:14:58.472Z", - "endTime": "2024-01-24T21:14:58.472Z", - "percentComplete": 3, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_SkipAction.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_SkipAction.json deleted file mode 100644 index 91bf430b3ab1..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_SkipAction.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "title": "Skips an occurrence of an action.", - "operationId": "DevBoxesOperations_SkipAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "aeaaemtbnqiziap", - "userId": "pxfmitbjrwllkltp", - "devBoxName": "yefugsximdb", - "actionName": "aspdnasqei" - }, - "responses": { - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StartDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StartDevBox.json deleted file mode 100644 index 1684ea81b392..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StartDevBox.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "Starts a Dev Box", - "operationId": "DevBoxesOperations_StartDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "risstmlxqhpratecjnsoaegvnba", - "userId": "ufupmdhb", - "devBoxName": "i" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "qgqvydkahfqdnvyapn", - "name": "gmjnhbpwdycxlnwgrcl", - "status": "Running", - "resourceId": "enfyiqikaoxyte", - "startTime": "2024-01-24T21:14:58.472Z", - "endTime": "2024-01-24T21:14:58.472Z", - "percentComplete": 3, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StopDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StopDevBox.json deleted file mode 100644 index 42678144eef6..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StopDevBox.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "Stops a Dev Box", - "operationId": "DevBoxesOperations_StopDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "vdmmuwewyosv", - "userId": "avuflfdiptbox", - "devBoxName": "qgmmtshrvpeqhmwrgyygldupfoah", - "hibernate": true - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "qgqvydkahfqdnvyapn", - "name": "gmjnhbpwdycxlnwgrcl", - "status": "Running", - "resourceId": "enfyiqikaoxyte", - "startTime": "2024-01-24T21:14:58.472Z", - "endTime": "2024-01-24T21:14:58.472Z", - "percentComplete": 3, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Create.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Create.json new file mode 100644 index 000000000000..f51bad1c0086 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Create.json @@ -0,0 +1,72 @@ +{ + "title": "Creates or replaces a Dev Box.", + "operationId": "DevBoxesOperations_CreateDevBox", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "userId": "me", + "devBoxName": "MyDevBox", + "body": { + "poolName": "LargeDevWorkStationPool" + } + }, + "responses": { + "200": { + "body": { + "name": "MyDevBox", + "provisioningState": "Succeeded", + "projectName": "ContosoProject", + "poolName": "LargeDevWorkStationPool", + "location": "centralus", + "osType": "Windows", + "user": "b08e39b4-2ac6-4465-a35e-48322efb0f98", + "hardwareProfile": { + "vCPUs": 8, + "memoryGB": 32 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 1024 + } + }, + "hibernateSupport": "Enabled", + "imageReference": { + "name": "DevImage", + "version": "1.0.0", + "publishedDate": "2022-03-01T00:13:23.323Z" + } + } + }, + "201": { + "headers": { + "Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0", + "Operation-Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0" + }, + "body": { + "name": "MyDevBox", + "provisioningState": "Creating", + "projectName": "ContosoProject", + "poolName": "LargeDevWorkStationPool", + "location": "centralus", + "osType": "Windows", + "user": "b08e39b4-2ac6-4465-a35e-48322efb0f98", + "hardwareProfile": { + "vCPUs": 8, + "memoryGB": 32 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 1024 + } + }, + "hibernateSupport": "Enabled", + "imageReference": { + "name": "DevImage", + "version": "1.0.0", + "publishedDate": "2022-03-01T00:13:23.323Z" + } + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Delete.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Delete.json new file mode 100644 index 000000000000..4843a80ed6c9 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Delete.json @@ -0,0 +1,26 @@ +{ + "title": "Deletes a Dev Box.", + "operationId": "DevBoxesOperations_DeleteDevBox", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "userId": "me", + "devBoxName": "MyDevBox" + }, + "responses": { + "202": { + "headers": { + "Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0", + "Operation-Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0" + }, + "body": { + "id": "/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0", + "name": "786a823c-8037-48ab-89b8-8599901e67d0", + "status": "Running", + "startTime": "2023-02-01T12:43:54.122Z" + } + }, + "204": {} + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Get.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Get.json new file mode 100644 index 000000000000..f29193eb0b35 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Get.json @@ -0,0 +1,39 @@ +{ + "title": "Gets a Dev Box", + "operationId": "DevBoxesOperations_GetDevBox", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "userId": "me", + "devBoxName": "MyDevBox" + }, + "responses": { + "200": { + "body": { + "name": "MyDevBox", + "provisioningState": "Succeeded", + "projectName": "ContosoProject", + "poolName": "LargeDevWorkStationPool", + "location": "centralus", + "osType": "Windows", + "user": "b08e39b4-2ac6-4465-a35e-48322efb0f98", + "hardwareProfile": { + "vCPUs": 8, + "memoryGB": 32 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 1024 + } + }, + "hibernateSupport": "Enabled", + "imageReference": { + "name": "DevImage", + "version": "1.0.0", + "publishedDate": "2022-03-01T00:13:23.323Z" + } + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_GetRemoteConnection.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_GetRemoteConnection.json new file mode 100644 index 000000000000..a01b7df571fd --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_GetRemoteConnection.json @@ -0,0 +1,18 @@ +{ + "title": "Gets RDP Connection info", + "operationId": "DevBoxesOperations_GetRemoteConnection", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "userId": "me", + "devBoxName": "MyDevBox" + }, + "responses": { + "200": { + "body": { + "webUrl": "https://connectionUrl" + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_List.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_List.json new file mode 100644 index 000000000000..24f1f0760e5c --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_List.json @@ -0,0 +1,40 @@ +{ + "title": "Lists Dev Boxes that the caller has access to in the DevCenter.", + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", + "parameters": { + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "api-version": "2023-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "MyDevBox", + "provisioningState": "Succeeded", + "projectName": "ContosoProject", + "poolName": "LargeDevWorkStationPool", + "location": "centralus", + "osType": "Windows", + "user": "b08e39b4-2ac6-4465-a35e-48322efb0f98", + "hardwareProfile": { + "vCPUs": 8, + "memoryGB": 32 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 1024 + } + }, + "hibernateSupport": "Enabled", + "imageReference": { + "name": "DevImage", + "version": "1.0.0", + "publishedDate": "2022-03-01T00:13:23.323Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_ListByUserByProject.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_ListByUserByProject.json new file mode 100644 index 000000000000..2140a65cb857 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_ListByUserByProject.json @@ -0,0 +1,42 @@ +{ + "title": "Lists Dev Boxes in the project for a particular user.", + "operationId": "DevBoxesOperations_ListDevBoxes", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "userId": "me" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "MyDevBox", + "provisioningState": "Succeeded", + "projectName": "ContosoProject", + "poolName": "LargeDevWorkStationPool", + "location": "centralus", + "osType": "Windows", + "user": "b08e39b4-2ac6-4465-a35e-48322efb0f98", + "hardwareProfile": { + "vCPUs": 8, + "memoryGB": 32 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 1024 + } + }, + "hibernateSupport": "Enabled", + "imageReference": { + "name": "DevImage", + "version": "1.0.0", + "publishedDate": "2022-03-01T00:13:23.323Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Restart.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Restart.json new file mode 100644 index 000000000000..3c0e55515dd6 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Restart.json @@ -0,0 +1,25 @@ +{ + "title": "Restarts a Dev Box", + "operationId": "DevBoxesOperations_RestartDevBox", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "userId": "me", + "devBoxName": "MyDevBox" + }, + "responses": { + "202": { + "headers": { + "Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0", + "Operation-Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0" + }, + "body": { + "id": "/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0", + "name": "786a823c-8037-48ab-89b8-8599901e67d0", + "status": "Running", + "startTime": "2023-02-01T12:43:54.122Z" + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Start.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Start.json new file mode 100644 index 000000000000..292e5e1c947a --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Start.json @@ -0,0 +1,25 @@ +{ + "title": "Starts a Dev Box", + "operationId": "DevBoxesOperations_StartDevBox", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "userId": "me", + "devBoxName": "MyDevBox" + }, + "responses": { + "202": { + "headers": { + "Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0", + "Operation-Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0" + }, + "body": { + "id": "/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0", + "name": "786a823c-8037-48ab-89b8-8599901e67d0", + "status": "Running", + "startTime": "2023-02-01T12:43:54.122Z" + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Stop.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Stop.json new file mode 100644 index 000000000000..b92d1089e864 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Stop.json @@ -0,0 +1,26 @@ +{ + "title": "Stops a Dev Box", + "operationId": "DevBoxesOperations_StopDevBox", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "userId": "me", + "devBoxName": "MyDevBox", + "hibernate": "true" + }, + "responses": { + "202": { + "headers": { + "Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0", + "Operation-Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0" + }, + "body": { + "id": "/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0", + "name": "786a823c-8037-48ab-89b8-8599901e67d0", + "status": "Running", + "startTime": "2023-02-01T12:43:54.122Z" + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json deleted file mode 100644 index 47cec0d6e1a0..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "title": "DevCenterOperations_GetProject", - "operationId": "DevCenterOperations_GetProject", - "parameters": { - "api-version": "2023-04-01", - "projectName": "thzm" - }, - "responses": { - "200": { - "body": { - "name": "kjqmqcsuudovwzfudo", - "description": "sprbsjrouoo", - "maxDevBoxesPerUser": 0 - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json deleted file mode 100644 index cacdc26ee7d6..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "DevCenterOperations_ListProjects", - "operationId": "DevCenterOperations_ListProjects", - "parameters": { - "api-version": "2023-04-01", - "filter": "cwyvyioiha", - "top": 27 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "kjqmqcsuudovwzfudo", - "description": "sprbsjrouoo", - "maxDevBoxesPerUser": 0 - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_Get.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_Get.json new file mode 100644 index 000000000000..e4efa7edea54 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_Get.json @@ -0,0 +1,57 @@ +{ + "title": "Get an environment definition from a catalog.", + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "catalogName": "myCatalog", + "definitionName": "foo" + }, + "responses": { + "200": { + "body": { + "id": "/projects/myProject/catalogs/myCatalog/environmentDefinitions/foo", + "name": "foo", + "catalogName": "myCatalog", + "description": "This environment definition is just for example purposes.", + "parameters": [ + { + "id": "functionAppRuntime", + "name": "Function App Runtime", + "type": "string", + "required": true, + "default": "dotnet", + "allowed": [ + "node", + "dotnet", + "java" + ] + }, + { + "id": "storageAccountType", + "name": "Storage Account Type", + "type": "string", + "required": true, + "default": "Standard_LRS", + "allowed": [ + "Standard_LRS", + "Standard_GRS", + "Standard_RAGRS" + ] + }, + { + "id": "httpsOnly", + "name": "HTTPS only", + "type": "boolean", + "default": "true", + "readOnly": true, + "required": true + } + ], + "parametersSchema": "{\"type\":\"object\",\"properties\":{\"functionAppRuntime\":{\"$id\":\"functionAppRuntime\",\"value\":\"dotnet\",\"displayName\":\"Function App Runtime\",\"type\":\"string\",\"enum\":[\"node\",\"dotnet\",\"java\"]},\"storageAccountType\":{\"$id\":\"storageAccountType\",\"value\":\"Standard_LRS\",\"displayName\":\"Storage Account Type\",\"type\":\"string\",\"enum\":[\"Standard_LRS\",\"Standard_GRS\",\"Standard_RAGRS\"]},\"httpsOnly\":{\"$id\":\"httpsOnly\",\"value\":true,\"displayName\":\"HTTPS only\",\"type\":\"boolean\"}},\"required\":[\"functionAppRuntime\",\"storageAccountType\"]}", + "templatePath": "azuredeploy.json" + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_ListByCatalog.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_ListByCatalog.json new file mode 100644 index 000000000000..d9c411224b8e --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_ListByCatalog.json @@ -0,0 +1,67 @@ +{ + "title": "Lists all environment definitions available within a catalog.", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "catalogName": "myCatalog" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/projects/myProject/catalogs/myCatalog/environmentDefinitions/foo", + "name": "foo", + "catalogName": "myCatalog", + "description": "This environment definition is just for example purposes.", + "parameters": [ + { + "id": "functionAppRuntime", + "name": "Function App Runtime", + "type": "string", + "required": true, + "default": "dotnet", + "allowed": [ + "node", + "dotnet", + "java" + ] + }, + { + "id": "storageAccountType", + "name": "Storage Account Type", + "type": "string", + "required": true, + "default": "Standard_LRS", + "allowed": [ + "Standard_LRS", + "Standard_GRS", + "Standard_RAGRS" + ] + }, + { + "id": "httpsOnly", + "name": "HTTPS only", + "type": "boolean", + "default": "true", + "readOnly": true, + "required": true + } + ], + "parametersSchema": "{\"type\":\"object\",\"properties\":{\"functionAppRuntime\":{\"$id\":\"functionAppRuntime\",\"value\":\"dotnet\",\"displayName\":\"Function App Runtime\",\"type\":\"string\",\"enum\":[\"node\",\"dotnet\",\"java\"]},\"storageAccountType\":{\"$id\":\"storageAccountType\",\"value\":\"Standard_LRS\",\"displayName\":\"Storage Account Type\",\"type\":\"string\",\"enum\":[\"Standard_LRS\",\"Standard_GRS\",\"Standard_RAGRS\"]},\"httpsOnly\":{\"$id\":\"httpsOnly\",\"value\":true,\"displayName\":\"HTTPS only\",\"type\":\"boolean\"}},\"required\":[\"functionAppRuntime\",\"storageAccountType\"]}", + "templatePath": "azuredeploy.json" + }, + { + "id": "/projects/myProject/catalogs/myCatalog/environmentDefinitions/bar", + "name": "bar", + "catalogName": "myCatalog", + "description": "This environment definition is just for example purposes.", + "templatePath": "azuredeploy.json" + } + ] + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_ListByProject.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_ListByProject.json new file mode 100644 index 000000000000..aabe3738602c --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_ListByProject.json @@ -0,0 +1,66 @@ +{ + "title": "Lists all environment definitions available for a project.", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/projects/myProject/catalogs/myCatalog/environmentDefinitions/foo", + "name": "foo", + "catalogName": "myCatalog", + "description": "This environment definition is just for example purposes.", + "parameters": [ + { + "id": "functionAppRuntime", + "name": "Function App Runtime", + "type": "string", + "required": true, + "default": "dotnet", + "allowed": [ + "node", + "dotnet", + "java" + ] + }, + { + "id": "storageAccountType", + "name": "Storage Account Type", + "type": "string", + "required": true, + "default": "Standard_LRS", + "allowed": [ + "Standard_LRS", + "Standard_GRS", + "Standard_RAGRS" + ] + }, + { + "id": "httpsOnly", + "name": "HTTPS only", + "type": "boolean", + "default": "true", + "readOnly": true, + "required": true + } + ], + "parametersSchema": "{\"type\":\"object\",\"properties\":{\"functionAppRuntime\":{\"$id\":\"functionAppRuntime\",\"value\":\"dotnet\",\"displayName\":\"Function App Runtime\",\"type\":\"string\",\"enum\":[\"node\",\"dotnet\",\"java\"]},\"storageAccountType\":{\"$id\":\"storageAccountType\",\"value\":\"Standard_LRS\",\"displayName\":\"Storage Account Type\",\"type\":\"string\",\"enum\":[\"Standard_LRS\",\"Standard_GRS\",\"Standard_RAGRS\"]},\"httpsOnly\":{\"$id\":\"httpsOnly\",\"value\":true,\"displayName\":\"HTTPS only\",\"type\":\"boolean\"}},\"required\":[\"functionAppRuntime\",\"storageAccountType\"]}", + "templatePath": "azuredeploy.json" + }, + { + "id": "/projects/myProject/catalogs/myOtherCatalog/environmentDefinitions/bar", + "name": "bar", + "catalogName": "myOtherCatalog", + "description": "This environment definition is just for example purposes.", + "templatePath": "azuredeploy.json" + } + ] + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentTypes_ListByProject.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentTypes_ListByProject.json new file mode 100644 index 000000000000..83e22df09846 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentTypes_ListByProject.json @@ -0,0 +1,22 @@ +{ + "title": "Lists all environment types configured for a project.", + "operationId": "EnvironmentsOperations_ListEnvironmentTypes", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "devtestenv", + "status": "Enabled", + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000" + } + ] + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json deleted file mode 100644 index 19648f9f454e..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "title": "Creates or updates an environment.", - "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "rm", - "userId": "ecllhdlf", - "environmentName": "ybibmcucjxloaiamlghemtibifijdt", - "body": { - "parameters": "cGFyYW1ldGVyczE=", - "environmentType": "zlqyvqtrinekx", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "provisioningState": "Succeeded", - "catalogName": "ayyxfyzejoicocelmprq", - "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - }, - "responses": { - "201": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "parameters": "cGFyYW1ldGVyczE=", - "name": "jurl", - "environmentType": "zlqyvqtrinekx", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "provisioningState": "Succeeded", - "resourceGroupId": "morqkeokwmlevjbhatdup", - "catalogName": "ayyxfyzejoicocelmprq", - "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json deleted file mode 100644 index 7bdc410d6aa3..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "Deletes an environment and all its associated resources", - "operationId": "EnvironmentsOperations_DeleteEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "makxpclulitaedryotaezhsarc", - "userId": "fbmcwpownjucshzdnndefdcp", - "environmentName": "pmqqjc" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "qgqvydkahfqdnvyapn", - "name": "gmjnhbpwdycxlnwgrcl", - "status": "Running", - "resourceId": "enfyiqikaoxyte", - "startTime": "2024-01-24T21:14:58.472Z", - "endTime": "2024-01-24T21:14:58.472Z", - "percentComplete": 3, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - }, - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json deleted file mode 100644 index 3f067523d4c7..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "title": "Gets an environment", - "operationId": "EnvironmentsOperations_GetEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "xzxvhmulzlerr", - "userId": "rnlkjyggdaasja", - "environmentName": "ilau" - }, - "responses": { - "200": { - "body": { - "parameters": "cGFyYW1ldGVyczE=", - "name": "jurl", - "environmentType": "zlqyvqtrinekx", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "provisioningState": "Succeeded", - "resourceGroupId": "morqkeokwmlevjbhatdup", - "catalogName": "ayyxfyzejoicocelmprq", - "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json deleted file mode 100644 index 20d9956dfd90..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "Get an environment definition from a catalog.", - "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", - "parameters": { - "api-version": "2023-04-01", - "projectName": "cgwaeehpqtuwppbntwihwhxffz", - "catalogName": "sjggejuqzlqswvsmkgnnl", - "definitionName": "sjop" - }, - "responses": { - "200": { - "body": { - "id": "pkatvpvrpiioenfnrqe", - "name": "rhabcivgyiwaah", - "catalogName": "uzvgkbgkmk", - "description": "ofjoroavqhsib", - "parameters": [ - { - "id": "jkfdpgw", - "name": "wbppqxcgj", - "description": "gmlxqlcuqccnprmgnukbwduxswnh", - "default": "ZGVmYXVsdDE=", - "type": "array", - "readOnly": true, - "required": true, - "allowed": [ - "gqyuynxzeuwqtvpbocfgc" - ] - } - ], - "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", - "templatePath": "rar" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json deleted file mode 100644 index b59a65207bc8..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "Lists the environments for a project.", - "operationId": "EnvironmentsOperations_ListAllEnvironments", - "parameters": { - "api-version": "2023-04-01", - "projectName": "rtxnbdeugarpqhejuj", - "top": 12 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "parameters": "cGFyYW1ldGVyczE=", - "name": "jurl", - "environmentType": "zlqyvqtrinekx", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "provisioningState": "Succeeded", - "resourceGroupId": "morqkeokwmlevjbhatdup", - "catalogName": "ayyxfyzejoicocelmprq", - "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json deleted file mode 100644 index 0e50041306ff..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "title": "Lists all environment definitions available for a project.", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "frgamecqz", - "top": 16 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "pkatvpvrpiioenfnrqe", - "name": "rhabcivgyiwaah", - "catalogName": "uzvgkbgkmk", - "description": "ofjoroavqhsib", - "parameters": [ - { - "id": "jkfdpgw", - "name": "wbppqxcgj", - "description": "gmlxqlcuqccnprmgnukbwduxswnh", - "default": "ZGVmYXVsdDE=", - "type": "array", - "readOnly": true, - "required": true, - "allowed": [ - "gqyuynxzeuwqtvpbocfgc" - ] - } - ], - "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", - "templatePath": "rar" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json deleted file mode 100644 index b56e0e2f1237..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "title": "Lists all environment definitions available within a catalog.", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", - "parameters": { - "api-version": "2023-04-01", - "projectName": "pbunknfrtjnqkbz", - "catalogName": "oimgviuwixhp", - "top": 29 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "pkatvpvrpiioenfnrqe", - "name": "rhabcivgyiwaah", - "catalogName": "uzvgkbgkmk", - "description": "ofjoroavqhsib", - "parameters": [ - { - "id": "jkfdpgw", - "name": "wbppqxcgj", - "description": "gmlxqlcuqccnprmgnukbwduxswnh", - "default": "ZGVmYXVsdDE=", - "type": "array", - "readOnly": true, - "required": true, - "allowed": [ - "gqyuynxzeuwqtvpbocfgc" - ] - } - ], - "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", - "templatePath": "rar" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json deleted file mode 100644 index d6c76e309021..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "Lists all environment types configured for a project.", - "operationId": "EnvironmentsOperations_ListEnvironmentTypes", - "parameters": { - "api-version": "2023-04-01", - "projectName": "c", - "top": 7 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "rvlfnpsglaihocattmhdswncjmn", - "deploymentTargetId": "rspdrsmefyxegg", - "status": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json deleted file mode 100644 index c5757533a30a..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "title": "Lists the environments for a project and user.", - "operationId": "EnvironmentsOperations_ListEnvironments", - "parameters": { - "api-version": "2023-04-01", - "projectName": "dusvmkqsfvpuwblcypodtmdutqlaip", - "userId": "hkdwumpqihnvpkivnfofjfeklzpoxo", - "top": 17 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "parameters": "cGFyYW1ldGVyczE=", - "name": "jurl", - "environmentType": "zlqyvqtrinekx", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "provisioningState": "Succeeded", - "resourceGroupId": "morqkeokwmlevjbhatdup", - "catalogName": "ayyxfyzejoicocelmprq", - "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Environments_CreateByEnvironmentDefinition.json b/specification/devcenter/DevCenter/examples/2023-04-01/Environments_CreateByEnvironmentDefinition.json new file mode 100644 index 000000000000..40bd8016a490 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/Environments_CreateByEnvironmentDefinition.json @@ -0,0 +1,40 @@ +{ + "title": "Creates or updates an environment.", + "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "environmentName": "mydevenv", + "userId": "me", + "body": { + "environmentType": "DevTest", + "catalogName": "main", + "environmentDefinitionName": "helloworld", + "parameters": { + "functionAppRuntime": "node", + "storageAccountType": "Standard_LRS" + } + } + }, + "responses": { + "201": { + "headers": { + "Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0", + "Operation-Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0" + }, + "body": { + "name": "mydevenv", + "environmentType": "DevTest", + "catalogName": "main", + "environmentDefinitionName": "helloworld", + "parameters": { + "functionAppRuntime": "node", + "storageAccountType": "Standard_LRS" + }, + "user": "b08e39b4-2ac6-4465-a35e-48322efb0f98", + "provisioningState": "Creating" + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Environments_Delete.json b/specification/devcenter/DevCenter/examples/2023-04-01/Environments_Delete.json new file mode 100644 index 000000000000..db378d427835 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/Environments_Delete.json @@ -0,0 +1,26 @@ +{ + "title": "Deletes an environment and all its associated resources", + "operationId": "EnvironmentsOperations_DeleteEnvironment", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "userId": "me", + "environmentName": "mydevenv" + }, + "responses": { + "202": { + "headers": { + "Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0", + "Operation-Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0" + }, + "body": { + "id": "/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0", + "name": "786a823c-8037-48ab-89b8-8599901e67d0", + "status": "Running", + "startTime": "2023-02-01T12:43:54.122Z" + } + }, + "204": {} + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Environments_Get.json b/specification/devcenter/DevCenter/examples/2023-04-01/Environments_Get.json new file mode 100644 index 000000000000..eb89813acaf7 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/Environments_Get.json @@ -0,0 +1,28 @@ +{ + "title": "Gets an environment", + "operationId": "EnvironmentsOperations_GetEnvironment", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "userId": "me", + "environmentName": "mydevenv" + }, + "responses": { + "200": { + "body": { + "name": "mydevenv", + "environmentType": "DevTest", + "catalogName": "main", + "environmentDefinitionName": "helloworld", + "parameters": { + "functionAppRuntime": "node", + "storageAccountType": "Standard_LRS" + }, + "user": "b08e39b4-2ac6-4465-a35e-48322efb0f98", + "provisioningState": "Succeeded", + "resourceGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg028321" + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Environments_ListByProject.json b/specification/devcenter/DevCenter/examples/2023-04-01/Environments_ListByProject.json new file mode 100644 index 000000000000..ab203c460a33 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/Environments_ListByProject.json @@ -0,0 +1,30 @@ +{ + "title": "Lists the environments for a project.", + "operationId": "EnvironmentsOperations_ListAllEnvironments", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "mydevenv", + "environmentType": "DevTest", + "catalogName": "main", + "environmentDefinitionName": "helloworld", + "parameters": { + "functionAppRuntime": "node", + "storageAccountType": "Standard_LRS" + }, + "user": "b08e39b4-2ac6-4465-a35e-48322efb0f98", + "provisioningState": "Succeeded", + "resourceGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg028321" + } + ] + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Environments_ListByProjectByUser.json b/specification/devcenter/DevCenter/examples/2023-04-01/Environments_ListByProjectByUser.json new file mode 100644 index 000000000000..51f0384a6ffb --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/Environments_ListByProjectByUser.json @@ -0,0 +1,31 @@ +{ + "title": "Lists the environments for a project and user.", + "operationId": "EnvironmentsOperations_ListEnvironments", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "userId": "me" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "mydevenv", + "environmentType": "DevTest", + "catalogName": "main", + "environmentDefinitionName": "helloworld", + "parameters": { + "functionAppRuntime": "node", + "storageAccountType": "Standard_LRS" + }, + "user": "b08e39b4-2ac6-4465-a35e-48322efb0f98", + "provisioningState": "Succeeded", + "resourceGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg028321" + } + ] + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Pools_Get.json b/specification/devcenter/DevCenter/examples/2023-04-01/Pools_Get.json new file mode 100644 index 000000000000..7b53a6ac96b4 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/Pools_Get.json @@ -0,0 +1,39 @@ +{ + "title": "Gets a pool", + "operationId": "DevBoxesOperations_GetPool", + "parameters": { + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "api-version": "2023-04-01", + "poolName": "DevPool" + }, + "responses": { + "200": { + "body": { + "name": "LargeDevWorkStationPool", + "location": "centralus", + "osType": "Windows", + "hardwareProfile": { + "vCPUs": 8, + "memoryGB": 32 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 1024 + } + }, + "hibernateSupport": "Enabled", + "imageReference": { + "name": "DevImage", + "version": "1.0.0", + "publishedDate": "2022-03-01T00:13:23.323Z" + }, + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 60 + }, + "healthStatus": "Healthy" + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Pools_List.json b/specification/devcenter/DevCenter/examples/2023-04-01/Pools_List.json new file mode 100644 index 000000000000..42c39b484d20 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/Pools_List.json @@ -0,0 +1,67 @@ +{ + "title": "Lists available pools", + "operationId": "DevBoxesOperations_ListPools", + "parameters": { + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "api-version": "2023-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "LargeDevWorkStationPool", + "location": "centralus", + "osType": "Windows", + "hardwareProfile": { + "vCPUs": 8, + "memoryGB": 32 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 1024 + } + }, + "hibernateSupport": "Enabled", + "imageReference": { + "name": "DevImage", + "version": "1.0.0", + "publishedDate": "2022-03-01T00:13:23.323Z" + }, + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 60 + }, + "healthStatus": "Healthy" + }, + { + "name": "SQLDevelopmentMachinePool", + "location": "southcentralus", + "osType": "Windows", + "hardwareProfile": { + "vCPUs": 16, + "memoryGB": 128 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 1024 + } + }, + "hibernateSupport": "Enabled", + "imageReference": { + "name": "SqlDevImage", + "version": "1.0.0", + "publishedDate": "2022-03-01T00:13:23.323Z" + }, + "stopOnDisconnect": { + "status": "Enabled", + "gracePeriodMinutes": 60 + }, + "healthStatus": "Healthy" + } + ] + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Projects_Get.json b/specification/devcenter/DevCenter/examples/2023-04-01/Projects_Get.json new file mode 100644 index 000000000000..fe1a721864bc --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/Projects_Get.json @@ -0,0 +1,17 @@ +{ + "title": "Gets a project.", + "operationId": "DevCenterOperations_GetProject", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject" + }, + "responses": { + "200": { + "body": { + "name": "DevDiv", + "description": "The developer division" + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Projects_ListByDevCenter.json b/specification/devcenter/DevCenter/examples/2023-04-01/Projects_ListByDevCenter.json new file mode 100644 index 000000000000..1e7bdde95309 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/Projects_ListByDevCenter.json @@ -0,0 +1,20 @@ +{ + "title": "Lists all projects.", + "operationId": "DevCenterOperations_ListProjects", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "DevDiv", + "description": "The developer division" + } + ] + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Schedules_Get.json b/specification/devcenter/DevCenter/examples/2023-04-01/Schedules_Get.json new file mode 100644 index 000000000000..8ba5489b95c6 --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/Schedules_Get.json @@ -0,0 +1,22 @@ +{ + "title": "Gets a schedule.", + "operationId": "DevBoxesOperations_GetSchedule", + "parameters": { + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "api-version": "2023-04-01", + "poolName": "DevPool", + "scheduleName": "default" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "StopDevBox", + "timeZone": "America/Los_Angeles", + "frequency": "Daily", + "time": "17:30" + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Schedules_List.json b/specification/devcenter/DevCenter/examples/2023-04-01/Schedules_List.json new file mode 100644 index 000000000000..0a5afd4f207a --- /dev/null +++ b/specification/devcenter/DevCenter/examples/2023-04-01/Schedules_List.json @@ -0,0 +1,25 @@ +{ + "title": "Lists available schedules for a pool.", + "operationId": "DevBoxesOperations_ListSchedules", + "parameters": { + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "projectName": "myProject", + "poolName": "DevPool", + "api-version": "2023-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "type": "StopDevBox", + "timeZone": "America/Los_Angeles", + "frequency": "Daily", + "time": "17:30" + } + ] + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json b/specification/devcenter/DevCenter/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json deleted file mode 100644 index 5310b772d744..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "title": "SharedOperations_GetProjectOperationStatus", - "operationId": "SharedOperations_GetProjectOperationStatus", - "parameters": { - "api-version": "2023-04-01", - "projectName": "nuuuznfzityiftaeeegmu", - "operationId": "njnpajhbysgc" - }, - "responses": { - "200": { - "body": { - "id": "qgqvydkahfqdnvyapn", - "name": "gmjnhbpwdycxlnwgrcl", - "status": "Running", - "resourceId": "enfyiqikaoxyte", - "startTime": "2024-01-24T21:14:58.472Z", - "endTime": "2024-01-24T21:14:58.472Z", - "percentComplete": 3, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index bcc7ca298cf5..38836a4f3b9a 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -11,7 +11,7 @@ options: "@azure-tools/typespec-autorest": azure-resource-provider-folder: "data-plane" emitter-output-dir: "{project-root}/.." - output-file: "{azure-resource-provider-folder}/DevCenter/{version-status}/{version}/openapi.json" + output-file: "{azure-resource-provider-folder}/Microsoft.DevCenter/{version-status}/{version}/openapi.json" examples-directory: "examples" "@azure-tools/typespec-csharp": namespace : "Azure.Developer.DevCenter" diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json deleted file mode 100644 index 51f94500e3db..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "title": "Lists Dev Boxes that the caller has access to in the DevCenter.", - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", - "parameters": { - "api-version": "2023-04-01", - "filter": "bawvkgqrdej", - "top": 27 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "umfutyopjqlkfpnsrstaksogsub", - "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", - "poolName": "lFR5__5-_E0gWK__-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "gzcgcb", - "powerState": "Unknown", - "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - }, - "location": "libjfmzzzfmvpwmxnblsmwykh", - "osType": "Windows", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 3, - "memoryGB": 30 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 24 - } - }, - "imageReference": { - "name": "m", - "version": "fqvya", - "operatingSystem": "q", - "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", - "publishedDate": "2024-01-24T21:14:56.489Z" - }, - "createdTime": "2024-01-24T21:14:56.489Z", - "localAdministrator": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json deleted file mode 100644 index 2eb0b237c3ed..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "title": "Lists Dev Boxes in the Dev Center for a particular user.", - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", - "parameters": { - "api-version": "2023-04-01", - "filter": "ismwy", - "top": 9, - "userId": "jehwvcrwpfddenzyf" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "umfutyopjqlkfpnsrstaksogsub", - "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", - "poolName": "lFR5__5-_E0gWK__-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "gzcgcb", - "powerState": "Unknown", - "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - }, - "location": "libjfmzzzfmvpwmxnblsmwykh", - "osType": "Windows", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 3, - "memoryGB": 30 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 24 - } - }, - "imageReference": { - "name": "m", - "version": "fqvya", - "operatingSystem": "q", - "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", - "publishedDate": "2024-01-24T21:14:56.489Z" - }, - "createdTime": "2024-01-24T21:14:56.489Z", - "localAdministrator": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json deleted file mode 100644 index 6842b686c998..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "title": "Creates or replaces a Dev Box.", - "operationId": "DevBoxesOperations_CreateDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "sakfxntevmehtdbtwjsfxnbnbcc", - "userId": "wfbmdncbebsq", - "devBoxName": "tjhqutmfdvy", - "devBox": { - "poolName": "lFR5__5-_E0gWK__-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "powerState": "Unknown", - "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - }, - "osType": "Windows", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2" - }, - "storageProfile": { - "osDisk": {} - }, - "imageReference": {}, - "localAdministrator": "Enabled" - } - }, - "responses": { - "200": { - "body": { - "name": "umfutyopjqlkfpnsrstaksogsub", - "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", - "poolName": "lFR5__5-_E0gWK__-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "gzcgcb", - "powerState": "Unknown", - "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - }, - "location": "libjfmzzzfmvpwmxnblsmwykh", - "osType": "Windows", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 3, - "memoryGB": 30 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 24 - } - }, - "imageReference": { - "name": "m", - "version": "fqvya", - "operatingSystem": "q", - "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", - "publishedDate": "2024-01-24T21:14:56.489Z" - }, - "createdTime": "2024-01-24T21:14:56.489Z", - "localAdministrator": "Enabled" - } - }, - "201": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "name": "umfutyopjqlkfpnsrstaksogsub", - "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", - "poolName": "lFR5__5-_E0gWK__-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "gzcgcb", - "powerState": "Unknown", - "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - }, - "location": "libjfmzzzfmvpwmxnblsmwykh", - "osType": "Windows", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 3, - "memoryGB": 30 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 24 - } - }, - "imageReference": { - "name": "m", - "version": "fqvya", - "operatingSystem": "q", - "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", - "publishedDate": "2024-01-24T21:14:56.489Z" - }, - "createdTime": "2024-01-24T21:14:56.489Z", - "localAdministrator": "Enabled" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json deleted file mode 100644 index fac9749acc5f..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "title": "Delays the occurrence of an action.", - "operationId": "DevBoxesOperations_DelayAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "weeutabqporpt", - "userId": "hpltjhjacjpvdujb", - "devBoxName": "kv", - "actionName": "mmmcpjfeveltcfdkasvavovihx", - "until": "2024-01-24T21:15:01.753Z" - }, - "responses": { - "200": { - "body": { - "name": "pjj", - "actionType": "Stop", - "sourceId": "rqdtniydrmnkdmdxssgid", - "suspendedUntil": "2024-01-24T21:15:00.943Z", - "next": { - "scheduledTime": "2024-01-24T21:15:00.943Z" - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json deleted file mode 100644 index 1d6da069ad00..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "title": "Delays all actions.", - "operationId": "DevBoxesOperations_DelayAllActions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "sqffqdbpbwz", - "userId": "hhwmgjcpvlalfiyvfitvyor", - "devBoxName": "eczuupvnmezorxwevpdqeepj", - "until": "2024-01-24T21:15:02.027Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "desjl", - "result": "Succeeded", - "action": { - "name": "pjj", - "actionType": "Stop", - "sourceId": "rqdtniydrmnkdmdxssgid", - "suspendedUntil": "2024-01-24T21:15:00.943Z", - "next": { - "scheduledTime": "2024-01-24T21:15:00.943Z" - } - }, - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json deleted file mode 100644 index 0052e4242aeb..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "Deletes a Dev Box.", - "operationId": "DevBoxesOperations_DeleteDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "tfy", - "userId": "uyeccgmzsqokjbudcpovzqpnwzx", - "devBoxName": "imofroozhmowydi" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "qgqvydkahfqdnvyapn", - "name": "gmjnhbpwdycxlnwgrcl", - "status": "Running", - "resourceId": "enfyiqikaoxyte", - "startTime": "2024-01-24T21:14:58.472Z", - "endTime": "2024-01-24T21:14:58.472Z", - "percentComplete": 3, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - }, - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json deleted file mode 100644 index 8107c2b01996..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "title": "Gets a Dev Box", - "operationId": "DevBoxesOperations_GetDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "abnt", - "userId": "slzcqbrtifikxbizrbzejnbxaunyg", - "devBoxName": "iuoxkfqb" - }, - "responses": { - "200": { - "body": { - "name": "umfutyopjqlkfpnsrstaksogsub", - "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", - "poolName": "lFR5__5-_E0gWK__-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "gzcgcb", - "powerState": "Unknown", - "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - }, - "location": "libjfmzzzfmvpwmxnblsmwykh", - "osType": "Windows", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 3, - "memoryGB": 30 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 24 - } - }, - "imageReference": { - "name": "m", - "version": "fqvya", - "operatingSystem": "q", - "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", - "publishedDate": "2024-01-24T21:14:56.489Z" - }, - "createdTime": "2024-01-24T21:14:56.489Z", - "localAdministrator": "Enabled" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json deleted file mode 100644 index 3805bb777fa8..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": "Gets an action.", - "operationId": "DevBoxesOperations_GetDevBoxAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "pcvmmsjcsemqeltystiofpxh", - "userId": "dvcvzpbpfurburhes", - "devBoxName": "tzqgsjkakbgeksgoflcxkzhrxdfsm", - "actionName": "wbcv" - }, - "responses": { - "200": { - "body": { - "name": "pjj", - "actionType": "Stop", - "sourceId": "rqdtniydrmnkdmdxssgid", - "suspendedUntil": "2024-01-24T21:15:00.943Z", - "next": { - "scheduledTime": "2024-01-24T21:15:00.943Z" - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json deleted file mode 100644 index 306862e514a4..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "title": "Gets a pool", - "operationId": "DevBoxesOperations_GetPool", - "parameters": { - "api-version": "2023-04-01", - "projectName": "gbjtzzssqvgqx", - "poolName": "fbopjwaybuhzrvgd" - }, - "responses": { - "200": { - "body": { - "name": "xseeobjdsdpjl", - "location": "cyzkbkpj", - "osType": "Windows", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 3, - "memoryGB": 30 - }, - "hibernateSupport": "Enabled", - "storageProfile": { - "osDisk": { - "diskSizeGB": 24 - } - }, - "imageReference": { - "name": "m", - "version": "fqvya", - "operatingSystem": "q", - "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", - "publishedDate": "2024-01-24T21:14:56.489Z" - }, - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 12 - }, - "healthStatus": "Unknown" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json deleted file mode 100644 index e03afee8a3a2..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "title": "Gets RDP Connection info", - "operationId": "DevBoxesOperations_GetRemoteConnection", - "parameters": { - "api-version": "2023-04-01", - "projectName": "yhhkvvjywohpykksfkbnyvxpdzoonm", - "userId": "actefvzkfnruvwkhqreqwvtxey", - "devBoxName": "oizhaeta" - }, - "responses": { - "200": { - "body": { - "webUrl": "https://microsoft.com/axdulmg", - "rdpConnectionUrl": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json deleted file mode 100644 index 8e0bfa84b694..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "Gets a schedule.", - "operationId": "DevBoxesOperations_GetSchedule", - "parameters": { - "api-version": "2023-04-01", - "projectName": "xkpiitmwrpbo", - "poolName": "tkhvhyfjkewjrce", - "scheduleName": "xthiqb" - }, - "responses": { - "200": { - "body": { - "name": "wjkgmsestuxvsqnzrdfvyojwozs", - "type": "StopDevBox", - "frequency": "Daily", - "time": "dpotf", - "timeZone": "frdpbsljjcxu" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json deleted file mode 100644 index 864b8cd45134..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "title": "Lists actions on a Dev Box.", - "operationId": "DevBoxesOperations_ListDevBoxActions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "bozdcianuefdzhxpbwxquna", - "userId": "pkxoszxdayvqo", - "devBoxName": "iyusuizyzdoozbm" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "pjj", - "actionType": "Stop", - "sourceId": "rqdtniydrmnkdmdxssgid", - "suspendedUntil": "2024-01-24T21:15:00.943Z", - "next": { - "scheduledTime": "2024-01-24T21:15:00.943Z" - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json deleted file mode 100644 index 77447f0e35a7..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "title": "Lists Dev Boxes in the project for a particular user.", - "operationId": "DevBoxesOperations_ListDevBoxes", - "parameters": { - "api-version": "2023-04-01", - "projectName": "zoeuqoedpb", - "userId": "jswwayblmdmdgavyxmmhls", - "filter": "zxrh", - "top": 19 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "umfutyopjqlkfpnsrstaksogsub", - "projectName": "sfvyzrppsufrdisofcwxugbibmxnh", - "poolName": "lFR5__5-_E0gWK__-", - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded", - "actionState": "gzcgcb", - "powerState": "Unknown", - "uniqueId": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - }, - "location": "libjfmzzzfmvpwmxnblsmwykh", - "osType": "Windows", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 3, - "memoryGB": 30 - }, - "storageProfile": { - "osDisk": { - "diskSizeGB": 24 - } - }, - "imageReference": { - "name": "m", - "version": "fqvya", - "operatingSystem": "q", - "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", - "publishedDate": "2024-01-24T21:14:56.489Z" - }, - "createdTime": "2024-01-24T21:14:56.489Z", - "localAdministrator": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json deleted file mode 100644 index ea6633977a60..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "title": "Lists available pools", - "operationId": "DevBoxesOperations_ListPools", - "parameters": { - "api-version": "2023-04-01", - "projectName": "lujxbvczu", - "filter": "mrbumagoudkbnjfnaczpjiihojn", - "top": 21 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "xseeobjdsdpjl", - "location": "cyzkbkpj", - "osType": "Windows", - "hardwareProfile": { - "skuName": "general_i_8c32gb256ssd_v2", - "vCPUs": 3, - "memoryGB": 30 - }, - "hibernateSupport": "Enabled", - "storageProfile": { - "osDisk": { - "diskSizeGB": 24 - } - }, - "imageReference": { - "name": "m", - "version": "fqvya", - "operatingSystem": "q", - "osBuildNumber": "vwkzhlikmmxzarlwblstkzg", - "publishedDate": "2024-01-24T21:14:56.489Z" - }, - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 12 - }, - "healthStatus": "Unknown" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json deleted file mode 100644 index a0a09fbb09be..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "title": "Lists available schedules for a pool.", - "operationId": "DevBoxesOperations_ListSchedules", - "parameters": { - "api-version": "2023-04-01", - "projectName": "dcdenfonrmyqdelhxyfkg", - "poolName": "dpwmmxjwbwhcbie", - "filter": "cpazhrejyrzummhwkcxatkem", - "top": 12 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "wjkgmsestuxvsqnzrdfvyojwozs", - "type": "StopDevBox", - "frequency": "Daily", - "time": "dpotf", - "timeZone": "frdpbsljjcxu" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json deleted file mode 100644 index f4ded33cf025..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "Restarts a Dev Box", - "operationId": "DevBoxesOperations_RestartDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "cfdsnqksinmveazbmvjzhgqcwk", - "userId": "npcxuhbzsptftyoj", - "devBoxName": "hheqmxzsfkcbadaooeg" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "qgqvydkahfqdnvyapn", - "name": "gmjnhbpwdycxlnwgrcl", - "status": "Running", - "resourceId": "enfyiqikaoxyte", - "startTime": "2024-01-24T21:14:58.472Z", - "endTime": "2024-01-24T21:14:58.472Z", - "percentComplete": 3, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json deleted file mode 100644 index 91bf430b3ab1..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "title": "Skips an occurrence of an action.", - "operationId": "DevBoxesOperations_SkipAction", - "parameters": { - "api-version": "2023-04-01", - "projectName": "aeaaemtbnqiziap", - "userId": "pxfmitbjrwllkltp", - "devBoxName": "yefugsximdb", - "actionName": "aspdnasqei" - }, - "responses": { - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json deleted file mode 100644 index 1684ea81b392..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "Starts a Dev Box", - "operationId": "DevBoxesOperations_StartDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "risstmlxqhpratecjnsoaegvnba", - "userId": "ufupmdhb", - "devBoxName": "i" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "qgqvydkahfqdnvyapn", - "name": "gmjnhbpwdycxlnwgrcl", - "status": "Running", - "resourceId": "enfyiqikaoxyte", - "startTime": "2024-01-24T21:14:58.472Z", - "endTime": "2024-01-24T21:14:58.472Z", - "percentComplete": 3, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json deleted file mode 100644 index 42678144eef6..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "Stops a Dev Box", - "operationId": "DevBoxesOperations_StopDevBox", - "parameters": { - "api-version": "2023-04-01", - "projectName": "vdmmuwewyosv", - "userId": "avuflfdiptbox", - "devBoxName": "qgmmtshrvpeqhmwrgyygldupfoah", - "hibernate": true - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "qgqvydkahfqdnvyapn", - "name": "gmjnhbpwdycxlnwgrcl", - "status": "Running", - "resourceId": "enfyiqikaoxyte", - "startTime": "2024-01-24T21:14:58.472Z", - "endTime": "2024-01-24T21:14:58.472Z", - "percentComplete": 3, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json deleted file mode 100644 index 47cec0d6e1a0..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "title": "DevCenterOperations_GetProject", - "operationId": "DevCenterOperations_GetProject", - "parameters": { - "api-version": "2023-04-01", - "projectName": "thzm" - }, - "responses": { - "200": { - "body": { - "name": "kjqmqcsuudovwzfudo", - "description": "sprbsjrouoo", - "maxDevBoxesPerUser": 0 - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json deleted file mode 100644 index cacdc26ee7d6..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "DevCenterOperations_ListProjects", - "operationId": "DevCenterOperations_ListProjects", - "parameters": { - "api-version": "2023-04-01", - "filter": "cwyvyioiha", - "top": 27 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "kjqmqcsuudovwzfudo", - "description": "sprbsjrouoo", - "maxDevBoxesPerUser": 0 - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json deleted file mode 100644 index 19648f9f454e..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "title": "Creates or updates an environment.", - "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "rm", - "userId": "ecllhdlf", - "environmentName": "ybibmcucjxloaiamlghemtibifijdt", - "body": { - "parameters": "cGFyYW1ldGVyczE=", - "environmentType": "zlqyvqtrinekx", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "provisioningState": "Succeeded", - "catalogName": "ayyxfyzejoicocelmprq", - "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - }, - "responses": { - "201": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "parameters": "cGFyYW1ldGVyczE=", - "name": "jurl", - "environmentType": "zlqyvqtrinekx", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "provisioningState": "Succeeded", - "resourceGroupId": "morqkeokwmlevjbhatdup", - "catalogName": "ayyxfyzejoicocelmprq", - "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json deleted file mode 100644 index 7bdc410d6aa3..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "Deletes an environment and all its associated resources", - "operationId": "EnvironmentsOperations_DeleteEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "makxpclulitaedryotaezhsarc", - "userId": "fbmcwpownjucshzdnndefdcp", - "environmentName": "pmqqjc" - }, - "responses": { - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "qgqvydkahfqdnvyapn", - "name": "gmjnhbpwdycxlnwgrcl", - "status": "Running", - "resourceId": "enfyiqikaoxyte", - "startTime": "2024-01-24T21:14:58.472Z", - "endTime": "2024-01-24T21:14:58.472Z", - "percentComplete": 3, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - }, - "204": {} - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json deleted file mode 100644 index f26c03357d1a..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "title": "Gets the specified catalog within the project", - "operationId": "EnvironmentsOperations_GetCatalog", - "parameters": { - "api-version": "2023-04-01", - "projectName": "sdjsxjfeyljbfgngnvcxjjlwn", - "catalogName": "cuinanezvalmogietninyaepn" - }, - "responses": { - "200": { - "body": { - "name": "vbbkoceucvtleblkqekdaexqepgyc" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json deleted file mode 100644 index 3f067523d4c7..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "title": "Gets an environment", - "operationId": "EnvironmentsOperations_GetEnvironment", - "parameters": { - "api-version": "2023-04-01", - "projectName": "xzxvhmulzlerr", - "userId": "rnlkjyggdaasja", - "environmentName": "ilau" - }, - "responses": { - "200": { - "body": { - "parameters": "cGFyYW1ldGVyczE=", - "name": "jurl", - "environmentType": "zlqyvqtrinekx", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "provisioningState": "Succeeded", - "resourceGroupId": "morqkeokwmlevjbhatdup", - "catalogName": "ayyxfyzejoicocelmprq", - "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json deleted file mode 100644 index 20d9956dfd90..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "Get an environment definition from a catalog.", - "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", - "parameters": { - "api-version": "2023-04-01", - "projectName": "cgwaeehpqtuwppbntwihwhxffz", - "catalogName": "sjggejuqzlqswvsmkgnnl", - "definitionName": "sjop" - }, - "responses": { - "200": { - "body": { - "id": "pkatvpvrpiioenfnrqe", - "name": "rhabcivgyiwaah", - "catalogName": "uzvgkbgkmk", - "description": "ofjoroavqhsib", - "parameters": [ - { - "id": "jkfdpgw", - "name": "wbppqxcgj", - "description": "gmlxqlcuqccnprmgnukbwduxswnh", - "default": "ZGVmYXVsdDE=", - "type": "array", - "readOnly": true, - "required": true, - "allowed": [ - "gqyuynxzeuwqtvpbocfgc" - ] - } - ], - "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", - "templatePath": "rar" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json deleted file mode 100644 index b59a65207bc8..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "Lists the environments for a project.", - "operationId": "EnvironmentsOperations_ListAllEnvironments", - "parameters": { - "api-version": "2023-04-01", - "projectName": "rtxnbdeugarpqhejuj", - "top": 12 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "parameters": "cGFyYW1ldGVyczE=", - "name": "jurl", - "environmentType": "zlqyvqtrinekx", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "provisioningState": "Succeeded", - "resourceGroupId": "morqkeokwmlevjbhatdup", - "catalogName": "ayyxfyzejoicocelmprq", - "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json deleted file mode 100644 index a4ba5ad02d88..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "Lists all of the catalogs available for a project.", - "operationId": "EnvironmentsOperations_ListCatalogs", - "parameters": { - "api-version": "2023-04-01", - "projectName": "qmhuusf", - "top": 2 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "vbbkoceucvtleblkqekdaexqepgyc" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json deleted file mode 100644 index 0e50041306ff..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "title": "Lists all environment definitions available for a project.", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", - "parameters": { - "api-version": "2023-04-01", - "projectName": "frgamecqz", - "top": 16 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "pkatvpvrpiioenfnrqe", - "name": "rhabcivgyiwaah", - "catalogName": "uzvgkbgkmk", - "description": "ofjoroavqhsib", - "parameters": [ - { - "id": "jkfdpgw", - "name": "wbppqxcgj", - "description": "gmlxqlcuqccnprmgnukbwduxswnh", - "default": "ZGVmYXVsdDE=", - "type": "array", - "readOnly": true, - "required": true, - "allowed": [ - "gqyuynxzeuwqtvpbocfgc" - ] - } - ], - "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", - "templatePath": "rar" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json deleted file mode 100644 index b56e0e2f1237..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "title": "Lists all environment definitions available within a catalog.", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", - "parameters": { - "api-version": "2023-04-01", - "projectName": "pbunknfrtjnqkbz", - "catalogName": "oimgviuwixhp", - "top": 29 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "pkatvpvrpiioenfnrqe", - "name": "rhabcivgyiwaah", - "catalogName": "uzvgkbgkmk", - "description": "ofjoroavqhsib", - "parameters": [ - { - "id": "jkfdpgw", - "name": "wbppqxcgj", - "description": "gmlxqlcuqccnprmgnukbwduxswnh", - "default": "ZGVmYXVsdDE=", - "type": "array", - "readOnly": true, - "required": true, - "allowed": [ - "gqyuynxzeuwqtvpbocfgc" - ] - } - ], - "parametersSchema": "cGFyYW1ldGVyc1NjaGVtYTE=", - "templatePath": "rar" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json deleted file mode 100644 index d6c76e309021..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "Lists all environment types configured for a project.", - "operationId": "EnvironmentsOperations_ListEnvironmentTypes", - "parameters": { - "api-version": "2023-04-01", - "projectName": "c", - "top": 7 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "rvlfnpsglaihocattmhdswncjmn", - "deploymentTargetId": "rspdrsmefyxegg", - "status": "Enabled" - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json deleted file mode 100644 index c5757533a30a..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "title": "Lists the environments for a project and user.", - "operationId": "EnvironmentsOperations_ListEnvironments", - "parameters": { - "api-version": "2023-04-01", - "projectName": "dusvmkqsfvpuwblcypodtmdutqlaip", - "userId": "hkdwumpqihnvpkivnfofjfeklzpoxo", - "top": 17 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "parameters": "cGFyYW1ldGVyczE=", - "name": "jurl", - "environmentType": "zlqyvqtrinekx", - "user": "ymvtyhtwkyoatcdcdnklymsvxxqt", - "provisioningState": "Succeeded", - "resourceGroupId": "morqkeokwmlevjbhatdup", - "catalogName": "ayyxfyzejoicocelmprq", - "environmentDefinitionName": "qiuzclvennfvbppknxzgplmwstr", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/SharedOperations_GetProjectOperationStatus.json b/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/SharedOperations_GetProjectOperationStatus.json deleted file mode 100644 index 5310b772d744..000000000000 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/examples/SharedOperations_GetProjectOperationStatus.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "title": "SharedOperations_GetProjectOperationStatus", - "operationId": "SharedOperations_GetProjectOperationStatus", - "parameters": { - "api-version": "2023-04-01", - "projectName": "nuuuznfzityiftaeeegmu", - "operationId": "njnpajhbysgc" - }, - "responses": { - "200": { - "body": { - "id": "qgqvydkahfqdnvyapn", - "name": "gmjnhbpwdycxlnwgrcl", - "status": "Running", - "resourceId": "enfyiqikaoxyte", - "startTime": "2024-01-24T21:14:58.472Z", - "endTime": "2024-01-24T21:14:58.472Z", - "percentComplete": 3, - "properties": "cHJvcGVydGllczE=", - "error": { - "code": "hrqhligembrqwosguwvdiabokar", - "message": "fcpf", - "target": "jyizhrocqk", - "details": [], - "innererror": { - "code": "fra" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_Get.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_Get.json index 20e26cf0e719..7d9de8e13786 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_Get.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_Get.json @@ -1,4 +1,6 @@ { + "title": "Gets the specified catalog within the project", + "operationId": "EnvironmentsOperations_GetCatalog", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_ListByProject.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_ListByProject.json index ba8305e75d09..17c683e6c9b3 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_ListByProject.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_ListByProject.json @@ -1,4 +1,6 @@ { + "title": "Lists all of the catalogs available for a project.", + "operationId": "EnvironmentsOperations_ListCatalogs", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Delay.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Delay.json index fcbbbb542c00..db7107cfc6bc 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Delay.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Delay.json @@ -1,4 +1,6 @@ { + "title": "Delays the occurrence of an action.", + "operationId": "DevBoxesOperations_DelayAction", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_DelayMultiple.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_DelayMultiple.json index a6bcf4dc6608..6a7ade1eef30 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_DelayMultiple.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_DelayMultiple.json @@ -1,4 +1,6 @@ { + "title": "Delays all actions.", + "operationId": "DevBoxesOperations_DelayAllActions", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_DelayMultipleWithError.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_DelayMultipleWithError.json index 6b2a22084e24..231f3de8c47a 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_DelayMultipleWithError.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_DelayMultipleWithError.json @@ -1,4 +1,6 @@ { + "title": "Delays all actions with error.", + "operationId": "DevBoxesOperations_DelayAllActions_WithError", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Get.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Get.json index ab3165c3fb86..0d94918c712d 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Get.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Get.json @@ -1,4 +1,6 @@ { + "title": "Gets an action.", + "operationId": "DevBoxesOperations_GetDevBoxAction", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_List.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_List.json index 65e1306247e1..db1ae0af7c62 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_List.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_List.json @@ -1,4 +1,6 @@ { + "title": "Lists actions on a Dev Box.", + "operationId": "DevBoxesOperations_ListDevBoxActions", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Skip.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Skip.json index 6d45b37e9569..1e8552d6bd35 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Skip.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Skip.json @@ -1,4 +1,6 @@ { + "title": "Skips an occurrence of an action.", + "operationId": "DevBoxesOperations_SkipAction", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Create.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Create.json index d14321bd2119..f51bad1c0086 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Create.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Create.json @@ -1,4 +1,6 @@ { + "title": "Creates or replaces a Dev Box.", + "operationId": "DevBoxesOperations_CreateDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Delete.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Delete.json index 1fd0570e1b5d..4843a80ed6c9 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Delete.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Delete.json @@ -1,4 +1,6 @@ { + "title": "Deletes a Dev Box.", + "operationId": "DevBoxesOperations_DeleteDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Get.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Get.json index 766e1726fdeb..f29193eb0b35 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Get.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Get.json @@ -1,4 +1,6 @@ { + "title": "Gets a Dev Box", + "operationId": "DevBoxesOperations_GetDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_GetRemoteConnection.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_GetRemoteConnection.json index 8b9eff4ba048..a01b7df571fd 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_GetRemoteConnection.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_GetRemoteConnection.json @@ -1,4 +1,6 @@ { + "title": "Gets RDP Connection info", + "operationId": "DevBoxesOperations_GetRemoteConnection", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_List.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_List.json index 2b5810aee979..24f1f0760e5c 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_List.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_List.json @@ -1,4 +1,6 @@ { + "title": "Lists Dev Boxes that the caller has access to in the DevCenter.", + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "api-version": "2023-04-01" diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_ListByUserByProject.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_ListByUserByProject.json index 3c82fb6c63d7..2140a65cb857 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_ListByUserByProject.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_ListByUserByProject.json @@ -1,4 +1,6 @@ { + "title": "Lists Dev Boxes in the project for a particular user.", + "operationId": "DevBoxesOperations_ListDevBoxes", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Restart.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Restart.json index 94087cc95497..3c0e55515dd6 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Restart.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Restart.json @@ -1,4 +1,6 @@ { + "title": "Restarts a Dev Box", + "operationId": "DevBoxesOperations_RestartDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Start.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Start.json index 94087cc95497..292e5e1c947a 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Start.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Start.json @@ -1,4 +1,6 @@ { + "title": "Starts a Dev Box", + "operationId": "DevBoxesOperations_StartDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Stop.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Stop.json index 77b92e105aa0..b92d1089e864 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Stop.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Stop.json @@ -1,4 +1,6 @@ { + "title": "Stops a Dev Box", + "operationId": "DevBoxesOperations_StopDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_Get.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_Get.json index c008688444aa..e4efa7edea54 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_Get.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_Get.json @@ -1,4 +1,6 @@ { + "title": "Get an environment definition from a catalog.", + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_ListByCatalog.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_ListByCatalog.json index dc71df8f6744..d9c411224b8e 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_ListByCatalog.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_ListByCatalog.json @@ -1,4 +1,6 @@ { + "title": "Lists all environment definitions available within a catalog.", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_ListByProject.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_ListByProject.json index c8f6393c7d6f..aabe3738602c 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_ListByProject.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_ListByProject.json @@ -1,4 +1,6 @@ { + "title": "Lists all environment definitions available for a project.", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentTypes_ListByProject.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentTypes_ListByProject.json index 5a50195e73d3..83e22df09846 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentTypes_ListByProject.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentTypes_ListByProject.json @@ -1,4 +1,6 @@ { + "title": "Lists all environment types configured for a project.", + "operationId": "EnvironmentsOperations_ListEnvironmentTypes", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_CreateByEnvironmentDefinition.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_CreateByEnvironmentDefinition.json index 53e27a92329f..40bd8016a490 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_CreateByEnvironmentDefinition.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_CreateByEnvironmentDefinition.json @@ -1,4 +1,6 @@ { + "title": "Creates or updates an environment.", + "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_Delete.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_Delete.json index 2ceebc24a762..db378d427835 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_Delete.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_Delete.json @@ -1,4 +1,6 @@ { + "title": "Deletes an environment and all its associated resources", + "operationId": "EnvironmentsOperations_DeleteEnvironment", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_Get.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_Get.json index b2e1b2f435cf..eb89813acaf7 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_Get.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_Get.json @@ -1,4 +1,6 @@ { + "title": "Gets an environment", + "operationId": "EnvironmentsOperations_GetEnvironment", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_ListByProject.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_ListByProject.json index e33fee6a7a31..ab203c460a33 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_ListByProject.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_ListByProject.json @@ -1,4 +1,6 @@ { + "title": "Lists the environments for a project.", + "operationId": "EnvironmentsOperations_ListAllEnvironments", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_ListByProjectByUser.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_ListByProjectByUser.json index beab108b5b87..51f0384a6ffb 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_ListByProjectByUser.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_ListByProjectByUser.json @@ -1,4 +1,6 @@ { + "title": "Lists the environments for a project and user.", + "operationId": "EnvironmentsOperations_ListEnvironments", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Pools_Get.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Pools_Get.json index 98433ea1016d..7b53a6ac96b4 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Pools_Get.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Pools_Get.json @@ -1,4 +1,6 @@ { + "title": "Gets a pool", + "operationId": "DevBoxesOperations_GetPool", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Pools_List.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Pools_List.json index 0be1e62eaed0..42c39b484d20 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Pools_List.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Pools_List.json @@ -1,4 +1,6 @@ { + "title": "Lists available pools", + "operationId": "DevBoxesOperations_ListPools", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Projects_Get.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Projects_Get.json index 6abb3dfa29b8..fe1a721864bc 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Projects_Get.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Projects_Get.json @@ -1,4 +1,6 @@ { + "title": "Gets a project.", + "operationId": "DevCenterOperations_GetProject", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Projects_ListByDevCenter.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Projects_ListByDevCenter.json index de0ab2fc2490..1e7bdde95309 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Projects_ListByDevCenter.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Projects_ListByDevCenter.json @@ -1,4 +1,6 @@ { + "title": "Lists all projects.", + "operationId": "DevCenterOperations_ListProjects", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com" diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Schedules_Get.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Schedules_Get.json index e755d985121f..8ba5489b95c6 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Schedules_Get.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Schedules_Get.json @@ -1,4 +1,6 @@ { + "title": "Gets a schedule.", + "operationId": "DevBoxesOperations_GetSchedule", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Schedules_List.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Schedules_List.json index 0633d5b0b65b..0a5afd4f207a 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Schedules_List.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Schedules_List.json @@ -1,4 +1,6 @@ { + "title": "Lists available schedules for a pool.", + "operationId": "DevBoxesOperations_ListSchedules", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/openapi.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/openapi.json similarity index 96% rename from specification/devcenter/data-plane/DevCenter/stable/2023-04-01/openapi.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/openapi.json index 5776702d7909..88f19a1e0363 100644 --- a/specification/devcenter/data-plane/DevCenter/stable/2023-04-01/openapi.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/openapi.json @@ -54,7 +54,6 @@ "/devboxes": { "get": { "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", - "summary": "Lists Dev Boxes that the caller has access to in the DevCenter.", "description": "Lists Dev Boxes that the caller has access to in the DevCenter.", "parameters": [ { @@ -98,7 +97,7 @@ }, "x-ms-examples": { "Lists Dev Boxes that the caller has access to in the DevCenter.": { - "$ref": "./examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json" + "$ref": "./examples/DevBoxes_List.json" } }, "x-ms-pageable": { @@ -151,8 +150,8 @@ } }, "x-ms-examples": { - "DevCenterOperations_ListProjects": { - "$ref": "./examples/DevCenterOperations_ListProjects.json" + "Lists all projects.": { + "$ref": "./examples/Projects_ListByDevCenter.json" } }, "x-ms-pageable": { @@ -197,8 +196,8 @@ } }, "x-ms-examples": { - "DevCenterOperations_GetProject": { - "$ref": "./examples/DevCenterOperations_GetProject.json" + "Gets a project.": { + "$ref": "./examples/Projects_Get.json" } } } @@ -206,7 +205,6 @@ "/projects/{projectName}/catalogs": { "get": { "operationId": "EnvironmentsOperations_ListCatalogs", - "summary": "Lists all of the catalogs available for a project.", "description": "Lists all of the catalogs available for a project.", "parameters": [ { @@ -250,7 +248,7 @@ }, "x-ms-examples": { "Lists all of the catalogs available for a project.": { - "$ref": "./examples/EnvironmentsOperations_ListCatalogs.json" + "$ref": "./examples/Catalogs_ListByProject.json" } }, "x-ms-pageable": { @@ -261,7 +259,6 @@ "/projects/{projectName}/catalogs/{catalogName}": { "get": { "operationId": "EnvironmentsOperations_GetCatalog", - "summary": "Gets the specified catalog within the project", "description": "Gets the specified catalog within the project", "parameters": [ { @@ -304,7 +301,7 @@ }, "x-ms-examples": { "Gets the specified catalog within the project": { - "$ref": "./examples/EnvironmentsOperations_GetCatalog.json" + "$ref": "./examples/Catalogs_Get.json" } } } @@ -312,7 +309,6 @@ "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { "get": { "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", - "summary": "Lists all environment definitions available within a catalog.", "description": "Lists all environment definitions available within a catalog.", "parameters": [ { @@ -363,7 +359,7 @@ }, "x-ms-examples": { "Lists all environment definitions available within a catalog.": { - "$ref": "./examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json" + "$ref": "./examples/EnvironmentDefinitions_ListByCatalog.json" } }, "x-ms-pageable": { @@ -374,7 +370,6 @@ "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { "get": { "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", - "summary": "Get an environment definition from a catalog.", "description": "Get an environment definition from a catalog.", "parameters": [ { @@ -424,7 +419,7 @@ }, "x-ms-examples": { "Get an environment definition from a catalog.": { - "$ref": "./examples/EnvironmentsOperations_GetEnvironmentDefinition.json" + "$ref": "./examples/EnvironmentDefinitions_Get.json" } } } @@ -432,7 +427,6 @@ "/projects/{projectName}/environmentDefinitions": { "get": { "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", - "summary": "Lists all environment definitions available for a project.", "description": "Lists all environment definitions available for a project.", "parameters": [ { @@ -476,7 +470,7 @@ }, "x-ms-examples": { "Lists all environment definitions available for a project.": { - "$ref": "./examples/EnvironmentsOperations_ListEnvironmentDefinitions.json" + "$ref": "./examples/EnvironmentDefinitions_ListByProject.json" } }, "x-ms-pageable": { @@ -487,7 +481,6 @@ "/projects/{projectName}/environmentTypes": { "get": { "operationId": "EnvironmentsOperations_ListEnvironmentTypes", - "summary": "Lists all environment types configured for a project.", "description": "Lists all environment types configured for a project.", "parameters": [ { @@ -531,7 +524,7 @@ }, "x-ms-examples": { "Lists all environment types configured for a project.": { - "$ref": "./examples/EnvironmentsOperations_ListEnvironmentTypes.json" + "$ref": "./examples/EnvironmentTypes_ListByProject.json" } }, "x-ms-pageable": { @@ -542,7 +535,6 @@ "/projects/{projectName}/environments": { "get": { "operationId": "EnvironmentsOperations_ListAllEnvironments", - "summary": "Lists the environments for a project.", "description": "Lists the environments for a project.", "parameters": [ { @@ -586,7 +578,7 @@ }, "x-ms-examples": { "Lists the environments for a project.": { - "$ref": "./examples/EnvironmentsOperations_ListAllEnvironments.json" + "$ref": "./examples/Environments_ListByProject.json" } }, "x-ms-pageable": { @@ -636,18 +628,12 @@ } } } - }, - "x-ms-examples": { - "SharedOperations_GetProjectOperationStatus": { - "$ref": "./examples/SharedOperations_GetProjectOperationStatus.json" - } } } }, "/projects/{projectName}/pools": { "get": { "operationId": "DevBoxesOperations_ListPools", - "summary": "Lists available pools", "description": "Lists available pools", "parameters": [ { @@ -698,7 +684,7 @@ }, "x-ms-examples": { "Lists available pools": { - "$ref": "./examples/DevBoxesOperations_ListPools.json" + "$ref": "./examples/Pools_List.json" } }, "x-ms-pageable": { @@ -709,7 +695,6 @@ "/projects/{projectName}/pools/{poolName}": { "get": { "operationId": "DevBoxesOperations_GetPool", - "summary": "Gets a pool", "description": "Gets a pool", "parameters": [ { @@ -752,7 +737,7 @@ }, "x-ms-examples": { "Gets a pool": { - "$ref": "./examples/DevBoxesOperations_GetPool.json" + "$ref": "./examples/Pools_Get.json" } } } @@ -760,7 +745,6 @@ "/projects/{projectName}/pools/{poolName}/schedules": { "get": { "operationId": "DevBoxesOperations_ListSchedules", - "summary": "Lists available schedules for a pool.", "description": "Lists available schedules for a pool.", "parameters": [ { @@ -818,7 +802,7 @@ }, "x-ms-examples": { "Lists available schedules for a pool.": { - "$ref": "./examples/DevBoxesOperations_ListSchedules.json" + "$ref": "./examples/Schedules_List.json" } }, "x-ms-pageable": { @@ -829,7 +813,6 @@ "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { "get": { "operationId": "DevBoxesOperations_GetSchedule", - "summary": "Gets a schedule.", "description": "Gets a schedule.", "parameters": [ { @@ -879,7 +862,7 @@ }, "x-ms-examples": { "Gets a schedule.": { - "$ref": "./examples/DevBoxesOperations_GetSchedule.json" + "$ref": "./examples/Schedules_Get.json" } } } @@ -887,7 +870,6 @@ "/projects/{projectName}/users/{userId}/devboxes": { "get": { "operationId": "DevBoxesOperations_ListDevBoxes", - "summary": "Lists Dev Boxes in the project for a particular user.", "description": "Lists Dev Boxes in the project for a particular user.", "parameters": [ { @@ -945,7 +927,7 @@ }, "x-ms-examples": { "Lists Dev Boxes in the project for a particular user.": { - "$ref": "./examples/DevBoxesOperations_ListDevBoxes.json" + "$ref": "./examples/DevBoxes_ListByUserByProject.json" } }, "x-ms-pageable": { @@ -956,7 +938,6 @@ "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}": { "get": { "operationId": "DevBoxesOperations_GetDevBox", - "summary": "Gets a Dev Box", "description": "Gets a Dev Box", "parameters": [ { @@ -1006,13 +987,12 @@ }, "x-ms-examples": { "Gets a Dev Box": { - "$ref": "./examples/DevBoxesOperations_GetDevBox.json" + "$ref": "./examples/DevBoxes_Get.json" } } }, "put": { "operationId": "DevBoxesOperations_CreateDevBox", - "summary": "Creates or replaces a Dev Box.", "description": "Creates or replaces a Dev Box.", "parameters": [ { @@ -1087,14 +1067,13 @@ }, "x-ms-examples": { "Creates or replaces a Dev Box.": { - "$ref": "./examples/DevBoxesOperations_CreateDevBox.json" + "$ref": "./examples/DevBoxes_Create.json" } }, "x-ms-long-running-operation": true }, "delete": { "operationId": "DevBoxesOperations_DeleteDevBox", - "summary": "Deletes a Dev Box.", "description": "Deletes a Dev Box.", "parameters": [ { @@ -1155,7 +1134,7 @@ }, "x-ms-examples": { "Deletes a Dev Box.": { - "$ref": "./examples/DevBoxesOperations_DeleteDevBox.json" + "$ref": "./examples/DevBoxes_Delete.json" } }, "x-ms-long-running-operation": true @@ -1164,7 +1143,6 @@ "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start": { "post": { "operationId": "DevBoxesOperations_StartDevBox", - "summary": "Starts a Dev Box", "description": "Starts a Dev Box", "parameters": [ { @@ -1221,7 +1199,7 @@ }, "x-ms-examples": { "Starts a Dev Box": { - "$ref": "./examples/DevBoxesOperations_StartDevBox.json" + "$ref": "./examples/DevBoxes_Start.json" } }, "x-ms-long-running-operation": true @@ -1230,7 +1208,6 @@ "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop": { "post": { "operationId": "DevBoxesOperations_StopDevBox", - "summary": "Stops a Dev Box", "description": "Stops a Dev Box", "parameters": [ { @@ -1294,7 +1271,7 @@ }, "x-ms-examples": { "Stops a Dev Box": { - "$ref": "./examples/DevBoxesOperations_StopDevBox.json" + "$ref": "./examples/DevBoxes_Stop.json" } }, "x-ms-long-running-operation": true @@ -1303,7 +1280,6 @@ "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart": { "post": { "operationId": "DevBoxesOperations_RestartDevBox", - "summary": "Restarts a Dev Box", "description": "Restarts a Dev Box", "parameters": [ { @@ -1360,7 +1336,7 @@ }, "x-ms-examples": { "Restarts a Dev Box": { - "$ref": "./examples/DevBoxesOperations_RestartDevBox.json" + "$ref": "./examples/DevBoxes_Restart.json" } }, "x-ms-long-running-operation": true @@ -1369,7 +1345,6 @@ "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions": { "get": { "operationId": "DevBoxesOperations_ListDevBoxActions", - "summary": "Lists actions on a Dev Box.", "description": "Lists actions on a Dev Box.", "parameters": [ { @@ -1419,7 +1394,7 @@ }, "x-ms-examples": { "Lists actions on a Dev Box.": { - "$ref": "./examples/DevBoxesOperations_ListDevBoxActions.json" + "$ref": "./examples/DevBoxActions_List.json" } }, "x-ms-pageable": { @@ -1430,7 +1405,6 @@ "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}": { "get": { "operationId": "DevBoxesOperations_GetDevBoxAction", - "summary": "Gets an action.", "description": "Gets an action.", "parameters": [ { @@ -1487,7 +1461,7 @@ }, "x-ms-examples": { "Gets an action.": { - "$ref": "./examples/DevBoxesOperations_GetDevBoxAction.json" + "$ref": "./examples/DevBoxActions_Get.json" } } } @@ -1495,7 +1469,6 @@ "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip": { "post": { "operationId": "DevBoxesOperations_SkipAction", - "summary": "Skips an occurrence of an action.", "description": "Skips an occurrence of an action.", "parameters": [ { @@ -1549,7 +1522,7 @@ }, "x-ms-examples": { "Skips an occurrence of an action.": { - "$ref": "./examples/DevBoxesOperations_SkipAction.json" + "$ref": "./examples/DevBoxActions_Skip.json" } } } @@ -1557,7 +1530,6 @@ "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay": { "post": { "operationId": "DevBoxesOperations_DelayAction", - "summary": "Delays the occurrence of an action.", "description": "Delays the occurrence of an action.", "parameters": [ { @@ -1623,7 +1595,7 @@ }, "x-ms-examples": { "Delays the occurrence of an action.": { - "$ref": "./examples/DevBoxesOperations_DelayAction.json" + "$ref": "./examples/DevBoxActions_Delay.json" } } } @@ -1631,7 +1603,6 @@ "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay": { "post": { "operationId": "DevBoxesOperations_DelayAllActions", - "summary": "Delays all actions.", "description": "Delays all actions.", "parameters": [ { @@ -1690,7 +1661,7 @@ }, "x-ms-examples": { "Delays all actions.": { - "$ref": "./examples/DevBoxesOperations_DelayAllActions.json" + "$ref": "./examples/DevBoxActions_DelayMultiple.json" } }, "x-ms-pageable": { @@ -1701,7 +1672,6 @@ "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection": { "get": { "operationId": "DevBoxesOperations_GetRemoteConnection", - "summary": "Gets RDP Connection info", "description": "Gets RDP Connection info", "parameters": [ { @@ -1751,7 +1721,7 @@ }, "x-ms-examples": { "Gets RDP Connection info": { - "$ref": "./examples/DevBoxesOperations_GetRemoteConnection.json" + "$ref": "./examples/DevBoxes_GetRemoteConnection.json" } } } @@ -1759,7 +1729,6 @@ "/projects/{projectName}/users/{userId}/environments": { "get": { "operationId": "EnvironmentsOperations_ListEnvironments", - "summary": "Lists the environments for a project and user.", "description": "Lists the environments for a project and user.", "parameters": [ { @@ -1810,7 +1779,7 @@ }, "x-ms-examples": { "Lists the environments for a project and user.": { - "$ref": "./examples/EnvironmentsOperations_ListEnvironments.json" + "$ref": "./examples/Environments_ListByProjectByUser.json" } }, "x-ms-pageable": { @@ -1821,7 +1790,6 @@ "/projects/{projectName}/users/{userId}/environments/{environmentName}": { "get": { "operationId": "EnvironmentsOperations_GetEnvironment", - "summary": "Gets an environment", "description": "Gets an environment", "parameters": [ { @@ -1871,13 +1839,12 @@ }, "x-ms-examples": { "Gets an environment": { - "$ref": "./examples/EnvironmentsOperations_GetEnvironment.json" + "$ref": "./examples/Environments_Get.json" } } }, "put": { "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", - "summary": "Creates or updates an environment.", "description": "Creates or updates an environment.", "parameters": [ { @@ -1941,14 +1908,13 @@ }, "x-ms-examples": { "Creates or updates an environment.": { - "$ref": "./examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json" + "$ref": "./examples/Environments_CreateByEnvironmentDefinition.json" } }, "x-ms-long-running-operation": true }, "delete": { "operationId": "EnvironmentsOperations_DeleteEnvironment", - "summary": "Deletes an environment and all its associated resources", "description": "Deletes an environment and all its associated resources", "parameters": [ { @@ -2009,7 +1975,7 @@ }, "x-ms-examples": { "Deletes an environment and all its associated resources": { - "$ref": "./examples/EnvironmentsOperations_DeleteEnvironment.json" + "$ref": "./examples/Environments_Delete.json" } }, "x-ms-long-running-operation": true @@ -2018,7 +1984,6 @@ "/users/{userId}/devboxes": { "get": { "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", - "summary": "Lists Dev Boxes in the Dev Center for a particular user.", "description": "Lists Dev Boxes in the Dev Center for a particular user.", "parameters": [ { @@ -2067,11 +2032,6 @@ } } }, - "x-ms-examples": { - "Lists Dev Boxes in the Dev Center for a particular user.": { - "$ref": "./examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json" - } - }, "x-ms-pageable": { "nextLinkName": "nextLink" } From 897495ab32653527e45247293d4ae10ea7504624 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 1 Feb 2024 15:54:08 -0800 Subject: [PATCH 107/187] remove folders --- .../devcenter/DevCenter/devbox/models.tsp | 508 ------------------ .../devcenter/DevCenter/devbox/routes.tsp | 472 ---------------- .../devcenter/DevCenter/devcenter/models.tsp | 12 - .../devcenter/DevCenter/devcenter/routes.tsp | 40 -- .../DevCenter/environments/models.tsp | 225 -------- .../DevCenter/environments/routes.tsp | 245 --------- 6 files changed, 1502 deletions(-) delete mode 100644 specification/devcenter/DevCenter/devbox/models.tsp delete mode 100644 specification/devcenter/DevCenter/devbox/routes.tsp delete mode 100644 specification/devcenter/DevCenter/devcenter/models.tsp delete mode 100644 specification/devcenter/DevCenter/devcenter/routes.tsp delete mode 100644 specification/devcenter/DevCenter/environments/models.tsp delete mode 100644 specification/devcenter/DevCenter/environments/routes.tsp diff --git a/specification/devcenter/DevCenter/devbox/models.tsp b/specification/devcenter/DevCenter/devbox/models.tsp deleted file mode 100644 index d46ada918469..000000000000 --- a/specification/devcenter/DevCenter/devbox/models.tsp +++ /dev/null @@ -1,508 +0,0 @@ -import "@typespec/rest"; -import "@typespec/http"; -import "@azure-tools/typespec-azure-core"; -import "@azure-tools/typespec-client-generator-core"; -import "../shared/models.tsp"; - -using TypeSpec.Rest; -using TypeSpec.Http; -using Azure.ClientGenerator.Core; - -namespace DevCenterService; - -@doc("The operating system type.") -@projectedName("csharp", "DevBoxOSType") -@projectedName("java", "DevBoxOsType") -@projectedName("python", "OSType") -enum OsType { - @doc("The Windows operating system.") Windows, -} - -@doc("Indicates whether hibernate is supported and enabled, disabled, or unsupported by the operating system. Unknown hibernate support is represented as null.") -enum HibernateSupport { - @doc("Hibernate is enabled.") Enabled, - @doc("Hibernate is not enabled.") Disabled, - @doc("Hibernate is not supported by the operating system.") OsUnsupported, -} - -@doc("Indicates whether owners of Dev Boxes in a pool are local administrators on the Dev Boxes.") -@projectedName("csharp", "LocalAdministratorStatus") -@projectedName("java", "LocalAdministratorStatus") -@projectedName("python", "LocalAdministratorStatus") -enum LocalAdminStatus { - @doc("Owners of Dev Boxes in the pool are local administrators on the Dev Boxes.") - Enabled, - - @doc("Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes.") - Disabled, -} - -@doc("Indicates the provisioning state of the Dev Box.") -enum DevBoxProvisioningState { - @doc("Dev Box was successfully provisioned") Succeeded, - @doc("Dev Box failed to provision") Failed, - @doc("Dev Box provision was canceled") Canceled, - @doc("Dev Box is being created") Creating, - @doc("Dev Box is being deleted") Deleting, - @doc("Dev Box is updating") Updating, - @doc("Dev Box is starting") Starting, - @doc("Dev Box is stopping") Stopping, - @doc("Dev Box is provisioning") Provisioning, - @doc("Dev Box was provisioned with warning") ProvisionedWithWarning, - @doc("Dev Box is in grace period") InGracePeriod, - @doc("Dev Box is not provisioned") NotProvisioned, -} - -@doc("Indicates the Dev Box compute.") -enum SkuName { - @doc("Intel, 8 vCPU, 32 GB RAM, 256 GB Storage") - general_i_8c32gb256ssd_v2, - - @doc("Intel, 8 vCPU, 32 GB RAM, 512 GB Storage") - general_i_8c32gb512ssd_v2, - - @doc("Intel, 8 vCPU, 32 GB RAM, 1024 GB Storage") - general_i_8c32gb1024ssd_v2, - - @doc("Intel, 8 vCPU, 32 GB RAM, 2048 GB Storage") - general_i_8c32gb2048ssd_v2, - - @doc("Intel, 16 vCPU, 64 GB RAM, 256 GB Storage") - general_i_16c64gb256ssd_v2, - - @doc("Intel, 16 vCPU, 64 GB RAM, 512 GB Storage") - general_i_16c64gb512ssd_v2, - - @doc("Intel, 16 vCPU, 64 GB RAM, 1024 GB Storage") - general_i_16c64gb1024ssd_v2, - - @doc("Intel, 16 vCPU, 64 GB RAM, 2048 GB Storage") - general_i_16c64gb2048ssd_v2, - - @doc("Intel, 32 vCPU, 128 GB RAM, 512 GB Storage") - general_i_32c128gb512ssd_v2, - - @doc("Intel, 32 vCPU, 128 GB RAM, 1024 GB Storage") - general_i_32c128gb1024ssd_v2, - - @doc("Intel, 32 vCPU, 128 GB RAM, 2048 GB Storage") - general_i_32c128gb2048ssd_v2, - - @doc("AMD, 8 vCPU, 32 GB RAM, 256 GB Storage") - general_a_8c32gb256ssd_v2, - - @doc("AMD, 8 vCPU, 32 GB RAM, 512 GB Storage") - general_a_8c32gb512ssd_v2, - - @doc("AMD, 8 vCPU, 32 GB RAM, 1024 GB Storage") - general_a_8c32gb1024ssd_v2, - - @doc("AMD, 8 vCPU, 32 GB RAM, 2048 GB Storage") - general_a_8c32gb2048ssd_v2, - - @doc("AMD, 16 vCPU, 64 GB RAM, 256 GB Storage") - general_a_16c64gb256ssd_v2, - - @doc("AMD, 16 vCPU, 64 GB RAM, 512 GB Storage") - general_a_16c64gb512ssd_v2, - - @doc("AMD, 16 vCPU, 64 GB RAM, 1024 GB Storage") - general_a_16c64gb1024ssd_v2, - - @doc("AMD, 16 vCPU, 64 GB RAM, 2048 GB Storage") - general_a_16c64gb2048ssd_v2, - - @doc("AMD, 32 vCPU, 128 GB RAM, 512 GB Storage") - general_a_32c128gb512ssd_v2, - - @doc("AMD, 32 vCPU, 128 GB RAM, 1024 GB Storage") - general_a_32c128gb1024ssd_v2, - - @doc("AMD, 32 vCPU, 128 GB RAM, 2048 GB Storage") - general_a_32c128gb2048ssd_v2, -} - -@doc("Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.") -@projectedName("csharp", "StopOnDisconnectStatus") -@projectedName("java", "StopOnDisconnectStatus") -@projectedName("python", "StopOnDisconnectStatus") -enum StopOnDisconnectEnableStatus { - @doc("Stop on disconnect is enabled on the Dev Box.") Enabled, - @doc("Stop on disconnect is not enabled on the Dev Box.") Disabled, -} - -@doc("Pool status indicating whether a pool is available to create Dev Boxes.") -enum PoolHealthStatus { - @doc("The pool health status is not known.") Unknown, - @doc("The pool health status waiting for health checks to run.") Pending, - @doc("The pool health status is healthy.") Healthy, - @doc("The pool health status has one or more warnings.") Warning, - @doc("The pool health status is not healthy.") Unhealthy, -} - -@doc("The supported types for a scheduled task.") -enum ScheduledType { - @doc("The scheduled task will stop impacted Dev Boxes.") StopDevBox, -} - -@doc("The frequency of task execution.") -@projectedName("csharp", "ScheduleFrequency") -@projectedName("java", "ScheduleFrequency") -enum ScheduledFrequency { - @doc("The scheduled task will run every day.") Daily, -} - -@doc("The power states of a Dev Box.") -enum PowerState { - @doc("The Dev Box power state is not known.") Unknown, - @doc("The Dev Box is running.") Running, - @doc("The Dev Box is deallocated.") Deallocated, - @doc("The Dev Box is powered off.") PoweredOff, - @doc("The Dev Box is hibernated.") Hibernated, -} - -@doc("The type of action which will take place on a Dev Box.") -enum DevBoxActionType { - @doc("The action will stop the Dev Box.") Stop, -} - -@doc("The result of the delay operation on this action.") -@projectedName("csharp", "DevBoxActionDelayStatus") -@projectedName("java", "DevBoxActionDelayStatus") -enum DevBoxActionDelayResultStatus { - @doc("The delay operation succeeded.") Succeeded, - @doc("The delay operation failed.") Failed, -} - -@doc("The Pool list result") -model PoolListResult is Azure.Core.Page; - -@doc("Project user") -@resource("users") -@parentResource(Project) -model User { - @key("userId") - @visibility("read") - @doc("The AAD object id of the user") - userId: string; -} - -@doc("A pool of Dev Boxes.") -@resource("pools") -@parentResource(Project) -@projectedName("csharp", "DevBoxPool") -@projectedName("java", "DevBoxPool") -model Pool { - @key("poolName") - @visibility("read") - @doc("Pool name") - name: string; - - @doc("Azure region where Dev Boxes in the pool are located") - location: string; - - @doc("The operating system type of Dev Boxes in this pool") - @projectedName("csharp", "OSType") - osType?: OsType; - - @doc("Hardware settings for the Dev Boxes created in this pool") - hardwareProfile?: HardwareProfile; - - @doc("Indicates whether hibernate is enabled/disabled or unknown.") - hibernateSupport?: HibernateSupport; - - @doc("Storage settings for Dev Box created in this pool") - storageProfile?: StorageProfile; - - @doc("Image settings for Dev Boxes create in this pool") - imageReference?: ImageReference; - - @doc(""" -Indicates whether owners of Dev Boxes in this pool are local administrators on -the Dev Boxes. -""") - @projectedName("csharp", "LocalAdministratorStatus") - @projectedName("java", "LocalAdministratorStatus") - localAdministrator?: LocalAdminStatus; - - @doc("Stop on disconnect configuration settings for Dev Boxes created in this pool.") - stopOnDisconnect?: StopOnDisconnectConfiguration; - - @doc(""" -Overall health status of the Pool. Indicates whether or not the Pool is -available to create Dev Boxes. -""") - healthStatus: PoolHealthStatus; -} - -#suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" -@doc("Hardware specifications for the Dev Box.") -@projectedName("csharp", "DevBoxHardwareProfile") -@projectedName("java", "DevBoxHardwareProfile") -model HardwareProfile { - @doc("The name of the SKU") - @visibility("read") - skuName?: SkuName; - - @doc("The number of vCPUs available for the Dev Box.") - @visibility("read") - @projectedName("java", "vcpus") - @projectedName("python", "vcpus") - vCPUs?: int32; - - @doc("The amount of memory available for the Dev Box.") - @visibility("read") - @projectedName("python", "memoryGb") - memoryGB?: int32; -} - -@doc("Storage settings for the Dev Box's disks") -@projectedName("csharp", "DevBoxStorageProfile") -@projectedName("java", "DevBoxStorageProfile") -model StorageProfile { - @doc("Settings for the operating system disk.") - @projectedName("csharp", "OSDisk") - osDisk?: OsDisk; -} - -@doc("Settings for the operating system disk.") -@projectedName("csharp", "OSDisk") -@projectedName("python", "OSDisk") -@projectedName("javascript", "OSDisk") -model OsDisk { - #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" - @doc("The size of the OS Disk in gigabytes.") - @visibility("read") - @projectedName("python", "diskSizeGb") - diskSizeGB?: int32; -} - -@doc("Specifies information about the image used") -@projectedName("csharp", "DevBoxImageReference") -@projectedName("java", "DevBoxImageReference") -model ImageReference { - @doc("The name of the image used.") - @visibility("read") - name?: string; - - @doc("The version of the image.") - @visibility("read") - version?: string; - - @doc("The operating system of the image.") - @visibility("read") - operatingSystem?: string; - - @doc("The operating system build number of the image.") - @visibility("read") - @projectedName("csharp", "OSBuildNumber") - osBuildNumber?: string; - - @doc("The datetime that the backing image version was published.") - @visibility("read") - publishedDate?: utcDateTime; -} - -@doc("Stop on disconnect configuration settings for Dev Boxes created in this pool.") -model StopOnDisconnectConfiguration { - @doc(""" -Indicates whether the feature to stop the devbox on disconnect once the grace -period has lapsed is enabled. -""") - status: StopOnDisconnectEnableStatus; - - @doc(""" -The specified time in minutes to wait before stopping a Dev Box once disconnect -is detected. -""") - gracePeriodMinutes?: int32; -} - -@doc("The Schedule list result") -model ScheduleListResult is Azure.Core.Page; - -@doc("A Schedule to execute action.") -@resource("schedules") -@parentResource(Pool) -@projectedName("csharp", "DevBoxSchedule") -@projectedName("java", "DevBoxSchedule") -model Schedule { - @key("scheduleName") - @visibility("read") - @doc("Display name for the Schedule") - name: string; - - @doc("Supported type this scheduled task represents.") - @projectedName("csharp", "scheduledType") - @projectedName("java", "scheduledType") - type: ScheduledType; - - @doc("The frequency of this scheduled task.") - frequency: ScheduledFrequency; - - @doc("The target time to trigger the action. The format is HH:MM.") - time: plainTime; - - @doc("The IANA timezone id at which the schedule should execute.") - timeZone: string; -} - -@doc("The Dev Box list result") -model DevBoxListResult is Azure.Core.Page; - -@doc("A Dev Box") -@resource("devboxes") -@parentResource(User) -@access(Access.public) -@usage(Usage.input | Usage.output) -model DevBox { - @key("devBoxName") - @doc("Display name for the Dev Box") - @visibility("read") - name: string; - - @doc("Name of the project this Dev Box belongs to") - @visibility("read") - projectName?: string; - - @doc("The name of the Dev Box pool this machine belongs to.") - @minLength(3) - @maxLength(63) - @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility("read", "create") - poolName: string; - - @doc("Indicates whether hibernate is enabled/disabled or unknown.") - @visibility("read") - hibernateSupport?: HibernateSupport; - - @doc("The current provisioning state of the Dev Box.") - @visibility("read") - provisioningState?: DevBoxProvisioningState; - - @doc(""" -The current action state of the Dev Box. This is state is based on previous -action performed by user. -""") - @visibility("read") - actionState?: string; - - @doc("The current power state of the Dev Box.") - @visibility("read") - powerState: PowerState = PowerState.Unknown; - - @doc(""" -A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. -00000000-0000-0000-0000-000000000000). -""") - @visibility("read") - uniqueId?: Azure.Core.uuid; - - @doc("Provisioning or action error details. Populated only for error states.") - @visibility("read") - error?: Azure.Core.Foundations.Error; - - @doc(""" -Azure region where this Dev Box is located. This will be the same region as the -Virtual Network it is attached to. -""") - @visibility("read") - location?: string; - - @doc("The operating system type of this Dev Box.") - @visibility("read") - @projectedName("csharp", "OSType") - osType?: OsType; - - @doc("The AAD object id of the user this Dev Box is assigned to.") - @visibility("read") - @projectedName("csharp", "userId") - @projectedName("java", "userId") - user?: Azure.Core.uuid; - - @doc("Information about the Dev Box's hardware resources") - @visibility("read") - hardwareProfile?: HardwareProfile; - - @doc("Storage settings for this Dev Box") - @visibility("read") - storageProfile?: StorageProfile; - - @doc("Information about the image used for this Dev Box") - @visibility("read") - imageReference?: ImageReference; - - @doc("Creation time of this Dev Box") - @visibility("read") - createdTime?: utcDateTime; - - @doc("Indicates whether the owner of the Dev Box is a local administrator.") - @visibility("read", "create") - @projectedName("csharp", "LocalAdministratorStatus") - @projectedName("java", "LocalAdministratorStatus") - localAdministrator?: LocalAdminStatus; -} - -@doc("Provides remote connection information for a Dev Box.") -model RemoteConnection { - @doc("URL to open a browser based RDP session.") - @projectedName("csharp", "webUri") - webUrl?: url; - - @doc("Link to open a Remote Desktop session.") - @projectedName("csharp", "rdpConnectionUri") - rdpConnectionUrl?: url; -} - -@doc("The actions list result") -model DevBoxActionsListResult is Azure.Core.Page; - -@doc("An action which will take place on a Dev Box.") -@resource("actions") -@parentResource(DevBox) -model DevBoxAction { - @key("actionName") - @visibility("read") - @doc("The name of the action.") - name: string; - - @doc("The action that will be taken.") - actionType: DevBoxActionType; - - @doc("The id of the resource which triggered this action") - sourceId: string; - - @doc("The earliest time that the action could occur (UTC).") - suspendedUntil?: utcDateTime; - - @doc("Details about the next run of this action.") - @projectedName("csharp", "nextAction") - @projectedName("java", "nextAction") - next?: DevBoxNextAction; -} - -@doc("Details about the next run of an action.") -model DevBoxNextAction { - @doc("The time the action will be triggered (UTC).") - scheduledTime: utcDateTime; -} - -@doc("The actions list result") -model DevBoxActionsDelayMultipleResult - is Azure.Core.Page; - -@doc("The action delay result") -model DevBoxActionDelayResult { - @doc("The name of the action.") - @projectedName("csharp", "actionName") - name: string; - - @doc("The result of the delay operation on this action.") - result: DevBoxActionDelayResultStatus; - - @doc("The delayed action") - action?: DevBoxAction; - - @doc("Information about the error that occurred. Only populated on error.") - error?: Azure.Core.Foundations.Error; -} diff --git a/specification/devcenter/DevCenter/devbox/routes.tsp b/specification/devcenter/DevCenter/devbox/routes.tsp deleted file mode 100644 index 76bf90cc0027..000000000000 --- a/specification/devcenter/DevCenter/devbox/routes.tsp +++ /dev/null @@ -1,472 +0,0 @@ -import "@azure-tools/typespec-azure-core"; -import "@typespec/rest"; -import "./models.tsp"; -import "../shared/routes.tsp"; - -using Azure.Core; -using TypeSpec.Rest; -using TypeSpec.Http; - -namespace DevCenterService; - -#suppress "@azure-tools/typespec-azure-core/use-standard-operations" -interface DevBoxesOperations { - @doc("Lists available pools") - @route("/projects/{projectName}/pools") - @get - listPools is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - PoolListResult - >; - - @doc("Gets a pool") - @route("/projects/{projectName}/pools/{poolName}") - @get - getPool is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The name of a pool of Dev Boxes.") - @path - poolName: string; - }, - Pool - >; - - @doc("Lists available schedules for a pool.") - @route("/projects/{projectName}/pools/{poolName}/schedules") - @get - listSchedules is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The name of a pool of Dev Boxes.") - @path - poolName: string; - - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - ScheduleListResult - >; - - @doc("Gets a schedule.") - @route("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") - @get - getSchedule is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The name of a pool of Dev Boxes.") - @path - poolName: string; - - @doc("The name of a schedule.") - @path - scheduleName: string; - }, - Schedule - >; - - @doc("Lists Dev Boxes in the project for a particular user.") - @route("/projects/{projectName}/users/{userId}/devboxes") - @get - listDevBoxes is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - DevBoxListResult - >; - - @doc("Gets a Dev Box") - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") - @get - getDevBox is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - }, - DevBox - >; - - @doc("Creates or replaces a Dev Box.") - @finalOperation(DevBoxesOperations.getDevBox) - @pollingOperation(SharedOperations.getProjectOperationStatus) - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") - @put - createDevBox is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute the operation.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - - @doc("Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator") - @body - devBox: DevBox; - }, - DevBox | { - @statusCode statusCode: 201; - - @header("Location") - location: ResourceLocation; - - @pollingLocation - @header("Operation-Location") - operationLocation: string; - - @body body?: DevBox; - } - >; - - @doc("Deletes a Dev Box.") - @pollingOperation(SharedOperations.getProjectOperationStatus) - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") - @delete - deleteDevBox is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - }, - { - @statusCode statusCode: 202; - - @header("Location") - location: string; - - @pollingLocation - @header("Operation-Location") - operationLocation: string; - - @body body: OperationStatus; - } | { - @statusCode statusCode: 204; - } - >; - - @doc("Starts a Dev Box") - @pollingOperation(SharedOperations.getProjectOperationStatus) - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start") - @post - startDevBox is Foundations.LongRunningOperation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - }, - { - @statusCode - statusCode: 202; - - @body - body: OperationStatus; - } - >; - - @doc("Stops a Dev Box") - @pollingOperation(SharedOperations.getProjectOperationStatus) - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop") - @post - stopDevBox is Foundations.LongRunningOperation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - - @doc("Optional parameter to hibernate the dev box.") - @query - hibernate?: boolean; - }, - { - @statusCode - statusCode: 202; - - @body - body: OperationStatus; - } - >; - - @doc("Restarts a Dev Box") - @pollingOperation(SharedOperations.getProjectOperationStatus) - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart") - @post - restartDevBox is Foundations.LongRunningOperation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - }, - { - @statusCode - statusCode: 202; - - @body - body: OperationStatus; - } - >; - - @doc("Gets RDP Connection info") - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection") - @get - getRemoteConnection is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - }, - RemoteConnection - >; - - @doc("Lists actions on a Dev Box.") - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions") - @get - listDevBoxActions is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - }, - DevBoxActionsListResult - >; - - @doc("Gets an action.") - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}") - @get - getDevBoxAction is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - - @doc("The name of an action that will take place on a Dev Box.") - @path - actionName: string; - }, - DevBoxAction - >; - - @doc("Skips an occurrence of an action.") - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip") - @post - skipAction is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - - @doc("The name of an action that will take place on a Dev Box.") - @path - actionName: string; - }, - void - >; - - @doc("Delays the occurrence of an action.") - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay") - @post - delayAction is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - - @doc("The name of an action that will take place on a Dev Box.") - @path - actionName: string; - - @doc("The time to delay the Dev Box action or actions until.") - @query("until") - delayUntil: utcDateTime; - }, - DevBoxAction - >; - - @doc("Delays all actions.") - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay") - @post - delayAllActions is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - - @doc("The time to delay the Dev Box action or actions until.") - @query("until") - delayUntil: utcDateTime; - }, - DevBoxActionsDelayMultipleResult - >; -} - -#suppress "@azure-tools/typespec-azure-core/use-standard-operations" -interface DevBoxesDevCenterOperations { - @doc("Lists Dev Boxes that the caller has access to in the DevCenter.") - @route("/devboxes") - @get - listAllDevBoxes is Azure.Core.Foundations.Operation< - { - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - DevBoxListResult - >; - - @doc("Lists Dev Boxes in the Dev Center for a particular user.") - @route("/users/{userId}/devboxes") - @get - listAllDevBoxesByUser is Azure.Core.Foundations.Operation< - { - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - }, - DevBoxListResult - >; -} diff --git a/specification/devcenter/DevCenter/devcenter/models.tsp b/specification/devcenter/DevCenter/devcenter/models.tsp deleted file mode 100644 index 4a55a92ef695..000000000000 --- a/specification/devcenter/DevCenter/devcenter/models.tsp +++ /dev/null @@ -1,12 +0,0 @@ -import "@typespec/rest"; -import "@typespec/http"; -import "@azure-tools/typespec-azure-core"; -import "../shared/models.tsp"; - -using TypeSpec.Rest; -using TypeSpec.Http; - -namespace DevCenterService; - -@doc("Results of the project list operation.") -model ProjectListResult is Azure.Core.Page; diff --git a/specification/devcenter/DevCenter/devcenter/routes.tsp b/specification/devcenter/DevCenter/devcenter/routes.tsp deleted file mode 100644 index 154ca6aee397..000000000000 --- a/specification/devcenter/DevCenter/devcenter/routes.tsp +++ /dev/null @@ -1,40 +0,0 @@ -import "@azure-tools/typespec-azure-core"; -import "@typespec/rest"; -import "./models.tsp"; - -using Azure.Core; -using TypeSpec.Rest; -using TypeSpec.Http; - -namespace DevCenterService; - -#suppress "@azure-tools/typespec-azure-core/use-standard-operations" -interface DevCenterOperations { - @doc("Lists all projects.") - @route("/projects") - @get - listProjects is Azure.Core.Foundations.Operation< - { - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - ProjectListResult - >; - - @doc("Gets a project.") - @route("/projects/{projectName}") - @get - getProject is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - }, - Project - >; -} diff --git a/specification/devcenter/DevCenter/environments/models.tsp b/specification/devcenter/DevCenter/environments/models.tsp deleted file mode 100644 index 12f3cb595b01..000000000000 --- a/specification/devcenter/DevCenter/environments/models.tsp +++ /dev/null @@ -1,225 +0,0 @@ -import "@typespec/rest"; -import "@typespec/http"; -import "@azure-tools/typespec-azure-core"; -import "../shared/models.tsp"; - -using TypeSpec.Versioning; -using TypeSpec.Rest; -using TypeSpec.Http; - -namespace DevCenterService; - -@doc("The type of data a parameter accepts.") -@projectedName("csharp", "EnvironmentDefinitionParameterType") -@projectedName("java", "EnvironmentDefinitionParameterType") -enum ParameterType { - @doc("The parameter accepts an array of values.") array, - @doc("The parameter accepts a boolean value.") boolean, - @doc("The parameter accepts an integer value.") integer, - @doc("The parameter accepts a number value.") number, - @doc("The parameter accepts an object value.") object, - @doc("The parameter accepts a string value.") string, -} - -@doc("Indicates whether an environment type is enabled for use in a project.") -@projectedName("csharp", "EnvironmentTypeStatus") -@projectedName("java", "EnvironmentTypeStatus") -@projectedName("python", "EnvironmentTypeStatus") -enum EnvironmentTypeEnableStatus { - @doc("The environment type is enabled for use in the project.") Enabled, - @doc("The environment type is not enabled for use in the project.") Disabled, -} - -@doc("The provisioning state of the environment.") -enum EnvironmentProvisioningState { - @doc("The environment was successfully provisioned.") - Succeeded, - - @doc("The environment failed to provision.") - Failed, - - @doc("The environment provisioning was canceled.") - Canceled, - - @doc("The environment is creating.") - Creating, - - @doc("The environment was accepted.") - Accepted, - - @doc("The environment is deleting.") - Deleting, - - @doc("The environment is updating.") - Updating, - - @doc("The environment is preparing.") - Preparing, - - @doc("The environment is running.") - Running, - - @doc("The environment is Syncing.") - Syncing, - - @doc("The environment is moving resources.") - MovingResources, - - @doc("The environment has a transient failure.") - TransientFailure, - - @doc("The environment storage provisioning failed.") - StorageProvisioningFailed, -} - -@doc("Results of the environment list operation.") -model EnvironmentListResult is Azure.Core.Page; - -@doc("Properties of an environment.") -@projectedName("csharp", "DevCenterEnvironment") -@projectedName("java", "DevCenterEnvironment") -model Environment { - ...EnvironmentUpdateProperties; - - @doc("Environment name.") - @visibility("read") - name?: string; - - @doc("Environment type.") - @visibility("read", "create") - @projectedName("csharp", "environmentTypeName") - @projectedName("java", "environmentTypeName") - environmentType: string; - - @doc("The AAD object id of the owner of this Environment.") - @visibility("read") - @projectedName("csharp", "userId") - @projectedName("java", "userId") - user?: Azure.Core.uuid; - - @doc("The provisioning state of the environment.") - @visibility("read") - provisioningState?: EnvironmentProvisioningState; - - @doc("The identifier of the resource group containing the environment's resources.") - @visibility("read") - resourceGroupId?: string; - - @doc("Name of the catalog.") - @visibility("read", "create") - catalogName: string; - - @doc("Name of the environment definition.") - @visibility("read", "create") - environmentDefinitionName: string; - - @doc("Provisioning error details. Populated only for error states.") - @visibility("read") - error?: Azure.Core.Foundations.Error; -} - -@doc(""" -Properties of an environment. These properties can be updated after the -resource has been created. -""") -model EnvironmentUpdateProperties { - @doc("Parameters object for the environment.") - parameters?: bytes; -} - -@doc("Results of the catalog list operation.") -model CatalogListResult is Azure.Core.Page; - -@doc("A catalog.") -@projectedName("csharp", "DevCenterCatalog") -model Catalog { - @doc("Name of the catalog.") - name: string; -} - -@doc("Results of the environment definition list operation.") -model EnvironmentDefinitionListResult is Azure.Core.Page; - -@doc("An environment definition.") -model EnvironmentDefinition { - @doc("The ID of the environment definition.") - id: string; - - @doc("Name of the environment definition.") - name: string; - - @doc("Name of the catalog.") - catalogName: string; - - @doc("A short description of the environment definition.") - description?: string; - - @doc("Input parameters passed to an environment.") - parameters?: EnvironmentDefinitionParameter[]; - - @doc("JSON schema defining the parameters object passed to an environment.") - parametersSchema?: bytes; - - @doc("Path to the Environment Definition entrypoint file.") - templatePath?: string; -} - -@doc("Properties of an Environment Definition parameter") -model EnvironmentDefinitionParameter { - @doc("Unique ID of the parameter") - id: string; - - @doc("Display name of the parameter") - name?: string; - - @doc("Description of the parameter") - description?: string; - - @doc("Default value of the parameter") - @projectedName("csharp", "defaultValue") - @projectedName("java", "defaultValue") - default?: bytes; - - @doc(""" -A string of one of the basic JSON types (number, integer, array, object, -boolean, string) -""") - @projectedName("csharp", "parameterType") - @projectedName("java", "parameterType") - type: ParameterType; - - @doc(""" -Whether or not this parameter is read-only. If true, default should have a -value. -""") - readOnly?: boolean; - - @doc("Whether or not this parameter is required") - required: boolean; - - @doc("An array of allowed values") - @minItems(1) - // @uniqueItems // TODO import TypeSpec.JsonSchema - allowed?: string[]; -} - -@doc("Result of the environment type list operation.") -model EnvironmentTypeListResult is Azure.Core.Page; - -@doc("Properties of an environment type.") -@projectedName("csharp", "DevCenterEnvironmentType") -@projectedName("java", "DevCenterEnvironmentType") -model EnvironmentType { - @doc("Name of the environment type") - name: string; - - @doc(""" -Id of a subscription or management group that the environment type will be -mapped to. The environment's resources will be deployed into this subscription -or management group. -""") - deploymentTargetId: string; - - @doc("Indicates whether this environment type is enabled for use in this project.") - status: EnvironmentTypeEnableStatus; -} diff --git a/specification/devcenter/DevCenter/environments/routes.tsp b/specification/devcenter/DevCenter/environments/routes.tsp deleted file mode 100644 index 15848dce25b5..000000000000 --- a/specification/devcenter/DevCenter/environments/routes.tsp +++ /dev/null @@ -1,245 +0,0 @@ -import "@azure-tools/typespec-azure-core"; -import "@typespec/rest"; -import "./models.tsp"; -import "../shared/routes.tsp"; - -using Azure.Core; -using TypeSpec.Versioning; -using TypeSpec.Rest; -using TypeSpec.Http; - -namespace DevCenterService; - -#suppress "@azure-tools/typespec-azure-core/use-standard-operations" -interface EnvironmentsOperations { - @doc("Lists the environments for a project.") - @route("/projects/{projectName}/environments") - @get - listAllEnvironments is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - EnvironmentListResult - >; - - @doc("Lists the environments for a project and user.") - @route("/projects/{projectName}/users/{userId}/environments") - @get - listEnvironments is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - EnvironmentListResult - >; - - @doc("Gets an environment") - @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") - @get - getEnvironment is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of the environment.") - @path - environmentName: string; - }, - Environment - >; - - @doc("Creates or updates an environment.") - @finalOperation(EnvironmentsOperations.getEnvironment) - @pollingOperation(SharedOperations.getProjectOperationStatus) - @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") - @put - createOrUpdateEnvironment is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of the environment.") - @path - environmentName: string; - - @doc("Represents an environment.") - @body - body: Environment; - }, - { - @statusCode - statusCode: 201; - - @pollingLocation - @header("Operation-Location") - operationLocation: string; - - @body body: Environment; - } - >; - - // FIXME - @doc("Deletes an environment and all its associated resources") - @pollingOperation(SharedOperations.getProjectOperationStatus) - @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") - @delete - deleteEnvironment( - ...Foundations.ApiVersionParameter, - - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string, - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string, - - @doc("The name of the environment.") - @path - environmentName: string, - ): { - @statusCode - statusCode: 202; - - @body body: OperationStatus; - - @header("Location") - location: string; - - @pollingLocation - @header("Operation-Location") - operationLocation: string; - } | { - @statusCode - statusCode: 204; - } | Azure.Core.Foundations.ErrorResponse; - - @doc("Lists all of the catalogs available for a project.") - @route("/projects/{projectName}/catalogs") - @get - listCatalogs is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - CatalogListResult - >; - - @doc("Gets the specified catalog within the project") - @route("/projects/{projectName}/catalogs/{catalogName}") - @get - getCatalog is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The name of the catalog") - @path - catalogName: string; - }, - Catalog - >; - - @doc("Lists all environment definitions available for a project.") - @route("/projects/{projectName}/environmentDefinitions") - @get - listEnvironmentDefinitions is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - EnvironmentDefinitionListResult - >; - - @doc("Lists all environment definitions available within a catalog.") - @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions") - @get - listEnvironmentDefinitionsByCatalog is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The name of the catalog") - @path - catalogName: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - EnvironmentDefinitionListResult - >; - - @doc("Get an environment definition from a catalog.") - @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}") - @get - getEnvironmentDefinition is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The name of the catalog") - @path - catalogName: string; - - @doc("The name of the environment definition") - @path - definitionName: string; - }, - EnvironmentDefinition - >; - - @doc("Lists all environment types configured for a project.") - @route("/projects/{projectName}/environmentTypes") - @get - listEnvironmentTypes is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - EnvironmentTypeListResult - >; -} From e5335b60d1828a1ec244294e5ebc96db1b783bfc Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 1 Feb 2024 16:02:47 -0800 Subject: [PATCH 108/187] update structure to generate one swagger for each operation group --- ...sDevCenterOperations_ListAllDevBoxes.json} | 4 +- ...enterOperations_ListAllDevBoxesByUser.json | 41 + .../DevBoxesOperations_CreateDevBox.json} | 0 .../DevBoxesOperations_DelayAction.json} | 0 .../DevBoxesOperations_DelayAllActions.json} | 0 .../DevBoxesOperations_DeleteDevBox.json} | 0 .../DevBoxesOperations_GetDevBox.json} | 0 .../DevBoxesOperations_GetDevBoxAction.json} | 0 .../DevBoxesOperations_GetPool.json} | 0 ...vBoxesOperations_GetRemoteConnection.json} | 0 .../DevBoxesOperations_GetSchedule.json} | 0 ...DevBoxesOperations_ListDevBoxActions.json} | 0 .../DevBoxesOperations_ListDevBoxes.json} | 0 .../DevBoxesOperations_ListPools.json} | 0 .../DevBoxesOperations_ListSchedules.json} | 0 .../DevBoxesOperations_RestartDevBox.json} | 0 .../DevBoxesOperations_SkipAction.json} | 0 .../DevBoxesOperations_StartDevBox.json} | 0 .../DevBoxesOperations_StopDevBox.json} | 0 .../devcenter/DevCenter/DevBox/main.tsp | 12 + .../devcenter/DevCenter/DevBox/models.tsp | 508 +++ .../devcenter/DevCenter/DevBox/routes.tsp | 472 +++ .../devcenter/DevCenter/DevBox/tspconfig.yaml | 12 + .../DevCenterOperations_GetProject.json} | 0 .../DevCenterOperations_ListProjects.json} | 0 .../DevCenter/{ => DevCenter}/main.tsp | 5 +- .../devcenter/DevCenter/DevCenter/models.tsp | 12 + .../devcenter/DevCenter/DevCenter/routes.tsp | 40 + .../DevCenter/DevCenter/tspconfig.yaml | 12 + ...Operations_CreateOrUpdateEnvironment.json} | 0 ...ronmentsOperations_DeleteEnvironment.json} | 0 .../EnvironmentsOperations_GetCatalog.json} | 0 ...nvironmentsOperations_GetEnvironment.json} | 0 ...sOperations_GetEnvironmentDefinition.json} | 0 ...nmentsOperations_ListAllEnvironments.json} | 0 .../EnvironmentsOperations_ListCatalogs.json} | 0 ...perations_ListEnvironmentDefinitions.json} | 0 ..._ListEnvironmentDefinitionsByCatalog.json} | 0 ...mentsOperations_ListEnvironmentTypes.json} | 0 ...ironmentsOperations_ListEnvironments.json} | 0 .../devcenter/DevCenter/Environments/main.tsp | 12 + .../DevCenter/Environments/models.tsp | 225 + .../DevCenter/Environments/routes.tsp | 245 ++ .../DevCenter/Environments/tspconfig.yaml | 12 + .../DevBoxActions_DelayMultipleWithError.json | 38 - .../devcenter/DevCenter/tspconfig.yaml | 10 +- .../stable/2023-04-01/devbox.json | 2540 ++++++----- .../stable/2023-04-01/devcenter.json | 413 +- .../stable/2023-04-01/environments.json | 459 +- .../DevBoxActions_DelayMultipleWithError.json | 38 - ...sDevCenterOperations_ListAllDevBoxes.json} | 4 +- ...enterOperations_ListAllDevBoxesByUser.json | 41 + ...n => DevBoxesOperations_CreateDevBox.json} | 0 ...on => DevBoxesOperations_DelayAction.json} | 0 ...> DevBoxesOperations_DelayAllActions.json} | 0 ...n => DevBoxesOperations_DeleteDevBox.json} | 0 ...json => DevBoxesOperations_GetDevBox.json} | 0 ...> DevBoxesOperations_GetDevBoxAction.json} | 0 ...t.json => DevBoxesOperations_GetPool.json} | 0 ...vBoxesOperations_GetRemoteConnection.json} | 0 ...on => DevBoxesOperations_GetSchedule.json} | 0 ...DevBoxesOperations_ListDevBoxActions.json} | 0 ...n => DevBoxesOperations_ListDevBoxes.json} | 0 ...json => DevBoxesOperations_ListPools.json} | 0 ... => DevBoxesOperations_ListSchedules.json} | 0 ... => DevBoxesOperations_RestartDevBox.json} | 0 ...son => DevBoxesOperations_SkipAction.json} | 0 ...on => DevBoxesOperations_StartDevBox.json} | 0 ...son => DevBoxesOperations_StopDevBox.json} | 0 ...on => DevCenterOperations_GetProject.json} | 0 ... => DevCenterOperations_ListProjects.json} | 0 ...Operations_CreateOrUpdateEnvironment.json} | 0 ...ronmentsOperations_DeleteEnvironment.json} | 0 ...=> EnvironmentsOperations_GetCatalog.json} | 0 ...nvironmentsOperations_GetEnvironment.json} | 0 ...sOperations_GetEnvironmentDefinition.json} | 0 ...nmentsOperations_ListAllEnvironments.json} | 0 ... EnvironmentsOperations_ListCatalogs.json} | 0 ...perations_ListEnvironmentDefinitions.json} | 0 ..._ListEnvironmentDefinitionsByCatalog.json} | 0 ...mentsOperations_ListEnvironmentTypes.json} | 0 ...ironmentsOperations_ListEnvironments.json} | 0 .../stable/2023-04-01/openapi.json | 3712 ----------------- 83 files changed, 3833 insertions(+), 5034 deletions(-) rename specification/devcenter/DevCenter/{examples/2023-04-01/DevBoxes_List.json => DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json} (93%) create mode 100644 specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json rename specification/devcenter/DevCenter/{examples/2023-04-01/DevBoxes_Create.json => DevBox/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/DevBoxActions_Delay.json => DevBox/examples/2023-04-01/DevBoxesOperations_DelayAction.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/DevBoxActions_DelayMultiple.json => DevBox/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/DevBoxes_Delete.json => DevBox/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/DevBoxes_Get.json => DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBox.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/DevBoxActions_Get.json => DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/Pools_Get.json => DevBox/examples/2023-04-01/DevBoxesOperations_GetPool.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/DevBoxes_GetRemoteConnection.json => DevBox/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/Schedules_Get.json => DevBox/examples/2023-04-01/DevBoxesOperations_GetSchedule.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/DevBoxActions_List.json => DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/DevBoxes_ListByUserByProject.json => DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/Pools_List.json => DevBox/examples/2023-04-01/DevBoxesOperations_ListPools.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/Schedules_List.json => DevBox/examples/2023-04-01/DevBoxesOperations_ListSchedules.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/DevBoxes_Restart.json => DevBox/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/DevBoxActions_Skip.json => DevBox/examples/2023-04-01/DevBoxesOperations_SkipAction.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/DevBoxes_Start.json => DevBox/examples/2023-04-01/DevBoxesOperations_StartDevBox.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/DevBoxes_Stop.json => DevBox/examples/2023-04-01/DevBoxesOperations_StopDevBox.json} (100%) create mode 100644 specification/devcenter/DevCenter/DevBox/main.tsp create mode 100644 specification/devcenter/DevCenter/DevBox/models.tsp create mode 100644 specification/devcenter/DevCenter/DevBox/routes.tsp create mode 100644 specification/devcenter/DevCenter/DevBox/tspconfig.yaml rename specification/devcenter/DevCenter/{examples/2023-04-01/Projects_Get.json => DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/Projects_ListByDevCenter.json => DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json} (100%) rename specification/devcenter/DevCenter/{ => DevCenter}/main.tsp (67%) create mode 100644 specification/devcenter/DevCenter/DevCenter/models.tsp create mode 100644 specification/devcenter/DevCenter/DevCenter/routes.tsp create mode 100644 specification/devcenter/DevCenter/DevCenter/tspconfig.yaml rename specification/devcenter/DevCenter/{examples/2023-04-01/Environments_CreateByEnvironmentDefinition.json => Environments/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/Environments_Delete.json => Environments/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/Catalogs_Get.json => Environments/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/Environments_Get.json => Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/EnvironmentDefinitions_Get.json => Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/Environments_ListByProject.json => Environments/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/Catalogs_ListByProject.json => Environments/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/EnvironmentDefinitions_ListByProject.json => Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/EnvironmentDefinitions_ListByCatalog.json => Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/EnvironmentTypes_ListByProject.json => Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json} (100%) rename specification/devcenter/DevCenter/{examples/2023-04-01/Environments_ListByProjectByUser.json => Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json} (100%) create mode 100644 specification/devcenter/DevCenter/Environments/main.tsp create mode 100644 specification/devcenter/DevCenter/Environments/models.tsp create mode 100644 specification/devcenter/DevCenter/Environments/routes.tsp create mode 100644 specification/devcenter/DevCenter/Environments/tspconfig.yaml delete mode 100644 specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_DelayMultipleWithError.json delete mode 100644 specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_DelayMultipleWithError.json rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{DevBoxes_List.json => DevBoxesDevCenterOperations_ListAllDevBoxes.json} (93%) create mode 100644 specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{DevBoxes_Create.json => DevBoxesOperations_CreateDevBox.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{DevBoxActions_Delay.json => DevBoxesOperations_DelayAction.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{DevBoxActions_DelayMultiple.json => DevBoxesOperations_DelayAllActions.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{DevBoxes_Delete.json => DevBoxesOperations_DeleteDevBox.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{DevBoxes_Get.json => DevBoxesOperations_GetDevBox.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{DevBoxActions_Get.json => DevBoxesOperations_GetDevBoxAction.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{Pools_Get.json => DevBoxesOperations_GetPool.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{DevBoxes_GetRemoteConnection.json => DevBoxesOperations_GetRemoteConnection.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{Schedules_Get.json => DevBoxesOperations_GetSchedule.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{DevBoxActions_List.json => DevBoxesOperations_ListDevBoxActions.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{DevBoxes_ListByUserByProject.json => DevBoxesOperations_ListDevBoxes.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{Pools_List.json => DevBoxesOperations_ListPools.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{Schedules_List.json => DevBoxesOperations_ListSchedules.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{DevBoxes_Restart.json => DevBoxesOperations_RestartDevBox.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{DevBoxActions_Skip.json => DevBoxesOperations_SkipAction.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{DevBoxes_Start.json => DevBoxesOperations_StartDevBox.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{DevBoxes_Stop.json => DevBoxesOperations_StopDevBox.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{Projects_Get.json => DevCenterOperations_GetProject.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{Projects_ListByDevCenter.json => DevCenterOperations_ListProjects.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{Environments_CreateByEnvironmentDefinition.json => EnvironmentsOperations_CreateOrUpdateEnvironment.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{Environments_Delete.json => EnvironmentsOperations_DeleteEnvironment.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{Catalogs_Get.json => EnvironmentsOperations_GetCatalog.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{Environments_Get.json => EnvironmentsOperations_GetEnvironment.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{EnvironmentDefinitions_Get.json => EnvironmentsOperations_GetEnvironmentDefinition.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{Environments_ListByProject.json => EnvironmentsOperations_ListAllEnvironments.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{Catalogs_ListByProject.json => EnvironmentsOperations_ListCatalogs.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{EnvironmentDefinitions_ListByProject.json => EnvironmentsOperations_ListEnvironmentDefinitions.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{EnvironmentDefinitions_ListByCatalog.json => EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{EnvironmentTypes_ListByProject.json => EnvironmentsOperations_ListEnvironmentTypes.json} (100%) rename specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/{Environments_ListByProjectByUser.json => EnvironmentsOperations_ListEnvironments.json} (100%) delete mode 100644 specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/openapi.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_List.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json similarity index 93% rename from specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_List.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json index 24f1f0760e5c..a60cb4dd87e7 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_List.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json @@ -2,8 +2,8 @@ "title": "Lists Dev Boxes that the caller has access to in the DevCenter.", "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", "parameters": { - "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", - "api-version": "2023-04-01" + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" }, "responses": { "200": { diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json new file mode 100644 index 000000000000..c42b57185035 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json @@ -0,0 +1,41 @@ +{ + "title": "Lists Dev Boxes in the Dev Center for a particular user.", + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "userId": "me" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "MyDevBox", + "provisioningState": "Succeeded", + "projectName": "ContosoProject", + "poolName": "LargeDevWorkStationPool", + "location": "centralus", + "osType": "Windows", + "user": "b08e39b4-2ac6-4465-a35e-48322efb0f98", + "hardwareProfile": { + "vCPUs": 8, + "memoryGB": 32 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 1024 + } + }, + "hibernateSupport": "Enabled", + "imageReference": { + "name": "DevImage", + "version": "1.0.0", + "publishedDate": "2022-03-01T00:13:23.323Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Create.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Create.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Delay.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DelayAction.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Delay.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DelayAction.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_DelayMultiple.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_DelayMultiple.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Delete.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Delete.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Get.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBox.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Get.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBox.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Get.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Get.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Pools_Get.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetPool.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/Pools_Get.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetPool.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_GetRemoteConnection.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_GetRemoteConnection.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Schedules_Get.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetSchedule.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/Schedules_Get.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetSchedule.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_List.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_List.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_ListByUserByProject.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_ListByUserByProject.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Pools_List.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListPools.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/Pools_List.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListPools.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Schedules_List.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListSchedules.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/Schedules_List.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListSchedules.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Restart.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Restart.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Skip.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_SkipAction.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_Skip.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_SkipAction.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Start.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_StartDevBox.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Start.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_StartDevBox.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Stop.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_StopDevBox.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/DevBoxes_Stop.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_StopDevBox.json diff --git a/specification/devcenter/DevCenter/DevBox/main.tsp b/specification/devcenter/DevCenter/DevBox/main.tsp new file mode 100644 index 000000000000..5f87a9f6ce2e --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/main.tsp @@ -0,0 +1,12 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "../service.tsp"; +import "./routes.tsp"; + +using Azure.Core; +using TypeSpec.Versioning; +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenterService; diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp new file mode 100644 index 000000000000..d46ada918469 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -0,0 +1,508 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-client-generator-core"; +import "../shared/models.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ClientGenerator.Core; + +namespace DevCenterService; + +@doc("The operating system type.") +@projectedName("csharp", "DevBoxOSType") +@projectedName("java", "DevBoxOsType") +@projectedName("python", "OSType") +enum OsType { + @doc("The Windows operating system.") Windows, +} + +@doc("Indicates whether hibernate is supported and enabled, disabled, or unsupported by the operating system. Unknown hibernate support is represented as null.") +enum HibernateSupport { + @doc("Hibernate is enabled.") Enabled, + @doc("Hibernate is not enabled.") Disabled, + @doc("Hibernate is not supported by the operating system.") OsUnsupported, +} + +@doc("Indicates whether owners of Dev Boxes in a pool are local administrators on the Dev Boxes.") +@projectedName("csharp", "LocalAdministratorStatus") +@projectedName("java", "LocalAdministratorStatus") +@projectedName("python", "LocalAdministratorStatus") +enum LocalAdminStatus { + @doc("Owners of Dev Boxes in the pool are local administrators on the Dev Boxes.") + Enabled, + + @doc("Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes.") + Disabled, +} + +@doc("Indicates the provisioning state of the Dev Box.") +enum DevBoxProvisioningState { + @doc("Dev Box was successfully provisioned") Succeeded, + @doc("Dev Box failed to provision") Failed, + @doc("Dev Box provision was canceled") Canceled, + @doc("Dev Box is being created") Creating, + @doc("Dev Box is being deleted") Deleting, + @doc("Dev Box is updating") Updating, + @doc("Dev Box is starting") Starting, + @doc("Dev Box is stopping") Stopping, + @doc("Dev Box is provisioning") Provisioning, + @doc("Dev Box was provisioned with warning") ProvisionedWithWarning, + @doc("Dev Box is in grace period") InGracePeriod, + @doc("Dev Box is not provisioned") NotProvisioned, +} + +@doc("Indicates the Dev Box compute.") +enum SkuName { + @doc("Intel, 8 vCPU, 32 GB RAM, 256 GB Storage") + general_i_8c32gb256ssd_v2, + + @doc("Intel, 8 vCPU, 32 GB RAM, 512 GB Storage") + general_i_8c32gb512ssd_v2, + + @doc("Intel, 8 vCPU, 32 GB RAM, 1024 GB Storage") + general_i_8c32gb1024ssd_v2, + + @doc("Intel, 8 vCPU, 32 GB RAM, 2048 GB Storage") + general_i_8c32gb2048ssd_v2, + + @doc("Intel, 16 vCPU, 64 GB RAM, 256 GB Storage") + general_i_16c64gb256ssd_v2, + + @doc("Intel, 16 vCPU, 64 GB RAM, 512 GB Storage") + general_i_16c64gb512ssd_v2, + + @doc("Intel, 16 vCPU, 64 GB RAM, 1024 GB Storage") + general_i_16c64gb1024ssd_v2, + + @doc("Intel, 16 vCPU, 64 GB RAM, 2048 GB Storage") + general_i_16c64gb2048ssd_v2, + + @doc("Intel, 32 vCPU, 128 GB RAM, 512 GB Storage") + general_i_32c128gb512ssd_v2, + + @doc("Intel, 32 vCPU, 128 GB RAM, 1024 GB Storage") + general_i_32c128gb1024ssd_v2, + + @doc("Intel, 32 vCPU, 128 GB RAM, 2048 GB Storage") + general_i_32c128gb2048ssd_v2, + + @doc("AMD, 8 vCPU, 32 GB RAM, 256 GB Storage") + general_a_8c32gb256ssd_v2, + + @doc("AMD, 8 vCPU, 32 GB RAM, 512 GB Storage") + general_a_8c32gb512ssd_v2, + + @doc("AMD, 8 vCPU, 32 GB RAM, 1024 GB Storage") + general_a_8c32gb1024ssd_v2, + + @doc("AMD, 8 vCPU, 32 GB RAM, 2048 GB Storage") + general_a_8c32gb2048ssd_v2, + + @doc("AMD, 16 vCPU, 64 GB RAM, 256 GB Storage") + general_a_16c64gb256ssd_v2, + + @doc("AMD, 16 vCPU, 64 GB RAM, 512 GB Storage") + general_a_16c64gb512ssd_v2, + + @doc("AMD, 16 vCPU, 64 GB RAM, 1024 GB Storage") + general_a_16c64gb1024ssd_v2, + + @doc("AMD, 16 vCPU, 64 GB RAM, 2048 GB Storage") + general_a_16c64gb2048ssd_v2, + + @doc("AMD, 32 vCPU, 128 GB RAM, 512 GB Storage") + general_a_32c128gb512ssd_v2, + + @doc("AMD, 32 vCPU, 128 GB RAM, 1024 GB Storage") + general_a_32c128gb1024ssd_v2, + + @doc("AMD, 32 vCPU, 128 GB RAM, 2048 GB Storage") + general_a_32c128gb2048ssd_v2, +} + +@doc("Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.") +@projectedName("csharp", "StopOnDisconnectStatus") +@projectedName("java", "StopOnDisconnectStatus") +@projectedName("python", "StopOnDisconnectStatus") +enum StopOnDisconnectEnableStatus { + @doc("Stop on disconnect is enabled on the Dev Box.") Enabled, + @doc("Stop on disconnect is not enabled on the Dev Box.") Disabled, +} + +@doc("Pool status indicating whether a pool is available to create Dev Boxes.") +enum PoolHealthStatus { + @doc("The pool health status is not known.") Unknown, + @doc("The pool health status waiting for health checks to run.") Pending, + @doc("The pool health status is healthy.") Healthy, + @doc("The pool health status has one or more warnings.") Warning, + @doc("The pool health status is not healthy.") Unhealthy, +} + +@doc("The supported types for a scheduled task.") +enum ScheduledType { + @doc("The scheduled task will stop impacted Dev Boxes.") StopDevBox, +} + +@doc("The frequency of task execution.") +@projectedName("csharp", "ScheduleFrequency") +@projectedName("java", "ScheduleFrequency") +enum ScheduledFrequency { + @doc("The scheduled task will run every day.") Daily, +} + +@doc("The power states of a Dev Box.") +enum PowerState { + @doc("The Dev Box power state is not known.") Unknown, + @doc("The Dev Box is running.") Running, + @doc("The Dev Box is deallocated.") Deallocated, + @doc("The Dev Box is powered off.") PoweredOff, + @doc("The Dev Box is hibernated.") Hibernated, +} + +@doc("The type of action which will take place on a Dev Box.") +enum DevBoxActionType { + @doc("The action will stop the Dev Box.") Stop, +} + +@doc("The result of the delay operation on this action.") +@projectedName("csharp", "DevBoxActionDelayStatus") +@projectedName("java", "DevBoxActionDelayStatus") +enum DevBoxActionDelayResultStatus { + @doc("The delay operation succeeded.") Succeeded, + @doc("The delay operation failed.") Failed, +} + +@doc("The Pool list result") +model PoolListResult is Azure.Core.Page; + +@doc("Project user") +@resource("users") +@parentResource(Project) +model User { + @key("userId") + @visibility("read") + @doc("The AAD object id of the user") + userId: string; +} + +@doc("A pool of Dev Boxes.") +@resource("pools") +@parentResource(Project) +@projectedName("csharp", "DevBoxPool") +@projectedName("java", "DevBoxPool") +model Pool { + @key("poolName") + @visibility("read") + @doc("Pool name") + name: string; + + @doc("Azure region where Dev Boxes in the pool are located") + location: string; + + @doc("The operating system type of Dev Boxes in this pool") + @projectedName("csharp", "OSType") + osType?: OsType; + + @doc("Hardware settings for the Dev Boxes created in this pool") + hardwareProfile?: HardwareProfile; + + @doc("Indicates whether hibernate is enabled/disabled or unknown.") + hibernateSupport?: HibernateSupport; + + @doc("Storage settings for Dev Box created in this pool") + storageProfile?: StorageProfile; + + @doc("Image settings for Dev Boxes create in this pool") + imageReference?: ImageReference; + + @doc(""" +Indicates whether owners of Dev Boxes in this pool are local administrators on +the Dev Boxes. +""") + @projectedName("csharp", "LocalAdministratorStatus") + @projectedName("java", "LocalAdministratorStatus") + localAdministrator?: LocalAdminStatus; + + @doc("Stop on disconnect configuration settings for Dev Boxes created in this pool.") + stopOnDisconnect?: StopOnDisconnectConfiguration; + + @doc(""" +Overall health status of the Pool. Indicates whether or not the Pool is +available to create Dev Boxes. +""") + healthStatus: PoolHealthStatus; +} + +#suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" +@doc("Hardware specifications for the Dev Box.") +@projectedName("csharp", "DevBoxHardwareProfile") +@projectedName("java", "DevBoxHardwareProfile") +model HardwareProfile { + @doc("The name of the SKU") + @visibility("read") + skuName?: SkuName; + + @doc("The number of vCPUs available for the Dev Box.") + @visibility("read") + @projectedName("java", "vcpus") + @projectedName("python", "vcpus") + vCPUs?: int32; + + @doc("The amount of memory available for the Dev Box.") + @visibility("read") + @projectedName("python", "memoryGb") + memoryGB?: int32; +} + +@doc("Storage settings for the Dev Box's disks") +@projectedName("csharp", "DevBoxStorageProfile") +@projectedName("java", "DevBoxStorageProfile") +model StorageProfile { + @doc("Settings for the operating system disk.") + @projectedName("csharp", "OSDisk") + osDisk?: OsDisk; +} + +@doc("Settings for the operating system disk.") +@projectedName("csharp", "OSDisk") +@projectedName("python", "OSDisk") +@projectedName("javascript", "OSDisk") +model OsDisk { + #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" + @doc("The size of the OS Disk in gigabytes.") + @visibility("read") + @projectedName("python", "diskSizeGb") + diskSizeGB?: int32; +} + +@doc("Specifies information about the image used") +@projectedName("csharp", "DevBoxImageReference") +@projectedName("java", "DevBoxImageReference") +model ImageReference { + @doc("The name of the image used.") + @visibility("read") + name?: string; + + @doc("The version of the image.") + @visibility("read") + version?: string; + + @doc("The operating system of the image.") + @visibility("read") + operatingSystem?: string; + + @doc("The operating system build number of the image.") + @visibility("read") + @projectedName("csharp", "OSBuildNumber") + osBuildNumber?: string; + + @doc("The datetime that the backing image version was published.") + @visibility("read") + publishedDate?: utcDateTime; +} + +@doc("Stop on disconnect configuration settings for Dev Boxes created in this pool.") +model StopOnDisconnectConfiguration { + @doc(""" +Indicates whether the feature to stop the devbox on disconnect once the grace +period has lapsed is enabled. +""") + status: StopOnDisconnectEnableStatus; + + @doc(""" +The specified time in minutes to wait before stopping a Dev Box once disconnect +is detected. +""") + gracePeriodMinutes?: int32; +} + +@doc("The Schedule list result") +model ScheduleListResult is Azure.Core.Page; + +@doc("A Schedule to execute action.") +@resource("schedules") +@parentResource(Pool) +@projectedName("csharp", "DevBoxSchedule") +@projectedName("java", "DevBoxSchedule") +model Schedule { + @key("scheduleName") + @visibility("read") + @doc("Display name for the Schedule") + name: string; + + @doc("Supported type this scheduled task represents.") + @projectedName("csharp", "scheduledType") + @projectedName("java", "scheduledType") + type: ScheduledType; + + @doc("The frequency of this scheduled task.") + frequency: ScheduledFrequency; + + @doc("The target time to trigger the action. The format is HH:MM.") + time: plainTime; + + @doc("The IANA timezone id at which the schedule should execute.") + timeZone: string; +} + +@doc("The Dev Box list result") +model DevBoxListResult is Azure.Core.Page; + +@doc("A Dev Box") +@resource("devboxes") +@parentResource(User) +@access(Access.public) +@usage(Usage.input | Usage.output) +model DevBox { + @key("devBoxName") + @doc("Display name for the Dev Box") + @visibility("read") + name: string; + + @doc("Name of the project this Dev Box belongs to") + @visibility("read") + projectName?: string; + + @doc("The name of the Dev Box pool this machine belongs to.") + @minLength(3) + @maxLength(63) + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @visibility("read", "create") + poolName: string; + + @doc("Indicates whether hibernate is enabled/disabled or unknown.") + @visibility("read") + hibernateSupport?: HibernateSupport; + + @doc("The current provisioning state of the Dev Box.") + @visibility("read") + provisioningState?: DevBoxProvisioningState; + + @doc(""" +The current action state of the Dev Box. This is state is based on previous +action performed by user. +""") + @visibility("read") + actionState?: string; + + @doc("The current power state of the Dev Box.") + @visibility("read") + powerState: PowerState = PowerState.Unknown; + + @doc(""" +A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. +00000000-0000-0000-0000-000000000000). +""") + @visibility("read") + uniqueId?: Azure.Core.uuid; + + @doc("Provisioning or action error details. Populated only for error states.") + @visibility("read") + error?: Azure.Core.Foundations.Error; + + @doc(""" +Azure region where this Dev Box is located. This will be the same region as the +Virtual Network it is attached to. +""") + @visibility("read") + location?: string; + + @doc("The operating system type of this Dev Box.") + @visibility("read") + @projectedName("csharp", "OSType") + osType?: OsType; + + @doc("The AAD object id of the user this Dev Box is assigned to.") + @visibility("read") + @projectedName("csharp", "userId") + @projectedName("java", "userId") + user?: Azure.Core.uuid; + + @doc("Information about the Dev Box's hardware resources") + @visibility("read") + hardwareProfile?: HardwareProfile; + + @doc("Storage settings for this Dev Box") + @visibility("read") + storageProfile?: StorageProfile; + + @doc("Information about the image used for this Dev Box") + @visibility("read") + imageReference?: ImageReference; + + @doc("Creation time of this Dev Box") + @visibility("read") + createdTime?: utcDateTime; + + @doc("Indicates whether the owner of the Dev Box is a local administrator.") + @visibility("read", "create") + @projectedName("csharp", "LocalAdministratorStatus") + @projectedName("java", "LocalAdministratorStatus") + localAdministrator?: LocalAdminStatus; +} + +@doc("Provides remote connection information for a Dev Box.") +model RemoteConnection { + @doc("URL to open a browser based RDP session.") + @projectedName("csharp", "webUri") + webUrl?: url; + + @doc("Link to open a Remote Desktop session.") + @projectedName("csharp", "rdpConnectionUri") + rdpConnectionUrl?: url; +} + +@doc("The actions list result") +model DevBoxActionsListResult is Azure.Core.Page; + +@doc("An action which will take place on a Dev Box.") +@resource("actions") +@parentResource(DevBox) +model DevBoxAction { + @key("actionName") + @visibility("read") + @doc("The name of the action.") + name: string; + + @doc("The action that will be taken.") + actionType: DevBoxActionType; + + @doc("The id of the resource which triggered this action") + sourceId: string; + + @doc("The earliest time that the action could occur (UTC).") + suspendedUntil?: utcDateTime; + + @doc("Details about the next run of this action.") + @projectedName("csharp", "nextAction") + @projectedName("java", "nextAction") + next?: DevBoxNextAction; +} + +@doc("Details about the next run of an action.") +model DevBoxNextAction { + @doc("The time the action will be triggered (UTC).") + scheduledTime: utcDateTime; +} + +@doc("The actions list result") +model DevBoxActionsDelayMultipleResult + is Azure.Core.Page; + +@doc("The action delay result") +model DevBoxActionDelayResult { + @doc("The name of the action.") + @projectedName("csharp", "actionName") + name: string; + + @doc("The result of the delay operation on this action.") + result: DevBoxActionDelayResultStatus; + + @doc("The delayed action") + action?: DevBoxAction; + + @doc("Information about the error that occurred. Only populated on error.") + error?: Azure.Core.Foundations.Error; +} diff --git a/specification/devcenter/DevCenter/DevBox/routes.tsp b/specification/devcenter/DevCenter/DevBox/routes.tsp new file mode 100644 index 000000000000..76bf90cc0027 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/routes.tsp @@ -0,0 +1,472 @@ +import "@azure-tools/typespec-azure-core"; +import "@typespec/rest"; +import "./models.tsp"; +import "../shared/routes.tsp"; + +using Azure.Core; +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenterService; + +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" +interface DevBoxesOperations { + @doc("Lists available pools") + @route("/projects/{projectName}/pools") + @get + listPools is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("An OData filter clause to apply to the operation.") + @query + filter?: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, + PoolListResult + >; + + @doc("Gets a pool") + @route("/projects/{projectName}/pools/{poolName}") + @get + getPool is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The name of a pool of Dev Boxes.") + @path + poolName: string; + }, + Pool + >; + + @doc("Lists available schedules for a pool.") + @route("/projects/{projectName}/pools/{poolName}/schedules") + @get + listSchedules is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The name of a pool of Dev Boxes.") + @path + poolName: string; + + @doc("An OData filter clause to apply to the operation.") + @query + filter?: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, + ScheduleListResult + >; + + @doc("Gets a schedule.") + @route("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") + @get + getSchedule is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The name of a pool of Dev Boxes.") + @path + poolName: string; + + @doc("The name of a schedule.") + @path + scheduleName: string; + }, + Schedule + >; + + @doc("Lists Dev Boxes in the project for a particular user.") + @route("/projects/{projectName}/users/{userId}/devboxes") + @get + listDevBoxes is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("An OData filter clause to apply to the operation.") + @query + filter?: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, + DevBoxListResult + >; + + @doc("Gets a Dev Box") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") + @get + getDevBox is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + }, + DevBox + >; + + @doc("Creates or replaces a Dev Box.") + @finalOperation(DevBoxesOperations.getDevBox) + @pollingOperation(SharedOperations.getProjectOperationStatus) + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") + @put + createDevBox is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute the operation.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + + @doc("Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator") + @body + devBox: DevBox; + }, + DevBox | { + @statusCode statusCode: 201; + + @header("Location") + location: ResourceLocation; + + @pollingLocation + @header("Operation-Location") + operationLocation: string; + + @body body?: DevBox; + } + >; + + @doc("Deletes a Dev Box.") + @pollingOperation(SharedOperations.getProjectOperationStatus) + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") + @delete + deleteDevBox is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + }, + { + @statusCode statusCode: 202; + + @header("Location") + location: string; + + @pollingLocation + @header("Operation-Location") + operationLocation: string; + + @body body: OperationStatus; + } | { + @statusCode statusCode: 204; + } + >; + + @doc("Starts a Dev Box") + @pollingOperation(SharedOperations.getProjectOperationStatus) + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start") + @post + startDevBox is Foundations.LongRunningOperation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + }, + { + @statusCode + statusCode: 202; + + @body + body: OperationStatus; + } + >; + + @doc("Stops a Dev Box") + @pollingOperation(SharedOperations.getProjectOperationStatus) + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop") + @post + stopDevBox is Foundations.LongRunningOperation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + + @doc("Optional parameter to hibernate the dev box.") + @query + hibernate?: boolean; + }, + { + @statusCode + statusCode: 202; + + @body + body: OperationStatus; + } + >; + + @doc("Restarts a Dev Box") + @pollingOperation(SharedOperations.getProjectOperationStatus) + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart") + @post + restartDevBox is Foundations.LongRunningOperation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + }, + { + @statusCode + statusCode: 202; + + @body + body: OperationStatus; + } + >; + + @doc("Gets RDP Connection info") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection") + @get + getRemoteConnection is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + }, + RemoteConnection + >; + + @doc("Lists actions on a Dev Box.") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions") + @get + listDevBoxActions is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + }, + DevBoxActionsListResult + >; + + @doc("Gets an action.") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}") + @get + getDevBoxAction is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + + @doc("The name of an action that will take place on a Dev Box.") + @path + actionName: string; + }, + DevBoxAction + >; + + @doc("Skips an occurrence of an action.") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip") + @post + skipAction is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + + @doc("The name of an action that will take place on a Dev Box.") + @path + actionName: string; + }, + void + >; + + @doc("Delays the occurrence of an action.") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay") + @post + delayAction is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + + @doc("The name of an action that will take place on a Dev Box.") + @path + actionName: string; + + @doc("The time to delay the Dev Box action or actions until.") + @query("until") + delayUntil: utcDateTime; + }, + DevBoxAction + >; + + @doc("Delays all actions.") + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay") + @post + delayAllActions is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + + @doc("The time to delay the Dev Box action or actions until.") + @query("until") + delayUntil: utcDateTime; + }, + DevBoxActionsDelayMultipleResult + >; +} + +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" +interface DevBoxesDevCenterOperations { + @doc("Lists Dev Boxes that the caller has access to in the DevCenter.") + @route("/devboxes") + @get + listAllDevBoxes is Azure.Core.Foundations.Operation< + { + @doc("An OData filter clause to apply to the operation.") + @query + filter?: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, + DevBoxListResult + >; + + @doc("Lists Dev Boxes in the Dev Center for a particular user.") + @route("/users/{userId}/devboxes") + @get + listAllDevBoxesByUser is Azure.Core.Foundations.Operation< + { + @doc("An OData filter clause to apply to the operation.") + @query + filter?: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + }, + DevBoxListResult + >; +} diff --git a/specification/devcenter/DevCenter/DevBox/tspconfig.yaml b/specification/devcenter/DevCenter/DevBox/tspconfig.yaml new file mode 100644 index 000000000000..9d02e42a8017 --- /dev/null +++ b/specification/devcenter/DevCenter/DevBox/tspconfig.yaml @@ -0,0 +1,12 @@ +emit: [ + "@azure-tools/typespec-autorest", +] +linter: + extends: + - "@azure-tools/typespec-azure-core/all" +options: + "@azure-tools/typespec-autorest": + azure-resource-provider-folder: "data-plane" + emitter-output-dir: "{project-root}/../.." + output-file: "{azure-resource-provider-folder}/Microsoft.DevCenter/{version-status}/{version}/devbox.json" + examples-directory: "examples" diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Projects_Get.json b/specification/devcenter/DevCenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/Projects_Get.json rename to specification/devcenter/DevCenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Projects_ListByDevCenter.json b/specification/devcenter/DevCenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/Projects_ListByDevCenter.json rename to specification/devcenter/DevCenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json diff --git a/specification/devcenter/DevCenter/main.tsp b/specification/devcenter/DevCenter/DevCenter/main.tsp similarity index 67% rename from specification/devcenter/DevCenter/main.tsp rename to specification/devcenter/DevCenter/DevCenter/main.tsp index 52ce754fb8be..0f6d8b544d72 100644 --- a/specification/devcenter/DevCenter/main.tsp +++ b/specification/devcenter/DevCenter/DevCenter/main.tsp @@ -1,9 +1,8 @@ import "@typespec/rest"; import "@typespec/http"; import "@azure-tools/typespec-azure-core"; -import "./devbox/routes.tsp"; -import "./devcenter/routes.tsp"; -import "./environments/routes.tsp"; +import "../service.tsp"; +import "./routes.tsp"; using Azure.Core; using TypeSpec.Versioning; diff --git a/specification/devcenter/DevCenter/DevCenter/models.tsp b/specification/devcenter/DevCenter/DevCenter/models.tsp new file mode 100644 index 000000000000..4a55a92ef695 --- /dev/null +++ b/specification/devcenter/DevCenter/DevCenter/models.tsp @@ -0,0 +1,12 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "../shared/models.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenterService; + +@doc("Results of the project list operation.") +model ProjectListResult is Azure.Core.Page; diff --git a/specification/devcenter/DevCenter/DevCenter/routes.tsp b/specification/devcenter/DevCenter/DevCenter/routes.tsp new file mode 100644 index 000000000000..154ca6aee397 --- /dev/null +++ b/specification/devcenter/DevCenter/DevCenter/routes.tsp @@ -0,0 +1,40 @@ +import "@azure-tools/typespec-azure-core"; +import "@typespec/rest"; +import "./models.tsp"; + +using Azure.Core; +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenterService; + +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" +interface DevCenterOperations { + @doc("Lists all projects.") + @route("/projects") + @get + listProjects is Azure.Core.Foundations.Operation< + { + @doc("An OData filter clause to apply to the operation.") + @query + filter?: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, + ProjectListResult + >; + + @doc("Gets a project.") + @route("/projects/{projectName}") + @get + getProject is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + }, + Project + >; +} diff --git a/specification/devcenter/DevCenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/DevCenter/tspconfig.yaml new file mode 100644 index 000000000000..04e4f0ed98c8 --- /dev/null +++ b/specification/devcenter/DevCenter/DevCenter/tspconfig.yaml @@ -0,0 +1,12 @@ +emit: [ + "@azure-tools/typespec-autorest", +] +linter: + extends: + - "@azure-tools/typespec-azure-core/all" +options: + "@azure-tools/typespec-autorest": + azure-resource-provider-folder: "data-plane" + emitter-output-dir: "{project-root}/../.." + output-file: "{azure-resource-provider-folder}/Microsoft.DevCenter/{version-status}/{version}/devcenter.json" + examples-directory: "examples" \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Environments_CreateByEnvironmentDefinition.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/Environments_CreateByEnvironmentDefinition.json rename to specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Environments_Delete.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/Environments_Delete.json rename to specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Catalogs_Get.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/Catalogs_Get.json rename to specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Environments_Get.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/Environments_Get.json rename to specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_Get.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_Get.json rename to specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Environments_ListByProject.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/Environments_ListByProject.json rename to specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Catalogs_ListByProject.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/Catalogs_ListByProject.json rename to specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_ListByProject.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_ListByProject.json rename to specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_ListByCatalog.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentDefinitions_ListByCatalog.json rename to specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentTypes_ListByProject.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentTypes_ListByProject.json rename to specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/Environments_ListByProjectByUser.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json similarity index 100% rename from specification/devcenter/DevCenter/examples/2023-04-01/Environments_ListByProjectByUser.json rename to specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json diff --git a/specification/devcenter/DevCenter/Environments/main.tsp b/specification/devcenter/DevCenter/Environments/main.tsp new file mode 100644 index 000000000000..5f87a9f6ce2e --- /dev/null +++ b/specification/devcenter/DevCenter/Environments/main.tsp @@ -0,0 +1,12 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "../service.tsp"; +import "./routes.tsp"; + +using Azure.Core; +using TypeSpec.Versioning; +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenterService; diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp new file mode 100644 index 000000000000..12f3cb595b01 --- /dev/null +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -0,0 +1,225 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "../shared/models.tsp"; + +using TypeSpec.Versioning; +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenterService; + +@doc("The type of data a parameter accepts.") +@projectedName("csharp", "EnvironmentDefinitionParameterType") +@projectedName("java", "EnvironmentDefinitionParameterType") +enum ParameterType { + @doc("The parameter accepts an array of values.") array, + @doc("The parameter accepts a boolean value.") boolean, + @doc("The parameter accepts an integer value.") integer, + @doc("The parameter accepts a number value.") number, + @doc("The parameter accepts an object value.") object, + @doc("The parameter accepts a string value.") string, +} + +@doc("Indicates whether an environment type is enabled for use in a project.") +@projectedName("csharp", "EnvironmentTypeStatus") +@projectedName("java", "EnvironmentTypeStatus") +@projectedName("python", "EnvironmentTypeStatus") +enum EnvironmentTypeEnableStatus { + @doc("The environment type is enabled for use in the project.") Enabled, + @doc("The environment type is not enabled for use in the project.") Disabled, +} + +@doc("The provisioning state of the environment.") +enum EnvironmentProvisioningState { + @doc("The environment was successfully provisioned.") + Succeeded, + + @doc("The environment failed to provision.") + Failed, + + @doc("The environment provisioning was canceled.") + Canceled, + + @doc("The environment is creating.") + Creating, + + @doc("The environment was accepted.") + Accepted, + + @doc("The environment is deleting.") + Deleting, + + @doc("The environment is updating.") + Updating, + + @doc("The environment is preparing.") + Preparing, + + @doc("The environment is running.") + Running, + + @doc("The environment is Syncing.") + Syncing, + + @doc("The environment is moving resources.") + MovingResources, + + @doc("The environment has a transient failure.") + TransientFailure, + + @doc("The environment storage provisioning failed.") + StorageProvisioningFailed, +} + +@doc("Results of the environment list operation.") +model EnvironmentListResult is Azure.Core.Page; + +@doc("Properties of an environment.") +@projectedName("csharp", "DevCenterEnvironment") +@projectedName("java", "DevCenterEnvironment") +model Environment { + ...EnvironmentUpdateProperties; + + @doc("Environment name.") + @visibility("read") + name?: string; + + @doc("Environment type.") + @visibility("read", "create") + @projectedName("csharp", "environmentTypeName") + @projectedName("java", "environmentTypeName") + environmentType: string; + + @doc("The AAD object id of the owner of this Environment.") + @visibility("read") + @projectedName("csharp", "userId") + @projectedName("java", "userId") + user?: Azure.Core.uuid; + + @doc("The provisioning state of the environment.") + @visibility("read") + provisioningState?: EnvironmentProvisioningState; + + @doc("The identifier of the resource group containing the environment's resources.") + @visibility("read") + resourceGroupId?: string; + + @doc("Name of the catalog.") + @visibility("read", "create") + catalogName: string; + + @doc("Name of the environment definition.") + @visibility("read", "create") + environmentDefinitionName: string; + + @doc("Provisioning error details. Populated only for error states.") + @visibility("read") + error?: Azure.Core.Foundations.Error; +} + +@doc(""" +Properties of an environment. These properties can be updated after the +resource has been created. +""") +model EnvironmentUpdateProperties { + @doc("Parameters object for the environment.") + parameters?: bytes; +} + +@doc("Results of the catalog list operation.") +model CatalogListResult is Azure.Core.Page; + +@doc("A catalog.") +@projectedName("csharp", "DevCenterCatalog") +model Catalog { + @doc("Name of the catalog.") + name: string; +} + +@doc("Results of the environment definition list operation.") +model EnvironmentDefinitionListResult is Azure.Core.Page; + +@doc("An environment definition.") +model EnvironmentDefinition { + @doc("The ID of the environment definition.") + id: string; + + @doc("Name of the environment definition.") + name: string; + + @doc("Name of the catalog.") + catalogName: string; + + @doc("A short description of the environment definition.") + description?: string; + + @doc("Input parameters passed to an environment.") + parameters?: EnvironmentDefinitionParameter[]; + + @doc("JSON schema defining the parameters object passed to an environment.") + parametersSchema?: bytes; + + @doc("Path to the Environment Definition entrypoint file.") + templatePath?: string; +} + +@doc("Properties of an Environment Definition parameter") +model EnvironmentDefinitionParameter { + @doc("Unique ID of the parameter") + id: string; + + @doc("Display name of the parameter") + name?: string; + + @doc("Description of the parameter") + description?: string; + + @doc("Default value of the parameter") + @projectedName("csharp", "defaultValue") + @projectedName("java", "defaultValue") + default?: bytes; + + @doc(""" +A string of one of the basic JSON types (number, integer, array, object, +boolean, string) +""") + @projectedName("csharp", "parameterType") + @projectedName("java", "parameterType") + type: ParameterType; + + @doc(""" +Whether or not this parameter is read-only. If true, default should have a +value. +""") + readOnly?: boolean; + + @doc("Whether or not this parameter is required") + required: boolean; + + @doc("An array of allowed values") + @minItems(1) + // @uniqueItems // TODO import TypeSpec.JsonSchema + allowed?: string[]; +} + +@doc("Result of the environment type list operation.") +model EnvironmentTypeListResult is Azure.Core.Page; + +@doc("Properties of an environment type.") +@projectedName("csharp", "DevCenterEnvironmentType") +@projectedName("java", "DevCenterEnvironmentType") +model EnvironmentType { + @doc("Name of the environment type") + name: string; + + @doc(""" +Id of a subscription or management group that the environment type will be +mapped to. The environment's resources will be deployed into this subscription +or management group. +""") + deploymentTargetId: string; + + @doc("Indicates whether this environment type is enabled for use in this project.") + status: EnvironmentTypeEnableStatus; +} diff --git a/specification/devcenter/DevCenter/Environments/routes.tsp b/specification/devcenter/DevCenter/Environments/routes.tsp new file mode 100644 index 000000000000..15848dce25b5 --- /dev/null +++ b/specification/devcenter/DevCenter/Environments/routes.tsp @@ -0,0 +1,245 @@ +import "@azure-tools/typespec-azure-core"; +import "@typespec/rest"; +import "./models.tsp"; +import "../shared/routes.tsp"; + +using Azure.Core; +using TypeSpec.Versioning; +using TypeSpec.Rest; +using TypeSpec.Http; + +namespace DevCenterService; + +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" +interface EnvironmentsOperations { + @doc("Lists the environments for a project.") + @route("/projects/{projectName}/environments") + @get + listAllEnvironments is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, + EnvironmentListResult + >; + + @doc("Lists the environments for a project and user.") + @route("/projects/{projectName}/users/{userId}/environments") + @get + listEnvironments is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, + EnvironmentListResult + >; + + @doc("Gets an environment") + @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") + @get + getEnvironment is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of the environment.") + @path + environmentName: string; + }, + Environment + >; + + @doc("Creates or updates an environment.") + @finalOperation(EnvironmentsOperations.getEnvironment) + @pollingOperation(SharedOperations.getProjectOperationStatus) + @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") + @put + createOrUpdateEnvironment is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of the environment.") + @path + environmentName: string; + + @doc("Represents an environment.") + @body + body: Environment; + }, + { + @statusCode + statusCode: 201; + + @pollingLocation + @header("Operation-Location") + operationLocation: string; + + @body body: Environment; + } + >; + + // FIXME + @doc("Deletes an environment and all its associated resources") + @pollingOperation(SharedOperations.getProjectOperationStatus) + @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") + @delete + deleteEnvironment( + ...Foundations.ApiVersionParameter, + + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string, + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string, + + @doc("The name of the environment.") + @path + environmentName: string, + ): { + @statusCode + statusCode: 202; + + @body body: OperationStatus; + + @header("Location") + location: string; + + @pollingLocation + @header("Operation-Location") + operationLocation: string; + } | { + @statusCode + statusCode: 204; + } | Azure.Core.Foundations.ErrorResponse; + + @doc("Lists all of the catalogs available for a project.") + @route("/projects/{projectName}/catalogs") + @get + listCatalogs is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, + CatalogListResult + >; + + @doc("Gets the specified catalog within the project") + @route("/projects/{projectName}/catalogs/{catalogName}") + @get + getCatalog is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The name of the catalog") + @path + catalogName: string; + }, + Catalog + >; + + @doc("Lists all environment definitions available for a project.") + @route("/projects/{projectName}/environmentDefinitions") + @get + listEnvironmentDefinitions is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, + EnvironmentDefinitionListResult + >; + + @doc("Lists all environment definitions available within a catalog.") + @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions") + @get + listEnvironmentDefinitionsByCatalog is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The name of the catalog") + @path + catalogName: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, + EnvironmentDefinitionListResult + >; + + @doc("Get an environment definition from a catalog.") + @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}") + @get + getEnvironmentDefinition is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The name of the catalog") + @path + catalogName: string; + + @doc("The name of the environment definition") + @path + definitionName: string; + }, + EnvironmentDefinition + >; + + @doc("Lists all environment types configured for a project.") + @route("/projects/{projectName}/environmentTypes") + @get + listEnvironmentTypes is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, + EnvironmentTypeListResult + >; +} diff --git a/specification/devcenter/DevCenter/Environments/tspconfig.yaml b/specification/devcenter/DevCenter/Environments/tspconfig.yaml new file mode 100644 index 000000000000..0431ef35294e --- /dev/null +++ b/specification/devcenter/DevCenter/Environments/tspconfig.yaml @@ -0,0 +1,12 @@ +emit: [ + "@azure-tools/typespec-autorest", +] +linter: + extends: + - "@azure-tools/typespec-azure-core/all" +options: + "@azure-tools/typespec-autorest": + azure-resource-provider-folder: "data-plane" + emitter-output-dir: "{project-root}/../.." + output-file: "{azure-resource-provider-folder}/Microsoft.DevCenter/{version-status}/{version}/environments.json" + examples-directory: "examples" \ No newline at end of file diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_DelayMultipleWithError.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_DelayMultipleWithError.json deleted file mode 100644 index 231f3de8c47a..000000000000 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxActions_DelayMultipleWithError.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "title": "Delays all actions with error.", - "operationId": "DevBoxesOperations_DelayAllActions_WithError", - "parameters": { - "api-version": "2023-04-01", - "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", - "projectName": "myProject", - "userId": "me", - "devBoxName": "myDevBox", - "until": "2022-09-30T17:00:00Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "schedule-default", - "result": "Failed", - "error": { - "code": "DelayOverMaxTime", - "message": "The schedule cannot be delayed more than 8 hours from the original invocation time." - } - }, - { - "name": "idle-hibernateondisconnect", - "result": "Succeeded", - "action": { - "name": "idle-hibernateondisconnect", - "actionType": "Stop", - "sourceId": "/projects/myProject/pools/myPool", - "suspendedUntil": "2022-09-30T17:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index 38836a4f3b9a..6f1edeaa8673 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -1,18 +1,10 @@ parameters: service-dir: default: "sdk/devcenter" -emit: [ - "@azure-tools/typespec-autorest", -] linter: extends: - "@azure-tools/typespec-azure-core/all" options: - "@azure-tools/typespec-autorest": - azure-resource-provider-folder: "data-plane" - emitter-output-dir: "{project-root}/.." - output-file: "{azure-resource-provider-folder}/Microsoft.DevCenter/{version-status}/{version}/openapi.json" - examples-directory: "examples" "@azure-tools/typespec-csharp": namespace : "Azure.Developer.DevCenter" clear-output-folder : true @@ -35,4 +27,4 @@ options: version: "1.0.0-beta.3" "@azure-tools/typespec-java": package-dir: "azure-developer-devcenter" - namespace: com.azure.developer.devcenter + namespace: com.azure.developer.devcenter \ No newline at end of file diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json index 4dd1fb7a4b69..4900b8808d05 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json @@ -1,1560 +1,2136 @@ { "swagger": "2.0", "info": { - "version": "2023-04-01", "title": "DevCenter", - "description": "DevBox API." + "version": "2023-04-01", + "description": "DevCenter service", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] }, + "schemes": [ + "https" + ], "x-ms-parameterized-host": { "hostTemplate": "{endpoint}", "useSchemePrefix": false, "parameters": [ { - "$ref": "devcenter.json#/parameters/EndpointParameter" + "name": "endpoint", + "in": "path", + "description": "The DevCenter-specific URI to operate on.", + "required": true, + "type": "string" } ] }, - "schemes": [ - "https" - ], - "consumes": [ + "produces": [ "application/json" ], - "produces": [ + "consumes": [ "application/json" ], "security": [ { - "AADToken": [ - "user_impersonation" + "OAuth2Auth": [ + "https://devcenter.azure.com/.default" ] } ], "securityDefinitions": { - "AADToken": { + "OAuth2Auth": { "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": { - "user_impersonation": "impersonate your user account" + "https://devcenter.azure.com/.default": "" } } }, + "tags": [], "paths": { - "/projects/{projectName}/pools": { + "/devboxes": { "get": { - "tags": [ - "Pools" - ], + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", + "description": "Lists Dev Boxes that the caller has access to in the DevCenter.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "devcenter.json#/parameters/TopParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/FilterParameter" + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": false, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" } ], - "description": "Lists available pools", - "operationId": "DevBoxes_ListPools", "responses": { "200": { - "description": "OK", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/PoolListResult" + "$ref": "#/definitions/PagedDevBox" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, "x-ms-examples": { - "DevBoxes_ListPools": { - "$ref": "./examples/Pools_List.json" + "Lists Dev Boxes that the caller has access to in the DevCenter.": { + "$ref": "./examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Pool" + } } }, - "/projects/{projectName}/pools/{poolName}": { + "/projects/{projectName}/operationstatuses/{operationId}": { "get": { - "tags": [ - "Pools" - ], + "operationId": "SharedOperations_GetProjectOperationStatus", + "description": "Get the status of an operation.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/PoolNameParameter" + "name": "operationId", + "in": "path", + "description": "Operation Id", + "required": true, + "type": "string" } ], - "description": "Gets a pool", - "operationId": "DevBoxes_GetPool", "responses": { "200": { - "description": "OK", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/Pool" + "$ref": "#/definitions/OperationStatus" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } - }, - "x-ms-examples": { - "DevBoxes_GetPool": { - "$ref": "./examples/Pools_Get.json" - } } } }, - "/projects/{projectName}/pools/{poolName}/schedules": { + "/projects/{projectName}/pools": { "get": { - "tags": [ - "Schedules" - ], + "operationId": "DevBoxesOperations_ListPools", + "description": "Lists available pools", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "devcenter.json#/parameters/TopParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/FilterParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": false, + "type": "string" }, { - "$ref": "#/parameters/PoolNameParameter" + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" } ], - "description": "Lists available schedules for a pool.", - "operationId": "DevBoxes_ListSchedulesByPool", "responses": { "200": { - "description": "OK", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/ScheduleListResult" + "$ref": "#/definitions/PagedPool" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, "x-ms-examples": { - "DevBoxes_ListSchedulesByPool": { - "$ref": "./examples/Schedules_List.json" + "Lists available pools": { + "$ref": "./examples/DevBoxesOperations_ListPools.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/Schedule" + } } }, - "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { + "/projects/{projectName}/pools/{poolName}": { "get": { - "tags": [ - "Schedules" - ], + "operationId": "DevBoxesOperations_GetPool", + "description": "Gets a pool", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/PoolNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/ScheduleNameParameter" + "name": "poolName", + "in": "path", + "description": "The name of a pool of Dev Boxes.", + "required": true, + "type": "string" } ], - "description": "Gets a schedule.", - "operationId": "DevBoxes_GetScheduleByPool", "responses": { "200": { - "description": "OK", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/Schedule" + "$ref": "#/definitions/Pool" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, "x-ms-examples": { - "DevBoxes_GetScheduleByPool": { - "$ref": "./examples/Schedules_Get.json" + "Gets a pool": { + "$ref": "./examples/DevBoxesOperations_GetPool.json" } } } }, - "/devboxes": { + "/projects/{projectName}/pools/{poolName}/schedules": { "get": { - "tags": [ - "Dev Boxes" - ], + "operationId": "DevBoxesOperations_ListSchedules", + "description": "Lists available schedules for a pool.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/FilterParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "poolName", + "in": "path", + "description": "The name of a pool of Dev Boxes.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/TopParameter" + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": false, + "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" } ], - "description": "Lists Dev Boxes that the caller has access to in the DevCenter.", - "operationId": "DevCenter_ListAllDevBoxes", "responses": { "200": { - "description": "OK", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/DevBoxListResult" + "$ref": "#/definitions/PagedSchedule" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, "x-ms-examples": { - "DevCenter_ListAllDevBoxes": { - "$ref": "./examples/DevBoxes_List.json" + "Lists available schedules for a pool.": { + "$ref": "./examples/DevBoxesOperations_ListSchedules.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/DevBox" + } } }, - "/users/{userId}/devboxes": { + "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { "get": { - "tags": [ - "Dev Boxes" - ], + "operationId": "DevBoxesOperations_GetSchedule", + "description": "Gets a schedule.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/FilterParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/TopParameter" + "name": "poolName", + "in": "path", + "description": "The name of a pool of Dev Boxes.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "scheduleName", + "in": "path", + "description": "The name of a schedule.", + "required": true, + "type": "string" } ], - "description": "Lists Dev Boxes in the Dev Center for a particular user.", - "operationId": "DevCenter_ListAllDevBoxesByUser", "responses": { "200": { - "description": "OK", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/DevBoxListResult" + "$ref": "#/definitions/Schedule" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, "x-ms-examples": { - "DevCenter_ListAllDevBoxesByUser": { - "$ref": "./examples/DevBoxes_ListByUserByProject.json" + "Gets a schedule.": { + "$ref": "./examples/DevBoxesOperations_GetSchedule.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/DevBox" + } } }, "/projects/{projectName}/users/{userId}/devboxes": { "get": { - "tags": [ - "Dev Boxes" - ], + "operationId": "DevBoxesOperations_ListDevBoxes", + "description": "Lists Dev Boxes in the project for a particular user.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/FilterParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/TopParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": false, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" } ], - "description": "Lists Dev Boxes in the project for a particular user.", - "operationId": "DevBoxes_ListDevBoxesByUser", "responses": { "200": { - "description": "OK", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/DevBoxListResult" + "$ref": "#/definitions/PagedDevBox" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, "x-ms-examples": { - "DevBoxes_ListDevBoxesByUser": { - "$ref": "./examples/DevBoxes_ListByUserByProject.json" + "Lists Dev Boxes in the project for a particular user.": { + "$ref": "./examples/DevBoxesOperations_ListDevBoxes.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/DevBox" + } } }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}": { "get": { - "tags": [ - "Dev Boxes" - ], + "operationId": "DevBoxesOperations_GetDevBox", + "description": "Gets a Dev Box", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/DevBoxNameParameter" + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" } ], - "description": "Gets a Dev Box", - "operationId": "DevBoxes_GetDevBoxByUser", "responses": { "200": { - "description": "OK", + "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/DevBox" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, "x-ms-examples": { - "DevBoxes_GetDevBoxByUser": { - "$ref": "./examples/DevBoxes_Get.json" + "Gets a Dev Box": { + "$ref": "./examples/DevBoxesOperations_GetDevBox.json" } } }, "put": { - "tags": [ - "Dev Boxes" - ], + "operationId": "DevBoxesOperations_CreateDevBox", + "description": "Creates or replaces a Dev Box.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute the operation.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/DevBoxNameParameter" + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" }, { - "name": "body", + "name": "devBox", "in": "body", - "description": "Represents a environment.", + "description": "Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator", "required": true, "schema": { "$ref": "#/definitions/DevBox" } } ], - "description": "Creates or replaces a Dev Box.", - "operationId": "DevBoxes_CreateDevBox", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "original-uri" - }, "responses": { "200": { - "description": "OK", + "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/DevBox" } }, "201": { - "description": "OK", + "description": "The request has succeeded and a new resource has been created as a result.", "schema": { "$ref": "#/definitions/DevBox" + }, + "headers": { + "Location": { + "type": "string", + "format": "uri", + "description": "The location of an instance of DevBox" + }, + "Operation-Location": { + "type": "string" + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, "x-ms-examples": { - "DevBoxes_CreateDevBox": { - "$ref": "./examples/DevBoxes_Create.json" + "Creates or replaces a Dev Box.": { + "$ref": "./examples/DevBoxesOperations_CreateDevBox.json" } - } + }, + "x-ms-long-running-operation": true }, "delete": { - "tags": [ - "Dev Boxes" - ], + "operationId": "DevBoxesOperations_DeleteDevBox", + "description": "Deletes a Dev Box.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/DevBoxNameParameter" + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" } ], - "description": "Deletes a Dev Box.", - "operationId": "DevBoxes_DeleteDevBox", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "operation-location" - }, "responses": { "202": { - "description": "The request was accepted.", + "description": "The request has been accepted for processing, but processing has not yet completed.", "schema": { - "$ref": "devcenter.json#/definitions/OperationStatus" + "$ref": "#/definitions/OperationStatus" }, "headers": { + "Location": { + "type": "string" + }, "Operation-Location": { - "description": "URL to query for status of the operation.", "type": "string" } } }, "204": { - "description": "Resource does not exist." + "description": "There is no content to send for this request, but the headers may be useful. " }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, "x-ms-examples": { - "DevBoxes_DeleteDevBox": { - "$ref": "./examples/DevBoxes_Delete.json" + "Deletes a Dev Box.": { + "$ref": "./examples/DevBoxesOperations_DeleteDevBox.json" } - } + }, + "x-ms-long-running-operation": true } }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start": { "post": { - "tags": [ - "Dev Boxes" - ], + "operationId": "DevBoxesOperations_StartDevBox", + "description": "Starts a Dev Box", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/DevBoxNameParameter" + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" } ], - "description": "Starts a Dev Box", - "operationId": "DevBoxes_StartDevBox", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "operation-location" - }, "responses": { "202": { - "description": "The request was accepted.", + "description": "The request has been accepted for processing, but processing has not yet completed.", "schema": { - "$ref": "devcenter.json#/definitions/OperationStatus" + "$ref": "#/definitions/OperationStatus" }, "headers": { "Operation-Location": { - "description": "URL to query for status of the operation.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, "x-ms-examples": { - "DevBoxes_StartDevBox": { - "$ref": "./examples/DevBoxes_Start.json" + "Starts a Dev Box": { + "$ref": "./examples/DevBoxesOperations_StartDevBox.json" } - } + }, + "x-ms-long-running-operation": true } }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop": { "post": { - "tags": [ - "Dev Boxes" - ], + "operationId": "DevBoxesOperations_StopDevBox", + "description": "Stops a Dev Box", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/DevBoxNameParameter" + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/HibernateParameter" + "name": "hibernate", + "in": "query", + "description": "Optional parameter to hibernate the dev box.", + "required": false, + "type": "boolean" } ], - "description": "Stops a Dev Box", - "operationId": "DevBoxes_StopDevBox", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "operation-location" - }, "responses": { "202": { - "description": "The request was accepted.", + "description": "The request has been accepted for processing, but processing has not yet completed.", "schema": { - "$ref": "devcenter.json#/definitions/OperationStatus" + "$ref": "#/definitions/OperationStatus" }, "headers": { "Operation-Location": { - "description": "URL to query for status of the operation.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, "x-ms-examples": { - "DevBoxes_StopDevBox": { - "$ref": "./examples/DevBoxes_Stop.json" + "Stops a Dev Box": { + "$ref": "./examples/DevBoxesOperations_StopDevBox.json" } - } + }, + "x-ms-long-running-operation": true } }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart": { "post": { - "tags": [ - "Dev Boxes" - ], + "operationId": "DevBoxesOperations_RestartDevBox", + "description": "Restarts a Dev Box", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/DevBoxNameParameter" + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" } ], - "description": "Restarts a Dev Box", - "operationId": "DevBoxes_RestartDevBox", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "operation-location" - }, "responses": { "202": { - "description": "The request was accepted.", + "description": "The request has been accepted for processing, but processing has not yet completed.", "schema": { - "$ref": "devcenter.json#/definitions/OperationStatus" + "$ref": "#/definitions/OperationStatus" }, "headers": { "Operation-Location": { - "description": "URL to query for status of the operation.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, "x-ms-examples": { - "DevBoxes_StartDevBox": { - "$ref": "./examples/DevBoxes_Restart.json" - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection": { - "get": { - "tags": [ - "Dev Boxes" - ], - "parameters": [ - { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" - }, - { - "$ref": "devcenter.json#/parameters/UserIdParameter" - }, - { - "$ref": "#/parameters/DevBoxNameParameter" - } - ], - "description": "Gets RDP Connection info", - "operationId": "DevBoxes_GetRemoteConnection", - "responses": { - "200": { - "description": "The request completed successfully.", - "schema": { - "$ref": "#/definitions/RemoteConnection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "devcenter.json#/definitions/CloudError" - }, - "headers": { - "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" - } - } + "Restarts a Dev Box": { + "$ref": "./examples/DevBoxesOperations_RestartDevBox.json" } }, - "x-ms-examples": { - "DevBoxes_GetRemoteConnection": { - "$ref": "./examples/DevBoxes_GetRemoteConnection.json" - } - } + "x-ms-long-running-operation": true } }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions": { "get": { - "tags": [ - "DevBoxActions" - ], + "operationId": "DevBoxesOperations_ListDevBoxActions", + "description": "Lists actions on a Dev Box.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/DevBoxNameParameter" + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" } ], - "description": "Lists actions on a Dev Box.", - "operationId": "DevBoxes_ListActions", "responses": { "200": { - "description": "OK", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/DevBoxActionsListResult" + "$ref": "#/definitions/PagedDevBoxAction" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, "x-ms-examples": { - "DevBoxes_ListActions": { - "$ref": "./examples/DevBoxActions_List.json" + "Lists actions on a Dev Box.": { + "$ref": "./examples/DevBoxesOperations_ListDevBoxActions.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/DevBoxAction" + } } }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}": { "get": { - "tags": [ - "DevBoxActions" - ], + "operationId": "DevBoxesOperations_GetDevBoxAction", + "description": "Gets an action.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/DevBoxNameParameter" + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/DevBoxActionNameParameter" + "name": "actionName", + "in": "path", + "description": "The name of an action that will take place on a Dev Box.", + "required": true, + "type": "string" } ], - "description": "Gets an action.", - "operationId": "DevBoxes_GetAction", "responses": { "200": { - "description": "OK", + "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/DevBoxAction" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, "x-ms-examples": { - "DevBoxes_GetAction": { - "$ref": "./examples/DevBoxActions_Get.json" + "Gets an action.": { + "$ref": "./examples/DevBoxesOperations_GetDevBoxAction.json" } } } }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip": { "post": { - "tags": [ - "DevBoxActions" - ], + "operationId": "DevBoxesOperations_SkipAction", + "description": "Skips an occurrence of an action.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/DevBoxNameParameter" + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/DevBoxActionNameParameter" + "name": "actionName", + "in": "path", + "description": "The name of an action that will take place on a Dev Box.", + "required": true, + "type": "string" } ], - "description": "Skips an occurrence of an action.", - "operationId": "DevBoxes_SkipAction", "responses": { "204": { - "description": "No content" + "description": "There is no content to send for this request, but the headers may be useful. " }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, "x-ms-examples": { - "DevBoxes_SkipAction": { - "$ref": "./examples/DevBoxActions_Skip.json" + "Skips an occurrence of an action.": { + "$ref": "./examples/DevBoxesOperations_SkipAction.json" } } } }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay": { "post": { - "tags": [ - "DevBoxActions" - ], + "operationId": "DevBoxesOperations_DelayAction", + "description": "Delays the occurrence of an action.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/DevBoxNameParameter" + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/DevBoxActionNameParameter" + "name": "actionName", + "in": "path", + "description": "The name of an action that will take place on a Dev Box.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/DevBoxActionDelayUntilParameter" + "name": "until", + "in": "query", + "description": "The time to delay the Dev Box action or actions until.", + "required": true, + "type": "string", + "format": "date-time", + "x-ms-client-name": "delayUntil" } ], - "description": "Delays the occurrence of an action.", - "operationId": "DevBoxes_DelayAction", "responses": { "200": { - "description": "OK", + "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/DevBoxAction" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, "x-ms-examples": { - "DevBoxes_DelayAction": { - "$ref": "./examples/DevBoxActions_Delay.json" + "Delays the occurrence of an action.": { + "$ref": "./examples/DevBoxesOperations_DelayAction.json" } } } }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay": { "post": { - "tags": [ - "DevBoxActions" - ], + "operationId": "DevBoxesOperations_DelayAllActions", + "description": "Delays all actions.", "parameters": [ { - "$ref": "devcenter.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "devcenter.json#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "$ref": "devcenter.json#/parameters/UserIdParameter" + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/DevBoxNameParameter" + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/DevBoxActionDelayUntilParameter" + "name": "until", + "in": "query", + "description": "The time to delay the Dev Box action or actions until.", + "required": true, + "type": "string", + "format": "date-time", + "x-ms-client-name": "delayUntil" } ], - "description": "Delays all actions.", - "operationId": "DevBoxes_DelayActions", "responses": { "200": { - "description": "OK", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/DevBoxActionsDelayMultipleResult" + "$ref": "#/definitions/PagedDevBoxActionDelayResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "devcenter.json#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" }, "headers": { "x-ms-error-code": { - "description": "The error code for specific error that occurred.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } }, "x-ms-examples": { - "DevBoxes_DelayActions": { - "$ref": "./examples/DevBoxActions_DelayMultiple.json" - }, - "DevBoxes_DelayActionsWithError": { - "$ref": "./examples/DevBoxActions_DelayMultipleWithError.json" + "Delays all actions.": { + "$ref": "./examples/DevBoxesOperations_DelayAllActions.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/DevBoxActionDelayResult" - } - } - }, - "definitions": { - "PoolListResult": { - "type": "object", - "description": "The Pool list result", - "properties": { - "value": { - "description": "Current page of results", - "type": "array", - "items": { - "$ref": "#/definitions/Pool" - } - }, - "nextLink": { - "type": "string", - "description": "The URL to get the next set of results." } - }, - "required": [ - "value" - ] - }, - "Pool": { - "type": "object", - "description": "A pool of Dev Boxes.", - "properties": { - "name": { - "type": "string", - "description": "Pool name" - }, - "location": { - "description": "Azure region where Dev Boxes in the pool are located", - "type": "string" - }, - "osType": { - "description": "The operating system type of Dev Boxes in this pool", - "$ref": "#/definitions/OsType" - }, - "hardwareProfile": { - "description": "Hardware settings for the Dev Boxes created in this pool", - "$ref": "#/definitions/HardwareProfile" - }, - "hibernateSupport": { - "description": "Indicates whether hibernate is enabled/disabled or unknown.", - "$ref": "#/definitions/HibernateSupport" - }, - "storageProfile": { - "description": "Storage settings for Dev Box created in this pool", - "$ref": "#/definitions/StorageProfile" - }, - "imageReference": { - "description": "Image settings for Dev Boxes create in this pool", - "$ref": "#/definitions/ImageReference" - }, - "localAdministrator": { - "description": "Indicates whether owners of Dev Boxes in this pool are local administrators on the Dev Boxes.", - "$ref": "#/definitions/LocalAdminStatus" - }, - "stopOnDisconnect": { - "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", - "$ref": "#/definitions/StopOnDisconnectConfiguration" - }, - "healthStatus": { - "description": "Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes.", - "$ref": "#/definitions/PoolHealthStatus" - } - }, - "required": [ - "name", - "location", - "healthStatus" - ] + } }, - "PoolHealthStatus": { - "description": "Pool status indicating whether a pool is available to create Dev Boxes.", - "enum": [ - "Unknown", - "Pending", - "Healthy", - "Warning", - "Unhealthy" - ], - "type": "string", - "x-ms-enum": { - "name": "PoolHealthStatus", - "modelAsString": true, - "values": [ + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection": { + "get": { + "operationId": "DevBoxesOperations_GetRemoteConnection", + "description": "Gets RDP Connection info", + "parameters": [ { - "value": "Unknown", - "description": "The pool health status is not known." + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "value": "Pending", - "description": "The pool health status waiting for health checks to run." + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" }, { - "value": "Healthy", - "description": "The pool health status is healthy." + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" }, { - "value": "Warning", - "description": "The pool health status has one or more warnings." + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/RemoteConnection" + } }, - { - "value": "Unhealthy", - "description": "The pool health status is not healthy." + "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": { + "Gets RDP Connection info": { + "$ref": "./examples/DevBoxesOperations_GetRemoteConnection.json" + } + } } }, - "HibernateSupport": { - "description": "Indicates whether hibernate is supported and enabled, disabled, or unsupported by the operating system. Unknown hibernate support is represented as null.", - "enum": [ - "Enabled", - "Disabled", - "OsUnsupported" - ], - "type": "string", - "x-ms-enum": { - "name": "HibernateSupport", - "modelAsString": true, - "values": [ + "/users/{userId}/devboxes": { + "get": { + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "description": "Lists Dev Boxes in the Dev Center for a particular user.", + "parameters": [ { - "value": "Enabled", - "description": "Hibernate is enabled." + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "value": "Disabled", - "description": "Hibernate is not enabled." + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": false, + "type": "string" }, { - "value": "OsUnsupported", - "description": "Hibernate is not supported by the operating system." - } - ] - } - }, - "LocalAdminStatus": { - "description": "Indicates whether owners of Dev Boxes in a pool are local administrators on the Dev Boxes.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "LocalAdminStatus", - "modelAsString": true, - "values": [ - { - "value": "Enabled", - "description": "Owners of Dev Boxes in the pool are local administrators on the Dev Boxes." + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" }, { - "value": "Disabled", - "description": "Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes." + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" } - ] + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBox" + } + }, + "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": { + "Lists Dev Boxes in the Dev Center for a particular user.": { + "$ref": "./examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } } - }, - "StopOnDisconnectEnableStatus": { - "description": "Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.", + } + }, + "definitions": { + "APIVersions": { + "type": "string", + "description": "DevCenter API versions", "enum": [ - "Enabled", - "Disabled" + "2023-04-01" ], - "type": "string", "x-ms-enum": { - "name": "StopOnDisconnectEnableStatus", + "name": "APIVersions", "modelAsString": true, "values": [ { - "value": "Enabled", - "description": "Stop on disconnect is enabled on the Dev Box." - }, - { - "value": "Disabled", - "description": "Stop on disconnect is not enabled on the Dev Box." + "name": "v2023_04_01", + "value": "2023-04-01", + "description": "The 2023-04-01 service API version" } ] } }, - "ScheduleListResult": { + "Azure.Core.Foundations.Error": { "type": "object", - "description": "The Schedule list result", + "description": "The error object.", "properties": { - "value": { - "description": "Current page of results", + "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/Schedule" - } + "$ref": "#/definitions/Azure.Core.Foundations.Error" + }, + "x-ms-identifiers": [] }, - "nextLink": { + "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": "The URL to get the next set of results." + "description": "One of a server-defined set of error codes." + }, + "innererror": { + "$ref": "#/definitions/Azure.Core.Foundations.InnerError", + "description": "Inner error." + } + } + }, + "Azure.Core.uuid": { + "type": "string", + "format": "uuid", + "description": "Universally Unique Identifier" + }, + "DevBox": { + "type": "object", + "description": "A Dev Box", + "properties": { + "name": { + "type": "string", + "description": "Display name for the Dev Box", + "readOnly": true + }, + "projectName": { + "type": "string", + "description": "Name of the project this Dev Box belongs to", + "readOnly": true + }, + "poolName": { + "type": "string", + "description": "The name of the Dev Box pool this machine belongs to.", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "hibernateSupport": { + "$ref": "#/definitions/HibernateSupport", + "description": "Indicates whether hibernate is enabled/disabled or unknown.", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/DevBoxProvisioningState", + "description": "The current provisioning state of the Dev Box.", + "readOnly": true + }, + "actionState": { + "type": "string", + "description": "The current action state of the Dev Box. This is state is based on previous\naction performed by user.", + "readOnly": true + }, + "powerState": { + "$ref": "#/definitions/PowerState", + "description": "The current power state of the Dev Box.", + "default": "Unknown", + "readOnly": true + }, + "uniqueId": { + "$ref": "#/definitions/Azure.Core.uuid", + "description": "A unique identifier for the Dev Box. This is a GUID-formatted string (e.g.\n00000000-0000-0000-0000-000000000000).", + "readOnly": true + }, + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "Provisioning or action error details. Populated only for error states.", + "readOnly": true + }, + "location": { + "type": "string", + "description": "Azure region where this Dev Box is located. This will be the same region as the\nVirtual Network it is attached to.", + "readOnly": true + }, + "osType": { + "$ref": "#/definitions/OsType", + "description": "The operating system type of this Dev Box.", + "readOnly": true + }, + "user": { + "$ref": "#/definitions/Azure.Core.uuid", + "description": "The AAD object id of the user this Dev Box is assigned to.", + "readOnly": true + }, + "hardwareProfile": { + "$ref": "#/definitions/HardwareProfile", + "description": "Information about the Dev Box's hardware resources", + "readOnly": true + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage settings for this Dev Box", + "readOnly": true + }, + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Information about the image used for this Dev Box", + "readOnly": true + }, + "createdTime": { + "type": "string", + "format": "date-time", + "description": "Creation time of this Dev Box", + "readOnly": true + }, + "localAdministrator": { + "$ref": "#/definitions/LocalAdminStatus", + "description": "Indicates whether the owner of the Dev Box is a local administrator.", + "x-ms-mutability": [ + "read", + "create" + ] } }, "required": [ - "value" + "name", + "poolName", + "powerState" ] }, - "Schedule": { + "DevBoxAction": { "type": "object", - "description": "A Schedule to execute action.", + "description": "An action which will take place on a Dev Box.", "properties": { "name": { - "description": "Display name for the Schedule", - "type": "string" + "type": "string", + "description": "The name of the action.", + "readOnly": true }, - "type": { - "description": "Supported type this scheduled task represents.", - "$ref": "#/definitions/ScheduledType" + "actionType": { + "$ref": "#/definitions/DevBoxActionType", + "description": "The action that will be taken." }, - "frequency": { - "description": "The frequency of this scheduled task.", - "$ref": "#/definitions/ScheduledFrequency" + "sourceId": { + "type": "string", + "description": "The id of the resource which triggered this action" }, - "time": { - "description": "The target time to trigger the action. The format is HH:MM.", - "type": "string" + "suspendedUntil": { + "type": "string", + "format": "date-time", + "description": "The earliest time that the action could occur (UTC)." }, - "timeZone": { - "description": "The IANA timezone id at which the schedule should execute.", - "type": "string" + "next": { + "$ref": "#/definitions/DevBoxNextAction", + "description": "Details about the next run of this action." } }, "required": [ "name", - "type", - "frequency", - "time", - "timeZone" + "actionType", + "sourceId" ] }, - "ScheduledType": { - "description": "The supported types for a scheduled task.", + "DevBoxActionDelayResult": { + "type": "object", + "description": "The action delay result", + "properties": { + "name": { + "type": "string", + "description": "The name of the action." + }, + "result": { + "$ref": "#/definitions/DevBoxActionDelayResultStatus", + "description": "The result of the delay operation on this action." + }, + "action": { + "$ref": "#/definitions/DevBoxAction", + "description": "The delayed action" + }, + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "Information about the error that occurred. Only populated on error." + } + }, + "required": [ + "name", + "result" + ] + }, + "DevBoxActionDelayResultStatus": { + "type": "string", + "description": "The result of the delay operation on this action.", "enum": [ - "StopDevBox" + "Succeeded", + "Failed" ], - "type": "string", "x-ms-enum": { - "name": "ScheduledType", + "name": "DevBoxActionDelayResultStatus", "modelAsString": true, "values": [ { - "value": "StopDevBox", - "description": "The scheduled task will stop impacted Dev Boxes." + "name": "Succeeded", + "value": "Succeeded", + "description": "The delay operation succeeded." + }, + { + "name": "Failed", + "value": "Failed", + "description": "The delay operation failed." } ] } }, - "ScheduledFrequency": { - "description": "The frequency of task execution.", + "DevBoxActionType": { + "type": "string", + "description": "The type of action which will take place on a Dev Box.", "enum": [ - "Daily" + "Stop" ], - "type": "string", "x-ms-enum": { - "name": "ScheduledFrequency", + "name": "DevBoxActionType", "modelAsString": true, "values": [ { - "value": "Daily", - "description": "The scheduled task will run every day." + "name": "Stop", + "value": "Stop", + "description": "The action will stop the Dev Box." } ] } }, - "DevBoxListResult": { + "DevBoxNextAction": { "type": "object", - "description": "The Dev Box list result", + "description": "Details about the next run of an action.", "properties": { - "value": { - "description": "The list of DevBox Dev Boxes", - "type": "array", - "items": { - "$ref": "#/definitions/DevBox" - } - }, - "nextLink": { + "scheduledTime": { "type": "string", - "description": "The URL to get the next set of results." + "format": "date-time", + "description": "The time the action will be triggered (UTC)." } }, "required": [ - "value" + "scheduledTime" ] }, - "DevBox": { + "DevBoxProvisioningState": { + "type": "string", + "description": "Indicates the provisioning state of the Dev Box.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Creating", + "Deleting", + "Updating", + "Starting", + "Stopping", + "Provisioning", + "ProvisionedWithWarning", + "InGracePeriod", + "NotProvisioned" + ], + "x-ms-enum": { + "name": "DevBoxProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Dev Box was successfully provisioned" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Dev Box failed to provision" + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Dev Box provision was canceled" + }, + { + "name": "Creating", + "value": "Creating", + "description": "Dev Box is being created" + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "Dev Box is being deleted" + }, + { + "name": "Updating", + "value": "Updating", + "description": "Dev Box is updating" + }, + { + "name": "Starting", + "value": "Starting", + "description": "Dev Box is starting" + }, + { + "name": "Stopping", + "value": "Stopping", + "description": "Dev Box is stopping" + }, + { + "name": "Provisioning", + "value": "Provisioning", + "description": "Dev Box is provisioning" + }, + { + "name": "ProvisionedWithWarning", + "value": "ProvisionedWithWarning", + "description": "Dev Box was provisioned with warning" + }, + { + "name": "InGracePeriod", + "value": "InGracePeriod", + "description": "Dev Box is in grace period" + }, + { + "name": "NotProvisioned", + "value": "NotProvisioned", + "description": "Dev Box is not provisioned" + } + ] + } + }, + "HardwareProfile": { "type": "object", - "description": "A Dev Box", + "description": "Hardware specifications for the Dev Box.", "properties": { - "name": { - "description": "Display name for the Dev Box", - "type": "string", + "skuName": { + "$ref": "#/definitions/SkuName", + "description": "The name of the SKU", "readOnly": true }, - "projectName": { - "description": "Name of the project this Dev Box belongs to", - "type": "string", + "vCPUs": { + "type": "integer", + "format": "int32", + "description": "The number of vCPUs available for the Dev Box.", "readOnly": true }, - "poolName": { - "description": "The name of the Dev Box pool this machine belongs to.", + "memoryGB": { + "type": "integer", + "format": "int32", + "description": "The amount of memory available for the Dev Box.", + "readOnly": true + } + } + }, + "HibernateSupport": { + "type": "string", + "description": "Indicates whether hibernate is supported and enabled, disabled, or unsupported by the operating system. Unknown hibernate support is represented as null.", + "enum": [ + "Enabled", + "Disabled", + "OsUnsupported" + ], + "x-ms-enum": { + "name": "HibernateSupport", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Hibernate is enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Hibernate is not enabled." + }, + { + "name": "OsUnsupported", + "value": "OsUnsupported", + "description": "Hibernate is not supported by the operating system." + } + ] + } + }, + "ImageReference": { + "type": "object", + "description": "Specifies information about the image used", + "properties": { + "name": { "type": "string", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63, - "x-ms-mutability": [ - "read", - "create" - ] - }, - "hibernateSupport": { - "description": "Indicates whether hibernate is enabled/disabled or unknown.", - "$ref": "#/definitions/HibernateSupport", + "description": "The name of the image used.", "readOnly": true }, - "provisioningState": { - "description": "The current provisioning state of the Dev Box.", + "version": { "type": "string", + "description": "The version of the image.", "readOnly": true }, - "actionState": { - "description": "The current action state of the Dev Box. This is state is based on previous action performed by user.", + "operatingSystem": { "type": "string", + "description": "The operating system of the image.", "readOnly": true }, - "powerState": { - "description": "The current power state of the Dev Box.", - "$ref": "#/definitions/PowerState", + "osBuildNumber": { + "type": "string", + "description": "The operating system build number of the image.", "readOnly": true }, - "uniqueId": { - "description": "A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).", + "publishedDate": { "type": "string", + "format": "date-time", + "description": "The datetime that the backing image version was published.", "readOnly": true + } + } + }, + "LocalAdminStatus": { + "type": "string", + "description": "Indicates whether owners of Dev Boxes in a pool are local administrators on the Dev Boxes.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "LocalAdminStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Owners of Dev Boxes in the pool are local administrators on the Dev Boxes." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes." + } + ] + } + }, + "OperationStatus": { + "type": "object", + "description": "The current status of an async operation", + "properties": { + "id": { + "type": "string", + "description": "Fully qualified ID for the operation status." }, - "error": { - "description": "Provisioning or action error details. Populated only for error states.", - "readOnly": true, - "$ref": "devcenter.json#/definitions/CloudErrorBody" - }, - "location": { - "description": "Azure region where this Dev Box is located. This will be the same region as the Virtual Network it is attached to.", + "name": { "type": "string", - "readOnly": true + "description": "The operation id name" }, - "osType": { - "description": "The operating system type of this Dev Box.", - "$ref": "#/definitions/OsType", - "readOnly": true + "status": { + "$ref": "#/definitions/OperationStatusValue", + "description": "Provisioning state of the resource." }, - "user": { + "resourceId": { "type": "string", - "description": "The AAD object id of the user this Dev Box is assigned to.", - "readOnly": true + "description": "The id of the resource." }, - "hardwareProfile": { - "description": "Information about the Dev Box's hardware resources", - "$ref": "#/definitions/HardwareProfile", - "readOnly": true + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the operation" }, - "storageProfile": { - "description": "Storage settings for this Dev Box", - "$ref": "#/definitions/StorageProfile", - "readOnly": true + "endTime": { + "type": "string", + "format": "date-time", + "description": "The end time of the operation" }, - "imageReference": { - "description": "Information about the image used for this Dev Box", - "$ref": "#/definitions/ImageReference", - "readOnly": true + "percentComplete": { + "type": "number", + "format": "float", + "description": "Percent of the operation that is complete", + "minimum": 0, + "maximum": 100 }, - "createdTime": { - "description": "Creation time of this Dev Box", + "properties": { "type": "string", - "readOnly": true, - "format": "date-time" + "format": "byte", + "description": "Custom operation properties, populated only for a successful operation." }, - "localAdministrator": { - "description": "Indicates whether the owner of the Dev Box is a local administrator.", - "$ref": "#/definitions/LocalAdminStatus" + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "Operation Error message" } }, "required": [ - "poolName" + "status" ] }, + "OperationStatusValue": { + "type": "string", + "description": "Indicates whether operation status is running, completed, canceled or failed.", + "enum": [ + "Running", + "Completed", + "Canceled", + "Failed" + ], + "x-ms-enum": { + "name": "OperationStatusValue", + "modelAsString": true, + "values": [ + { + "name": "Running", + "value": "Running", + "description": "Operation is in progress" + }, + { + "name": "Completed", + "value": "Completed", + "description": "Operation is completed with success" + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Operation was canceled" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Operation failed" + } + ] + } + }, + "OsDisk": { + "type": "object", + "description": "Settings for the operating system disk.", + "properties": { + "diskSizeGB": { + "type": "integer", + "format": "int32", + "description": "The size of the OS Disk in gigabytes.", + "readOnly": true + } + } + }, "OsType": { "type": "string", + "description": "The operating system type.", "enum": [ "Windows" ], - "description": "The operating system type.", "x-ms-enum": { "name": "OsType", "modelAsString": true, "values": [ { + "name": "Windows", "value": "Windows", "description": "The Windows operating system." } ] } }, - "HardwareProfile": { - "description": "Hardware specifications for the Dev Box.", + "PagedDevBox": { "type": "object", + "description": "The Dev Box list result", "properties": { - "skuName": { - "description": "The name of the SKU", + "value": { + "type": "array", + "description": "The DevBox items on this page", + "items": { + "$ref": "#/definitions/DevBox" + }, + "x-ms-identifiers": [] + }, + "nextLink": { "type": "string", - "readOnly": true + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedDevBoxAction": { + "type": "object", + "description": "The actions list result", + "properties": { + "value": { + "type": "array", + "description": "The DevBoxAction items on this page", + "items": { + "$ref": "#/definitions/DevBoxAction" + }, + "x-ms-identifiers": [] }, - "vCPUs": { - "description": "The number of vCPUs available for the Dev Box.", - "type": "integer", - "format": "int32", - "readOnly": true + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedDevBoxActionDelayResult": { + "type": "object", + "description": "The actions list result", + "properties": { + "value": { + "type": "array", + "description": "The DevBoxActionDelayResult items on this page", + "items": { + "$ref": "#/definitions/DevBoxActionDelayResult" + }, + "x-ms-identifiers": [] }, - "memoryGB": { - "description": "The amount of memory available for the Dev Box.", - "type": "integer", - "format": "int32", - "readOnly": true + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "StorageProfile": { + "PagedPool": { "type": "object", - "description": "Storage settings for the Dev Box's disks", + "description": "The Pool list result", "properties": { - "osDisk": { - "$ref": "#/definitions/OSDisk" + "value": { + "type": "array", + "description": "The Pool items on this page", + "items": { + "$ref": "#/definitions/Pool" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "OSDisk": { + "PagedSchedule": { "type": "object", - "description": "Settings for the operating system disk.", + "description": "The Schedule list result", "properties": { - "diskSizeGB": { - "description": "The size of the OS Disk in gigabytes.", - "type": "integer", - "format": "int32", - "readOnly": true + "value": { + "type": "array", + "description": "The Schedule items on this page", + "items": { + "$ref": "#/definitions/Schedule" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "ImageReference": { - "description": "Specifies information about the image used", + "Pool": { "type": "object", + "description": "A pool of Dev Boxes.", "properties": { "name": { - "description": "The name of the image used.", "type": "string", + "description": "Pool name", "readOnly": true }, - "version": { - "description": "The version of the image.", + "location": { "type": "string", - "readOnly": true + "description": "Azure region where Dev Boxes in the pool are located" }, - "operatingSystem": { - "description": "The operating system of the image.", - "type": "string", - "readOnly": true + "osType": { + "$ref": "#/definitions/OsType", + "description": "The operating system type of Dev Boxes in this pool" }, - "osBuildNumber": { - "description": "The operating system build number of the image.", - "type": "string", - "readOnly": true + "hardwareProfile": { + "$ref": "#/definitions/HardwareProfile", + "description": "Hardware settings for the Dev Boxes created in this pool" }, - "publishedDate": { - "description": "The datetime that the backing image version was published.", - "type": "string", - "readOnly": true, - "format": "date-time" - } - } - }, - "RemoteConnection": { - "description": "Provides remote connection information for a Dev Box.", - "type": "object", - "properties": { - "webUrl": { - "description": "URL to open a browser based RDP session.", - "type": "string" + "hibernateSupport": { + "$ref": "#/definitions/HibernateSupport", + "description": "Indicates whether hibernate is enabled/disabled or unknown." }, - "rdpConnectionUrl": { - "description": "Link to open a Remote Desktop session.", - "type": "string" + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage settings for Dev Box created in this pool" + }, + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Image settings for Dev Boxes create in this pool" + }, + "localAdministrator": { + "$ref": "#/definitions/LocalAdminStatus", + "description": "Indicates whether owners of Dev Boxes in this pool are local administrators on\nthe Dev Boxes." + }, + "stopOnDisconnect": { + "$ref": "#/definitions/StopOnDisconnectConfiguration", + "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool." + }, + "healthStatus": { + "$ref": "#/definitions/PoolHealthStatus", + "description": "Overall health status of the Pool. Indicates whether or not the Pool is\navailable to create Dev Boxes." } + }, + "required": [ + "name", + "location", + "healthStatus" + ] + }, + "PoolHealthStatus": { + "type": "string", + "description": "Pool status indicating whether a pool is available to create Dev Boxes.", + "enum": [ + "Unknown", + "Pending", + "Healthy", + "Warning", + "Unhealthy" + ], + "x-ms-enum": { + "name": "PoolHealthStatus", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "The pool health status is not known." + }, + { + "name": "Pending", + "value": "Pending", + "description": "The pool health status waiting for health checks to run." + }, + { + "name": "Healthy", + "value": "Healthy", + "description": "The pool health status is healthy." + }, + { + "name": "Warning", + "value": "Warning", + "description": "The pool health status has one or more warnings." + }, + { + "name": "Unhealthy", + "value": "Unhealthy", + "description": "The pool health status is not healthy." + } + ] } }, "PowerState": { "type": "string", + "description": "The power states of a Dev Box.", "enum": [ "Unknown", "Running", @@ -1562,264 +2138,370 @@ "PoweredOff", "Hibernated" ], - "description": "The power states of a Dev Box.", "x-ms-enum": { "name": "PowerState", "modelAsString": true, "values": [ { + "name": "Unknown", "value": "Unknown", "description": "The Dev Box power state is not known." }, { + "name": "Running", "value": "Running", "description": "The Dev Box is running." }, { + "name": "Deallocated", "value": "Deallocated", "description": "The Dev Box is deallocated." }, { + "name": "PoweredOff", "value": "PoweredOff", "description": "The Dev Box is powered off." }, { + "name": "Hibernated", "value": "Hibernated", "description": "The Dev Box is hibernated." } ] } }, - "StopOnDisconnectConfiguration": { + "Project": { "type": "object", - "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", + "description": "Project details.", "properties": { - "status": { - "description": "Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.", - "$ref": "#/definitions/StopOnDisconnectEnableStatus" + "name": { + "type": "string", + "description": "Name of the project", + "readOnly": true }, - "gracePeriodMinutes": { - "description": "The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.", + "description": { + "type": "string", + "description": "Description of the project." + }, + "maxDevBoxesPerUser": { "type": "integer", - "format": "int32" + "format": "int32", + "description": "When specified, indicates the maximum number of Dev Boxes a single user can\ncreate across all pools in the project.", + "minimum": 0 } }, "required": [ - "status" + "name" ] }, - "DevBoxActionsDelayMultipleResult": { + "RemoteConnection": { "type": "object", - "description": "The actions list result", + "description": "Provides remote connection information for a Dev Box.", "properties": { - "value": { - "description": "Current page of results", - "type": "array", - "items": { - "$ref": "#/definitions/DevBoxActionDelayResult" - } + "webUrl": { + "type": "string", + "format": "uri", + "description": "URL to open a browser based RDP session." }, - "nextLink": { + "rdpConnectionUrl": { "type": "string", - "description": "The URL to get the next set of results." + "format": "uri", + "description": "Link to open a Remote Desktop session." } - }, - "required": [ - "value" - ] + } }, - "DevBoxActionDelayResult": { + "Schedule": { "type": "object", - "description": "The action delay result", + "description": "A Schedule to execute action.", "properties": { "name": { "type": "string", - "description": "The name of the action." + "description": "Display name for the Schedule", + "readOnly": true }, - "result": { - "$ref": "#/definitions/DevBoxActionDelayResultStatus", - "description": "The result of the delay operation on this action." + "type": { + "$ref": "#/definitions/ScheduledType", + "description": "Supported type this scheduled task represents." }, - "action": { - "description": "The delayed action", - "type": "object", - "$ref": "#/definitions/DevBoxAction" + "frequency": { + "$ref": "#/definitions/ScheduledFrequency", + "description": "The frequency of this scheduled task." }, - "error": { - "description": "Information about the error that occurred. Only populated on error.", - "type": "object", - "$ref": "devcenter.json#/definitions/CloudErrorBody" + "time": { + "type": "string", + "format": "time", + "description": "The target time to trigger the action. The format is HH:MM." + }, + "timeZone": { + "type": "string", + "description": "The IANA timezone id at which the schedule should execute." } }, "required": [ "name", - "result" + "type", + "frequency", + "time", + "timeZone" ] }, - "DevBoxActionDelayResultStatus": { + "ScheduledFrequency": { "type": "string", + "description": "The frequency of task execution.", "enum": [ - "Succeeded", - "Failed" + "Daily" ], - "description": "The result of the delay operation on this action.", "x-ms-enum": { - "name": "DevBoxActionDelayResultStatus", + "name": "ScheduledFrequency", "modelAsString": true, "values": [ { - "value": "Succeeded", - "description": "The delay operation succeeded." - }, + "name": "Daily", + "value": "Daily", + "description": "The scheduled task will run every day." + } + ] + } + }, + "ScheduledType": { + "type": "string", + "description": "The supported types for a scheduled task.", + "enum": [ + "StopDevBox" + ], + "x-ms-enum": { + "name": "ScheduledType", + "modelAsString": true, + "values": [ { - "value": "Failed", - "description": "The delay operation failed." + "name": "StopDevBox", + "value": "StopDevBox", + "description": "The scheduled task will stop impacted Dev Boxes." } ] } }, - "DevBoxActionsListResult": { - "type": "object", - "description": "The actions list result", - "properties": { - "value": { - "description": "Current page of results", - "type": "array", - "items": { - "$ref": "#/definitions/DevBoxAction" + "SkuName": { + "type": "string", + "description": "Indicates the Dev Box compute.", + "enum": [ + "general_i_8c32gb256ssd_v2", + "general_i_8c32gb512ssd_v2", + "general_i_8c32gb1024ssd_v2", + "general_i_8c32gb2048ssd_v2", + "general_i_16c64gb256ssd_v2", + "general_i_16c64gb512ssd_v2", + "general_i_16c64gb1024ssd_v2", + "general_i_16c64gb2048ssd_v2", + "general_i_32c128gb512ssd_v2", + "general_i_32c128gb1024ssd_v2", + "general_i_32c128gb2048ssd_v2", + "general_a_8c32gb256ssd_v2", + "general_a_8c32gb512ssd_v2", + "general_a_8c32gb1024ssd_v2", + "general_a_8c32gb2048ssd_v2", + "general_a_16c64gb256ssd_v2", + "general_a_16c64gb512ssd_v2", + "general_a_16c64gb1024ssd_v2", + "general_a_16c64gb2048ssd_v2", + "general_a_32c128gb512ssd_v2", + "general_a_32c128gb1024ssd_v2", + "general_a_32c128gb2048ssd_v2" + ], + "x-ms-enum": { + "name": "SkuName", + "modelAsString": true, + "values": [ + { + "name": "general_i_8c32gb256ssd_v2", + "value": "general_i_8c32gb256ssd_v2", + "description": "Intel, 8 vCPU, 32 GB RAM, 256 GB Storage" + }, + { + "name": "general_i_8c32gb512ssd_v2", + "value": "general_i_8c32gb512ssd_v2", + "description": "Intel, 8 vCPU, 32 GB RAM, 512 GB Storage" + }, + { + "name": "general_i_8c32gb1024ssd_v2", + "value": "general_i_8c32gb1024ssd_v2", + "description": "Intel, 8 vCPU, 32 GB RAM, 1024 GB Storage" + }, + { + "name": "general_i_8c32gb2048ssd_v2", + "value": "general_i_8c32gb2048ssd_v2", + "description": "Intel, 8 vCPU, 32 GB RAM, 2048 GB Storage" + }, + { + "name": "general_i_16c64gb256ssd_v2", + "value": "general_i_16c64gb256ssd_v2", + "description": "Intel, 16 vCPU, 64 GB RAM, 256 GB Storage" + }, + { + "name": "general_i_16c64gb512ssd_v2", + "value": "general_i_16c64gb512ssd_v2", + "description": "Intel, 16 vCPU, 64 GB RAM, 512 GB Storage" + }, + { + "name": "general_i_16c64gb1024ssd_v2", + "value": "general_i_16c64gb1024ssd_v2", + "description": "Intel, 16 vCPU, 64 GB RAM, 1024 GB Storage" + }, + { + "name": "general_i_16c64gb2048ssd_v2", + "value": "general_i_16c64gb2048ssd_v2", + "description": "Intel, 16 vCPU, 64 GB RAM, 2048 GB Storage" + }, + { + "name": "general_i_32c128gb512ssd_v2", + "value": "general_i_32c128gb512ssd_v2", + "description": "Intel, 32 vCPU, 128 GB RAM, 512 GB Storage" + }, + { + "name": "general_i_32c128gb1024ssd_v2", + "value": "general_i_32c128gb1024ssd_v2", + "description": "Intel, 32 vCPU, 128 GB RAM, 1024 GB Storage" + }, + { + "name": "general_i_32c128gb2048ssd_v2", + "value": "general_i_32c128gb2048ssd_v2", + "description": "Intel, 32 vCPU, 128 GB RAM, 2048 GB Storage" + }, + { + "name": "general_a_8c32gb256ssd_v2", + "value": "general_a_8c32gb256ssd_v2", + "description": "AMD, 8 vCPU, 32 GB RAM, 256 GB Storage" + }, + { + "name": "general_a_8c32gb512ssd_v2", + "value": "general_a_8c32gb512ssd_v2", + "description": "AMD, 8 vCPU, 32 GB RAM, 512 GB Storage" + }, + { + "name": "general_a_8c32gb1024ssd_v2", + "value": "general_a_8c32gb1024ssd_v2", + "description": "AMD, 8 vCPU, 32 GB RAM, 1024 GB Storage" + }, + { + "name": "general_a_8c32gb2048ssd_v2", + "value": "general_a_8c32gb2048ssd_v2", + "description": "AMD, 8 vCPU, 32 GB RAM, 2048 GB Storage" + }, + { + "name": "general_a_16c64gb256ssd_v2", + "value": "general_a_16c64gb256ssd_v2", + "description": "AMD, 16 vCPU, 64 GB RAM, 256 GB Storage" + }, + { + "name": "general_a_16c64gb512ssd_v2", + "value": "general_a_16c64gb512ssd_v2", + "description": "AMD, 16 vCPU, 64 GB RAM, 512 GB Storage" + }, + { + "name": "general_a_16c64gb1024ssd_v2", + "value": "general_a_16c64gb1024ssd_v2", + "description": "AMD, 16 vCPU, 64 GB RAM, 1024 GB Storage" + }, + { + "name": "general_a_16c64gb2048ssd_v2", + "value": "general_a_16c64gb2048ssd_v2", + "description": "AMD, 16 vCPU, 64 GB RAM, 2048 GB Storage" + }, + { + "name": "general_a_32c128gb512ssd_v2", + "value": "general_a_32c128gb512ssd_v2", + "description": "AMD, 32 vCPU, 128 GB RAM, 512 GB Storage" + }, + { + "name": "general_a_32c128gb1024ssd_v2", + "value": "general_a_32c128gb1024ssd_v2", + "description": "AMD, 32 vCPU, 128 GB RAM, 1024 GB Storage" + }, + { + "name": "general_a_32c128gb2048ssd_v2", + "value": "general_a_32c128gb2048ssd_v2", + "description": "AMD, 32 vCPU, 128 GB RAM, 2048 GB Storage" } - }, - "nextLink": { - "type": "string", - "description": "The URL to get the next set of results." - } - }, - "required": [ - "value" - ] + ] + } }, - "DevBoxAction": { + "StopOnDisconnectConfiguration": { "type": "object", - "description": "An action which will take place on a Dev Box.", + "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", "properties": { - "name": { - "description": "The name of the action.", - "type": "string" - }, - "actionType": { - "description": "The action that will be taken.", - "$ref": "#/definitions/DevBoxActionType" - }, - "sourceId": { - "description": "The id of the resource which triggered this action", - "type": "string" - }, - "suspendedUntil": { - "description": "The earliest time that the action could occur (UTC).", - "type": "string", - "format": "date-time" + "status": { + "$ref": "#/definitions/StopOnDisconnectEnableStatus", + "description": "Indicates whether the feature to stop the devbox on disconnect once the grace\nperiod has lapsed is enabled." }, - "next": { - "description": "Details about the next run of this action.", - "$ref": "#/definitions/DevBoxNextAction" + "gracePeriodMinutes": { + "type": "integer", + "format": "int32", + "description": "The specified time in minutes to wait before stopping a Dev Box once disconnect\nis detected." } }, "required": [ - "name", - "actionType", - "sourceId" + "status" ] }, - "DevBoxActionType": { - "description": "The type of action which will take place on a Dev Box.", + "StopOnDisconnectEnableStatus": { "type": "string", + "description": "Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.", "enum": [ - "Stop" + "Enabled", + "Disabled" ], "x-ms-enum": { - "name": "DevBoxActionType", + "name": "StopOnDisconnectEnableStatus", "modelAsString": true, "values": [ { - "value": "Stop", - "description": "The action will stop the Dev Box." + "name": "Enabled", + "value": "Enabled", + "description": "Stop on disconnect is enabled on the Dev Box." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Stop on disconnect is not enabled on the Dev Box." } ] } }, - "DevBoxNextAction": { - "description": "Details about the next run of an action.", + "StorageProfile": { "type": "object", + "description": "Storage settings for the Dev Box's disks", "properties": { - "scheduledTime": { - "description": "The time the action will be triggered (UTC).", + "osDisk": { + "$ref": "#/definitions/OsDisk", + "description": "Settings for the operating system disk." + } + } + }, + "User": { + "type": "object", + "description": "Project user", + "properties": { + "userId": { "type": "string", - "format": "date-time" + "description": "The AAD object id of the user", + "readOnly": true } }, "required": [ - "scheduledTime" + "userId" ] } }, "parameters": { - "PoolNameParameter": { - "name": "poolName", - "description": "The name of a pool of Dev Boxes.", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63, - "in": "path", - "x-ms-parameter-location": "method" - }, - "ScheduleNameParameter": { - "name": "scheduleName", - "description": "The name of a schedule.", - "required": true, - "type": "string", - "in": "path", - "x-ms-parameter-location": "method" - }, - "DevBoxNameParameter": { - "name": "devBoxName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63, - "description": "The name of a Dev Box.", - "x-ms-parameter-location": "method" - }, - "HibernateParameter": { - "name": "hibernate", + "Azure.Core.Foundations.ApiVersionParameter": { + "name": "api-version", "in": "query", - "required": false, - "type": "boolean", - "description": "Optional parameter to hibernate the dev box.", - "x-ms-parameter-location": "method" - }, - "DevBoxActionNameParameter": { - "name": "actionName", - "in": "path", + "description": "The API version to use for this operation.", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63, - "description": "The name of an action that will take place on a Dev Box.", - "x-ms-parameter-location": "method" - }, - "DevBoxActionDelayUntilParameter": { - "name": "until", - "description": "The time to delay the Dev Box action or actions until.", - "required": true, - "type": "string", - "format": "date-time", - "in": "query", - "x-ms-parameter-location": "method" + "minLength": 1, + "x-ms-parameter-location": "method", + "x-ms-client-name": "apiVersion" } } } diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json index 3f7b9108c3ad..44f5695072dd 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json @@ -1,81 +1,103 @@ { "swagger": "2.0", "info": { + "title": "DevCenter", "version": "2023-04-01", - "title": "DevCenter" + "description": "DevCenter service", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] }, + "schemes": [ + "https" + ], "x-ms-parameterized-host": { "hostTemplate": "{endpoint}", "useSchemePrefix": false, "parameters": [ { - "$ref": "devcenter.json#/parameters/EndpointParameter" + "name": "endpoint", + "in": "path", + "description": "The DevCenter-specific URI to operate on.", + "required": true, + "type": "string" } ] }, - "schemes": [ - "https" - ], - "consumes": [ + "produces": [ "application/json" ], - "produces": [ + "consumes": [ "application/json" ], "security": [ { - "AADToken": [ - "user_impersonation" + "OAuth2Auth": [ + "https://devcenter.azure.com/.default" ] } ], "securityDefinitions": { - "AADToken": { + "OAuth2Auth": { "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": { - "user_impersonation": "impersonate your user account" + "https://devcenter.azure.com/.default": "" } } }, + "tags": [], "paths": { "/projects": { "get": { - "tags": [ - "Projects" - ], + "operationId": "DevCenterOperations_ListProjects", "description": "Lists all projects.", "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "#/parameters/FilterParameter" + "name": "filter", + "in": "query", + "description": "An OData filter clause to apply to the operation.", + "required": false, + "type": "string" }, { - "$ref": "#/parameters/TopParameter" + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" } ], - "operationId": "DevCenter_ListProjects", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/ProjectListResult" + "$ref": "#/definitions/PagedProject" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } } } }, "x-ms-examples": { - "DevCenter_ListProjects": { - "$ref": "./examples/Projects_ListByDevCenter.json" + "Lists all projects.": { + "$ref": "./examples/DevCenterOperations_ListProjects.json" } }, "x-ms-pageable": { @@ -85,257 +107,272 @@ }, "/projects/{projectName}": { "get": { - "tags": [ - "Projects" - ], + "operationId": "DevCenterOperations_GetProject", "description": "Gets a project.", "parameters": [ { - "$ref": "#/parameters/ProjectNameMethodParameter" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" } ], - "operationId": "DevCenter_GetProject", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/Project" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } } } }, "x-ms-examples": { - "DevCenter_GetProject": { - "$ref": "./examples/Projects_Get.json" + "Gets a project.": { + "$ref": "./examples/DevCenterOperations_GetProject.json" } } } } }, "definitions": { - "ProjectListResult": { - "description": "Results of the project list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/Project" + "APIVersions": { + "type": "string", + "description": "DevCenter API versions", + "enum": [ + "2023-04-01" + ], + "x-ms-enum": { + "name": "APIVersions", + "modelAsString": true, + "values": [ + { + "name": "v2023_04_01", + "value": "2023-04-01", + "description": "The 2023-04-01 service API version" } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string" - } - }, - "required": [ - "value" - ] + ] + } }, - "Project": { - "description": "Project details.", + "Azure.Core.Foundations.Error": { "type": "object", + "description": "The error object.", "properties": { - "name": { + "code": { "type": "string", - "description": "Name of the project" + "description": "One of a server-defined set of error codes." }, - "description": { + "message": { "type": "string", - "description": "Description of the project." + "description": "A human-readable representation of the error." }, - "maxDevBoxesPerUser": { - "type": "integer", - "format": "int32", - "minimum": 0, - "description": "When specified, indicates the maximum number of Dev Boxes a single user can create across all pools in the project." + "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": [ - "name" + "code", + "message" ] }, - "CloudError": { - "x-ms-external": true, + "Azure.Core.Foundations.ErrorResponse": { "type": "object", - "required": [ - "error" - ], + "description": "A response containing error details.", "properties": { "error": { - "description": "Error body", - "$ref": "#/definitions/CloudErrorBody" + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "The error object." } }, - "description": "An error response from the service." + "required": [ + "error" + ] }, - "CloudErrorBody": { - "x-ms-external": true, - "description": "An error response from the service.", + "Azure.Core.Foundations.InnerError": { "type": "object", - "required": [ - "code", - "message" - ], + "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": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + "description": "One of a server-defined set of error codes." }, - "message": { - "type": "string", - "description": "A message describing the error, intended to be suitable for display in a user interface." - }, - "target": { - "type": "string", - "description": "The target of the particular error. For example, the name of the property in error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/CloudErrorBody" - }, - "description": "A list of additional details about the error." + "innererror": { + "$ref": "#/definitions/Azure.Core.Foundations.InnerError", + "description": "Inner error." } } }, "OperationStatus": { - "description": "The current status of an async operation", "type": "object", + "description": "The current status of an async operation", "properties": { "id": { - "description": "Fully qualified ID for the operation status.", - "type": "string" + "type": "string", + "description": "Fully qualified ID for the operation status." }, "name": { - "description": "The operation id name", - "type": "string" + "type": "string", + "description": "The operation id name" }, "status": { - "description": "Provisioning state of the resource.", - "type": "string" + "$ref": "#/definitions/OperationStatusValue", + "description": "Provisioning state of the resource." }, "resourceId": { - "description": "The id of the resource.", - "type": "string" + "type": "string", + "description": "The id of the resource." }, "startTime": { - "description": "The start time of the operation", "type": "string", - "format": "date-time" + "format": "date-time", + "description": "The start time of the operation" }, "endTime": { - "description": "The end time of the operation", "type": "string", - "format": "date-time" + "format": "date-time", + "description": "The end time of the operation" }, "percentComplete": { - "description": "Percent of the operation that is complete", "type": "number", + "format": "float", + "description": "Percent of the operation that is complete", "minimum": 0, "maximum": 100 }, "properties": { - "description": "Custom operation properties, populated only for a successful operation.", - "type": "object" + "type": "string", + "format": "byte", + "description": "Custom operation properties, populated only for a successful operation." }, "error": { - "description": "Operation Error message", - "type": "object", - "properties": { - "code": { - "type": "string", - "description": "The error code." - }, - "message": { - "type": "string", - "description": "The error message." - } - } + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "Operation Error message" } }, "required": [ "status" ] - } - }, - "parameters": { - "ProjectNameParameter": { - "name": "projectName", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63, - "in": "path", - "x-ms-parameter-location": "client" }, - "ProjectNameMethodParameter": { - "name": "projectName", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, + "OperationStatusValue": { "type": "string", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,62}$", - "minLength": 3, - "maxLength": 63, - "in": "path", - "x-ms-parameter-location": "method" - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to be used with the HTTP request.", - "x-ms-parameter-location": "client" + "description": "Indicates whether operation status is running, completed, canceled or failed.", + "enum": [ + "Running", + "Completed", + "Canceled", + "Failed" + ], + "x-ms-enum": { + "name": "OperationStatusValue", + "modelAsString": true, + "values": [ + { + "name": "Running", + "value": "Running", + "description": "Operation is in progress" + }, + { + "name": "Completed", + "value": "Completed", + "description": "Operation is completed with success" + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Operation was canceled" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Operation failed" + } + ] + } }, - "FilterParameter": { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "type": "string", - "required": false, - "x-ms-parameter-location": "method" + "PagedProject": { + "type": "object", + "description": "Results of the project list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Project items on this page", + "items": { + "$ref": "#/definitions/Project" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] }, - "TopParameter": { - "name": "top", + "Project": { + "type": "object", + "description": "Project details.", + "properties": { + "name": { + "type": "string", + "description": "Name of the project", + "readOnly": true + }, + "description": { + "type": "string", + "description": "Description of the project." + }, + "maxDevBoxesPerUser": { + "type": "integer", + "format": "int32", + "description": "When specified, indicates the maximum number of Dev Boxes a single user can\ncreate across all pools in the project.", + "minimum": 0 + } + }, + "required": [ + "name" + ] + } + }, + "parameters": { + "Azure.Core.Foundations.ApiVersionParameter": { + "name": "api-version", "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "type": "integer", - "format": "int32", - "required": false, - "x-ms-parameter-location": "method" - }, - "UserIdParameter": { - "name": "userId", - "in": "path", - "required": true, - "x-ms-client-default": "me", - "type": "string", - "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$", - "minLength": 2, - "maxLength": 36, - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "x-ms-parameter-location": "method" - }, - "EndpointParameter": { - "name": "endpoint", - "description": "The DevCenter-specific URI to operate on.", + "description": "The API version to use for this operation.", "required": true, "type": "string", - "in": "path", - "x-ms-skip-url-encoding": true, - "x-ms-parameter-location": "client" + "minLength": 1, + "x-ms-parameter-location": "method", + "x-ms-client-name": "apiVersion" } } } diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index 95ab0b3a4a55..b0785c271b54 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -20,6 +20,7 @@ { "name": "endpoint", "in": "path", + "description": "The DevCenter-specific URI to operate on.", "required": true, "type": "string" } @@ -34,7 +35,7 @@ "security": [ { "OAuth2Auth": [ - "user_impersonation" + "https://devcenter.azure.com/.default" ] } ], @@ -44,7 +45,7 @@ "flow": "implicit", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": { - "user_impersonation": "" + "https://devcenter.azure.com/.default": "" } } }, @@ -52,7 +53,7 @@ "paths": { "/projects/{projectName}/catalogs": { "get": { - "operationId": "EnvironmentsOperations_ListCatalogsByProject", + "operationId": "EnvironmentsOperations_ListCatalogs", "description": "Lists all of the catalogs available for a project.", "parameters": [ { @@ -69,7 +70,7 @@ "name": "top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, + "required": false, "type": "integer", "format": "int32" } @@ -94,6 +95,11 @@ } } }, + "x-ms-examples": { + "Lists all of the catalogs available for a project.": { + "$ref": "./examples/EnvironmentsOperations_ListCatalogs.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -141,6 +147,11 @@ } } } + }, + "x-ms-examples": { + "Gets the specified catalog within the project": { + "$ref": "./examples/EnvironmentsOperations_GetCatalog.json" + } } } }, @@ -159,20 +170,20 @@ "required": true, "type": "string" }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, { "name": "catalogName", "in": "path", "description": "The name of the catalog", "required": true, "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" } ], "responses": { @@ -195,6 +206,11 @@ } } }, + "x-ms-examples": { + "Lists all environment definitions available within a catalog.": { + "$ref": "./examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -249,12 +265,17 @@ } } } + }, + "x-ms-examples": { + "Get an environment definition from a catalog.": { + "$ref": "./examples/EnvironmentsOperations_GetEnvironmentDefinition.json" + } } } }, "/projects/{projectName}/environmentDefinitions": { "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByProject", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", "description": "Lists all environment definitions available for a project.", "parameters": [ { @@ -271,7 +292,7 @@ "name": "top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, + "required": false, "type": "integer", "format": "int32" } @@ -296,6 +317,11 @@ } } }, + "x-ms-examples": { + "Lists all environment definitions available for a project.": { + "$ref": "./examples/EnvironmentsOperations_ListEnvironmentDefinitions.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -320,7 +346,7 @@ "name": "top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, + "required": false, "type": "integer", "format": "int32" } @@ -345,6 +371,11 @@ } } }, + "x-ms-examples": { + "Lists all environment types configured for a project.": { + "$ref": "./examples/EnvironmentsOperations_ListEnvironmentTypes.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -352,19 +383,65 @@ }, "/projects/{projectName}/environments": { "get": { - "operationId": "EnvironmentsOperations_ListEnvironments", + "operationId": "EnvironmentsOperations_ListAllEnvironments", "description": "Lists the environments for a project.", "parameters": [ { "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, { "name": "top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, + "required": false, "type": "integer", "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironment" + } + }, + "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": { + "Lists the environments for a project.": { + "$ref": "./examples/EnvironmentsOperations_ListAllEnvironments.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/operationstatuses/{operationId}": { + "get": { + "operationId": "SharedOperations_GetProjectOperationStatus", + "description": "Get the status of an operation.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { "name": "projectName", @@ -372,13 +449,20 @@ "description": "The DevCenter Project upon which to execute operations.", "required": true, "type": "string" + }, + { + "name": "operationId", + "in": "path", + "description": "Operation Id", + "required": true, + "type": "string" } ], "responses": { "200": { "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/PagedEnvironment" + "$ref": "#/definitions/OperationStatus" } }, "default": { @@ -393,28 +477,17 @@ } } } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } } }, "/projects/{projectName}/users/{userId}/environments": { "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentsByUser", + "operationId": "EnvironmentsOperations_ListEnvironments", "description": "Lists the environments for a project and user.", "parameters": [ { "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, { "name": "projectName", "in": "path", @@ -425,9 +498,17 @@ { "name": "userId", "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", "required": true, "type": "string" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", + "required": false, + "type": "integer", + "format": "int32" } ], "responses": { @@ -450,6 +531,11 @@ } } }, + "x-ms-examples": { + "Lists the environments for a project and user.": { + "$ref": "./examples/EnvironmentsOperations_ListEnvironments.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -457,7 +543,7 @@ }, "/projects/{projectName}/users/{userId}/environments/{environmentName}": { "get": { - "operationId": "EnvironmentsOperations_GetEnvironmentByUser", + "operationId": "EnvironmentsOperations_GetEnvironment", "description": "Gets an environment", "parameters": [ { @@ -473,7 +559,7 @@ { "name": "userId", "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", "required": true, "type": "string" }, @@ -504,10 +590,15 @@ } } } + }, + "x-ms-examples": { + "Gets an environment": { + "$ref": "./examples/EnvironmentsOperations_GetEnvironment.json" + } } }, "put": { - "operationId": "EnvironmentsOperations_CreateOrReplaceEnvironment", + "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", "description": "Creates or updates an environment.", "parameters": [ { @@ -523,7 +614,7 @@ { "name": "userId", "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", "required": true, "type": "string" }, @@ -545,10 +636,15 @@ } ], "responses": { - "200": { - "description": "The request has succeeded.", + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", "schema": { "$ref": "#/definitions/Environment" + }, + "headers": { + "Operation-Location": { + "type": "string" + } } }, "default": { @@ -563,7 +659,13 @@ } } } - } + }, + "x-ms-examples": { + "Creates or updates an environment.": { + "$ref": "./examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json" + } + }, + "x-ms-long-running-operation": true }, "delete": { "operationId": "EnvironmentsOperations_DeleteEnvironment", @@ -582,7 +684,7 @@ { "name": "userId", "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", "required": true, "type": "string" }, @@ -595,10 +697,18 @@ } ], "responses": { - "200": { - "description": "The request has succeeded.", + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", "schema": { "$ref": "#/definitions/OperationStatus" + }, + "headers": { + "Location": { + "type": "string" + }, + "Operation-Location": { + "type": "string" + } } }, "204": { @@ -616,7 +726,13 @@ } } } - } + }, + "x-ms-examples": { + "Deletes an environment and all its associated resources": { + "$ref": "./examples/EnvironmentsOperations_DeleteEnvironment.json" + } + }, + "x-ms-long-running-operation": true } } }, @@ -625,8 +741,7 @@ "type": "string", "description": "DevCenter API versions", "enum": [ - "2023-04-01", - "2023-09-01-preview" + "2023-04-01" ], "x-ms-enum": { "name": "APIVersions", @@ -636,11 +751,6 @@ "name": "v2023_04_01", "value": "2023-04-01", "description": "The 2023-04-01 service API version" - }, - { - "name": "v2023_09_01_preview", - "value": "2023-09-01-preview", - "description": "The 2023-09-01-preview service API version" } ] } @@ -706,6 +816,11 @@ } } }, + "Azure.Core.uuid": { + "type": "string", + "format": "uuid", + "description": "Universally Unique Identifier" + }, "Catalog": { "type": "object", "description": "A catalog.", @@ -719,54 +834,13 @@ "name" ] }, - "CloudError": { - "type": "object", - "description": "An error response from the service.", - "properties": { - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "Error body" - } - }, - "required": [ - "error" - ] - }, - "CloudErrorBody": { - "type": "object", - "description": "An error response from the service.", - "properties": { - "code": { - "type": "string", - "description": "An identifier for the error. Codes are invariant and are intended to be\nconsumed programmatically." - }, - "message": { - "type": "string", - "description": "A message describing the error, intended to be suitable for display in a user\ninterface." - }, - "target": { - "type": "string", - "description": "The target of the particular error. For example, the name of the property in\nerror." - }, - "details": { - "type": "array", - "description": "A list of additional details about the error.", - "items": { - "$ref": "#/definitions/CloudErrorBody" - }, - "x-ms-identifiers": [] - } - }, - "required": [ - "code", - "message" - ] - }, "Environment": { "type": "object", "description": "Properties of an environment.", "properties": { "parameters": { + "type": "string", + "format": "byte", "description": "Parameters object for the environment." }, "name": { @@ -776,15 +850,19 @@ }, "environmentType": { "type": "string", - "description": "Environment type." + "description": "Environment type.", + "x-ms-mutability": [ + "read", + "create" + ] }, "user": { - "type": "string", + "$ref": "#/definitions/Azure.Core.uuid", "description": "The AAD object id of the owner of this Environment.", "readOnly": true }, "provisioningState": { - "type": "string", + "$ref": "#/definitions/EnvironmentProvisioningState", "description": "The provisioning state of the environment.", "readOnly": true }, @@ -795,14 +873,22 @@ }, "catalogName": { "type": "string", - "description": "Name of the catalog." + "description": "Name of the catalog.", + "x-ms-mutability": [ + "read", + "create" + ] }, "environmentDefinitionName": { "type": "string", - "description": "Name of the environment definition." + "description": "Name of the environment definition.", + "x-ms-mutability": [ + "read", + "create" + ] }, "error": { - "$ref": "#/definitions/CloudErrorBody", + "$ref": "#/definitions/Azure.Core.Foundations.Error", "description": "Provisioning error details. Populated only for error states.", "readOnly": true } @@ -842,6 +928,7 @@ }, "parametersSchema": { "type": "string", + "format": "byte", "description": "JSON schema defining the parameters object passed to an environment." }, "templatePath": { @@ -873,6 +960,7 @@ }, "default": { "type": "string", + "format": "byte", "description": "Default value of the parameter" }, "type": { @@ -890,6 +978,7 @@ "allowed": { "type": "array", "description": "An array of allowed values", + "minItems": 1, "items": { "type": "string" } @@ -901,6 +990,96 @@ "required" ] }, + "EnvironmentProvisioningState": { + "type": "string", + "description": "The provisioning state of the environment.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Creating", + "Accepted", + "Deleting", + "Updating", + "Preparing", + "Running", + "Syncing", + "MovingResources", + "TransientFailure", + "StorageProvisioningFailed" + ], + "x-ms-enum": { + "name": "EnvironmentProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "The environment was successfully provisioned." + }, + { + "name": "Failed", + "value": "Failed", + "description": "The environment failed to provision." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "The environment provisioning was canceled." + }, + { + "name": "Creating", + "value": "Creating", + "description": "The environment is creating." + }, + { + "name": "Accepted", + "value": "Accepted", + "description": "The environment was accepted." + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "The environment is deleting." + }, + { + "name": "Updating", + "value": "Updating", + "description": "The environment is updating." + }, + { + "name": "Preparing", + "value": "Preparing", + "description": "The environment is preparing." + }, + { + "name": "Running", + "value": "Running", + "description": "The environment is running." + }, + { + "name": "Syncing", + "value": "Syncing", + "description": "The environment is Syncing." + }, + { + "name": "MovingResources", + "value": "MovingResources", + "description": "The environment is moving resources." + }, + { + "name": "TransientFailure", + "value": "TransientFailure", + "description": "The environment has a transient failure." + }, + { + "name": "StorageProvisioningFailed", + "value": "StorageProvisioningFailed", + "description": "The environment storage provisioning failed." + } + ] + } + }, "EnvironmentType": { "type": "object", "description": "Properties of an environment type.", @@ -926,6 +1105,7 @@ }, "EnvironmentTypeEnableStatus": { "type": "string", + "description": "Indicates whether an environment type is enabled for use in a project.", "enum": [ "Enabled", "Disabled" @@ -952,6 +1132,8 @@ "description": "Properties of an environment. These properties can be updated after the\nresource has been created.", "properties": { "parameters": { + "type": "string", + "format": "byte", "description": "Parameters object for the environment." } } @@ -969,7 +1151,7 @@ "description": "The operation id name" }, "status": { - "type": "string", + "$ref": "#/definitions/OperationStatusValue", "description": "Provisioning state of the resource." }, "resourceId": { @@ -989,13 +1171,17 @@ "percentComplete": { "type": "number", "format": "float", - "description": "Percent of the operation that is complete" + "description": "Percent of the operation that is complete", + "minimum": 0, + "maximum": 100 }, "properties": { + "type": "string", + "format": "byte", "description": "Custom operation properties, populated only for a successful operation." }, "error": { - "$ref": "#/definitions/OperationStatusError", + "$ref": "#/definitions/Azure.Core.Foundations.Error", "description": "Operation Error message" } }, @@ -1003,18 +1189,40 @@ "status" ] }, - "OperationStatusError": { - "type": "object", - "description": "Operation Error message", - "properties": { - "code": { - "type": "string", - "description": "The error code." - }, - "message": { - "type": "string", - "description": "The error message." - } + "OperationStatusValue": { + "type": "string", + "description": "Indicates whether operation status is running, completed, canceled or failed.", + "enum": [ + "Running", + "Completed", + "Canceled", + "Failed" + ], + "x-ms-enum": { + "name": "OperationStatusValue", + "modelAsString": true, + "values": [ + { + "name": "Running", + "value": "Running", + "description": "Operation is in progress" + }, + { + "name": "Completed", + "value": "Completed", + "description": "Operation is completed with success" + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Operation was canceled" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Operation failed" + } + ] } }, "PagedCatalog": { @@ -1106,6 +1314,7 @@ }, "ParameterType": { "type": "string", + "description": "The type of data a parameter accepts.", "enum": [ "array", "boolean", @@ -1150,6 +1359,30 @@ } ] } + }, + "Project": { + "type": "object", + "description": "Project details.", + "properties": { + "name": { + "type": "string", + "description": "Name of the project", + "readOnly": true + }, + "description": { + "type": "string", + "description": "Description of the project." + }, + "maxDevBoxesPerUser": { + "type": "integer", + "format": "int32", + "description": "When specified, indicates the maximum number of Dev Boxes a single user can\ncreate across all pools in the project.", + "minimum": 0 + } + }, + "required": [ + "name" + ] } }, "parameters": { diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_DelayMultipleWithError.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_DelayMultipleWithError.json deleted file mode 100644 index 231f3de8c47a..000000000000 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_DelayMultipleWithError.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "title": "Delays all actions with error.", - "operationId": "DevBoxesOperations_DelayAllActions_WithError", - "parameters": { - "api-version": "2023-04-01", - "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", - "projectName": "myProject", - "userId": "me", - "devBoxName": "myDevBox", - "until": "2022-09-30T17:00:00Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "schedule-default", - "result": "Failed", - "error": { - "code": "DelayOverMaxTime", - "message": "The schedule cannot be delayed more than 8 hours from the original invocation time." - } - }, - { - "name": "idle-hibernateondisconnect", - "result": "Succeeded", - "action": { - "name": "idle-hibernateondisconnect", - "actionType": "Stop", - "sourceId": "/projects/myProject/pools/myPool", - "suspendedUntil": "2022-09-30T17:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_List.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json similarity index 93% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_List.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json index 24f1f0760e5c..a60cb4dd87e7 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_List.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json @@ -2,8 +2,8 @@ "title": "Lists Dev Boxes that the caller has access to in the DevCenter.", "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", "parameters": { - "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", - "api-version": "2023-04-01" + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" }, "responses": { "200": { diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json new file mode 100644 index 000000000000..c42b57185035 --- /dev/null +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json @@ -0,0 +1,41 @@ +{ + "title": "Lists Dev Boxes in the Dev Center for a particular user.", + "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "parameters": { + "api-version": "2023-04-01", + "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", + "userId": "me" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "MyDevBox", + "provisioningState": "Succeeded", + "projectName": "ContosoProject", + "poolName": "LargeDevWorkStationPool", + "location": "centralus", + "osType": "Windows", + "user": "b08e39b4-2ac6-4465-a35e-48322efb0f98", + "hardwareProfile": { + "vCPUs": 8, + "memoryGB": 32 + }, + "storageProfile": { + "osDisk": { + "diskSizeGB": 1024 + } + }, + "hibernateSupport": "Enabled", + "imageReference": { + "name": "DevImage", + "version": "1.0.0", + "publishedDate": "2022-03-01T00:13:23.323Z" + } + } + ] + } + } + } +} diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Create.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Create.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Delay.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Delay.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_DelayMultiple.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_DelayMultiple.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Delete.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Delete.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Get.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Get.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Get.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Get.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Pools_Get.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Pools_Get.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_GetRemoteConnection.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_GetRemoteConnection.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Schedules_Get.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Schedules_Get.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_List.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_List.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_ListByUserByProject.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_ListByUserByProject.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Pools_List.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Pools_List.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Schedules_List.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Schedules_List.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Restart.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Restart.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Skip.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxActions_Skip.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Start.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Start.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Stop.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxes_Stop.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Projects_Get.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Projects_Get.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Projects_ListByDevCenter.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Projects_ListByDevCenter.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_CreateByEnvironmentDefinition.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_CreateByEnvironmentDefinition.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_Delete.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_Delete.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_Get.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_Get.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_Get.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_Get.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_Get.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_Get.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_ListByProject.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_ListByProject.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_ListByProject.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Catalogs_ListByProject.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_ListByProject.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_ListByProject.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_ListByCatalog.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentDefinitions_ListByCatalog.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentTypes_ListByProject.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentTypes_ListByProject.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_ListByProjectByUser.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json similarity index 100% rename from specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/Environments_ListByProjectByUser.json rename to specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/openapi.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/openapi.json deleted file mode 100644 index 88f19a1e0363..000000000000 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/openapi.json +++ /dev/null @@ -1,3712 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "DevCenter", - "version": "2023-04-01", - "description": "DevCenter service", - "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 DevCenter-specific URI to operate on.", - "required": true, - "type": "string" - } - ] - }, - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ], - "security": [ - { - "OAuth2Auth": [ - "https://devcenter.azure.com/.default" - ] - } - ], - "securityDefinitions": { - "OAuth2Auth": { - "type": "oauth2", - "flow": "implicit", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "scopes": { - "https://devcenter.azure.com/.default": "" - } - } - }, - "tags": [], - "paths": { - "/devboxes": { - "get": { - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", - "description": "Lists Dev Boxes that the caller has access to in the DevCenter.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": false, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBox" - } - }, - "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": { - "Lists Dev Boxes that the caller has access to in the DevCenter.": { - "$ref": "./examples/DevBoxes_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects": { - "get": { - "operationId": "DevCenterOperations_ListProjects", - "description": "Lists all projects.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": false, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedProject" - } - }, - "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": { - "Lists all projects.": { - "$ref": "./examples/Projects_ListByDevCenter.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}": { - "get": { - "operationId": "DevCenterOperations_GetProject", - "description": "Gets a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Project" - } - }, - "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": { - "Gets a project.": { - "$ref": "./examples/Projects_Get.json" - } - } - } - }, - "/projects/{projectName}/catalogs": { - "get": { - "operationId": "EnvironmentsOperations_ListCatalogs", - "description": "Lists all of the catalogs available for a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedCatalog" - } - }, - "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": { - "Lists all of the catalogs available for a project.": { - "$ref": "./examples/Catalogs_ListByProject.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/catalogs/{catalogName}": { - "get": { - "operationId": "EnvironmentsOperations_GetCatalog", - "description": "Gets the specified catalog within the project", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "catalogName", - "in": "path", - "description": "The name of the catalog", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Catalog" - } - }, - "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": { - "Gets the specified catalog within the project": { - "$ref": "./examples/Catalogs_Get.json" - } - } - } - }, - "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { - "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", - "description": "Lists all environment definitions available within a catalog.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "catalogName", - "in": "path", - "description": "The name of the catalog", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironmentDefinition" - } - }, - "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": { - "Lists all environment definitions available within a catalog.": { - "$ref": "./examples/EnvironmentDefinitions_ListByCatalog.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { - "get": { - "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", - "description": "Get an environment definition from a catalog.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "catalogName", - "in": "path", - "description": "The name of the catalog", - "required": true, - "type": "string" - }, - { - "name": "definitionName", - "in": "path", - "description": "The name of the environment definition", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/EnvironmentDefinition" - } - }, - "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": { - "Get an environment definition from a catalog.": { - "$ref": "./examples/EnvironmentDefinitions_Get.json" - } - } - } - }, - "/projects/{projectName}/environmentDefinitions": { - "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", - "description": "Lists all environment definitions available for a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironmentDefinition" - } - }, - "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": { - "Lists all environment definitions available for a project.": { - "$ref": "./examples/EnvironmentDefinitions_ListByProject.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/environmentTypes": { - "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentTypes", - "description": "Lists all environment types configured for a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironmentType" - } - }, - "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": { - "Lists all environment types configured for a project.": { - "$ref": "./examples/EnvironmentTypes_ListByProject.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/environments": { - "get": { - "operationId": "EnvironmentsOperations_ListAllEnvironments", - "description": "Lists the environments for a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironment" - } - }, - "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": { - "Lists the environments for a project.": { - "$ref": "./examples/Environments_ListByProject.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/operationstatuses/{operationId}": { - "get": { - "operationId": "SharedOperations_GetProjectOperationStatus", - "description": "Get the status of an operation.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "operationId", - "in": "path", - "description": "Operation Id", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "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." - } - } - } - } - } - }, - "/projects/{projectName}/pools": { - "get": { - "operationId": "DevBoxesOperations_ListPools", - "description": "Lists available pools", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": false, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedPool" - } - }, - "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": { - "Lists available pools": { - "$ref": "./examples/Pools_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/pools/{poolName}": { - "get": { - "operationId": "DevBoxesOperations_GetPool", - "description": "Gets a pool", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "poolName", - "in": "path", - "description": "The name of a pool of Dev Boxes.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Pool" - } - }, - "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": { - "Gets a pool": { - "$ref": "./examples/Pools_Get.json" - } - } - } - }, - "/projects/{projectName}/pools/{poolName}/schedules": { - "get": { - "operationId": "DevBoxesOperations_ListSchedules", - "description": "Lists available schedules for a pool.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "poolName", - "in": "path", - "description": "The name of a pool of Dev Boxes.", - "required": true, - "type": "string" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": false, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedSchedule" - } - }, - "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": { - "Lists available schedules for a pool.": { - "$ref": "./examples/Schedules_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { - "get": { - "operationId": "DevBoxesOperations_GetSchedule", - "description": "Gets a schedule.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "poolName", - "in": "path", - "description": "The name of a pool of Dev Boxes.", - "required": true, - "type": "string" - }, - { - "name": "scheduleName", - "in": "path", - "description": "The name of a schedule.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "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": { - "Gets a schedule.": { - "$ref": "./examples/Schedules_Get.json" - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes": { - "get": { - "operationId": "DevBoxesOperations_ListDevBoxes", - "description": "Lists Dev Boxes in the project for a particular user.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": false, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBox" - } - }, - "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": { - "Lists Dev Boxes in the project for a particular user.": { - "$ref": "./examples/DevBoxes_ListByUserByProject.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}": { - "get": { - "operationId": "DevBoxesOperations_GetDevBox", - "description": "Gets a Dev Box", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBox" - } - }, - "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": { - "Gets a Dev Box": { - "$ref": "./examples/DevBoxes_Get.json" - } - } - }, - "put": { - "operationId": "DevBoxesOperations_CreateDevBox", - "description": "Creates or replaces a Dev Box.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute the operation.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "devBox", - "in": "body", - "description": "Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator", - "required": true, - "schema": { - "$ref": "#/definitions/DevBox" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBox" - } - }, - "201": { - "description": "The request has succeeded and a new resource has been created as a result.", - "schema": { - "$ref": "#/definitions/DevBox" - }, - "headers": { - "Location": { - "type": "string", - "format": "uri", - "description": "The location of an instance of DevBox" - }, - "Operation-Location": { - "type": "string" - } - } - }, - "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": { - "Creates or replaces a Dev Box.": { - "$ref": "./examples/DevBoxes_Create.json" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "operationId": "DevBoxesOperations_DeleteDevBox", - "description": "Deletes a Dev Box.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "202": { - "description": "The request has been accepted for processing, but processing has not yet completed.", - "schema": { - "$ref": "#/definitions/OperationStatus" - }, - "headers": { - "Location": { - "type": "string" - }, - "Operation-Location": { - "type": "string" - } - } - }, - "204": { - "description": "There is no content to send for this request, but the headers may be useful. " - }, - "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": { - "Deletes a Dev Box.": { - "$ref": "./examples/DevBoxes_Delete.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start": { - "post": { - "operationId": "DevBoxesOperations_StartDevBox", - "description": "Starts a Dev Box", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "202": { - "description": "The request has been accepted for processing, but processing has not yet completed.", - "schema": { - "$ref": "#/definitions/OperationStatus" - }, - "headers": { - "Operation-Location": { - "type": "string", - "format": "uri", - "description": "The location for monitoring the operation state." - } - } - }, - "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": { - "Starts a Dev Box": { - "$ref": "./examples/DevBoxes_Start.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop": { - "post": { - "operationId": "DevBoxesOperations_StopDevBox", - "description": "Stops a Dev Box", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "hibernate", - "in": "query", - "description": "Optional parameter to hibernate the dev box.", - "required": false, - "type": "boolean" - } - ], - "responses": { - "202": { - "description": "The request has been accepted for processing, but processing has not yet completed.", - "schema": { - "$ref": "#/definitions/OperationStatus" - }, - "headers": { - "Operation-Location": { - "type": "string", - "format": "uri", - "description": "The location for monitoring the operation state." - } - } - }, - "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": { - "Stops a Dev Box": { - "$ref": "./examples/DevBoxes_Stop.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart": { - "post": { - "operationId": "DevBoxesOperations_RestartDevBox", - "description": "Restarts a Dev Box", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "202": { - "description": "The request has been accepted for processing, but processing has not yet completed.", - "schema": { - "$ref": "#/definitions/OperationStatus" - }, - "headers": { - "Operation-Location": { - "type": "string", - "format": "uri", - "description": "The location for monitoring the operation state." - } - } - }, - "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": { - "Restarts a Dev Box": { - "$ref": "./examples/DevBoxes_Restart.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions": { - "get": { - "operationId": "DevBoxesOperations_ListDevBoxActions", - "description": "Lists actions on a Dev Box.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBoxAction" - } - }, - "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": { - "Lists actions on a Dev Box.": { - "$ref": "./examples/DevBoxActions_List.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}": { - "get": { - "operationId": "DevBoxesOperations_GetDevBoxAction", - "description": "Gets an action.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "actionName", - "in": "path", - "description": "The name of an action that will take place on a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBoxAction" - } - }, - "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": { - "Gets an action.": { - "$ref": "./examples/DevBoxActions_Get.json" - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip": { - "post": { - "operationId": "DevBoxesOperations_SkipAction", - "description": "Skips an occurrence of an action.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "actionName", - "in": "path", - "description": "The name of an action that will take place on a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "204": { - "description": "There is no content to send for this request, but the headers may be useful. " - }, - "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": { - "Skips an occurrence of an action.": { - "$ref": "./examples/DevBoxActions_Skip.json" - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay": { - "post": { - "operationId": "DevBoxesOperations_DelayAction", - "description": "Delays the occurrence of an action.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "actionName", - "in": "path", - "description": "The name of an action that will take place on a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "until", - "in": "query", - "description": "The time to delay the Dev Box action or actions until.", - "required": true, - "type": "string", - "format": "date-time", - "x-ms-client-name": "delayUntil" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBoxAction" - } - }, - "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": { - "Delays the occurrence of an action.": { - "$ref": "./examples/DevBoxActions_Delay.json" - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay": { - "post": { - "operationId": "DevBoxesOperations_DelayAllActions", - "description": "Delays all actions.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "until", - "in": "query", - "description": "The time to delay the Dev Box action or actions until.", - "required": true, - "type": "string", - "format": "date-time", - "x-ms-client-name": "delayUntil" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBoxActionDelayResult" - } - }, - "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": { - "Delays all actions.": { - "$ref": "./examples/DevBoxActions_DelayMultiple.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection": { - "get": { - "operationId": "DevBoxesOperations_GetRemoteConnection", - "description": "Gets RDP Connection info", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/RemoteConnection" - } - }, - "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": { - "Gets RDP Connection info": { - "$ref": "./examples/DevBoxes_GetRemoteConnection.json" - } - } - } - }, - "/projects/{projectName}/users/{userId}/environments": { - "get": { - "operationId": "EnvironmentsOperations_ListEnvironments", - "description": "Lists the environments for a project and user.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironment" - } - }, - "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": { - "Lists the environments for a project and user.": { - "$ref": "./examples/Environments_ListByProjectByUser.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/users/{userId}/environments/{environmentName}": { - "get": { - "operationId": "EnvironmentsOperations_GetEnvironment", - "description": "Gets an environment", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Environment" - } - }, - "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": { - "Gets an environment": { - "$ref": "./examples/Environments_Get.json" - } - } - }, - "put": { - "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", - "description": "Creates or updates an environment.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "description": "Represents an environment.", - "required": true, - "schema": { - "$ref": "#/definitions/Environment" - } - } - ], - "responses": { - "201": { - "description": "The request has succeeded and a new resource has been created as a result.", - "schema": { - "$ref": "#/definitions/Environment" - }, - "headers": { - "Operation-Location": { - "type": "string" - } - } - }, - "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": { - "Creates or updates an environment.": { - "$ref": "./examples/Environments_CreateByEnvironmentDefinition.json" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "operationId": "EnvironmentsOperations_DeleteEnvironment", - "description": "Deletes an environment and all its associated resources", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" - } - ], - "responses": { - "202": { - "description": "The request has been accepted for processing, but processing has not yet completed.", - "schema": { - "$ref": "#/definitions/OperationStatus" - }, - "headers": { - "Location": { - "type": "string" - }, - "Operation-Location": { - "type": "string" - } - } - }, - "204": { - "description": "There is no content to send for this request, but the headers may be useful. " - }, - "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": { - "Deletes an environment and all its associated resources": { - "$ref": "./examples/Environments_Delete.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/users/{userId}/devboxes": { - "get": { - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", - "description": "Lists Dev Boxes in the Dev Center for a particular user.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": false, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBox" - } - }, - "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-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "APIVersions": { - "type": "string", - "description": "DevCenter API versions", - "enum": [ - "2023-04-01" - ], - "x-ms-enum": { - "name": "APIVersions", - "modelAsString": true, - "values": [ - { - "name": "v2023_04_01", - "value": "2023-04-01", - "description": "The 2023-04-01 service API version" - } - ] - } - }, - "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." - } - } - }, - "Azure.Core.uuid": { - "type": "string", - "format": "uuid", - "description": "Universally Unique Identifier" - }, - "Catalog": { - "type": "object", - "description": "A catalog.", - "properties": { - "name": { - "type": "string", - "description": "Name of the catalog." - } - }, - "required": [ - "name" - ] - }, - "DevBox": { - "type": "object", - "description": "A Dev Box", - "properties": { - "name": { - "type": "string", - "description": "Display name for the Dev Box", - "readOnly": true - }, - "projectName": { - "type": "string", - "description": "Name of the project this Dev Box belongs to", - "readOnly": true - }, - "poolName": { - "type": "string", - "description": "The name of the Dev Box pool this machine belongs to.", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "hibernateSupport": { - "$ref": "#/definitions/HibernateSupport", - "description": "Indicates whether hibernate is enabled/disabled or unknown.", - "readOnly": true - }, - "provisioningState": { - "$ref": "#/definitions/DevBoxProvisioningState", - "description": "The current provisioning state of the Dev Box.", - "readOnly": true - }, - "actionState": { - "type": "string", - "description": "The current action state of the Dev Box. This is state is based on previous\naction performed by user.", - "readOnly": true - }, - "powerState": { - "$ref": "#/definitions/PowerState", - "description": "The current power state of the Dev Box.", - "default": "Unknown", - "readOnly": true - }, - "uniqueId": { - "$ref": "#/definitions/Azure.Core.uuid", - "description": "A unique identifier for the Dev Box. This is a GUID-formatted string (e.g.\n00000000-0000-0000-0000-000000000000).", - "readOnly": true - }, - "error": { - "$ref": "#/definitions/Azure.Core.Foundations.Error", - "description": "Provisioning or action error details. Populated only for error states.", - "readOnly": true - }, - "location": { - "type": "string", - "description": "Azure region where this Dev Box is located. This will be the same region as the\nVirtual Network it is attached to.", - "readOnly": true - }, - "osType": { - "$ref": "#/definitions/OsType", - "description": "The operating system type of this Dev Box.", - "readOnly": true - }, - "user": { - "$ref": "#/definitions/Azure.Core.uuid", - "description": "The AAD object id of the user this Dev Box is assigned to.", - "readOnly": true - }, - "hardwareProfile": { - "$ref": "#/definitions/HardwareProfile", - "description": "Information about the Dev Box's hardware resources", - "readOnly": true - }, - "storageProfile": { - "$ref": "#/definitions/StorageProfile", - "description": "Storage settings for this Dev Box", - "readOnly": true - }, - "imageReference": { - "$ref": "#/definitions/ImageReference", - "description": "Information about the image used for this Dev Box", - "readOnly": true - }, - "createdTime": { - "type": "string", - "format": "date-time", - "description": "Creation time of this Dev Box", - "readOnly": true - }, - "localAdministrator": { - "$ref": "#/definitions/LocalAdminStatus", - "description": "Indicates whether the owner of the Dev Box is a local administrator.", - "x-ms-mutability": [ - "read", - "create" - ] - } - }, - "required": [ - "name", - "poolName", - "powerState" - ] - }, - "DevBoxAction": { - "type": "object", - "description": "An action which will take place on a Dev Box.", - "properties": { - "name": { - "type": "string", - "description": "The name of the action.", - "readOnly": true - }, - "actionType": { - "$ref": "#/definitions/DevBoxActionType", - "description": "The action that will be taken." - }, - "sourceId": { - "type": "string", - "description": "The id of the resource which triggered this action" - }, - "suspendedUntil": { - "type": "string", - "format": "date-time", - "description": "The earliest time that the action could occur (UTC)." - }, - "next": { - "$ref": "#/definitions/DevBoxNextAction", - "description": "Details about the next run of this action." - } - }, - "required": [ - "name", - "actionType", - "sourceId" - ] - }, - "DevBoxActionDelayResult": { - "type": "object", - "description": "The action delay result", - "properties": { - "name": { - "type": "string", - "description": "The name of the action." - }, - "result": { - "$ref": "#/definitions/DevBoxActionDelayResultStatus", - "description": "The result of the delay operation on this action." - }, - "action": { - "$ref": "#/definitions/DevBoxAction", - "description": "The delayed action" - }, - "error": { - "$ref": "#/definitions/Azure.Core.Foundations.Error", - "description": "Information about the error that occurred. Only populated on error." - } - }, - "required": [ - "name", - "result" - ] - }, - "DevBoxActionDelayResultStatus": { - "type": "string", - "description": "The result of the delay operation on this action.", - "enum": [ - "Succeeded", - "Failed" - ], - "x-ms-enum": { - "name": "DevBoxActionDelayResultStatus", - "modelAsString": true, - "values": [ - { - "name": "Succeeded", - "value": "Succeeded", - "description": "The delay operation succeeded." - }, - { - "name": "Failed", - "value": "Failed", - "description": "The delay operation failed." - } - ] - } - }, - "DevBoxActionType": { - "type": "string", - "description": "The type of action which will take place on a Dev Box.", - "enum": [ - "Stop" - ], - "x-ms-enum": { - "name": "DevBoxActionType", - "modelAsString": true, - "values": [ - { - "name": "Stop", - "value": "Stop", - "description": "The action will stop the Dev Box." - } - ] - } - }, - "DevBoxNextAction": { - "type": "object", - "description": "Details about the next run of an action.", - "properties": { - "scheduledTime": { - "type": "string", - "format": "date-time", - "description": "The time the action will be triggered (UTC)." - } - }, - "required": [ - "scheduledTime" - ] - }, - "DevBoxProvisioningState": { - "type": "string", - "description": "Indicates the provisioning state of the Dev Box.", - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "Creating", - "Deleting", - "Updating", - "Starting", - "Stopping", - "Provisioning", - "ProvisionedWithWarning", - "InGracePeriod", - "NotProvisioned" - ], - "x-ms-enum": { - "name": "DevBoxProvisioningState", - "modelAsString": true, - "values": [ - { - "name": "Succeeded", - "value": "Succeeded", - "description": "Dev Box was successfully provisioned" - }, - { - "name": "Failed", - "value": "Failed", - "description": "Dev Box failed to provision" - }, - { - "name": "Canceled", - "value": "Canceled", - "description": "Dev Box provision was canceled" - }, - { - "name": "Creating", - "value": "Creating", - "description": "Dev Box is being created" - }, - { - "name": "Deleting", - "value": "Deleting", - "description": "Dev Box is being deleted" - }, - { - "name": "Updating", - "value": "Updating", - "description": "Dev Box is updating" - }, - { - "name": "Starting", - "value": "Starting", - "description": "Dev Box is starting" - }, - { - "name": "Stopping", - "value": "Stopping", - "description": "Dev Box is stopping" - }, - { - "name": "Provisioning", - "value": "Provisioning", - "description": "Dev Box is provisioning" - }, - { - "name": "ProvisionedWithWarning", - "value": "ProvisionedWithWarning", - "description": "Dev Box was provisioned with warning" - }, - { - "name": "InGracePeriod", - "value": "InGracePeriod", - "description": "Dev Box is in grace period" - }, - { - "name": "NotProvisioned", - "value": "NotProvisioned", - "description": "Dev Box is not provisioned" - } - ] - } - }, - "Environment": { - "type": "object", - "description": "Properties of an environment.", - "properties": { - "parameters": { - "type": "string", - "format": "byte", - "description": "Parameters object for the environment." - }, - "name": { - "type": "string", - "description": "Environment name.", - "readOnly": true - }, - "environmentType": { - "type": "string", - "description": "Environment type.", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "user": { - "$ref": "#/definitions/Azure.Core.uuid", - "description": "The AAD object id of the owner of this Environment.", - "readOnly": true - }, - "provisioningState": { - "$ref": "#/definitions/EnvironmentProvisioningState", - "description": "The provisioning state of the environment.", - "readOnly": true - }, - "resourceGroupId": { - "type": "string", - "description": "The identifier of the resource group containing the environment's resources.", - "readOnly": true - }, - "catalogName": { - "type": "string", - "description": "Name of the catalog.", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "environmentDefinitionName": { - "type": "string", - "description": "Name of the environment definition.", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "error": { - "$ref": "#/definitions/Azure.Core.Foundations.Error", - "description": "Provisioning error details. Populated only for error states.", - "readOnly": true - } - }, - "required": [ - "environmentType", - "catalogName", - "environmentDefinitionName" - ] - }, - "EnvironmentDefinition": { - "type": "object", - "description": "An environment definition.", - "properties": { - "id": { - "type": "string", - "description": "The ID of the environment definition." - }, - "name": { - "type": "string", - "description": "Name of the environment definition." - }, - "catalogName": { - "type": "string", - "description": "Name of the catalog." - }, - "description": { - "type": "string", - "description": "A short description of the environment definition." - }, - "parameters": { - "type": "array", - "description": "Input parameters passed to an environment.", - "items": { - "$ref": "#/definitions/EnvironmentDefinitionParameter" - } - }, - "parametersSchema": { - "type": "string", - "format": "byte", - "description": "JSON schema defining the parameters object passed to an environment." - }, - "templatePath": { - "type": "string", - "description": "Path to the Environment Definition entrypoint file." - } - }, - "required": [ - "id", - "name", - "catalogName" - ] - }, - "EnvironmentDefinitionParameter": { - "type": "object", - "description": "Properties of an Environment Definition parameter", - "properties": { - "id": { - "type": "string", - "description": "Unique ID of the parameter" - }, - "name": { - "type": "string", - "description": "Display name of the parameter" - }, - "description": { - "type": "string", - "description": "Description of the parameter" - }, - "default": { - "type": "string", - "format": "byte", - "description": "Default value of the parameter" - }, - "type": { - "$ref": "#/definitions/ParameterType", - "description": "A string of one of the basic JSON types (number, integer, array, object,\nboolean, string)" - }, - "readOnly": { - "type": "boolean", - "description": "Whether or not this parameter is read-only. If true, default should have a\nvalue." - }, - "required": { - "type": "boolean", - "description": "Whether or not this parameter is required" - }, - "allowed": { - "type": "array", - "description": "An array of allowed values", - "minItems": 1, - "items": { - "type": "string" - } - } - }, - "required": [ - "id", - "type", - "required" - ] - }, - "EnvironmentProvisioningState": { - "type": "string", - "description": "The provisioning state of the environment.", - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "Creating", - "Accepted", - "Deleting", - "Updating", - "Preparing", - "Running", - "Syncing", - "MovingResources", - "TransientFailure", - "StorageProvisioningFailed" - ], - "x-ms-enum": { - "name": "EnvironmentProvisioningState", - "modelAsString": true, - "values": [ - { - "name": "Succeeded", - "value": "Succeeded", - "description": "The environment was successfully provisioned." - }, - { - "name": "Failed", - "value": "Failed", - "description": "The environment failed to provision." - }, - { - "name": "Canceled", - "value": "Canceled", - "description": "The environment provisioning was canceled." - }, - { - "name": "Creating", - "value": "Creating", - "description": "The environment is creating." - }, - { - "name": "Accepted", - "value": "Accepted", - "description": "The environment was accepted." - }, - { - "name": "Deleting", - "value": "Deleting", - "description": "The environment is deleting." - }, - { - "name": "Updating", - "value": "Updating", - "description": "The environment is updating." - }, - { - "name": "Preparing", - "value": "Preparing", - "description": "The environment is preparing." - }, - { - "name": "Running", - "value": "Running", - "description": "The environment is running." - }, - { - "name": "Syncing", - "value": "Syncing", - "description": "The environment is Syncing." - }, - { - "name": "MovingResources", - "value": "MovingResources", - "description": "The environment is moving resources." - }, - { - "name": "TransientFailure", - "value": "TransientFailure", - "description": "The environment has a transient failure." - }, - { - "name": "StorageProvisioningFailed", - "value": "StorageProvisioningFailed", - "description": "The environment storage provisioning failed." - } - ] - } - }, - "EnvironmentType": { - "type": "object", - "description": "Properties of an environment type.", - "properties": { - "name": { - "type": "string", - "description": "Name of the environment type" - }, - "deploymentTargetId": { - "type": "string", - "description": "Id of a subscription or management group that the environment type will be\nmapped to. The environment's resources will be deployed into this subscription\nor management group." - }, - "status": { - "$ref": "#/definitions/EnvironmentTypeEnableStatus", - "description": "Indicates whether this environment type is enabled for use in this project." - } - }, - "required": [ - "name", - "deploymentTargetId", - "status" - ] - }, - "EnvironmentTypeEnableStatus": { - "type": "string", - "description": "Indicates whether an environment type is enabled for use in a project.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "EnvironmentTypeEnableStatus", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "The environment type is enabled for use in the project." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "The environment type is not enabled for use in the project." - } - ] - } - }, - "EnvironmentUpdateProperties": { - "type": "object", - "description": "Properties of an environment. These properties can be updated after the\nresource has been created.", - "properties": { - "parameters": { - "type": "string", - "format": "byte", - "description": "Parameters object for the environment." - } - } - }, - "HardwareProfile": { - "type": "object", - "description": "Hardware specifications for the Dev Box.", - "properties": { - "skuName": { - "$ref": "#/definitions/SkuName", - "description": "The name of the SKU", - "readOnly": true - }, - "vCPUs": { - "type": "integer", - "format": "int32", - "description": "The number of vCPUs available for the Dev Box.", - "readOnly": true - }, - "memoryGB": { - "type": "integer", - "format": "int32", - "description": "The amount of memory available for the Dev Box.", - "readOnly": true - } - } - }, - "HibernateSupport": { - "type": "string", - "description": "Indicates whether hibernate is supported and enabled, disabled, or unsupported by the operating system. Unknown hibernate support is represented as null.", - "enum": [ - "Enabled", - "Disabled", - "OsUnsupported" - ], - "x-ms-enum": { - "name": "HibernateSupport", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "Hibernate is enabled." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "Hibernate is not enabled." - }, - { - "name": "OsUnsupported", - "value": "OsUnsupported", - "description": "Hibernate is not supported by the operating system." - } - ] - } - }, - "ImageReference": { - "type": "object", - "description": "Specifies information about the image used", - "properties": { - "name": { - "type": "string", - "description": "The name of the image used.", - "readOnly": true - }, - "version": { - "type": "string", - "description": "The version of the image.", - "readOnly": true - }, - "operatingSystem": { - "type": "string", - "description": "The operating system of the image.", - "readOnly": true - }, - "osBuildNumber": { - "type": "string", - "description": "The operating system build number of the image.", - "readOnly": true - }, - "publishedDate": { - "type": "string", - "format": "date-time", - "description": "The datetime that the backing image version was published.", - "readOnly": true - } - } - }, - "LocalAdminStatus": { - "type": "string", - "description": "Indicates whether owners of Dev Boxes in a pool are local administrators on the Dev Boxes.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "LocalAdminStatus", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "Owners of Dev Boxes in the pool are local administrators on the Dev Boxes." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes." - } - ] - } - }, - "OperationStatus": { - "type": "object", - "description": "The current status of an async operation", - "properties": { - "id": { - "type": "string", - "description": "Fully qualified ID for the operation status." - }, - "name": { - "type": "string", - "description": "The operation id name" - }, - "status": { - "$ref": "#/definitions/OperationStatusValue", - "description": "Provisioning state of the resource." - }, - "resourceId": { - "type": "string", - "description": "The id of the resource." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the operation" - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the operation" - }, - "percentComplete": { - "type": "number", - "format": "float", - "description": "Percent of the operation that is complete", - "minimum": 0, - "maximum": 100 - }, - "properties": { - "type": "string", - "format": "byte", - "description": "Custom operation properties, populated only for a successful operation." - }, - "error": { - "$ref": "#/definitions/Azure.Core.Foundations.Error", - "description": "Operation Error message" - } - }, - "required": [ - "status" - ] - }, - "OperationStatusValue": { - "type": "string", - "description": "Indicates whether operation status is running, completed, canceled or failed.", - "enum": [ - "Running", - "Completed", - "Canceled", - "Failed" - ], - "x-ms-enum": { - "name": "OperationStatusValue", - "modelAsString": true, - "values": [ - { - "name": "Running", - "value": "Running", - "description": "Operation is in progress" - }, - { - "name": "Completed", - "value": "Completed", - "description": "Operation is completed with success" - }, - { - "name": "Canceled", - "value": "Canceled", - "description": "Operation was canceled" - }, - { - "name": "Failed", - "value": "Failed", - "description": "Operation failed" - } - ] - } - }, - "OsDisk": { - "type": "object", - "description": "Settings for the operating system disk.", - "properties": { - "diskSizeGB": { - "type": "integer", - "format": "int32", - "description": "The size of the OS Disk in gigabytes.", - "readOnly": true - } - } - }, - "OsType": { - "type": "string", - "description": "The operating system type.", - "enum": [ - "Windows" - ], - "x-ms-enum": { - "name": "OsType", - "modelAsString": true, - "values": [ - { - "name": "Windows", - "value": "Windows", - "description": "The Windows operating system." - } - ] - } - }, - "PagedCatalog": { - "type": "object", - "description": "Results of the catalog list operation.", - "properties": { - "value": { - "type": "array", - "description": "The Catalog items on this page", - "items": { - "$ref": "#/definitions/Catalog" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedDevBox": { - "type": "object", - "description": "The Dev Box list result", - "properties": { - "value": { - "type": "array", - "description": "The DevBox items on this page", - "items": { - "$ref": "#/definitions/DevBox" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedDevBoxAction": { - "type": "object", - "description": "The actions list result", - "properties": { - "value": { - "type": "array", - "description": "The DevBoxAction items on this page", - "items": { - "$ref": "#/definitions/DevBoxAction" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedDevBoxActionDelayResult": { - "type": "object", - "description": "The actions list result", - "properties": { - "value": { - "type": "array", - "description": "The DevBoxActionDelayResult items on this page", - "items": { - "$ref": "#/definitions/DevBoxActionDelayResult" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedEnvironment": { - "type": "object", - "description": "Results of the environment list operation.", - "properties": { - "value": { - "type": "array", - "description": "The Environment items on this page", - "items": { - "$ref": "#/definitions/Environment" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedEnvironmentDefinition": { - "type": "object", - "description": "Results of the environment definition list operation.", - "properties": { - "value": { - "type": "array", - "description": "The EnvironmentDefinition items on this page", - "items": { - "$ref": "#/definitions/EnvironmentDefinition" - } - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedEnvironmentType": { - "type": "object", - "description": "Result of the environment type list operation.", - "properties": { - "value": { - "type": "array", - "description": "The EnvironmentType items on this page", - "items": { - "$ref": "#/definitions/EnvironmentType" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedPool": { - "type": "object", - "description": "The Pool list result", - "properties": { - "value": { - "type": "array", - "description": "The Pool items on this page", - "items": { - "$ref": "#/definitions/Pool" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedProject": { - "type": "object", - "description": "Results of the project list operation.", - "properties": { - "value": { - "type": "array", - "description": "The Project items on this page", - "items": { - "$ref": "#/definitions/Project" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedSchedule": { - "type": "object", - "description": "The Schedule list result", - "properties": { - "value": { - "type": "array", - "description": "The Schedule items on this page", - "items": { - "$ref": "#/definitions/Schedule" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "ParameterType": { - "type": "string", - "description": "The type of data a parameter accepts.", - "enum": [ - "array", - "boolean", - "integer", - "number", - "object", - "string" - ], - "x-ms-enum": { - "name": "ParameterType", - "modelAsString": true, - "values": [ - { - "name": "array", - "value": "array", - "description": "The parameter accepts an array of values." - }, - { - "name": "boolean", - "value": "boolean", - "description": "The parameter accepts a boolean value." - }, - { - "name": "integer", - "value": "integer", - "description": "The parameter accepts an integer value." - }, - { - "name": "number", - "value": "number", - "description": "The parameter accepts a number value." - }, - { - "name": "object", - "value": "object", - "description": "The parameter accepts an object value." - }, - { - "name": "string", - "value": "string", - "description": "The parameter accepts a string value." - } - ] - } - }, - "Pool": { - "type": "object", - "description": "A pool of Dev Boxes.", - "properties": { - "name": { - "type": "string", - "description": "Pool name", - "readOnly": true - }, - "location": { - "type": "string", - "description": "Azure region where Dev Boxes in the pool are located" - }, - "osType": { - "$ref": "#/definitions/OsType", - "description": "The operating system type of Dev Boxes in this pool" - }, - "hardwareProfile": { - "$ref": "#/definitions/HardwareProfile", - "description": "Hardware settings for the Dev Boxes created in this pool" - }, - "hibernateSupport": { - "$ref": "#/definitions/HibernateSupport", - "description": "Indicates whether hibernate is enabled/disabled or unknown." - }, - "storageProfile": { - "$ref": "#/definitions/StorageProfile", - "description": "Storage settings for Dev Box created in this pool" - }, - "imageReference": { - "$ref": "#/definitions/ImageReference", - "description": "Image settings for Dev Boxes create in this pool" - }, - "localAdministrator": { - "$ref": "#/definitions/LocalAdminStatus", - "description": "Indicates whether owners of Dev Boxes in this pool are local administrators on\nthe Dev Boxes." - }, - "stopOnDisconnect": { - "$ref": "#/definitions/StopOnDisconnectConfiguration", - "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool." - }, - "healthStatus": { - "$ref": "#/definitions/PoolHealthStatus", - "description": "Overall health status of the Pool. Indicates whether or not the Pool is\navailable to create Dev Boxes." - } - }, - "required": [ - "name", - "location", - "healthStatus" - ] - }, - "PoolHealthStatus": { - "type": "string", - "description": "Pool status indicating whether a pool is available to create Dev Boxes.", - "enum": [ - "Unknown", - "Pending", - "Healthy", - "Warning", - "Unhealthy" - ], - "x-ms-enum": { - "name": "PoolHealthStatus", - "modelAsString": true, - "values": [ - { - "name": "Unknown", - "value": "Unknown", - "description": "The pool health status is not known." - }, - { - "name": "Pending", - "value": "Pending", - "description": "The pool health status waiting for health checks to run." - }, - { - "name": "Healthy", - "value": "Healthy", - "description": "The pool health status is healthy." - }, - { - "name": "Warning", - "value": "Warning", - "description": "The pool health status has one or more warnings." - }, - { - "name": "Unhealthy", - "value": "Unhealthy", - "description": "The pool health status is not healthy." - } - ] - } - }, - "PowerState": { - "type": "string", - "description": "The power states of a Dev Box.", - "enum": [ - "Unknown", - "Running", - "Deallocated", - "PoweredOff", - "Hibernated" - ], - "x-ms-enum": { - "name": "PowerState", - "modelAsString": true, - "values": [ - { - "name": "Unknown", - "value": "Unknown", - "description": "The Dev Box power state is not known." - }, - { - "name": "Running", - "value": "Running", - "description": "The Dev Box is running." - }, - { - "name": "Deallocated", - "value": "Deallocated", - "description": "The Dev Box is deallocated." - }, - { - "name": "PoweredOff", - "value": "PoweredOff", - "description": "The Dev Box is powered off." - }, - { - "name": "Hibernated", - "value": "Hibernated", - "description": "The Dev Box is hibernated." - } - ] - } - }, - "Project": { - "type": "object", - "description": "Project details.", - "properties": { - "name": { - "type": "string", - "description": "Name of the project", - "readOnly": true - }, - "description": { - "type": "string", - "description": "Description of the project." - }, - "maxDevBoxesPerUser": { - "type": "integer", - "format": "int32", - "description": "When specified, indicates the maximum number of Dev Boxes a single user can\ncreate across all pools in the project.", - "minimum": 0 - } - }, - "required": [ - "name" - ] - }, - "RemoteConnection": { - "type": "object", - "description": "Provides remote connection information for a Dev Box.", - "properties": { - "webUrl": { - "type": "string", - "format": "uri", - "description": "URL to open a browser based RDP session." - }, - "rdpConnectionUrl": { - "type": "string", - "format": "uri", - "description": "Link to open a Remote Desktop session." - } - } - }, - "Schedule": { - "type": "object", - "description": "A Schedule to execute action.", - "properties": { - "name": { - "type": "string", - "description": "Display name for the Schedule", - "readOnly": true - }, - "type": { - "$ref": "#/definitions/ScheduledType", - "description": "Supported type this scheduled task represents." - }, - "frequency": { - "$ref": "#/definitions/ScheduledFrequency", - "description": "The frequency of this scheduled task." - }, - "time": { - "type": "string", - "format": "time", - "description": "The target time to trigger the action. The format is HH:MM." - }, - "timeZone": { - "type": "string", - "description": "The IANA timezone id at which the schedule should execute." - } - }, - "required": [ - "name", - "type", - "frequency", - "time", - "timeZone" - ] - }, - "ScheduledFrequency": { - "type": "string", - "description": "The frequency of task execution.", - "enum": [ - "Daily" - ], - "x-ms-enum": { - "name": "ScheduledFrequency", - "modelAsString": true, - "values": [ - { - "name": "Daily", - "value": "Daily", - "description": "The scheduled task will run every day." - } - ] - } - }, - "ScheduledType": { - "type": "string", - "description": "The supported types for a scheduled task.", - "enum": [ - "StopDevBox" - ], - "x-ms-enum": { - "name": "ScheduledType", - "modelAsString": true, - "values": [ - { - "name": "StopDevBox", - "value": "StopDevBox", - "description": "The scheduled task will stop impacted Dev Boxes." - } - ] - } - }, - "SkuName": { - "type": "string", - "description": "Indicates the Dev Box compute.", - "enum": [ - "general_i_8c32gb256ssd_v2", - "general_i_8c32gb512ssd_v2", - "general_i_8c32gb1024ssd_v2", - "general_i_8c32gb2048ssd_v2", - "general_i_16c64gb256ssd_v2", - "general_i_16c64gb512ssd_v2", - "general_i_16c64gb1024ssd_v2", - "general_i_16c64gb2048ssd_v2", - "general_i_32c128gb512ssd_v2", - "general_i_32c128gb1024ssd_v2", - "general_i_32c128gb2048ssd_v2", - "general_a_8c32gb256ssd_v2", - "general_a_8c32gb512ssd_v2", - "general_a_8c32gb1024ssd_v2", - "general_a_8c32gb2048ssd_v2", - "general_a_16c64gb256ssd_v2", - "general_a_16c64gb512ssd_v2", - "general_a_16c64gb1024ssd_v2", - "general_a_16c64gb2048ssd_v2", - "general_a_32c128gb512ssd_v2", - "general_a_32c128gb1024ssd_v2", - "general_a_32c128gb2048ssd_v2" - ], - "x-ms-enum": { - "name": "SkuName", - "modelAsString": true, - "values": [ - { - "name": "general_i_8c32gb256ssd_v2", - "value": "general_i_8c32gb256ssd_v2", - "description": "Intel, 8 vCPU, 32 GB RAM, 256 GB Storage" - }, - { - "name": "general_i_8c32gb512ssd_v2", - "value": "general_i_8c32gb512ssd_v2", - "description": "Intel, 8 vCPU, 32 GB RAM, 512 GB Storage" - }, - { - "name": "general_i_8c32gb1024ssd_v2", - "value": "general_i_8c32gb1024ssd_v2", - "description": "Intel, 8 vCPU, 32 GB RAM, 1024 GB Storage" - }, - { - "name": "general_i_8c32gb2048ssd_v2", - "value": "general_i_8c32gb2048ssd_v2", - "description": "Intel, 8 vCPU, 32 GB RAM, 2048 GB Storage" - }, - { - "name": "general_i_16c64gb256ssd_v2", - "value": "general_i_16c64gb256ssd_v2", - "description": "Intel, 16 vCPU, 64 GB RAM, 256 GB Storage" - }, - { - "name": "general_i_16c64gb512ssd_v2", - "value": "general_i_16c64gb512ssd_v2", - "description": "Intel, 16 vCPU, 64 GB RAM, 512 GB Storage" - }, - { - "name": "general_i_16c64gb1024ssd_v2", - "value": "general_i_16c64gb1024ssd_v2", - "description": "Intel, 16 vCPU, 64 GB RAM, 1024 GB Storage" - }, - { - "name": "general_i_16c64gb2048ssd_v2", - "value": "general_i_16c64gb2048ssd_v2", - "description": "Intel, 16 vCPU, 64 GB RAM, 2048 GB Storage" - }, - { - "name": "general_i_32c128gb512ssd_v2", - "value": "general_i_32c128gb512ssd_v2", - "description": "Intel, 32 vCPU, 128 GB RAM, 512 GB Storage" - }, - { - "name": "general_i_32c128gb1024ssd_v2", - "value": "general_i_32c128gb1024ssd_v2", - "description": "Intel, 32 vCPU, 128 GB RAM, 1024 GB Storage" - }, - { - "name": "general_i_32c128gb2048ssd_v2", - "value": "general_i_32c128gb2048ssd_v2", - "description": "Intel, 32 vCPU, 128 GB RAM, 2048 GB Storage" - }, - { - "name": "general_a_8c32gb256ssd_v2", - "value": "general_a_8c32gb256ssd_v2", - "description": "AMD, 8 vCPU, 32 GB RAM, 256 GB Storage" - }, - { - "name": "general_a_8c32gb512ssd_v2", - "value": "general_a_8c32gb512ssd_v2", - "description": "AMD, 8 vCPU, 32 GB RAM, 512 GB Storage" - }, - { - "name": "general_a_8c32gb1024ssd_v2", - "value": "general_a_8c32gb1024ssd_v2", - "description": "AMD, 8 vCPU, 32 GB RAM, 1024 GB Storage" - }, - { - "name": "general_a_8c32gb2048ssd_v2", - "value": "general_a_8c32gb2048ssd_v2", - "description": "AMD, 8 vCPU, 32 GB RAM, 2048 GB Storage" - }, - { - "name": "general_a_16c64gb256ssd_v2", - "value": "general_a_16c64gb256ssd_v2", - "description": "AMD, 16 vCPU, 64 GB RAM, 256 GB Storage" - }, - { - "name": "general_a_16c64gb512ssd_v2", - "value": "general_a_16c64gb512ssd_v2", - "description": "AMD, 16 vCPU, 64 GB RAM, 512 GB Storage" - }, - { - "name": "general_a_16c64gb1024ssd_v2", - "value": "general_a_16c64gb1024ssd_v2", - "description": "AMD, 16 vCPU, 64 GB RAM, 1024 GB Storage" - }, - { - "name": "general_a_16c64gb2048ssd_v2", - "value": "general_a_16c64gb2048ssd_v2", - "description": "AMD, 16 vCPU, 64 GB RAM, 2048 GB Storage" - }, - { - "name": "general_a_32c128gb512ssd_v2", - "value": "general_a_32c128gb512ssd_v2", - "description": "AMD, 32 vCPU, 128 GB RAM, 512 GB Storage" - }, - { - "name": "general_a_32c128gb1024ssd_v2", - "value": "general_a_32c128gb1024ssd_v2", - "description": "AMD, 32 vCPU, 128 GB RAM, 1024 GB Storage" - }, - { - "name": "general_a_32c128gb2048ssd_v2", - "value": "general_a_32c128gb2048ssd_v2", - "description": "AMD, 32 vCPU, 128 GB RAM, 2048 GB Storage" - } - ] - } - }, - "StopOnDisconnectConfiguration": { - "type": "object", - "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", - "properties": { - "status": { - "$ref": "#/definitions/StopOnDisconnectEnableStatus", - "description": "Indicates whether the feature to stop the devbox on disconnect once the grace\nperiod has lapsed is enabled." - }, - "gracePeriodMinutes": { - "type": "integer", - "format": "int32", - "description": "The specified time in minutes to wait before stopping a Dev Box once disconnect\nis detected." - } - }, - "required": [ - "status" - ] - }, - "StopOnDisconnectEnableStatus": { - "type": "string", - "description": "Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "StopOnDisconnectEnableStatus", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "Stop on disconnect is enabled on the Dev Box." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "Stop on disconnect is not enabled on the Dev Box." - } - ] - } - }, - "StorageProfile": { - "type": "object", - "description": "Storage settings for the Dev Box's disks", - "properties": { - "osDisk": { - "$ref": "#/definitions/OsDisk", - "description": "Settings for the operating system disk." - } - } - }, - "User": { - "type": "object", - "description": "Project user", - "properties": { - "userId": { - "type": "string", - "description": "The AAD object id of the user", - "readOnly": true - } - }, - "required": [ - "userId" - ] - } - }, - "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" - } - } -} From 97976f03578cf060131164090314df54e25c16d5 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 1 Feb 2024 16:20:37 -0800 Subject: [PATCH 109/187] Update folder name in the import --- specification/devcenter/DevCenter/client.tsp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 31629d890bb1..d950c69f8bc8 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -1,7 +1,7 @@ import "./service.tsp"; -import "./environments/routes.tsp"; -import "./devcenter/routes.tsp"; -import "./devbox/routes.tsp"; +import "./Environments/routes.tsp"; +import "./DevCenter/routes.tsp"; +import "./DevBox/routes.tsp"; import "@azure-tools/typespec-client-generator-core"; using Azure.Core; From aa20ae67c48c68aca8c68f4d2eefdfcf847c1d3d Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 1 Feb 2024 17:21:45 -0800 Subject: [PATCH 110/187] revert changes from 09-01-preview --- .../2023-09-01-preview/environments.json | 1611 ++++++++--------- 1 file changed, 733 insertions(+), 878 deletions(-) diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-09-01-preview/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-09-01-preview/environments.json index 96b35fe024e5..d4f8ced6522c 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-09-01-preview/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-09-01-preview/environments.json @@ -1,1057 +1,973 @@ { "swagger": "2.0", "info": { - "title": "DevCenter", "version": "2023-09-01-preview", - "description": "DevCenter service", - "x-typespec-generated": [ - { - "emitter": "@azure-tools/typespec-autorest" - } - ] + "title": "DevCenter", + "description": "Deployment Environments API." }, - "schemes": [ - "https" - ], "x-ms-parameterized-host": { "hostTemplate": "{endpoint}", "useSchemePrefix": false, "parameters": [ { - "name": "endpoint", - "in": "path", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/EndpointParameter" } ] }, - "produces": [ - "application/json" + "schemes": [ + "https" ], "consumes": [ "application/json" ], + "produces": [ + "application/json" + ], "security": [ { - "OAuth2Auth": [ + "AADToken": [ "user_impersonation" ] } ], "securityDefinitions": { - "OAuth2Auth": { + "AADToken": { "type": "oauth2", - "flow": "implicit", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "" + "user_impersonation": "impersonate your user account" } } }, - "tags": [], "paths": { - "/projects/{projectName}/catalogs": { + "/projects/{projectName}/environments": { "get": { - "operationId": "EnvironmentsOperations_ListCatalogsByProject", - "description": "Lists all of the catalogs available for a project.", + "tags": [ + "Environments" + ], + "description": "Lists the environments for a project.", "parameters": [ { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + "$ref": "devcenter.json#/parameters/ApiVersionParameter" }, { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/TopParameter" }, { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" + "$ref": "devcenter.json#/parameters/ProjectNameParameter" } ], + "operationId": "Environments_ListEnvironments", "responses": { "200": { - "description": "The request has succeeded.", + "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/PagedCatalog" + "$ref": "#/definitions/EnvironmentListResult" } }, "default": { - "description": "An unexpected error response.", + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + "$ref": "devcenter.json#/definitions/CloudError" }, "headers": { "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." + "description": "The error code for specific error that occurred.", + "type": "string" } } } }, + "x-ms-examples": { + "Environments_ListEnvironments": { + "$ref": "./examples/Environments_ListByProject.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/catalogs/{catalogName}": { + "/projects/{projectName}/users/{userId}/environments": { "get": { - "operationId": "EnvironmentsOperations_GetCatalog", - "description": "Gets the specified catalog within the project", + "tags": [ + "Environments" + ], + "description": "Lists the environments for a project and user.", "parameters": [ { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + "$ref": "devcenter.json#/parameters/ApiVersionParameter" }, { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/TopParameter" }, { - "name": "catalogName", - "in": "path", - "description": "The name of the catalog", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/ProjectNameParameter" + }, + { + "$ref": "devcenter.json#/parameters/UserIdParameter" } ], + "operationId": "Environments_ListEnvironmentsByUser", "responses": { "200": { - "description": "The request has succeeded.", + "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/Catalog" + "$ref": "#/definitions/EnvironmentListResult" } }, "default": { - "description": "An unexpected error response.", + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + "$ref": "devcenter.json#/definitions/CloudError" }, "headers": { "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." + "description": "The error code for specific error that occurred.", + "type": "string" } } } + }, + "x-ms-examples": { + "Environments_ListEnvironmentsByUser": { + "$ref": "./examples/Environments_ListByProjectByUser.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { + "/projects/{projectName}/users/{userId}/environments/{environmentName}": { "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", - "description": "Lists all environment definitions available within a catalog.", + "tags": [ + "Environments" + ], + "description": "Gets an environment", "parameters": [ { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + "$ref": "devcenter.json#/parameters/ApiVersionParameter" }, { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/ProjectNameParameter" }, { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" + "$ref": "devcenter.json#/parameters/UserIdParameter" }, { - "name": "catalogName", - "in": "path", - "description": "The name of the catalog", - "required": true, - "type": "string" + "$ref": "#/parameters/EnvironmentNameParameter" } ], + "operationId": "Environments_GetEnvironmentByUser", "responses": { "200": { - "description": "The request has succeeded.", + "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/PagedEnvironmentDefinition" + "$ref": "#/definitions/Environment" } }, "default": { - "description": "An unexpected error response.", + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + "$ref": "devcenter.json#/definitions/CloudError" }, "headers": { "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." + "description": "The error code for specific error that occurred.", + "type": "string" } } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" + "x-ms-examples": { + "Environments_GetEnvironmentByUser": { + "$ref": "./examples/Environments_Get.json" + } } - } - }, - "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { - "get": { - "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", - "description": "Get an environment definition from a catalog.", + }, + "put": { + "tags": [ + "Environments" + ], + "description": "Creates or updates an environment.", "parameters": [ { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + "$ref": "devcenter.json#/parameters/ApiVersionParameter" }, { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/ProjectNameParameter" }, { - "name": "catalogName", - "in": "path", - "description": "The name of the catalog", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/UserIdParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" }, { - "name": "definitionName", - "in": "path", - "description": "The name of the environment definition", + "name": "body", + "in": "body", + "description": "Represents an environment.", "required": true, - "type": "string" + "schema": { + "$ref": "#/definitions/Environment" + } } ], + "operationId": "Environments_CreateOrReplaceEnvironment", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "original-uri" + }, "responses": { - "200": { - "description": "The request has succeeded.", + "201": { + "description": "Created. Operation will complete asynchronously.", "schema": { - "$ref": "#/definitions/EnvironmentDefinition" + "$ref": "#/definitions/Environment" + }, + "headers": { + "Operation-Location": { + "description": "URL to query for status of the operation.", + "type": "string" + } } }, "default": { - "description": "An unexpected error response.", + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + "$ref": "devcenter.json#/definitions/CloudError" }, "headers": { "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." + "description": "The error code for specific error that occurred.", + "type": "string" } } } + }, + "x-ms-examples": { + "Environments_CreateByEnvironmentDefinition": { + "$ref": "./examples/Environments_CreateByEnvironmentDefinition.json" + } } - } - }, - "/projects/{projectName}/environmentDefinitions": { - "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByProject", - "description": "Lists all environment definitions available for a project.", + }, + "delete": { + "tags": [ + "Environments" + ], + "description": "Deletes an environment and all its associated resources", "parameters": [ { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + "$ref": "devcenter.json#/parameters/ApiVersionParameter" }, { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/ProjectNameParameter" }, { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" + "$ref": "devcenter.json#/parameters/UserIdParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" } ], + "operationId": "Environments_DeleteEnvironment", + "x-ms-long-running-operation": true, "responses": { - "200": { - "description": "The request has succeeded.", + "202": { + "description": "Accepted. Operation will complete asynchronously.", "schema": { - "$ref": "#/definitions/PagedEnvironmentDefinition" + "$ref": "devcenter.json#/definitions/OperationStatus" + }, + "headers": { + "Operation-Location": { + "description": "URL to query for status of the operation.", + "type": "string" + } } }, + "204": { + "description": "Deletion was successful or resource does not exist." + }, "default": { - "description": "An unexpected error response.", + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + "$ref": "devcenter.json#/definitions/CloudError" }, "headers": { "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." + "description": "The error code for specific error that occurred.", + "type": "string" } } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" + "x-ms-examples": { + "Environments_DeleteEnvironment": { + "$ref": "./examples/Environments_Delete.json" + } } } }, - "/projects/{projectName}/environmentTypes": { + "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations": { "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentTypes", - "description": "Lists all environment types configured for a project.", + "tags": [ + "EnvironmentOperations", + "Environments" + ], + "description": "Lists operations on the environment which have occurred within the past 90 days", "parameters": [ { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + "$ref": "devcenter.json#/parameters/ApiVersionParameter" }, { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/TopParameter" }, { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" + "$ref": "devcenter.json#/parameters/FilterParameter" + }, + { + "$ref": "devcenter.json#/parameters/ProjectNameParameter" + }, + { + "$ref": "devcenter.json#/parameters/UserIdParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" } ], + "operationId": "Environments_ListOperations", "responses": { "200": { - "description": "The request has succeeded.", + "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/PagedEnvironmentType" + "$ref": "#/definitions/EnvironmentOperationListResult" } }, "default": { - "description": "An unexpected error response.", + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + "$ref": "devcenter.json#/definitions/CloudError" }, "headers": { "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." + "description": "The error code for specific error that occurred.", + "type": "string" } } } }, + "x-ms-examples": { + "EnvironmentOperations_ListByEnvironment": { + "$ref": "./examples/EnvironmentOperations_ListByEnvironment.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/environments": { + "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}": { "get": { - "operationId": "EnvironmentsOperations_ListEnvironments", - "description": "Lists the environments for a project.", + "tags": [ + "EnvironmentOperations", + "Environments" + ], + "description": "Gets an environment action result.", "parameters": [ { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + "$ref": "devcenter.json#/parameters/ApiVersionParameter" }, { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" + "$ref": "devcenter.json#/parameters/ProjectNameParameter" }, { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/UserIdParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentOperationIdParameter" } ], + "operationId": "Environments_GetOperation", "responses": { "200": { - "description": "The request has succeeded.", + "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/PagedEnvironment" + "$ref": "#/definitions/EnvironmentOperation" } }, "default": { - "description": "An unexpected error response.", + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + "$ref": "devcenter.json#/definitions/CloudError" }, "headers": { "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." + "description": "The error code for specific error that occurred.", + "type": "string" } } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" + "x-ms-examples": { + "EnvironmentOperations_GetByEnvironment": { + "$ref": "./examples/EnvironmentOperations_GetByEnvironment.json" + } } } }, - "/projects/{projectName}/users/{userId}/environments": { + "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}/logs": { "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentsByUser", - "description": "Lists the environments for a project and user.", + "tags": [ + "EnvironmentOperations", + "Environments" + ], + "description": "Gets the logs for an operation on an environment.", + "produces": [ + "text/plain" + ], "parameters": [ { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + "$ref": "devcenter.json#/parameters/ApiVersionParameter" }, { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" + "$ref": "devcenter.json#/parameters/ProjectNameParameter" }, { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/UserIdParameter" }, { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentOperationIdParameter" } ], + "operationId": "Environments_GetLogsByOperation", "responses": { "200": { - "description": "The request has succeeded.", + "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/PagedEnvironment" + "type": "file" } }, "default": { - "description": "An unexpected error response.", + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + "$ref": "devcenter.json#/definitions/CloudError" }, "headers": { "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." + "description": "The error code for specific error that occurred.", + "type": "string" } } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" + "x-ms-examples": { + "EnvironmentOperations_GetLogs": { + "$ref": "./examples/EnvironmentOperations_GetLogs.json" + } } } }, - "/projects/{projectName}/users/{userId}/environments/{environmentName}": { + "/projects/{projectName}/catalogs": { "get": { - "operationId": "EnvironmentsOperations_GetEnvironmentByUser", - "description": "Gets an environment", + "tags": [ + "Catalogs" + ], + "description": "Lists all of the catalogs available for a project.", "parameters": [ { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/ApiVersionParameter" }, { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/ProjectNameParameter" }, { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/TopParameter" } ], + "operationId": "Environments_ListCatalogsByProject", "responses": { "200": { - "description": "The request has succeeded.", + "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/Environment" + "$ref": "#/definitions/CatalogListResult" } }, "default": { - "description": "An unexpected error response.", + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + "$ref": "devcenter.json#/definitions/CloudError" }, "headers": { "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." + "description": "The error code for specific error that occurred.", + "type": "string" } } } + }, + "x-ms-examples": { + "Environments_ListCatalogsByProject": { + "$ref": "./examples/Catalogs_ListByProject.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "put": { - "operationId": "EnvironmentsOperations_CreateOrReplaceEnvironment", - "description": "Creates or updates an environment.", + } + }, + "/projects/{projectName}/catalogs/{catalogName}": { + "get": { + "tags": [ + "Catalogs" + ], + "description": "Gets the specified catalog within the project", "parameters": [ { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/ApiVersionParameter" }, { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/ProjectNameParameter" }, { - "name": "body", - "in": "body", - "description": "Represents an environment.", - "required": true, - "schema": { - "$ref": "#/definitions/Environment" - } + "$ref": "#/parameters/CatalogNameParameter" } ], + "operationId": "Environments_GetCatalog", "responses": { "200": { - "description": "The request has succeeded.", + "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/Environment" + "$ref": "#/definitions/Catalog" } }, "default": { - "description": "An unexpected error response.", + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + "$ref": "devcenter.json#/definitions/CloudError" }, "headers": { "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." + "description": "The error code for specific error that occurred.", + "type": "string" } } } + }, + "x-ms-examples": { + "Environments_GetCatalog": { + "$ref": "./examples/Catalogs_Get.json" + } } - }, - "delete": { - "operationId": "EnvironmentsOperations_DeleteEnvironment", - "description": "Deletes an environment and all its associated resources", + } + }, + "/projects/{projectName}/environmentDefinitions": { + "get": { + "tags": [ + "Environment Definitions" + ], + "description": "Lists all environment definitions available for a project.", "parameters": [ { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/ApiVersionParameter" }, { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/ProjectNameParameter" }, { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/TopParameter" } ], + "operationId": "Environments_ListEnvironmentDefinitionsByProject", "responses": { "200": { - "description": "The request has succeeded.", + "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/EnvironmentDefinitionListResult" } }, - "204": { - "description": "There is no content to send for this request, but the headers may be useful. " - }, "default": { - "description": "An unexpected error response.", + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + "$ref": "devcenter.json#/definitions/CloudError" }, "headers": { "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." + "description": "The error code for specific error that occurred.", + "type": "string" } } } + }, + "x-ms-examples": { + "Environments_ListEnvironmentDefinitions": { + "$ref": "./examples/EnvironmentDefinitions_ListByProject.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations": { + "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { "get": { - "operationId": "EnvironmentsOperations_ListOperations", - "description": "Lists operations on the environment which have occurred within the past 90 days", + "tags": [ + "Environment Definitions" + ], + "description": "Lists all environment definitions available within a catalog.", "parameters": [ { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/ApiVersionParameter" }, { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/ProjectNameParameter" }, { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/TopParameter" }, { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" + "$ref": "#/parameters/CatalogNameParameter" } ], + "operationId": "Environments_ListEnvironmentDefinitionsByCatalog", "responses": { "200": { - "description": "The request has succeeded.", + "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/PagedEnvironmentOperation" + "$ref": "#/definitions/EnvironmentDefinitionListResult" } }, "default": { - "description": "An unexpected error response.", + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + "$ref": "devcenter.json#/definitions/CloudError" }, "headers": { "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." + "description": "The error code for specific error that occurred.", + "type": "string" } } } }, + "x-ms-examples": { + "Environments_ListEnvironmentDefinitionsByCatalog": { + "$ref": "./examples/EnvironmentDefinitions_ListByCatalog.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, - "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}": { + "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { "get": { - "operationId": "EnvironmentsOperations_GetOperation", - "description": "Gets an environment action result.", + "tags": [ + "Environment Definitions" + ], + "description": "Get an environment definition from a catalog.", "parameters": [ { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/ApiVersionParameter" }, { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/ProjectNameParameter" }, { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" + "$ref": "#/parameters/CatalogNameParameter" }, { - "name": "operationId", - "in": "path", - "description": "The id of the operation on an environment.", - "required": true, - "type": "string" + "$ref": "#/parameters/EnvironmentDefinitionNameParameter" } ], + "operationId": "Environments_GetEnvironmentDefinition", "responses": { "200": { - "description": "The request has succeeded.", + "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/EnvironmentOperation" + "$ref": "#/definitions/EnvironmentDefinition" } }, "default": { - "description": "An unexpected error response.", + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + "$ref": "devcenter.json#/definitions/CloudError" }, "headers": { "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." + "description": "The error code for specific error that occurred.", + "type": "string" } } } + }, + "x-ms-examples": { + "Environments_GetEnvironmentDefinition": { + "$ref": "./examples/EnvironmentDefinitions_Get.json" + } } } }, - "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}/logs": { + "/projects/{projectName}/environmentTypes": { "get": { - "operationId": "EnvironmentsOperations_GetLogsByOperation", - "description": "Gets the logs for an operation on an environment.", + "tags": [ + "Environment Types" + ], + "description": "Lists all environment types configured for a project.", "parameters": [ { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the\nauthentication context.", - "required": true, - "type": "string" - }, - { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/ApiVersionParameter" }, { - "name": "operationId", - "in": "path", - "description": "The id of the operation on an environment.", - "required": true, - "type": "string" + "$ref": "devcenter.json#/parameters/ProjectNameParameter" }, { - "name": "accept", - "in": "header", - "description": "Accept header", - "required": true, - "type": "string", - "enum": [ - "text/plain" - ], - "x-ms-enum": { - "modelAsString": false - }, - "x-ms-client-name": "Accept" + "$ref": "devcenter.json#/parameters/TopParameter" } ], + "operationId": "Environments_ListEnvironmentTypes", "responses": { - "204": { - "description": "There is no content to send for this request, but the headers may be useful. " + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/EnvironmentTypeListResult" + } }, "default": { - "description": "An unexpected error response.", + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + "$ref": "devcenter.json#/definitions/CloudError" }, "headers": { "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." + "description": "The error code for specific error that occurred.", + "type": "string" } } } + }, + "x-ms-examples": { + "Environments_ListEnvironmentTypes": { + "$ref": "./examples/EnvironmentTypes_ListByProject.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } } }, "definitions": { - "APIVersions": { - "type": "string", - "description": "DevCenter API versions", - "enum": [ - "2023-04-01", - "2023-09-01-preview" - ], - "x-ms-enum": { - "name": "APIVersions", - "modelAsString": true, - "values": [ - { - "name": "v2023_04_01", - "value": "2023-04-01", - "description": "The 2023-04-01 service API version" - }, - { - "name": "v2023_09_01_preview", - "value": "2023-09-01-preview", - "description": "The 2023-09-01-preview service API version" - } - ] + "EnvironmentUpdateProperties": { + "description": "Properties of an environment. These properties can be updated after the resource has been created.", + "type": "object", + "properties": { + "parameters": { + "type": "object", + "description": "Parameters object for the environment." + } } }, - "Azure.Core.Foundations.Error": { + "Environment": { + "description": "Properties of an environment.", "type": "object", - "description": "The error object.", + "allOf": [ + { + "$ref": "#/definitions/EnvironmentUpdateProperties" + } + ], "properties": { - "code": { + "uri": { + "description": "The unique URI of the environment", "type": "string", - "description": "One of a server-defined set of error codes." + "readOnly": true }, - "message": { + "name": { "type": "string", - "description": "A human-readable representation of the error." + "description": "Environment name.", + "readOnly": true }, - "target": { + "environmentType": { "type": "string", - "description": "The target of the error." + "description": "Environment type.", + "x-ms-mutability": [ + "read", + "create" + ] }, - "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": [] + "user": { + "type": "string", + "description": "The AAD object id of the owner of this Environment.", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning state of the environment.", + "type": "string", + "readOnly": true + }, + "resourceGroupId": { + "description": "The identifier of the resource group containing the environment's resources.", + "type": "string", + "readOnly": true + }, + "catalogName": { + "type": "string", + "description": "Name of the catalog.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "environmentDefinitionName": { + "type": "string", + "description": "Name of the environment definition.", + "x-ms-mutability": [ + "read", + "create" + ] }, - "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." + "description": "Provisioning error details. Populated only for error states.", + "readOnly": true, + "$ref": "devcenter.json#/definitions/CloudErrorBody" } }, "required": [ - "error" + "environmentType", + "catalogName", + "environmentDefinitionName" ] }, - "Azure.Core.Foundations.InnerError": { + "EnvironmentListResult": { + "description": "Results of the environment list operation.", "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." + "value": { + "description": "Current page of results.", + "type": "array", + "items": { + "$ref": "#/definitions/Environment" + } }, - "innererror": { - "$ref": "#/definitions/Azure.Core.Foundations.InnerError", - "description": "Inner error." - } - } - }, - "Catalog": { - "type": "object", - "description": "A catalog.", - "properties": { - "name": { - "type": "string", - "description": "Name of the catalog." + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string" } }, "required": [ - "name" + "value" ] }, - "CloudError": { + "CatalogListResult": { + "description": "Results of the catalog list operation.", "type": "object", - "description": "An error response from the service.", "properties": { - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "Error body" + "value": { + "description": "Current page of results.", + "type": "array", + "items": { + "$ref": "#/definitions/Catalog" + } + }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string" } }, "required": [ - "error" + "value" ] }, - "CloudErrorBody": { + "Catalog": { + "description": "A catalog.", "type": "object", - "description": "An error response from the service.", "properties": { - "code": { - "type": "string", - "description": "An identifier for the error. Codes are invariant and are intended to be\nconsumed programmatically." - }, - "message": { - "type": "string", - "description": "A message describing the error, intended to be suitable for display in a user\ninterface." - }, - "target": { - "type": "string", - "description": "The target of the particular error. For example, the name of the property in\nerror." + "uri": { + "description": "The unique URI of the catalog", + "type": "string" }, - "details": { - "type": "array", - "description": "A list of additional details about the error.", - "items": { - "$ref": "#/definitions/CloudErrorBody" - }, - "x-ms-identifiers": [] + "name": { + "description": "Name of the catalog.", + "type": "string" } }, "required": [ - "code", - "message" + "uri", + "name" ] }, - "Environment": { + "EnvironmentDefinitionListResult": { + "description": "Results of the environment definition list operation.", "type": "object", - "description": "Properties of an environment.", "properties": { - "parameters": { - "description": "Parameters object for the environment." - }, - "name": { - "type": "string", - "description": "Environment name.", - "readOnly": true - }, - "environmentType": { - "type": "string", - "description": "Environment type." - }, - "user": { - "type": "string", - "description": "The AAD object id of the owner of this Environment.", - "readOnly": true - }, - "provisioningState": { - "type": "string", - "description": "The provisioning state of the environment.", - "readOnly": true - }, - "resourceGroupId": { - "type": "string", - "description": "The identifier of the resource group containing the environment's resources.", - "readOnly": true - }, - "catalogName": { - "type": "string", - "description": "Name of the catalog." - }, - "environmentDefinitionName": { - "type": "string", - "description": "Name of the environment definition." + "value": { + "description": "Current page of results.", + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentDefinition" + } }, - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "Provisioning error details. Populated only for error states.", - "readOnly": true + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string" } }, "required": [ - "environmentType", - "catalogName", - "environmentDefinitionName" + "value" ] }, "EnvironmentDefinition": { - "type": "object", "description": "An environment definition.", + "type": "object", "properties": { + "uri": { + "description": "The unique URI of the environment definition", + "type": "string" + }, "id": { - "type": "string", - "description": "The ID of the environment definition." + "description": "The ID of the environment definition.", + "type": "string" }, "name": { - "type": "string", - "description": "Name of the environment definition." + "description": "Name of the environment definition.", + "type": "string" }, "catalogName": { - "type": "string", - "description": "Name of the catalog." + "description": "Name of the catalog.", + "type": "string" }, "description": { - "type": "string", - "description": "A short description of the environment definition." + "description": "A short description of the environment definition.", + "type": "string" }, "parameters": { "type": "array", - "description": "Input parameters passed to an environment.", "items": { "$ref": "#/definitions/EnvironmentDefinitionParameter" - } + }, + "description": "Input parameters passed to an environment." }, "parametersSchema": { "type": "string", "description": "JSON schema defining the parameters object passed to an environment." }, "templatePath": { - "type": "string", - "description": "Path to the Environment Definition entrypoint file." + "description": "Path to the Environment Definition entrypoint file.", + "type": "string" } }, "required": [ - "id", "name", - "catalogName" + "uri", + "catalogName", + "id" ] }, "EnvironmentDefinitionParameter": { @@ -1075,12 +991,12 @@ "description": "Default value of the parameter" }, "type": { - "$ref": "#/definitions/ParameterType", - "description": "A string of one of the basic JSON types (number, integer, array, object,\nboolean, string)" + "description": "A string of one of the basic JSON types (number, integer, array, object, boolean, string)", + "$ref": "#/definitions/ParameterType" }, "readOnly": { "type": "boolean", - "description": "Whether or not this parameter is read-only. If true, default should have a\nvalue." + "description": "Whether or not this parameter is read-only. If true, default should have a value." }, "required": { "type": "boolean", @@ -1088,10 +1004,12 @@ }, "allowed": { "type": "array", - "description": "An array of allowed values", "items": { "type": "string" - } + }, + "minItems": 1, + "uniqueItems": true, + "description": "An array of allowed values" } }, "required": [ @@ -1100,380 +1018,317 @@ "required" ] }, - "EnvironmentOperation": { + "EnvironmentTypeListResult": { + "description": "Result of the environment type list operation.", "type": "object", - "description": "Information about an operation on an environment.", "properties": { - "kind": { - "type": "string", - "description": "Discriminator property for EnvironmentOperation." + "value": { + "description": "Current page of results.", + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentType" + } }, + "nextLink": { + "description": "URL to get the next set of results if there are any.", + "type": "string" + } + }, + "required": [ + "value" + ] + }, + "EnvironmentType": { + "description": "Properties of an environment type.", + "type": "object", + "properties": { "uri": { - "type": "string", - "description": "The unique URI for the environment operation." - }, - "operationId": { - "type": "string", - "description": "Unique identifier for the environment operation." + "description": "The unique URI of the environment type", + "type": "string" }, - "status": { - "$ref": "#/definitions/EnvironmentOperationStatus", - "description": "The operation status." + "name": { + "description": "Name of the environment type", + "type": "string" }, - "createdByObjectId": { - "type": "string", - "description": "The object ID of the actor which initiated the operation." + "deploymentTargetId": { + "description": "The ID of a subscription or management group that the environment type will be mapped to. The environment's resources will be deployed into this subscription or management group.", + "type": "string" }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The time the operation started." + "status": { + "description": "Indicates whether this environment type is enabled for use in this project.", + "$ref": "#/definitions/EnvironmentTypeEnableStatus" }, - "endTime": { + "displayName": { "type": "string", - "format": "date-time", - "description": "The time the operation finished." - }, - "environmentParameters": { - "description": "Parameters object for the environment at the time of the operation." - }, - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "Provisioning or operation error details. Populated only for error states." + "description": "Display name of the environment type." } }, - "discriminator": "kind", "required": [ - "kind", "uri", - "operationId", - "status" - ] - }, - "EnvironmentOperationStatus": { - "type": "string", - "enum": [ - "NotStarted", - "Running", - "Succeeded", - "Canceled", - "Failed" - ], - "x-ms-enum": { - "name": "EnvironmentOperationStatus", - "modelAsString": true, - "values": [ - { - "name": "NotStarted", - "value": "NotStarted", - "description": "The operation has not started." - }, - { - "name": "Running", - "value": "Running", - "description": "The operation is running." - }, - { - "name": "Succeeded", - "value": "Succeeded", - "description": "The operation succeeded." - }, - { - "name": "Canceled", - "value": "Canceled", - "description": "The operation was canceled." - }, - { - "name": "Failed", - "value": "Failed", - "description": "The operation failed." - } - ] - } - }, - "EnvironmentType": { - "type": "object", - "description": "Properties of an environment type.", - "properties": { - "name": { - "type": "string", - "description": "Name of the environment type" - }, - "deploymentTargetId": { - "type": "string", - "description": "Id of a subscription or management group that the environment type will be\nmapped to. The environment's resources will be deployed into this subscription\nor management group." - }, - "status": { - "$ref": "#/definitions/EnvironmentTypeEnableStatus", - "description": "Indicates whether this environment type is enabled for use in this project." - } - }, - "required": [ "name", "deploymentTargetId", "status" ] }, "EnvironmentTypeEnableStatus": { - "type": "string", + "description": "Indicates whether an environment type is enabled for use in a project.", "enum": [ "Enabled", "Disabled" ], + "type": "string", "x-ms-enum": { "name": "EnvironmentTypeEnableStatus", "modelAsString": true, "values": [ { - "name": "Enabled", "value": "Enabled", "description": "The environment type is enabled for use in the project." }, { - "name": "Disabled", "value": "Disabled", "description": "The environment type is not enabled for use in the project." } ] } }, - "EnvironmentUpdateProperties": { - "type": "object", - "description": "Properties of an environment. These properties can be updated after the\nresource has been created.", - "properties": { - "parameters": { - "description": "Parameters object for the environment." - } - } - }, - "OperationStatus": { - "type": "object", - "description": "The current status of an async operation", - "properties": { - "id": { - "type": "string", - "description": "Fully qualified ID for the operation status." - }, - "name": { - "type": "string", - "description": "The operation id name" - }, - "status": { - "type": "string", - "description": "Provisioning state of the resource." - }, - "resourceId": { - "type": "string", - "description": "The id of the resource." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the operation" - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the operation" - }, - "percentComplete": { - "type": "number", - "format": "float", - "description": "Percent of the operation that is complete" - }, - "properties": { - "description": "Custom operation properties, populated only for a successful operation." - }, - "error": { - "$ref": "#/definitions/OperationStatusError", - "description": "Operation Error message" - } - }, - "required": [ - "status" - ] - }, - "OperationStatusError": { - "type": "object", - "description": "Operation Error message", - "properties": { - "code": { - "type": "string", - "description": "The error code." - }, - "message": { - "type": "string", - "description": "The error message." - } - } - }, - "PagedCatalog": { - "type": "object", - "description": "Results of the catalog list operation.", - "properties": { - "value": { - "type": "array", - "description": "The Catalog items on this page", - "items": { - "$ref": "#/definitions/Catalog" + "ParameterType": { + "type": "string", + "enum": [ + "array", + "boolean", + "integer", + "number", + "object", + "string" + ], + "description": "The type of data a parameter accepts.", + "x-ms-enum": { + "name": "ParameterType", + "modelAsString": true, + "values": [ + { + "value": "array", + "description": "The parameter accepts an array of values." }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedEnvironment": { - "type": "object", - "description": "Results of the environment list operation.", - "properties": { - "value": { - "type": "array", - "description": "The Environment items on this page", - "items": { - "$ref": "#/definitions/Environment" + { + "value": "boolean", + "description": "The parameter accepts a boolean value." }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedEnvironmentDefinition": { - "type": "object", - "description": "Results of the environment definition list operation.", - "properties": { - "value": { - "type": "array", - "description": "The EnvironmentDefinition items on this page", - "items": { - "$ref": "#/definitions/EnvironmentDefinition" + { + "value": "integer", + "description": "The parameter accepts an integer value." + }, + { + "value": "number", + "description": "The parameter accepts a number value." + }, + { + "value": "object", + "description": "The parameter accepts an object value." + }, + { + "value": "string", + "description": "The parameter accepts a string value." } - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] + ] + } }, - "PagedEnvironmentOperation": { + "EnvironmentOperationListResult": { "type": "object", "description": "The action results list result.", "properties": { "value": { + "description": "The current page of results.", "type": "array", - "description": "The EnvironmentOperation items on this page", "items": { "$ref": "#/definitions/EnvironmentOperation" - }, - "x-ms-identifiers": [] + } }, "nextLink": { "type": "string", - "format": "uri", - "description": "The link to the next page of items" + "description": "The URL to get the next set of results." } }, "required": [ "value" ] }, - "PagedEnvironmentType": { + "EnvironmentOperation": { "type": "object", - "description": "Result of the environment type list operation.", + "description": "Information about an operation on an environment.", + "discriminator": "kind", "properties": { - "value": { - "type": "array", - "description": "The EnvironmentType items on this page", - "items": { - "$ref": "#/definitions/EnvironmentType" - }, - "x-ms-identifiers": [] + "uri": { + "description": "The unique URI for the environment operation.", + "type": "string" }, - "nextLink": { + "operationId": { + "description": "Unique identifier for the environment operation.", + "type": "string" + }, + "kind": { + "description": "The kind of operation that occurred.", + "$ref": "#/definitions/EnvironmentOperationKind" + }, + "status": { + "description": "The operation status.", + "$ref": "#/definitions/EnvironmentOperationStatus" + }, + "createdByObjectId": { + "description": "The object ID of the actor which initiated the operation.", + "type": "string" + }, + "startTime": { + "description": "The time the operation started.", "type": "string", - "format": "uri", - "description": "The link to the next page of items" + "format": "date-time" + }, + "endTime": { + "description": "The time the operation finished.", + "type": "string", + "format": "date-time" + }, + "environmentParameters": { + "type": "object", + "description": "Parameters object for the environment at the time of the operation." + }, + "error": { + "description": "Provisioning or operation error details. Populated only for error states.", + "$ref": "devcenter.json#/definitions/CloudErrorBody" } }, "required": [ - "value" + "uri", + "operationId", + "kind", + "status" ] }, - "ParameterType": { + "EnvironmentOperationKind": { "type": "string", "enum": [ - "array", - "boolean", - "integer", - "number", - "object", - "string" + "Deploy", + "Delete" ], + "description": "The type of environment operation.", "x-ms-enum": { - "name": "ParameterType", + "name": "EnvironmentOperationKind", "modelAsString": true, "values": [ { - "name": "array", - "value": "array", - "description": "The parameter accepts an array of values." + "value": "Deploy", + "description": "The operation represents a deployment." }, { - "name": "boolean", - "value": "boolean", - "description": "The parameter accepts a boolean value." + "value": "Delete", + "description": "The operation represents a delete." + } + ] + } + }, + "EnvironmentOperationStatus": { + "type": "string", + "enum": [ + "NotStarted", + "Running", + "Succeeded", + "Canceled", + "Failed" + ], + "description": "The status of an environment operation.", + "x-ms-enum": { + "name": "EnvironmentOperationStatus", + "modelAsString": true, + "values": [ + { + "value": "NotStarted", + "description": "The operation has not started." }, { - "name": "integer", - "value": "integer", - "description": "The parameter accepts an integer value." + "value": "Running", + "description": "The operation is running." }, { - "name": "number", - "value": "number", - "description": "The parameter accepts a number value." + "value": "Succeeded", + "description": "The operation succeeded." }, { - "name": "object", - "value": "object", - "description": "The parameter accepts an object value." + "value": "Canceled", + "description": "The operation was canceled." }, { - "name": "string", - "value": "string", - "description": "The parameter accepts a string value." + "value": "Failed", + "description": "The operation failed." } ] } + }, + "EnvironmentDeployOperation": { + "type": "object", + "description": "Information about a deploy operation on an environment.", + "x-ms-discriminator-value": "Deploy", + "allOf": [ + { + "$ref": "#/definitions/EnvironmentOperation" + } + ] + }, + "EnvironmentDeleteOperation": { + "type": "object", + "description": "Information about a delete operation on an environment.", + "x-ms-discriminator-value": "Delete", + "allOf": [ + { + "$ref": "#/definitions/EnvironmentOperation" + } + ] } }, "parameters": { - "Azure.Core.Foundations.ApiVersionParameter": { - "name": "api-version", - "in": "query", - "description": "The API version to use for this operation.", + "EnvironmentNameParameter": { + "name": "environmentName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the environment.", + "x-ms-parameter-location": "method" + }, + "CatalogNameParameter": { + "name": "catalogName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the catalog", + "x-ms-parameter-location": "method" + }, + "EnvironmentDefinitionNameParameter": { + "name": "definitionName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63, + "description": "The name of the environment definition", + "x-ms-parameter-location": "method" + }, + "EnvironmentOperationIdParameter": { + "name": "operationId", + "in": "path", "required": true, "type": "string", - "minLength": 1, - "x-ms-parameter-location": "method", - "x-ms-client-name": "apiVersion" + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "minLength": 3, + "maxLength": 63, + "description": "The id of the operation on an environment.", + "x-ms-parameter-location": "method" } } } From 3533bd3bd1266e143d0dd31e9eb2810de9e6a83a Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 1 Feb 2024 17:41:17 -0800 Subject: [PATCH 111/187] try stand op devcenter --- .../devcenter/DevCenter/DevCenter/models.tsp | 12 --------- .../devcenter/DevCenter/DevCenter/routes.tsp | 27 ++----------------- 2 files changed, 2 insertions(+), 37 deletions(-) delete mode 100644 specification/devcenter/DevCenter/DevCenter/models.tsp diff --git a/specification/devcenter/DevCenter/DevCenter/models.tsp b/specification/devcenter/DevCenter/DevCenter/models.tsp deleted file mode 100644 index 4a55a92ef695..000000000000 --- a/specification/devcenter/DevCenter/DevCenter/models.tsp +++ /dev/null @@ -1,12 +0,0 @@ -import "@typespec/rest"; -import "@typespec/http"; -import "@azure-tools/typespec-azure-core"; -import "../shared/models.tsp"; - -using TypeSpec.Rest; -using TypeSpec.Http; - -namespace DevCenterService; - -@doc("Results of the project list operation.") -model ProjectListResult is Azure.Core.Page; diff --git a/specification/devcenter/DevCenter/DevCenter/routes.tsp b/specification/devcenter/DevCenter/DevCenter/routes.tsp index 154ca6aee397..b876650b1531 100644 --- a/specification/devcenter/DevCenter/DevCenter/routes.tsp +++ b/specification/devcenter/DevCenter/DevCenter/routes.tsp @@ -1,6 +1,5 @@ import "@azure-tools/typespec-azure-core"; import "@typespec/rest"; -import "./models.tsp"; using Azure.Core; using TypeSpec.Rest; @@ -11,30 +10,8 @@ namespace DevCenterService; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface DevCenterOperations { @doc("Lists all projects.") - @route("/projects") - @get - listProjects is Azure.Core.Foundations.Operation< - { - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - ProjectListResult - >; + listProjects is StandardResourceOperations.ResourceList; @doc("Gets a project.") - @route("/projects/{projectName}") - @get - getProject is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - }, - Project - >; + getProject is StandardResourceOperations.ResourceRead; } From dd84a9708dee13bbf5e584965e0c9f5f8102c240 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 1 Feb 2024 18:12:53 -0800 Subject: [PATCH 112/187] try stand op devbox --- .../devcenter/DevCenter/DevBox/routes.tsp | 160 +----------------- 1 file changed, 8 insertions(+), 152 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/routes.tsp b/specification/devcenter/DevCenter/DevBox/routes.tsp index 76bf90cc0027..20311a57741b 100644 --- a/specification/devcenter/DevCenter/DevBox/routes.tsp +++ b/specification/devcenter/DevCenter/DevBox/routes.tsp @@ -12,128 +12,22 @@ namespace DevCenterService; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface DevBoxesOperations { @doc("Lists available pools") - @route("/projects/{projectName}/pools") - @get - listPools is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - PoolListResult - >; + listPools is StandardResourceOperations.ResourceList; @doc("Gets a pool") - @route("/projects/{projectName}/pools/{poolName}") - @get - getPool is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The name of a pool of Dev Boxes.") - @path - poolName: string; - }, - Pool - >; + getPool is StandardResourceOperations.ResourceRead; @doc("Lists available schedules for a pool.") - @route("/projects/{projectName}/pools/{poolName}/schedules") - @get - listSchedules is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The name of a pool of Dev Boxes.") - @path - poolName: string; - - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - ScheduleListResult - >; + listSchedules is StandardResourceOperations.ResourceList; @doc("Gets a schedule.") - @route("/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}") - @get - getSchedule is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The name of a pool of Dev Boxes.") - @path - poolName: string; - - @doc("The name of a schedule.") - @path - scheduleName: string; - }, - Schedule - >; + getSchedule is StandardResourceOperations.ResourceRead; @doc("Lists Dev Boxes in the project for a particular user.") - @route("/projects/{projectName}/users/{userId}/devboxes") - @get - listDevBoxes is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - DevBoxListResult - >; + listDevBoxes is StandardResourceOperations.ResourceList; @doc("Gets a Dev Box") - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") - @get - getDevBox is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - }, - DevBox - >; + getDevBox is StandardResourceOperations.ResourceRead; @doc("Creates or replaces a Dev Box.") @finalOperation(DevBoxesOperations.getDevBox) @@ -312,48 +206,10 @@ interface DevBoxesOperations { >; @doc("Lists actions on a Dev Box.") - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions") - @get - listDevBoxActions is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - }, - DevBoxActionsListResult - >; + listDevBoxActions is StandardResourceOperations.ResourceList; @doc("Gets an action.") - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}") - @get - getDevBoxAction is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - - @doc("The name of an action that will take place on a Dev Box.") - @path - actionName: string; - }, - DevBoxAction - >; + getDevBoxAction is StandardResourceOperations.ResourceRead; @doc("Skips an occurrence of an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip") From b8378d0e89955aa42b8b5543b9a87f569c39dc22 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 2 Feb 2024 12:33:50 -0800 Subject: [PATCH 113/187] revert list devbox stand op --- .../devcenter/DevCenter/DevBox/models.tsp | 9 -------- .../devcenter/DevCenter/DevBox/routes.tsp | 23 ++++++++++++++++++- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index d46ada918469..80bf28713346 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -174,9 +174,6 @@ enum DevBoxActionDelayResultStatus { @doc("The delay operation failed.") Failed, } -@doc("The Pool list result") -model PoolListResult is Azure.Core.Page; - @doc("Project user") @resource("users") @parentResource(Project) @@ -318,9 +315,6 @@ is detected. gracePeriodMinutes?: int32; } -@doc("The Schedule list result") -model ScheduleListResult is Azure.Core.Page; - @doc("A Schedule to execute action.") @resource("schedules") @parentResource(Pool) @@ -454,9 +448,6 @@ model RemoteConnection { rdpConnectionUrl?: url; } -@doc("The actions list result") -model DevBoxActionsListResult is Azure.Core.Page; - @doc("An action which will take place on a Dev Box.") @resource("actions") @parentResource(DevBox) diff --git a/specification/devcenter/DevCenter/DevBox/routes.tsp b/specification/devcenter/DevCenter/DevBox/routes.tsp index 20311a57741b..e59a9ffc93db 100644 --- a/specification/devcenter/DevCenter/DevBox/routes.tsp +++ b/specification/devcenter/DevCenter/DevBox/routes.tsp @@ -24,7 +24,28 @@ interface DevBoxesOperations { getSchedule is StandardResourceOperations.ResourceRead; @doc("Lists Dev Boxes in the project for a particular user.") - listDevBoxes is StandardResourceOperations.ResourceList; + @route("/projects/{projectName}/users/{userId}/devboxes") + @get + listDevBoxes is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("An OData filter clause to apply to the operation.") + @query + filter?: string; + + @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") + @query + top?: int32; + }, + DevBoxListResult + >; @doc("Gets a Dev Box") getDevBox is StandardResourceOperations.ResourceRead; From 21eb3bcd106840e35e03c90c7b1eb34caf755ab0 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 2 Feb 2024 12:34:58 -0800 Subject: [PATCH 114/187] update devbox swagger --- .../stable/2023-04-01/devbox.json | 72 ++++++------------- 1 file changed, 21 insertions(+), 51 deletions(-) diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json index 4900b8808d05..ddfea6d2e45c 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json @@ -161,24 +161,9 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, "type": "string" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": false, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" } ], "responses": { @@ -222,14 +207,14 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, "type": "string" }, { "name": "poolName", "in": "path", - "description": "The name of a pool of Dev Boxes.", + "description": "Pool name", "required": true, "type": "string" } @@ -272,31 +257,16 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, "type": "string" }, { "name": "poolName", "in": "path", - "description": "The name of a pool of Dev Boxes.", + "description": "Pool name", "required": true, "type": "string" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": false, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" } ], "responses": { @@ -340,21 +310,21 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, "type": "string" }, { "name": "poolName", "in": "path", - "description": "The name of a pool of Dev Boxes.", + "description": "Pool name", "required": true, "type": "string" }, { "name": "scheduleName", "in": "path", - "description": "The name of a schedule.", + "description": "Display name for the Schedule", "required": true, "type": "string" } @@ -465,21 +435,21 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, "type": "string" }, { "name": "userId", "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "description": "The AAD object id of the user", "required": true, "type": "string" }, { "name": "devBoxName", "in": "path", - "description": "The name of a Dev Box.", + "description": "Display name for the Dev Box", "required": true, "type": "string" } @@ -872,21 +842,21 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, "type": "string" }, { "name": "userId", "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "description": "The AAD object id of the user", "required": true, "type": "string" }, { "name": "devBoxName", "in": "path", - "description": "The name of a Dev Box.", + "description": "Display name for the Dev Box", "required": true, "type": "string" } @@ -932,28 +902,28 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, "type": "string" }, { "name": "userId", "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "description": "The AAD object id of the user", "required": true, "type": "string" }, { "name": "devBoxName", "in": "path", - "description": "The name of a Dev Box.", + "description": "Display name for the Dev Box", "required": true, "type": "string" }, { "name": "actionName", "in": "path", - "description": "The name of an action that will take place on a Dev Box.", + "description": "The name of the action.", "required": true, "type": "string" } @@ -1948,7 +1918,7 @@ }, "PagedDevBoxAction": { "type": "object", - "description": "The actions list result", + "description": "Paged collection of DevBoxAction items", "properties": { "value": { "type": "array", @@ -1992,7 +1962,7 @@ }, "PagedPool": { "type": "object", - "description": "The Pool list result", + "description": "Paged collection of Pool items", "properties": { "value": { "type": "array", @@ -2014,7 +1984,7 @@ }, "PagedSchedule": { "type": "object", - "description": "The Schedule list result", + "description": "Paged collection of Schedule items", "properties": { "value": { "type": "array", From 71745d16539adb74516c3094423d92c1e310e4c8 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 2 Feb 2024 12:53:17 -0800 Subject: [PATCH 115/187] remove filter and top from dev box --- .../devcenter/DevCenter/DevBox/routes.tsp | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/routes.tsp b/specification/devcenter/DevCenter/DevBox/routes.tsp index e59a9ffc93db..aa8c2a6546b6 100644 --- a/specification/devcenter/DevCenter/DevBox/routes.tsp +++ b/specification/devcenter/DevCenter/DevBox/routes.tsp @@ -314,32 +314,13 @@ interface DevBoxesDevCenterOperations { @doc("Lists Dev Boxes that the caller has access to in the DevCenter.") @route("/devboxes") @get - listAllDevBoxes is Azure.Core.Foundations.Operation< - { - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - DevBoxListResult - >; + listAllDevBoxes is Azure.Core.Foundations.Operation<{}, DevBoxListResult>; @doc("Lists Dev Boxes in the Dev Center for a particular user.") @route("/users/{userId}/devboxes") @get listAllDevBoxesByUser is Azure.Core.Foundations.Operation< { - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; From d5334f1f1dfcc6a660cced6249b5682c158f63dd Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 2 Feb 2024 12:53:36 -0800 Subject: [PATCH 116/187] fix up dev box swagger --- .../stable/2023-04-01/devbox.json | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json index ddfea6d2e45c..000005fbcaaf 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json @@ -58,21 +58,6 @@ "parameters": [ { "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": false, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" } ], "responses": { @@ -1223,21 +1208,6 @@ { "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": false, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" - }, { "name": "userId", "in": "path", From 926c826356593c6a1d9d5460baf1c10ee8b2a90b Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 2 Feb 2024 12:54:59 -0800 Subject: [PATCH 117/187] fix up devcenter stand op --- specification/devcenter/DevCenter/DevCenter/routes.tsp | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/devcenter/DevCenter/DevCenter/routes.tsp b/specification/devcenter/DevCenter/DevCenter/routes.tsp index b876650b1531..a48cc805776d 100644 --- a/specification/devcenter/DevCenter/DevCenter/routes.tsp +++ b/specification/devcenter/DevCenter/DevCenter/routes.tsp @@ -1,5 +1,6 @@ import "@azure-tools/typespec-azure-core"; import "@typespec/rest"; +import "../shared/models.tsp"; using Azure.Core; using TypeSpec.Rest; From 1670c7b3098be7d69b186115a0be4c5687ee2e7e Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 2 Feb 2024 12:55:17 -0800 Subject: [PATCH 118/187] update devcenter swagger --- .../stable/2023-04-01/devcenter.json | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json index 44f5695072dd..902ed672ec5e 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json @@ -58,21 +58,6 @@ "parameters": [ { "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": false, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" } ], "responses": { @@ -116,7 +101,7 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, "type": "string" } @@ -318,7 +303,7 @@ }, "PagedProject": { "type": "object", - "description": "Results of the project list operation.", + "description": "Paged collection of Project items", "properties": { "value": { "type": "array", From 2a8eba1bfe0c7e14bca0b64771978066af85c7bb Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 2 Feb 2024 14:15:35 -0800 Subject: [PATCH 119/187] try stand op for environments --- .../devcenter/DevCenter/DevBox/models.tsp | 10 --- .../DevCenter/Environments/models.tsp | 16 +++-- .../DevCenter/Environments/routes.tsp | 67 ++----------------- .../devcenter/DevCenter/shared/models.tsp | 10 +++ 4 files changed, 26 insertions(+), 77 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index 80bf28713346..7cb19e25df5e 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -174,16 +174,6 @@ enum DevBoxActionDelayResultStatus { @doc("The delay operation failed.") Failed, } -@doc("Project user") -@resource("users") -@parentResource(Project) -model User { - @key("userId") - @visibility("read") - @doc("The AAD object id of the user") - userId: string; -} - @doc("A pool of Dev Boxes.") @resource("pools") @parentResource(Project) diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index 12f3cb595b01..a5ad2c183fc3 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -76,6 +76,8 @@ enum EnvironmentProvisioningState { model EnvironmentListResult is Azure.Core.Page; @doc("Properties of an environment.") +@resource("environments") +@parentResource(User) @projectedName("csharp", "DevCenterEnvironment") @projectedName("java", "DevCenterEnvironment") model Environment { @@ -83,7 +85,8 @@ model Environment { @doc("Environment name.") @visibility("read") - name?: string; + @key("environmentName") + name: string; @doc("Environment type.") @visibility("read", "create") @@ -127,13 +130,14 @@ model EnvironmentUpdateProperties { parameters?: bytes; } -@doc("Results of the catalog list operation.") -model CatalogListResult is Azure.Core.Page; - @doc("A catalog.") +@resource("catalogs") +@parentResource(Project) @projectedName("csharp", "DevCenterCatalog") model Catalog { @doc("Name of the catalog.") + @key("catalogName") + @visibility("read") name: string; } @@ -141,11 +145,15 @@ model Catalog { model EnvironmentDefinitionListResult is Azure.Core.Page; @doc("An environment definition.") +@resource("environmentDefinitions") +@parentResource(Catalog) model EnvironmentDefinition { @doc("The ID of the environment definition.") id: string; @doc("Name of the environment definition.") + @key("definitionName") + @visibility("read") name: string; @doc("Name of the catalog.") diff --git a/specification/devcenter/DevCenter/Environments/routes.tsp b/specification/devcenter/DevCenter/Environments/routes.tsp index 15848dce25b5..18a4625dd014 100644 --- a/specification/devcenter/DevCenter/Environments/routes.tsp +++ b/specification/devcenter/DevCenter/Environments/routes.tsp @@ -49,24 +49,7 @@ interface EnvironmentsOperations { >; @doc("Gets an environment") - @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") - @get - getEnvironment is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of the environment.") - @path - environmentName: string; - }, - Environment - >; + getEnvironment is StandardResourceOperations.ResourceRead; @doc("Creates or updates an environment.") @finalOperation(EnvironmentsOperations.getEnvironment) @@ -140,36 +123,11 @@ interface EnvironmentsOperations { } | Azure.Core.Foundations.ErrorResponse; @doc("Lists all of the catalogs available for a project.") - @route("/projects/{projectName}/catalogs") - @get - listCatalogs is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; - }, - CatalogListResult - >; + listCatalogs is StandardResourceOperations.ResourceList; @doc("Gets the specified catalog within the project") - @route("/projects/{projectName}/catalogs/{catalogName}") - @get - getCatalog is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; + getCatalog is StandardResourceOperations.ResourceRead; - @doc("The name of the catalog") - @path - catalogName: string; - }, - Catalog - >; @doc("Lists all environment definitions available for a project.") @route("/projects/{projectName}/environmentDefinitions") @@ -208,24 +166,7 @@ interface EnvironmentsOperations { >; @doc("Get an environment definition from a catalog.") - @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}") - @get - getEnvironmentDefinition is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The name of the catalog") - @path - catalogName: string; - - @doc("The name of the environment definition") - @path - definitionName: string; - }, - EnvironmentDefinition - >; + getEnvironmentDefinition is StandardResourceOperations.ResourceRead; @doc("Lists all environment types configured for a project.") @route("/projects/{projectName}/environmentTypes") diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index b11899fe87e5..472ad71d8b7d 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -83,3 +83,13 @@ create across all pools in the project. @minValue(0) maxDevBoxesPerUser?: int32; } + +@doc("Project user") +@resource("users") +@parentResource(Project) +model User { + @key("userId") + @visibility("read") + @doc("The AAD object id of the user") + userId: string; +} From 893c2540c96cc19c3b2267cbf4cd327bfc833626 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 2 Feb 2024 14:16:42 -0800 Subject: [PATCH 120/187] remove top query from environments --- .../devcenter/DevCenter/Environments/routes.tsp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/specification/devcenter/DevCenter/Environments/routes.tsp b/specification/devcenter/DevCenter/Environments/routes.tsp index 18a4625dd014..f57848b0e9be 100644 --- a/specification/devcenter/DevCenter/Environments/routes.tsp +++ b/specification/devcenter/DevCenter/Environments/routes.tsp @@ -20,10 +20,6 @@ interface EnvironmentsOperations { @doc("The DevCenter Project upon which to execute operations.") @path projectName: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; }, EnvironmentListResult >; @@ -40,10 +36,6 @@ interface EnvironmentsOperations { @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; }, EnvironmentListResult >; @@ -137,10 +129,6 @@ interface EnvironmentsOperations { @doc("The DevCenter Project upon which to execute operations.") @path projectName: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; }, EnvironmentDefinitionListResult >; @@ -176,10 +164,6 @@ interface EnvironmentsOperations { @doc("The DevCenter Project upon which to execute operations.") @path projectName: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; }, EnvironmentTypeListResult >; From a90a84ec93c85e893238a6c49fea6dac4fb5b4f4 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 2 Feb 2024 14:18:42 -0800 Subject: [PATCH 121/187] fix up environment stand op --- specification/devcenter/DevCenter/Environments/routes.tsp | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/devcenter/DevCenter/Environments/routes.tsp b/specification/devcenter/DevCenter/Environments/routes.tsp index f57848b0e9be..8a3fe5f98349 100644 --- a/specification/devcenter/DevCenter/Environments/routes.tsp +++ b/specification/devcenter/DevCenter/Environments/routes.tsp @@ -120,7 +120,6 @@ interface EnvironmentsOperations { @doc("Gets the specified catalog within the project") getCatalog is StandardResourceOperations.ResourceRead; - @doc("Lists all environment definitions available for a project.") @route("/projects/{projectName}/environmentDefinitions") @get From 637500ea60d1e9e7387e85bcd22f79a420c6bb3e Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 2 Feb 2024 14:20:54 -0800 Subject: [PATCH 122/187] regen environments swagger --- .../stable/2023-04-01/environments.json | 81 +++++++------------ 1 file changed, 29 insertions(+), 52 deletions(-) diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index b0785c271b54..283e1f0e5eea 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -62,17 +62,9 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" } ], "responses": { @@ -116,14 +108,14 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, "type": "string" }, { "name": "catalogName", "in": "path", - "description": "The name of the catalog", + "description": "Name of the catalog.", "required": true, "type": "string" } @@ -227,21 +219,21 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, "type": "string" }, { "name": "catalogName", "in": "path", - "description": "The name of the catalog", + "description": "Name of the catalog.", "required": true, "type": "string" }, { "name": "definitionName", "in": "path", - "description": "The name of the environment definition", + "description": "Name of the environment definition.", "required": true, "type": "string" } @@ -287,14 +279,6 @@ "description": "The DevCenter Project upon which to execute operations.", "required": true, "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" } ], "responses": { @@ -341,14 +325,6 @@ "description": "The DevCenter Project upon which to execute operations.", "required": true, "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" } ], "responses": { @@ -395,14 +371,6 @@ "description": "The DevCenter Project upon which to execute operations.", "required": true, "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" } ], "responses": { @@ -501,14 +469,6 @@ "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", "required": true, "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" } ], "responses": { @@ -552,21 +512,21 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, "type": "string" }, { "name": "userId", "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "description": "The AAD object id of the user", "required": true, "type": "string" }, { "name": "environmentName", "in": "path", - "description": "The name of the environment.", + "description": "Environment name.", "required": true, "type": "string" } @@ -827,7 +787,8 @@ "properties": { "name": { "type": "string", - "description": "Name of the catalog." + "description": "Name of the catalog.", + "readOnly": true } }, "required": [ @@ -894,6 +855,7 @@ } }, "required": [ + "name", "environmentType", "catalogName", "environmentDefinitionName" @@ -909,7 +871,8 @@ }, "name": { "type": "string", - "description": "Name of the environment definition." + "description": "Name of the environment definition.", + "readOnly": true }, "catalogName": { "type": "string", @@ -1227,7 +1190,7 @@ }, "PagedCatalog": { "type": "object", - "description": "Results of the catalog list operation.", + "description": "Paged collection of Catalog items", "properties": { "value": { "type": "array", @@ -1383,6 +1346,20 @@ "required": [ "name" ] + }, + "User": { + "type": "object", + "description": "Project user", + "properties": { + "userId": { + "type": "string", + "description": "The AAD object id of the user", + "readOnly": true + } + }, + "required": [ + "userId" + ] } }, "parameters": { From 09a1a1b717d564fcb3ecce444b4aa0d495a4122e Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 2 Feb 2024 14:23:17 -0800 Subject: [PATCH 123/187] devcenter swagger --- .../stable/2023-04-01/devcenter.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json index 902ed672ec5e..26e9c64b0430 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json @@ -346,6 +346,20 @@ "required": [ "name" ] + }, + "User": { + "type": "object", + "description": "Project user", + "properties": { + "userId": { + "type": "string", + "description": "The AAD object id of the user", + "readOnly": true + } + }, + "required": [ + "userId" + ] } }, "parameters": { From 7d82b2637376022b90fe6be130ae10620dc05bc9 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 2 Feb 2024 14:38:09 -0800 Subject: [PATCH 124/187] remove filter and top --- .../devcenter/DevCenter/DevBox/routes.tsp | 8 -------- .../devcenter/DevCenter/Environments/routes.tsp | 4 ---- .../stable/2023-04-01/devbox.json | 15 --------------- .../stable/2023-04-01/environments.json | 8 -------- 4 files changed, 35 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/routes.tsp b/specification/devcenter/DevCenter/DevBox/routes.tsp index aa8c2a6546b6..a462a4862234 100644 --- a/specification/devcenter/DevCenter/DevBox/routes.tsp +++ b/specification/devcenter/DevCenter/DevBox/routes.tsp @@ -35,14 +35,6 @@ interface DevBoxesOperations { @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") @path userId: string; - - @doc("An OData filter clause to apply to the operation.") - @query - filter?: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; }, DevBoxListResult >; diff --git a/specification/devcenter/DevCenter/Environments/routes.tsp b/specification/devcenter/DevCenter/Environments/routes.tsp index 8a3fe5f98349..279208275bd4 100644 --- a/specification/devcenter/DevCenter/Environments/routes.tsp +++ b/specification/devcenter/DevCenter/Environments/routes.tsp @@ -144,10 +144,6 @@ interface EnvironmentsOperations { @doc("The name of the catalog") @path catalogName: string; - - @doc("The maximum number of resources to return from the operation. Example: 'top=10'.") - @query - top?: int32; }, EnvironmentDefinitionListResult >; diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json index 000005fbcaaf..3e394512f157 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json @@ -362,21 +362,6 @@ "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", "required": true, "type": "string" - }, - { - "name": "filter", - "in": "query", - "description": "An OData filter clause to apply to the operation.", - "required": false, - "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" } ], "responses": { diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index 283e1f0e5eea..aa1ec7e6d112 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -168,14 +168,6 @@ "description": "The name of the catalog", "required": true, "type": "string" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: 'top=10'.", - "required": false, - "type": "integer", - "format": "int32" } ], "responses": { From abda4633f0ad9c7fca405c272b14eb1c183005eb Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 2 Feb 2024 15:12:45 -0800 Subject: [PATCH 125/187] make power state optional --- specification/devcenter/DevCenter/DevBox/models.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index 7cb19e25df5e..e91df7db3b73 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -373,7 +373,7 @@ action performed by user. @doc("The current power state of the Dev Box.") @visibility("read") - powerState: PowerState = PowerState.Unknown; + powerState?: PowerState = PowerState.Unknown; @doc(""" A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. From 79d4ae1ca1db5d9a3d255c59ed5e637d9ffe4cc4 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 2 Feb 2024 17:55:58 -0800 Subject: [PATCH 126/187] Fix some model validation errors --- .../devcenter/DevCenter/DevBox/models.tsp | 3 ++- .../devcenter/DevCenter/DevBox/routes.tsp | 2 +- .../DevCenter/Environments/models.tsp | 3 +-- ...dOperations_GetProjectOperationStatus.json | 20 +++++++++++++++++++ .../devcenter/DevCenter/shared/routes.tsp | 6 ++++++ .../stable/2023-04-01/devbox.json | 11 ++++++---- .../stable/2023-04-01/environments.json | 6 +++++- ...dOperations_GetProjectOperationStatus.json | 20 +++++++++++++++++++ 8 files changed, 62 insertions(+), 9 deletions(-) create mode 100644 specification/devcenter/DevCenter/shared/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json create mode 100644 specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/SharedOperations_GetProjectOperationStatus.json diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index e91df7db3b73..6c4e663c5d8a 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -325,7 +325,8 @@ model Schedule { frequency: ScheduledFrequency; @doc("The target time to trigger the action. The format is HH:MM.") - time: plainTime; + //no build in time type matches HH:MM time format + time: string; @doc("The IANA timezone id at which the schedule should execute.") timeZone: string; diff --git a/specification/devcenter/DevCenter/DevBox/routes.tsp b/specification/devcenter/DevCenter/DevBox/routes.tsp index a462a4862234..88141dc5ae02 100644 --- a/specification/devcenter/DevCenter/DevBox/routes.tsp +++ b/specification/devcenter/DevCenter/DevBox/routes.tsp @@ -63,7 +63,7 @@ interface DevBoxesOperations { @doc("Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator") @body - devBox: DevBox; + body: DevBox; }, DevBox | { @statusCode statusCode: 201; diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index a5ad2c183fc3..24b5ab9e6b6f 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -186,7 +186,7 @@ model EnvironmentDefinitionParameter { @doc("Default value of the parameter") @projectedName("csharp", "defaultValue") @projectedName("java", "defaultValue") - default?: bytes; + default?: string; @doc(""" A string of one of the basic JSON types (number, integer, array, object, @@ -207,7 +207,6 @@ value. @doc("An array of allowed values") @minItems(1) - // @uniqueItems // TODO import TypeSpec.JsonSchema allowed?: string[]; } diff --git a/specification/devcenter/DevCenter/shared/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json b/specification/devcenter/DevCenter/shared/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json new file mode 100644 index 000000000000..7e9b2b98019b --- /dev/null +++ b/specification/devcenter/DevCenter/shared/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json @@ -0,0 +1,20 @@ +{ + "title": "Get the status of an operation.", + "operationId": "SharedOperations_GetProjectOperationStatus", + "parameters": { + "api-version": "2023-04-01", + "projectName": "myProject", + "operationId": "fa067167-e49d-41bd-8dd8-de719b9de3b3" + }, + "responses": { + "200": { + "body": { + "id": "/projects/myProject/operationStatuses/fa067167-e49d-41bd-8dd8-de719b9de3b3", + "name": "fa067167-e49d-41bd-8dd8-de719b9de3b3", + "status": "Running", + "startTime": "2024-01-24T21:14:58.472Z" + } + } + } +} +} diff --git a/specification/devcenter/DevCenter/shared/routes.tsp b/specification/devcenter/DevCenter/shared/routes.tsp index b1759d0b4289..1cb0b6c64f82 100644 --- a/specification/devcenter/DevCenter/shared/routes.tsp +++ b/specification/devcenter/DevCenter/shared/routes.tsp @@ -1,14 +1,20 @@ import "@typespec/rest"; +import "@azure-tools/typespec-autorest"; import "./models.tsp"; using TypeSpec.Rest; using TypeSpec.Http; +using Autorest; namespace DevCenterService; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface SharedOperations { @doc("Get the status of an operation.") + @example( + "./examples/SharedOperations_GetProjectOperationStatus.json", + "Get the status of an operation." + ) @route("/projects/{projectName}/operationstatuses/{operationId}") @get getProjectOperationStatus is Azure.Core.Foundations.Operation< diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json index 3e394512f157..80526e07cc1c 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json @@ -132,6 +132,11 @@ } } } + }, + "x-ms-examples": { + "Get the status of an operation.": { + "$ref": "./examples/SharedOperations_GetProjectOperationStatus.json" + } } } }, @@ -479,7 +484,7 @@ "type": "string" }, { - "name": "devBox", + "name": "body", "in": "body", "description": "Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator", "required": true, @@ -1420,8 +1425,7 @@ }, "required": [ "name", - "poolName", - "powerState" + "poolName" ] }, "DevBoxAction": { @@ -2154,7 +2158,6 @@ }, "time": { "type": "string", - "format": "time", "description": "The target time to trigger the action. The format is HH:MM." }, "timeZone": { diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index aa1ec7e6d112..ec64147233c3 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -437,6 +437,11 @@ } } } + }, + "x-ms-examples": { + "Get the status of an operation.": { + "$ref": "./examples/SharedOperations_GetProjectOperationStatus.json" + } } } }, @@ -915,7 +920,6 @@ }, "default": { "type": "string", - "format": "byte", "description": "Default value of the parameter" }, "type": { diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/SharedOperations_GetProjectOperationStatus.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/SharedOperations_GetProjectOperationStatus.json new file mode 100644 index 000000000000..7e9b2b98019b --- /dev/null +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/SharedOperations_GetProjectOperationStatus.json @@ -0,0 +1,20 @@ +{ + "title": "Get the status of an operation.", + "operationId": "SharedOperations_GetProjectOperationStatus", + "parameters": { + "api-version": "2023-04-01", + "projectName": "myProject", + "operationId": "fa067167-e49d-41bd-8dd8-de719b9de3b3" + }, + "responses": { + "200": { + "body": { + "id": "/projects/myProject/operationStatuses/fa067167-e49d-41bd-8dd8-de719b9de3b3", + "name": "fa067167-e49d-41bd-8dd8-de719b9de3b3", + "status": "Running", + "startTime": "2024-01-24T21:14:58.472Z" + } + } + } +} +} From 83a7b27daa31b5ce0f533bf98e3caa2e46f391ac Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 15 Feb 2024 13:58:27 -0800 Subject: [PATCH 127/187] move access ang usage to client.tsp --- specification/devcenter/DevCenter/DevBox/models.tsp | 5 +---- specification/devcenter/DevCenter/client.tsp | 3 +++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index 6c4e663c5d8a..82ed44c47a7f 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -1,12 +1,11 @@ import "@typespec/rest"; import "@typespec/http"; import "@azure-tools/typespec-azure-core"; -import "@azure-tools/typespec-client-generator-core"; import "../shared/models.tsp"; +import "../client.tsp"; using TypeSpec.Rest; using TypeSpec.Http; -using Azure.ClientGenerator.Core; namespace DevCenterService; @@ -338,8 +337,6 @@ model DevBoxListResult is Azure.Core.Page; @doc("A Dev Box") @resource("devboxes") @parentResource(User) -@access(Access.public) -@usage(Usage.input | Usage.output) model DevBox { @key("devBoxName") @doc("Display name for the Dev Box") diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index d950c69f8bc8..fc501e63704b 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -68,3 +68,6 @@ interface EnvironmentClientOperations { getEnvironmentDefinition is DevCenterService.EnvironmentsOperations.getEnvironmentDefinition; listEnvironmentTypes is DevCenterService.EnvironmentsOperations.listEnvironmentTypes; } + +@@access(DevCenterService.DevBox, Access.public); +@@usage(DevCenterService.DevBox, Usage.input | Usage.output); From cd7f2afb6e6f88215bceb7c831b8a824d95979df Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 15 Feb 2024 14:17:46 -0800 Subject: [PATCH 128/187] update enum to union --- .../devcenter/DevCenter/DevBox/models.tsp | 152 ++++++++++-------- .../DevCenter/Environments/models.tsp | 51 +++--- 2 files changed, 109 insertions(+), 94 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index 82ed44c47a7f..9b876a845289 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -13,164 +13,176 @@ namespace DevCenterService; @projectedName("csharp", "DevBoxOSType") @projectedName("java", "DevBoxOsType") @projectedName("python", "OSType") -enum OsType { - @doc("The Windows operating system.") Windows, +union OsType { + @doc("The Windows operating system.") Windows: "Windows", + string, } @doc("Indicates whether hibernate is supported and enabled, disabled, or unsupported by the operating system. Unknown hibernate support is represented as null.") -enum HibernateSupport { - @doc("Hibernate is enabled.") Enabled, - @doc("Hibernate is not enabled.") Disabled, - @doc("Hibernate is not supported by the operating system.") OsUnsupported, +union HibernateSupport { + @doc("Hibernate is enabled.") Enabled: "Enabled", + @doc("Hibernate is not enabled.") Disabled: "Disabled", + @doc("Hibernate is not supported by the operating system.") OsUnsupported: "OsUnsupported", + string, } @doc("Indicates whether owners of Dev Boxes in a pool are local administrators on the Dev Boxes.") @projectedName("csharp", "LocalAdministratorStatus") @projectedName("java", "LocalAdministratorStatus") @projectedName("python", "LocalAdministratorStatus") -enum LocalAdminStatus { +union LocalAdminStatus { @doc("Owners of Dev Boxes in the pool are local administrators on the Dev Boxes.") - Enabled, + Enabled: "Enabled", @doc("Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes.") - Disabled, + Disabled: "Disabled", + string, } @doc("Indicates the provisioning state of the Dev Box.") -enum DevBoxProvisioningState { - @doc("Dev Box was successfully provisioned") Succeeded, - @doc("Dev Box failed to provision") Failed, - @doc("Dev Box provision was canceled") Canceled, - @doc("Dev Box is being created") Creating, - @doc("Dev Box is being deleted") Deleting, - @doc("Dev Box is updating") Updating, - @doc("Dev Box is starting") Starting, - @doc("Dev Box is stopping") Stopping, - @doc("Dev Box is provisioning") Provisioning, - @doc("Dev Box was provisioned with warning") ProvisionedWithWarning, - @doc("Dev Box is in grace period") InGracePeriod, - @doc("Dev Box is not provisioned") NotProvisioned, +union DevBoxProvisioningState { + @doc("Dev Box was successfully provisioned") Succeeded: "Succeeded", + @doc("Dev Box failed to provision") Failed: "Failed", + @doc("Dev Box provision was canceled") Canceled: "Canceled", + @doc("Dev Box is being created") Creating: "Creating", + @doc("Dev Box is being deleted") Deleting: "Deleting", + @doc("Dev Box is updating") Updating: "Updating", + @doc("Dev Box is starting") Starting: "Starting", + @doc("Dev Box is stopping") Stopping: "Stopping", + @doc("Dev Box is provisioning") Provisioning: "Provisioning", + @doc("Dev Box was provisioned with warning") ProvisionedWithWarning : "ProvisionedWithWarning", + @doc("Dev Box is in grace period") InGracePeriod: "InGracePeriod" , + @doc("Dev Box is not provisioned") NotProvisioned: "NotProvisioned", + string, } @doc("Indicates the Dev Box compute.") -enum SkuName { +union SkuName { @doc("Intel, 8 vCPU, 32 GB RAM, 256 GB Storage") - general_i_8c32gb256ssd_v2, + general_i_8c32gb256ssd_v2: "general_i_8c32gb256ssd_v2", @doc("Intel, 8 vCPU, 32 GB RAM, 512 GB Storage") - general_i_8c32gb512ssd_v2, + general_i_8c32gb512ssd_v2: "general_i_8c32gb512ssd_v2", @doc("Intel, 8 vCPU, 32 GB RAM, 1024 GB Storage") - general_i_8c32gb1024ssd_v2, + general_i_8c32gb1024ssd_v2: "general_i_8c32gb1024ssd_v2", @doc("Intel, 8 vCPU, 32 GB RAM, 2048 GB Storage") - general_i_8c32gb2048ssd_v2, + general_i_8c32gb2048ssd_v2: "general_i_8c32gb2048ssd_v2", @doc("Intel, 16 vCPU, 64 GB RAM, 256 GB Storage") - general_i_16c64gb256ssd_v2, + general_i_16c64gb256ssd_v2: "general_i_16c64gb256ssd_v2", @doc("Intel, 16 vCPU, 64 GB RAM, 512 GB Storage") - general_i_16c64gb512ssd_v2, + general_i_16c64gb512ssd_v2: "general_i_16c64gb512ssd_v2", @doc("Intel, 16 vCPU, 64 GB RAM, 1024 GB Storage") - general_i_16c64gb1024ssd_v2, + general_i_16c64gb1024ssd_v2: "general_i_16c64gb1024ssd_v2", @doc("Intel, 16 vCPU, 64 GB RAM, 2048 GB Storage") - general_i_16c64gb2048ssd_v2, + general_i_16c64gb2048ssd_v2: "general_i_16c64gb2048ssd_v2", @doc("Intel, 32 vCPU, 128 GB RAM, 512 GB Storage") - general_i_32c128gb512ssd_v2, + general_i_32c128gb512ssd_v2: "general_i_32c128gb512ssd_v2", @doc("Intel, 32 vCPU, 128 GB RAM, 1024 GB Storage") - general_i_32c128gb1024ssd_v2, + general_i_32c128gb1024ssd_v2: "general_i_32c128gb1024ssd_v2", @doc("Intel, 32 vCPU, 128 GB RAM, 2048 GB Storage") - general_i_32c128gb2048ssd_v2, + general_i_32c128gb2048ssd_v2: "general_i_32c128gb2048ssd_v2", @doc("AMD, 8 vCPU, 32 GB RAM, 256 GB Storage") - general_a_8c32gb256ssd_v2, + general_a_8c32gb256ssd_v2: "general_a_8c32gb256ssd_v2", @doc("AMD, 8 vCPU, 32 GB RAM, 512 GB Storage") - general_a_8c32gb512ssd_v2, + general_a_8c32gb512ssd_v2: "general_a_8c32gb512ssd_v2", @doc("AMD, 8 vCPU, 32 GB RAM, 1024 GB Storage") - general_a_8c32gb1024ssd_v2, + general_a_8c32gb1024ssd_v2: "general_a_8c32gb1024ssd_v2", @doc("AMD, 8 vCPU, 32 GB RAM, 2048 GB Storage") - general_a_8c32gb2048ssd_v2, + general_a_8c32gb2048ssd_v2: "general_a_8c32gb2048ssd_v2", @doc("AMD, 16 vCPU, 64 GB RAM, 256 GB Storage") - general_a_16c64gb256ssd_v2, + general_a_16c64gb256ssd_v2: "general_a_16c64gb256ssd_v2", @doc("AMD, 16 vCPU, 64 GB RAM, 512 GB Storage") - general_a_16c64gb512ssd_v2, + general_a_16c64gb512ssd_v2: "general_a_16c64gb512ssd_v2", @doc("AMD, 16 vCPU, 64 GB RAM, 1024 GB Storage") - general_a_16c64gb1024ssd_v2, + general_a_16c64gb1024ssd_v2: "general_a_16c64gb1024ssd_v2", @doc("AMD, 16 vCPU, 64 GB RAM, 2048 GB Storage") - general_a_16c64gb2048ssd_v2, + general_a_16c64gb2048ssd_v2: "general_a_16c64gb2048ssd_v2", @doc("AMD, 32 vCPU, 128 GB RAM, 512 GB Storage") - general_a_32c128gb512ssd_v2, + general_a_32c128gb512ssd_v2: "general_a_32c128gb512ssd_v2", @doc("AMD, 32 vCPU, 128 GB RAM, 1024 GB Storage") - general_a_32c128gb1024ssd_v2, + general_a_32c128gb1024ssd_v2: "general_a_32c128gb1024ssd_v2", @doc("AMD, 32 vCPU, 128 GB RAM, 2048 GB Storage") - general_a_32c128gb2048ssd_v2, + general_a_32c128gb2048ssd_v2: "general_a_32c128gb2048ssd_v2", + string, } @doc("Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.") @projectedName("csharp", "StopOnDisconnectStatus") @projectedName("java", "StopOnDisconnectStatus") @projectedName("python", "StopOnDisconnectStatus") -enum StopOnDisconnectEnableStatus { - @doc("Stop on disconnect is enabled on the Dev Box.") Enabled, - @doc("Stop on disconnect is not enabled on the Dev Box.") Disabled, +union StopOnDisconnectEnableStatus { + @doc("Stop on disconnect is enabled on the Dev Box.") Enabled: "Enabled", + @doc("Stop on disconnect is not enabled on the Dev Box.") Disabled: "Disabled", + string, } @doc("Pool status indicating whether a pool is available to create Dev Boxes.") -enum PoolHealthStatus { - @doc("The pool health status is not known.") Unknown, - @doc("The pool health status waiting for health checks to run.") Pending, - @doc("The pool health status is healthy.") Healthy, - @doc("The pool health status has one or more warnings.") Warning, - @doc("The pool health status is not healthy.") Unhealthy, +union PoolHealthStatus { + @doc("The pool health status is not known.") Unknown: "Unknown", + @doc("The pool health status waiting for health checks to run.") Pending: "Pending", + @doc("The pool health status is healthy.") Healthy: "Healthy", + @doc("The pool health status has one or more warnings.") Warning: "Warning", + @doc("The pool health status is not healthy.") Unhealthy: "Unhealthy", + string, } @doc("The supported types for a scheduled task.") -enum ScheduledType { - @doc("The scheduled task will stop impacted Dev Boxes.") StopDevBox, +union ScheduledType { + @doc("The scheduled task will stop impacted Dev Boxes.") StopDevBox: "StopDevBox", + string, } @doc("The frequency of task execution.") @projectedName("csharp", "ScheduleFrequency") @projectedName("java", "ScheduleFrequency") -enum ScheduledFrequency { - @doc("The scheduled task will run every day.") Daily, +union ScheduledFrequency { + @doc("The scheduled task will run every day.") Daily: "Daily", + string, } @doc("The power states of a Dev Box.") -enum PowerState { - @doc("The Dev Box power state is not known.") Unknown, - @doc("The Dev Box is running.") Running, - @doc("The Dev Box is deallocated.") Deallocated, - @doc("The Dev Box is powered off.") PoweredOff, - @doc("The Dev Box is hibernated.") Hibernated, +union PowerState { + @doc("The Dev Box power state is not known.") Unknown: "Unknown", + @doc("The Dev Box is running.") Running: "Running", + @doc("The Dev Box is deallocated.") Deallocated: "Deallocated", + @doc("The Dev Box is powered off.") PoweredOff: "PoweredOff", + @doc("The Dev Box is hibernated.") Hibernated: "Hibernated", + string, } @doc("The type of action which will take place on a Dev Box.") -enum DevBoxActionType { - @doc("The action will stop the Dev Box.") Stop, +union DevBoxActionType { + @doc("The action will stop the Dev Box.") Stop: "Stop", + string, } @doc("The result of the delay operation on this action.") @projectedName("csharp", "DevBoxActionDelayStatus") @projectedName("java", "DevBoxActionDelayStatus") -enum DevBoxActionDelayResultStatus { - @doc("The delay operation succeeded.") Succeeded, - @doc("The delay operation failed.") Failed, +union DevBoxActionDelayResultStatus { + @doc("The delay operation succeeded.") Succeeded: "Succeeded", + @doc("The delay operation failed.") Failed: "Failed", + string, } @doc("A pool of Dev Boxes.") @@ -371,7 +383,7 @@ action performed by user. @doc("The current power state of the Dev Box.") @visibility("read") - powerState?: PowerState = PowerState.Unknown; + powerState?: PowerState; @doc(""" A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index 24b5ab9e6b6f..4994f2e5ada6 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -12,64 +12,67 @@ namespace DevCenterService; @doc("The type of data a parameter accepts.") @projectedName("csharp", "EnvironmentDefinitionParameterType") @projectedName("java", "EnvironmentDefinitionParameterType") -enum ParameterType { - @doc("The parameter accepts an array of values.") array, - @doc("The parameter accepts a boolean value.") boolean, - @doc("The parameter accepts an integer value.") integer, - @doc("The parameter accepts a number value.") number, - @doc("The parameter accepts an object value.") object, - @doc("The parameter accepts a string value.") string, +union ParameterType { + @doc("The parameter accepts an array of values.") array: "array", + @doc("The parameter accepts a boolean value.") boolean: "boolean", + @doc("The parameter accepts an integer value.") integer: "integer", + @doc("The parameter accepts a number value.") number: "number", + @doc("The parameter accepts an object value.") object: "object", + @doc("The parameter accepts a string value.") string: "string", + string, } @doc("Indicates whether an environment type is enabled for use in a project.") @projectedName("csharp", "EnvironmentTypeStatus") @projectedName("java", "EnvironmentTypeStatus") @projectedName("python", "EnvironmentTypeStatus") -enum EnvironmentTypeEnableStatus { - @doc("The environment type is enabled for use in the project.") Enabled, - @doc("The environment type is not enabled for use in the project.") Disabled, +union EnvironmentTypeEnableStatus { + @doc("The environment type is enabled for use in the project.") Enabled: "Enabled", + @doc("The environment type is not enabled for use in the project.") Disabled: "Disabled", + string, } @doc("The provisioning state of the environment.") -enum EnvironmentProvisioningState { +union EnvironmentProvisioningState { @doc("The environment was successfully provisioned.") - Succeeded, + Succeeded: "Succeeded", @doc("The environment failed to provision.") - Failed, + Failed: "Failed", @doc("The environment provisioning was canceled.") - Canceled, + Canceled: "Canceled", @doc("The environment is creating.") - Creating, + Creating: "Creating", @doc("The environment was accepted.") - Accepted, + Accepted: "Accepted", @doc("The environment is deleting.") - Deleting, + Deleting: "Deleting", @doc("The environment is updating.") - Updating, + Updating: "Updating", @doc("The environment is preparing.") - Preparing, + Preparing: "Preparing", @doc("The environment is running.") - Running, + Running: "Running", @doc("The environment is Syncing.") - Syncing, + Syncing: "Syncing", @doc("The environment is moving resources.") - MovingResources, + MovingResources: "MovingResources", @doc("The environment has a transient failure.") - TransientFailure, + TransientFailure: "TransientFailure", @doc("The environment storage provisioning failed.") - StorageProvisioningFailed, + StorageProvisioningFailed: "StorageProvisioningFailed", + string, } @doc("Results of the environment list operation.") From f43567ab38088f3ce1171ef1c290778928c0c387 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 15 Feb 2024 16:35:26 -0800 Subject: [PATCH 129/187] move from projectedName in model to clientName in client --- .../devcenter/DevCenter/DevBox/models.tsp | 51 ++------------- .../DevCenter/Environments/models.tsp | 19 +----- specification/devcenter/DevCenter/client.tsp | 63 +++++++++++++++++++ 3 files changed, 68 insertions(+), 65 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index 9b876a845289..8388b5aff0ce 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -10,9 +10,6 @@ using TypeSpec.Http; namespace DevCenterService; @doc("The operating system type.") -@projectedName("csharp", "DevBoxOSType") -@projectedName("java", "DevBoxOsType") -@projectedName("python", "OSType") union OsType { @doc("The Windows operating system.") Windows: "Windows", string, @@ -27,9 +24,6 @@ union HibernateSupport { } @doc("Indicates whether owners of Dev Boxes in a pool are local administrators on the Dev Boxes.") -@projectedName("csharp", "LocalAdministratorStatus") -@projectedName("java", "LocalAdministratorStatus") -@projectedName("python", "LocalAdministratorStatus") union LocalAdminStatus { @doc("Owners of Dev Boxes in the pool are local administrators on the Dev Boxes.") Enabled: "Enabled", @@ -127,9 +121,6 @@ union SkuName { } @doc("Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.") -@projectedName("csharp", "StopOnDisconnectStatus") -@projectedName("java", "StopOnDisconnectStatus") -@projectedName("python", "StopOnDisconnectStatus") union StopOnDisconnectEnableStatus { @doc("Stop on disconnect is enabled on the Dev Box.") Enabled: "Enabled", @doc("Stop on disconnect is not enabled on the Dev Box.") Disabled: "Disabled", @@ -153,8 +144,6 @@ union ScheduledType { } @doc("The frequency of task execution.") -@projectedName("csharp", "ScheduleFrequency") -@projectedName("java", "ScheduleFrequency") union ScheduledFrequency { @doc("The scheduled task will run every day.") Daily: "Daily", string, @@ -177,8 +166,6 @@ union DevBoxActionType { } @doc("The result of the delay operation on this action.") -@projectedName("csharp", "DevBoxActionDelayStatus") -@projectedName("java", "DevBoxActionDelayStatus") union DevBoxActionDelayResultStatus { @doc("The delay operation succeeded.") Succeeded: "Succeeded", @doc("The delay operation failed.") Failed: "Failed", @@ -188,8 +175,6 @@ union DevBoxActionDelayResultStatus { @doc("A pool of Dev Boxes.") @resource("pools") @parentResource(Project) -@projectedName("csharp", "DevBoxPool") -@projectedName("java", "DevBoxPool") model Pool { @key("poolName") @visibility("read") @@ -200,7 +185,6 @@ model Pool { location: string; @doc("The operating system type of Dev Boxes in this pool") - @projectedName("csharp", "OSType") osType?: OsType; @doc("Hardware settings for the Dev Boxes created in this pool") @@ -219,8 +203,6 @@ model Pool { Indicates whether owners of Dev Boxes in this pool are local administrators on the Dev Boxes. """) - @projectedName("csharp", "LocalAdministratorStatus") - @projectedName("java", "LocalAdministratorStatus") localAdministrator?: LocalAdminStatus; @doc("Stop on disconnect configuration settings for Dev Boxes created in this pool.") @@ -235,8 +217,7 @@ available to create Dev Boxes. #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" @doc("Hardware specifications for the Dev Box.") -@projectedName("csharp", "DevBoxHardwareProfile") -@projectedName("java", "DevBoxHardwareProfile") + model HardwareProfile { @doc("The name of the SKU") @visibility("read") @@ -244,40 +225,30 @@ model HardwareProfile { @doc("The number of vCPUs available for the Dev Box.") @visibility("read") - @projectedName("java", "vcpus") - @projectedName("python", "vcpus") vCPUs?: int32; @doc("The amount of memory available for the Dev Box.") @visibility("read") - @projectedName("python", "memoryGb") memoryGB?: int32; } @doc("Storage settings for the Dev Box's disks") -@projectedName("csharp", "DevBoxStorageProfile") -@projectedName("java", "DevBoxStorageProfile") model StorageProfile { @doc("Settings for the operating system disk.") - @projectedName("csharp", "OSDisk") osDisk?: OsDisk; } @doc("Settings for the operating system disk.") -@projectedName("csharp", "OSDisk") -@projectedName("python", "OSDisk") -@projectedName("javascript", "OSDisk") + model OsDisk { #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" @doc("The size of the OS Disk in gigabytes.") @visibility("read") - @projectedName("python", "diskSizeGb") diskSizeGB?: int32; } @doc("Specifies information about the image used") -@projectedName("csharp", "DevBoxImageReference") -@projectedName("java", "DevBoxImageReference") + model ImageReference { @doc("The name of the image used.") @visibility("read") @@ -293,7 +264,6 @@ model ImageReference { @doc("The operating system build number of the image.") @visibility("read") - @projectedName("csharp", "OSBuildNumber") osBuildNumber?: string; @doc("The datetime that the backing image version was published.") @@ -319,8 +289,7 @@ is detected. @doc("A Schedule to execute action.") @resource("schedules") @parentResource(Pool) -@projectedName("csharp", "DevBoxSchedule") -@projectedName("java", "DevBoxSchedule") + model Schedule { @key("scheduleName") @visibility("read") @@ -328,8 +297,6 @@ model Schedule { name: string; @doc("Supported type this scheduled task represents.") - @projectedName("csharp", "scheduledType") - @projectedName("java", "scheduledType") type: ScheduledType; @doc("The frequency of this scheduled task.") @@ -405,13 +372,10 @@ Virtual Network it is attached to. @doc("The operating system type of this Dev Box.") @visibility("read") - @projectedName("csharp", "OSType") osType?: OsType; @doc("The AAD object id of the user this Dev Box is assigned to.") @visibility("read") - @projectedName("csharp", "userId") - @projectedName("java", "userId") user?: Azure.Core.uuid; @doc("Information about the Dev Box's hardware resources") @@ -432,19 +396,15 @@ Virtual Network it is attached to. @doc("Indicates whether the owner of the Dev Box is a local administrator.") @visibility("read", "create") - @projectedName("csharp", "LocalAdministratorStatus") - @projectedName("java", "LocalAdministratorStatus") localAdministrator?: LocalAdminStatus; } @doc("Provides remote connection information for a Dev Box.") model RemoteConnection { @doc("URL to open a browser based RDP session.") - @projectedName("csharp", "webUri") webUrl?: url; @doc("Link to open a Remote Desktop session.") - @projectedName("csharp", "rdpConnectionUri") rdpConnectionUrl?: url; } @@ -467,8 +427,6 @@ model DevBoxAction { suspendedUntil?: utcDateTime; @doc("Details about the next run of this action.") - @projectedName("csharp", "nextAction") - @projectedName("java", "nextAction") next?: DevBoxNextAction; } @@ -485,7 +443,6 @@ model DevBoxActionsDelayMultipleResult @doc("The action delay result") model DevBoxActionDelayResult { @doc("The name of the action.") - @projectedName("csharp", "actionName") name: string; @doc("The result of the delay operation on this action.") diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index 4994f2e5ada6..a2c2d911ffa5 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -10,8 +10,6 @@ using TypeSpec.Http; namespace DevCenterService; @doc("The type of data a parameter accepts.") -@projectedName("csharp", "EnvironmentDefinitionParameterType") -@projectedName("java", "EnvironmentDefinitionParameterType") union ParameterType { @doc("The parameter accepts an array of values.") array: "array", @doc("The parameter accepts a boolean value.") boolean: "boolean", @@ -23,9 +21,6 @@ union ParameterType { } @doc("Indicates whether an environment type is enabled for use in a project.") -@projectedName("csharp", "EnvironmentTypeStatus") -@projectedName("java", "EnvironmentTypeStatus") -@projectedName("python", "EnvironmentTypeStatus") union EnvironmentTypeEnableStatus { @doc("The environment type is enabled for use in the project.") Enabled: "Enabled", @doc("The environment type is not enabled for use in the project.") Disabled: "Disabled", @@ -81,8 +76,6 @@ model EnvironmentListResult is Azure.Core.Page; @doc("Properties of an environment.") @resource("environments") @parentResource(User) -@projectedName("csharp", "DevCenterEnvironment") -@projectedName("java", "DevCenterEnvironment") model Environment { ...EnvironmentUpdateProperties; @@ -93,14 +86,10 @@ model Environment { @doc("Environment type.") @visibility("read", "create") - @projectedName("csharp", "environmentTypeName") - @projectedName("java", "environmentTypeName") environmentType: string; @doc("The AAD object id of the owner of this Environment.") @visibility("read") - @projectedName("csharp", "userId") - @projectedName("java", "userId") user?: Azure.Core.uuid; @doc("The provisioning state of the environment.") @@ -136,7 +125,6 @@ model EnvironmentUpdateProperties { @doc("A catalog.") @resource("catalogs") @parentResource(Project) -@projectedName("csharp", "DevCenterCatalog") model Catalog { @doc("Name of the catalog.") @key("catalogName") @@ -187,16 +175,13 @@ model EnvironmentDefinitionParameter { description?: string; @doc("Default value of the parameter") - @projectedName("csharp", "defaultValue") - @projectedName("java", "defaultValue") + default?: string; @doc(""" A string of one of the basic JSON types (number, integer, array, object, boolean, string) """) - @projectedName("csharp", "parameterType") - @projectedName("java", "parameterType") type: ParameterType; @doc(""" @@ -217,8 +202,6 @@ value. model EnvironmentTypeListResult is Azure.Core.Page; @doc("Properties of an environment type.") -@projectedName("csharp", "DevCenterEnvironmentType") -@projectedName("java", "DevCenterEnvironmentType") model EnvironmentType { @doc("Name of the environment type") name: string; diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index fc501e63704b..fb580c7e475e 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -71,3 +71,66 @@ interface EnvironmentClientOperations { @@access(DevCenterService.DevBox, Access.public); @@usage(DevCenterService.DevBox, Usage.input | Usage.output); + +@@clientName(DevCenterService.LocalAdminStatus, "LocalAdministratorStatus"); +@@clientName(DevCenterService.StopOnDisconnectEnableStatus, "StopOnDisconnectStatus"); +@@clientName(DevCenterService.EnvironmentTypeEnableStatus, "EnvironmentTypeStatus"); + +@@clientName(DevCenterService.OsType, "DevBoxOSType", "csharp"); +@@clientName(DevCenterService.ScheduledFrequency, "ScheduleFrequency", "csharp"); +@@clientName(DevCenterService.DevBoxActionDelayResultStatus, "DevBoxActionDelayStatus", "csharp"); +@@clientName(DevCenterService.Pool, "DevBoxPool", "csharp"); +@@clientName(DevCenterService.Pool.osType, "OSType", "csharp"); +@@clientName(DevCenterService.Pool.localAdministrator, "LocalAdministratorStatus", "csharp"); +@@clientName(DevCenterService.HardwareProfile, "DevBoxHardwareProfile", "csharp"); +@@clientName(DevCenterService.HardwareProfile.vCPUs, "vcpus", "csharp"); +@@clientName(DevCenterService.StorageProfile, "DevBoxStorageProfile", "csharp"); +@@clientName(DevCenterService.StorageProfile.osDisk , "OSDisk", "csharp"); +@@clientName(DevCenterService.OsDisk, "OSDisk", "csharp"); +@@clientName(DevCenterService.ImageReference, "DevBoxImageReference", "csharp"); +@@clientName(DevCenterService.ImageReference.osBuildNumber , "OSBuildNumber", "csharp"); +@@clientName(DevCenterService.Schedule, "DevBoxSchedule", "csharp"); +@@clientName(DevCenterService.Schedule.type, "scheduledType", "csharp"); +@@clientName(DevCenterService.DevBox.osType , "OSType", "csharp"); +@@clientName(DevCenterService.DevBox.user , "userId", "csharp"); +@@clientName(DevCenterService.DevBox.localAdministrator , "LocalAdministratorStatus", "csharp"); +@@clientName(DevCenterService.RemoteConnection.webUrl , "webUri", "csharp"); +@@clientName(DevCenterService.RemoteConnection.rdpConnectionUrl , "rdpConnectionUri", "csharp"); +@@clientName(DevCenterService.DevBoxAction.next, "nextAction", "csharp"); +@@clientName(DevCenterService.DevBoxActionDelayResult.action, "nextAction", "csharp"); +@@clientName(DevCenterService.ParameterType, "EnvironmentDefinitionParameterType", "csharp"); +@@clientName(DevCenterService.Environment, "DevCenterEnvironment", "csharp"); +@@clientName(DevCenterService.Environment.environmentType, "environmentTypeName","csharp"); +@@clientName(DevCenterService.Environment.user, "userId","csharp"); +@@clientName(DevCenterService.Catalog, "DevCenterCatalog", "csharp"); +@@clientName(DevCenterService.EnvironmentDefinitionParameter.default, "defaultValue", "csharp"); +@@clientName(DevCenterService.EnvironmentDefinitionParameter.type, "parameterType", "csharp"); +@@clientName(DevCenterService.EnvironmentType, "DevCenterEnvironmentType", "csharp"); + +@@clientName(DevCenterService.OsType, "DevBoxOsType" ,"java"); +@@clientName(DevCenterService.ScheduledFrequency, "ScheduleFrequency", "java"); +@@clientName(DevCenterService.DevBoxActionDelayResultStatus, "DevBoxActionDelayStatus", "java"); +@@clientName(DevCenterService.Pool, "DevBoxPool", "java"); +@@clientName(DevCenterService.Pool.localAdministrator, "LocalAdministratorStatus", "java"); +@@clientName(DevCenterService.HardwareProfile, "DevBoxHardwareProfile", "java"); +@@clientName(DevCenterService.StorageProfile, "DevBoxStorageProfile", "java"); +@@clientName(DevCenterService.ImageReference, "DevBoxImageReference", "java"); +@@clientName(DevCenterService.Schedule, "DevBoxSchedule", "java"); +@@clientName(DevCenterService.Schedule.type, "scheduledType", "java"); +@@clientName(DevCenterService.DevBox.user , "userId", "java"); +@@clientName(DevCenterService.DevBox.localAdministrator , "LocalAdministratorStatus", "java"); +@@clientName(DevCenterService.DevBoxAction.next, "nextAction", "java"); +@@clientName(DevCenterService.ParameterType, "EnvironmentDefinitionParameterType", "java"); +@@clientName(DevCenterService.Environment, "DevCenterEnvironment", "java"); +@@clientName(DevCenterService.Environment.environmentType, "environmentTypeName", "java"); +@@clientName(DevCenterService.Environment.user, "userId", "java"); +@@clientName(DevCenterService.Catalog, "DevCenterCatalog", "java"); +@@clientName(DevCenterService.EnvironmentDefinitionParameter.default, "defaultValue", "java"); +@@clientName(DevCenterService.EnvironmentDefinitionParameter.type, "parameterType", "java"); +@@clientName(DevCenterService.EnvironmentType, "DevCenterEnvironmentType", "java"); + +@@clientName(DevCenterService.OsType, "OSType", "python"); +@@clientName(DevCenterService.HardwareProfile.vCPUs, "vcpus", "python"); +@@clientName(DevCenterService.HardwareProfile.memoryGB, "memoryGb", "python"); +@@clientName(DevCenterService.OsDisk, "OSDisk", "python"); +@@clientName(DevCenterService.OsDisk.diskSizeGB ,"diskSizeGb", "python"); \ No newline at end of file From ae05177d032b8d0b3af40b3840194142aed4b773 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 15 Feb 2024 17:02:49 -0800 Subject: [PATCH 130/187] move suppress to the operation that is being suppressed --- .../devcenter/DevCenter/DevBox/models.tsp | 7 ++----- .../devcenter/DevCenter/DevBox/routes.tsp | 14 ++++++++++++-- .../devcenter/DevCenter/DevCenter/routes.tsp | 1 - .../devcenter/DevCenter/Environments/routes.tsp | 8 +++++++- specification/devcenter/DevCenter/client.tsp | 3 --- .../devcenter/DevCenter/python-client.tsp | 1 - .../devcenter/DevCenter/shared/routes.tsp | 1 + 7 files changed, 22 insertions(+), 13 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index 8388b5aff0ce..abebb3cbd43a 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -215,18 +215,18 @@ available to create Dev Boxes. healthStatus: PoolHealthStatus; } -#suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" @doc("Hardware specifications for the Dev Box.") - model HardwareProfile { @doc("The name of the SKU") @visibility("read") skuName?: SkuName; + #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" @doc("The number of vCPUs available for the Dev Box.") @visibility("read") vCPUs?: int32; + #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" @doc("The amount of memory available for the Dev Box.") @visibility("read") memoryGB?: int32; @@ -239,7 +239,6 @@ model StorageProfile { } @doc("Settings for the operating system disk.") - model OsDisk { #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" @doc("The size of the OS Disk in gigabytes.") @@ -248,7 +247,6 @@ model OsDisk { } @doc("Specifies information about the image used") - model ImageReference { @doc("The name of the image used.") @visibility("read") @@ -289,7 +287,6 @@ is detected. @doc("A Schedule to execute action.") @resource("schedules") @parentResource(Pool) - model Schedule { @key("scheduleName") @visibility("read") diff --git a/specification/devcenter/DevCenter/DevBox/routes.tsp b/specification/devcenter/DevCenter/DevBox/routes.tsp index 88141dc5ae02..c9a6a7e89c1c 100644 --- a/specification/devcenter/DevCenter/DevBox/routes.tsp +++ b/specification/devcenter/DevCenter/DevBox/routes.tsp @@ -9,7 +9,6 @@ using TypeSpec.Http; namespace DevCenterService; -#suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface DevBoxesOperations { @doc("Lists available pools") listPools is StandardResourceOperations.ResourceList; @@ -23,6 +22,7 @@ interface DevBoxesOperations { @doc("Gets a schedule.") getSchedule is StandardResourceOperations.ResourceRead; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "three different operations that returns dev box list result" @doc("Lists Dev Boxes in the project for a particular user.") @route("/projects/{projectName}/users/{userId}/devboxes") @get @@ -42,6 +42,7 @@ interface DevBoxesOperations { @doc("Gets a Dev Box") getDevBox is StandardResourceOperations.ResourceRead; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Creates or replaces a Dev Box.") @finalOperation(DevBoxesOperations.getDevBox) @pollingOperation(SharedOperations.getProjectOperationStatus) @@ -79,6 +80,7 @@ interface DevBoxesOperations { } >; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Deletes a Dev Box.") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @@ -113,6 +115,7 @@ interface DevBoxesOperations { } >; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Starts a Dev Box") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start") @@ -140,6 +143,7 @@ interface DevBoxesOperations { } >; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Stops a Dev Box") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop") @@ -171,6 +175,7 @@ interface DevBoxesOperations { } >; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Restarts a Dev Box") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart") @@ -198,6 +203,7 @@ interface DevBoxesOperations { } >; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Gets RDP Connection info") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection") @get @@ -224,6 +230,7 @@ interface DevBoxesOperations { @doc("Gets an action.") getDevBoxAction is StandardResourceOperations.ResourceRead; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Skips an occurrence of an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip") @post @@ -248,6 +255,7 @@ interface DevBoxesOperations { void >; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Delays the occurrence of an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay") @post @@ -276,6 +284,7 @@ interface DevBoxesOperations { DevBoxAction >; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Delays all actions.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay") @post @@ -301,13 +310,14 @@ interface DevBoxesOperations { >; } -#suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface DevBoxesDevCenterOperations { + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Lists Dev Boxes that the caller has access to in the DevCenter.") @route("/devboxes") @get listAllDevBoxes is Azure.Core.Foundations.Operation<{}, DevBoxListResult>; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Lists Dev Boxes in the Dev Center for a particular user.") @route("/users/{userId}/devboxes") @get diff --git a/specification/devcenter/DevCenter/DevCenter/routes.tsp b/specification/devcenter/DevCenter/DevCenter/routes.tsp index a48cc805776d..61be234c1c9a 100644 --- a/specification/devcenter/DevCenter/DevCenter/routes.tsp +++ b/specification/devcenter/DevCenter/DevCenter/routes.tsp @@ -8,7 +8,6 @@ using TypeSpec.Http; namespace DevCenterService; -#suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface DevCenterOperations { @doc("Lists all projects.") listProjects is StandardResourceOperations.ResourceList; diff --git a/specification/devcenter/DevCenter/Environments/routes.tsp b/specification/devcenter/DevCenter/Environments/routes.tsp index 279208275bd4..d1e156b805c1 100644 --- a/specification/devcenter/DevCenter/Environments/routes.tsp +++ b/specification/devcenter/DevCenter/Environments/routes.tsp @@ -10,8 +10,8 @@ using TypeSpec.Http; namespace DevCenterService; -#suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface EnvironmentsOperations { + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "two different operations that returns environment list result" @doc("Lists the environments for a project.") @route("/projects/{projectName}/environments") @get @@ -24,6 +24,7 @@ interface EnvironmentsOperations { EnvironmentListResult >; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "two different operations that returns environment list result" @doc("Lists the environments for a project and user.") @route("/projects/{projectName}/users/{userId}/environments") @get @@ -43,6 +44,7 @@ interface EnvironmentsOperations { @doc("Gets an environment") getEnvironment is StandardResourceOperations.ResourceRead; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Creates or updates an environment.") @finalOperation(EnvironmentsOperations.getEnvironment) @pollingOperation(SharedOperations.getProjectOperationStatus) @@ -79,6 +81,7 @@ interface EnvironmentsOperations { >; // FIXME + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Deletes an environment and all its associated resources") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @@ -120,6 +123,7 @@ interface EnvironmentsOperations { @doc("Gets the specified catalog within the project") getCatalog is StandardResourceOperations.ResourceRead; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "two different operations that returns environment definition list result" @doc("Lists all environment definitions available for a project.") @route("/projects/{projectName}/environmentDefinitions") @get @@ -132,6 +136,7 @@ interface EnvironmentsOperations { EnvironmentDefinitionListResult >; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "two different operations that returns environment definition list result" @doc("Lists all environment definitions available within a catalog.") @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions") @get @@ -151,6 +156,7 @@ interface EnvironmentsOperations { @doc("Get an environment definition from a catalog.") getEnvironmentDefinition is StandardResourceOperations.ResourceRead; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Lists all environment types configured for a project.") @route("/projects/{projectName}/environmentTypes") @get diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index fb580c7e475e..d90305bf8236 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -12,7 +12,6 @@ using Azure.ClientGenerator.Core; @useDependency(APIVersions.v2023_04_01) namespace SdkCustomizations; -#suppress "@azure-tools/typespec-azure-core/use-standard-operations" @client({ name: "DevCenterClient", service: DevCenterService, @@ -22,7 +21,6 @@ interface DevCenterClientOperations { getProject is DevCenterService.DevCenterOperations.getProject; } -#suppress "@azure-tools/typespec-azure-core/use-standard-operations" @client({ name: "DevBoxesClient", service: DevCenterService, @@ -50,7 +48,6 @@ interface DevBoxesClientOperations { delayAllActions is DevCenterService.DevBoxesOperations.delayAllActions; } -#suppress "@azure-tools/typespec-azure-core/use-standard-operations" @client({ name: "DeploymentEnvironmentsClient", service: DevCenterService, diff --git a/specification/devcenter/DevCenter/python-client.tsp b/specification/devcenter/DevCenter/python-client.tsp index 02cf1bb6b64b..de088fa9ff71 100644 --- a/specification/devcenter/DevCenter/python-client.tsp +++ b/specification/devcenter/DevCenter/python-client.tsp @@ -9,7 +9,6 @@ using TypeSpec.Versioning; using DevCenterService; using Azure.ClientGenerator.Core; -#suppress "@azure-tools/typespec-azure-core/use-standard-operations" @useDependency(APIVersions.v2023_04_01) @client({ name: "DevCenterClient", diff --git a/specification/devcenter/DevCenter/shared/routes.tsp b/specification/devcenter/DevCenter/shared/routes.tsp index 1cb0b6c64f82..d16dd5a8308d 100644 --- a/specification/devcenter/DevCenter/shared/routes.tsp +++ b/specification/devcenter/DevCenter/shared/routes.tsp @@ -10,6 +10,7 @@ namespace DevCenterService; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface SharedOperations { + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Get the status of an operation.") @example( "./examples/SharedOperations_GetProjectOperationStatus.json", From 734e165b0ff5d9264e5b4456b5fe76565c7d4931 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 15 Feb 2024 17:04:26 -0800 Subject: [PATCH 131/187] rename to DevBoxActionDelayStatus for all languages --- specification/devcenter/DevCenter/client.tsp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index d90305bf8236..18e2bf66b587 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -72,10 +72,10 @@ interface EnvironmentClientOperations { @@clientName(DevCenterService.LocalAdminStatus, "LocalAdministratorStatus"); @@clientName(DevCenterService.StopOnDisconnectEnableStatus, "StopOnDisconnectStatus"); @@clientName(DevCenterService.EnvironmentTypeEnableStatus, "EnvironmentTypeStatus"); +@@clientName(DevCenterService.DevBoxActionDelayResultStatus, "DevBoxActionDelayStatus"); @@clientName(DevCenterService.OsType, "DevBoxOSType", "csharp"); @@clientName(DevCenterService.ScheduledFrequency, "ScheduleFrequency", "csharp"); -@@clientName(DevCenterService.DevBoxActionDelayResultStatus, "DevBoxActionDelayStatus", "csharp"); @@clientName(DevCenterService.Pool, "DevBoxPool", "csharp"); @@clientName(DevCenterService.Pool.osType, "OSType", "csharp"); @@clientName(DevCenterService.Pool.localAdministrator, "LocalAdministratorStatus", "csharp"); @@ -106,7 +106,6 @@ interface EnvironmentClientOperations { @@clientName(DevCenterService.OsType, "DevBoxOsType" ,"java"); @@clientName(DevCenterService.ScheduledFrequency, "ScheduleFrequency", "java"); -@@clientName(DevCenterService.DevBoxActionDelayResultStatus, "DevBoxActionDelayStatus", "java"); @@clientName(DevCenterService.Pool, "DevBoxPool", "java"); @@clientName(DevCenterService.Pool.localAdministrator, "LocalAdministratorStatus", "java"); @@clientName(DevCenterService.HardwareProfile, "DevBoxHardwareProfile", "java"); From 15b8a05335a19405a85b5cf0e45fbb57525c9fa2 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 15 Feb 2024 17:06:43 -0800 Subject: [PATCH 132/187] consistency between nasmespace names --- specification/devcenter/DevCenter/DevCenter/main.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/devcenter/DevCenter/DevCenter/main.tsp b/specification/devcenter/DevCenter/DevCenter/main.tsp index 0f6d8b544d72..5f87a9f6ce2e 100644 --- a/specification/devcenter/DevCenter/DevCenter/main.tsp +++ b/specification/devcenter/DevCenter/DevCenter/main.tsp @@ -9,4 +9,4 @@ using TypeSpec.Versioning; using TypeSpec.Rest; using TypeSpec.Http; -namespace DevCenter; +namespace DevCenterService; From 344d26720eefa5113e605a463ad9fc710b545483 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 15 Feb 2024 17:12:00 -0800 Subject: [PATCH 133/187] rename python namespace and move it to before the client --- specification/devcenter/DevCenter/python-client.tsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/python-client.tsp b/specification/devcenter/DevCenter/python-client.tsp index de088fa9ff71..9ecf2b88b5dc 100644 --- a/specification/devcenter/DevCenter/python-client.tsp +++ b/specification/devcenter/DevCenter/python-client.tsp @@ -10,12 +10,12 @@ using DevCenterService; using Azure.ClientGenerator.Core; @useDependency(APIVersions.v2023_04_01) +namespace PythonSdkCustomizations; + @client({ name: "DevCenterClient", service: DevCenterService, }) -namespace SdkCustomizations; - interface DevCenterClientOperations { //DevCenters listProjects is DevCenterService.DevCenterOperations.listProjects; From bc2264bc021c414f1ee0ac94b149ed2767e461d2 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 16 Feb 2024 10:32:10 -0800 Subject: [PATCH 134/187] move example to client.tsp --- specification/devcenter/DevCenter/client.tsp | 5 +++++ specification/devcenter/DevCenter/shared/routes.tsp | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 18e2bf66b587..09753d34fd61 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -3,11 +3,13 @@ import "./Environments/routes.tsp"; import "./DevCenter/routes.tsp"; import "./DevBox/routes.tsp"; import "@azure-tools/typespec-client-generator-core"; +import "@azure-tools/typespec-autorest"; using Azure.Core; using TypeSpec.Versioning; using DevCenterService; using Azure.ClientGenerator.Core; +using Autorest; @useDependency(APIVersions.v2023_04_01) namespace SdkCustomizations; @@ -68,6 +70,9 @@ interface EnvironmentClientOperations { @@access(DevCenterService.DevBox, Access.public); @@usage(DevCenterService.DevBox, Usage.input | Usage.output); +@@example(DevCenterService.SharedOperations.getProjectOperationStatus, + "./examples/SharedOperations_GetProjectOperationStatus.json", + "Get the status of an operation."); @@clientName(DevCenterService.LocalAdminStatus, "LocalAdministratorStatus"); @@clientName(DevCenterService.StopOnDisconnectEnableStatus, "StopOnDisconnectStatus"); diff --git a/specification/devcenter/DevCenter/shared/routes.tsp b/specification/devcenter/DevCenter/shared/routes.tsp index d16dd5a8308d..3f90c1e68936 100644 --- a/specification/devcenter/DevCenter/shared/routes.tsp +++ b/specification/devcenter/DevCenter/shared/routes.tsp @@ -1,21 +1,16 @@ import "@typespec/rest"; -import "@azure-tools/typespec-autorest"; import "./models.tsp"; using TypeSpec.Rest; using TypeSpec.Http; -using Autorest; namespace DevCenterService; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface SharedOperations { + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Get the status of an operation.") - @example( - "./examples/SharedOperations_GetProjectOperationStatus.json", - "Get the status of an operation." - ) @route("/projects/{projectName}/operationstatuses/{operationId}") @get getProjectOperationStatus is Azure.Core.Foundations.Operation< From 4067cf2472d5456b168373b0cafe30cb90abc771 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 16 Feb 2024 10:38:15 -0800 Subject: [PATCH 135/187] comment autorest --- specification/devcenter/DevCenter/client.tsp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 09753d34fd61..34f7cdc33c90 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -3,13 +3,13 @@ import "./Environments/routes.tsp"; import "./DevCenter/routes.tsp"; import "./DevBox/routes.tsp"; import "@azure-tools/typespec-client-generator-core"; -import "@azure-tools/typespec-autorest"; +//import "@azure-tools/typespec-autorest"; using Azure.Core; using TypeSpec.Versioning; using DevCenterService; using Azure.ClientGenerator.Core; -using Autorest; +//using Autorest; @useDependency(APIVersions.v2023_04_01) namespace SdkCustomizations; @@ -70,9 +70,9 @@ interface EnvironmentClientOperations { @@access(DevCenterService.DevBox, Access.public); @@usage(DevCenterService.DevBox, Usage.input | Usage.output); -@@example(DevCenterService.SharedOperations.getProjectOperationStatus, +/*@@example(DevCenterService.SharedOperations.getProjectOperationStatus, "./examples/SharedOperations_GetProjectOperationStatus.json", - "Get the status of an operation."); + "Get the status of an operation.");*/ @@clientName(DevCenterService.LocalAdminStatus, "LocalAdministratorStatus"); @@clientName(DevCenterService.StopOnDisconnectEnableStatus, "StopOnDisconnectStatus"); From 9a3114d20a033193074b218be248dddf531ea318 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 16 Feb 2024 11:06:20 -0800 Subject: [PATCH 136/187] use projectedName as clientName is not renaming for csharp --- specification/devcenter/DevCenter/client.tsp | 66 +++++++++++++++++++- 1 file changed, 65 insertions(+), 1 deletion(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 34f7cdc33c90..b37d4b9b5011 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -74,6 +74,70 @@ interface EnvironmentClientOperations { "./examples/SharedOperations_GetProjectOperationStatus.json", "Get the status of an operation.");*/ +@@projectedName(DevCenterService.LocalAdminStatus, "client", "LocalAdministratorStatus"); +@@projectedName(DevCenterService.StopOnDisconnectEnableStatus, "client", "StopOnDisconnectStatus"); +@@projectedName(DevCenterService.EnvironmentTypeEnableStatus, "client", "EnvironmentTypeStatus"); +@@projectedName(DevCenterService.DevBoxActionDelayResultStatus, "client", "DevBoxActionDelayStatus"); + +@@projectedName(DevCenterService.OsType, "csharp", "DevBoxOSType"); +@@projectedName(DevCenterService.ScheduledFrequency, "csharp", "ScheduleFrequency"); +@@projectedName(DevCenterService.Pool, "csharp", "DevBoxPool"); +@@projectedName(DevCenterService.Pool.osType, "csharp", "OSType"); +@@projectedName(DevCenterService.Pool.localAdministrator, "csharp", "LocalAdministratorStatus"); +@@projectedName(DevCenterService.HardwareProfile, "csharp", "DevBoxHardwareProfile"); +@@projectedName(DevCenterService.HardwareProfile.vCPUs, "csharp", "vcpus"); +@@projectedName(DevCenterService.StorageProfile, "csharp", "DevBoxStorageProfile"); +@@projectedName(DevCenterService.StorageProfile.osDisk , "csharp", "OSDisk"); +@@projectedName(DevCenterService.OsDisk, "csharp", "OSDisk"); +@@projectedName(DevCenterService.ImageReference, "csharp", "DevBoxImageReference"); +@@projectedName(DevCenterService.ImageReference.osBuildNumber, "csharp", "OSBuildNumber"); +@@projectedName(DevCenterService.Schedule, "csharp", "DevBoxSchedule"); +@@projectedName(DevCenterService.Schedule.type, "csharp", "scheduledType"); +@@projectedName(DevCenterService.DevBox.osType, "csharp", "OSType"); +@@projectedName(DevCenterService.DevBox.user, "csharp", "userId"); +@@projectedName(DevCenterService.DevBox.localAdministrator, "csharp", "LocalAdministratorStatus"); +@@projectedName(DevCenterService.RemoteConnection.webUrl, "csharp", "webUri"); +@@projectedName(DevCenterService.RemoteConnection.rdpConnectionUrl, "csharp", "rdpConnectionUri"); +@@projectedName(DevCenterService.DevBoxAction.next, "csharp", "nextAction"); +@@projectedName(DevCenterService.DevBoxActionDelayResult.action, "csharp", "nextAction"); +@@projectedName(DevCenterService.ParameterType, "csharp", "EnvironmentDefinitionParameterType"); +@@projectedName(DevCenterService.Environment, "csharp", "DevCenterEnvironment"); +@@projectedName(DevCenterService.Environment.environmentType, "csharp", "environmentTypeName"); +@@projectedName(DevCenterService.Environment.user, "csharp", "userId"); +@@projectedName(DevCenterService.Catalog, "csharp", "DevCenterCatalog"); +@@projectedName(DevCenterService.EnvironmentDefinitionParameter.default, "csharp", "defaultValue"); +@@projectedName(DevCenterService.EnvironmentDefinitionParameter.type, "csharp", "parameterType"); +@@projectedName(DevCenterService.EnvironmentType, "csharp", "DevCenterEnvironmentType"); + +@@projectedName(DevCenterService.OsType, "java", "DevBoxOsType"); +@@projectedName(DevCenterService.ScheduledFrequency, "java", "ScheduleFrequency"); +@@projectedName(DevCenterService.Pool, "java", "DevBoxPool"); +@@projectedName(DevCenterService.Pool.localAdministrator, "java", "LocalAdministratorStatus"); +@@projectedName(DevCenterService.HardwareProfile, "java", "DevBoxHardwareProfile"); +@@projectedName(DevCenterService.StorageProfile, "java", "DevBoxStorageProfile"); +@@projectedName(DevCenterService.ImageReference, "java", "DevBoxImageReference"); +@@projectedName(DevCenterService.Schedule, "java", "DevBoxSchedule"); +@@projectedName(DevCenterService.Schedule.type, "java", "scheduledType"); +@@projectedName(DevCenterService.DevBox.user, "java", "userId"); +@@projectedName(DevCenterService.DevBox.localAdministrator, "java", "LocalAdministratorStatus"); +@@projectedName(DevCenterService.DevBoxAction.next, "java", "nextAction"); +@@projectedName(DevCenterService.ParameterType, "java", "EnvironmentDefinitionParameterType"); +@@projectedName(DevCenterService.Environment, "java", "DevCenterEnvironment"); +@@projectedName(DevCenterService.Environment.environmentType, "java", "environmentTypeName"); +@@projectedName(DevCenterService.Environment.user, "java", "userId"); +@@projectedName(DevCenterService.Catalog, "java", "DevCenterCatalog"); +@@projectedName(DevCenterService.EnvironmentDefinitionParameter.default, "java", "defaultValue"); +@@projectedName(DevCenterService.EnvironmentDefinitionParameter.type, "java", "parameterType"); +@@projectedName(DevCenterService.EnvironmentType, "java", "DevCenterEnvironmentType"); + +@@projectedName(DevCenterService.OsType, "python", "OSType"); +@@projectedName(DevCenterService.HardwareProfile.vCPUs, "python", "vcpus"); +@@projectedName(DevCenterService.HardwareProfile.memoryGB, "python", "memoryGb"); +@@projectedName(DevCenterService.OsDisk, "python", "OSDisk"); +@@projectedName(DevCenterService.OsDisk.diskSizeGB, "python","diskSizeGb"); + + +/* @@clientName(DevCenterService.LocalAdminStatus, "LocalAdministratorStatus"); @@clientName(DevCenterService.StopOnDisconnectEnableStatus, "StopOnDisconnectStatus"); @@clientName(DevCenterService.EnvironmentTypeEnableStatus, "EnvironmentTypeStatus"); @@ -134,4 +198,4 @@ interface EnvironmentClientOperations { @@clientName(DevCenterService.HardwareProfile.vCPUs, "vcpus", "python"); @@clientName(DevCenterService.HardwareProfile.memoryGB, "memoryGb", "python"); @@clientName(DevCenterService.OsDisk, "OSDisk", "python"); -@@clientName(DevCenterService.OsDisk.diskSizeGB ,"diskSizeGb", "python"); \ No newline at end of file +@@clientName(DevCenterService.OsDisk.diskSizeGB ,"diskSizeGb", "python");*/ \ No newline at end of file From d81821eac8b0498f08fc32ee9c2df2522709cd24 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 16 Feb 2024 19:39:19 -0800 Subject: [PATCH 137/187] be more specific with suppress message --- .../devcenter/DevCenter/DevBox/routes.tsp | 61 +++++--------- .../DevCenter/Environments/routes.tsp | 84 ++++++++++--------- 2 files changed, 68 insertions(+), 77 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/routes.tsp b/specification/devcenter/DevCenter/DevBox/routes.tsp index c9a6a7e89c1c..91a3f8b6f103 100644 --- a/specification/devcenter/DevCenter/DevBox/routes.tsp +++ b/specification/devcenter/DevCenter/DevBox/routes.tsp @@ -22,7 +22,10 @@ interface DevBoxesOperations { @doc("Gets a schedule.") getSchedule is StandardResourceOperations.ResourceRead; - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "three different operations that returns dev box list result" + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Need of reuse DevBoxListResult" + // This does fit in the ResourceList but since there are three different operations that returns dev box list result, + // we can't use the standard operation here - it would not allow the use of DevBoxListResult in the other operations. + // error when using it in other operations: duplicate-type-name 'PagedDevBox' (model DevBoxListResult) @doc("Lists Dev Boxes in the project for a particular user.") @route("/projects/{projectName}/users/{userId}/devboxes") @get @@ -42,45 +45,12 @@ interface DevBoxesOperations { @doc("Gets a Dev Box") getDevBox is StandardResourceOperations.ResourceRead; - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Creates or replaces a Dev Box.") - @finalOperation(DevBoxesOperations.getDevBox) @pollingOperation(SharedOperations.getProjectOperationStatus) - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") - @put - createDevBox is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute the operation.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - - @doc("Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator") - @body - body: DevBox; - }, - DevBox | { - @statusCode statusCode: 201; - - @header("Location") - location: ResourceLocation; - - @pollingLocation - @header("Operation-Location") - operationLocation: string; - - @body body?: DevBox; - } - >; + createDevBox is StandardResourceOperations.LongRunningResourceCreateOrReplace; - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern" + //Can not use LongRunningResourceDelete because response is 202 or error, but we also accept 204 response" @doc("Deletes a Dev Box.") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @@ -116,6 +86,8 @@ interface DevBoxesOperations { >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" + // It fits in the LongRunningResourceAction pattern, however we would have to rename the operation to 'start' - so the path ends with ":start" + // But renaming it to 'start' also makes the client method be renamed to "Start" - and we want it to be "StartDevBox". Using projectedName does not solve the problem @doc("Starts a Dev Box") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start") @@ -144,6 +116,8 @@ interface DevBoxesOperations { >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" + // It fits in the LongRunningResourceAction pattern, however we would have to rename the operation to 'stop' - so the path ends with ":stop" + // But renaming it to 'stop' also makes the client method be renamed to "Stop" - and we want it to be "StopDevBox". Using projectedName does not solve the problem @doc("Stops a Dev Box") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop") @@ -176,6 +150,8 @@ interface DevBoxesOperations { >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" + // It fits in the LongRunningResourceAction pattern, however we would have to rename the operation to 'restart' - so the path ends with ":restart" + // But renaming it to 'restart' also makes the client method be renamed to "Restart" - and we want it to be "RestartDevBox". Using projectedName does not solve the problem @doc("Restarts a Dev Box") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart") @@ -204,6 +180,7 @@ interface DevBoxesOperations { >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" + //There is no @key for RemoteConnection model @doc("Gets RDP Connection info") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection") @get @@ -231,6 +208,8 @@ interface DevBoxesOperations { getDevBoxAction is StandardResourceOperations.ResourceRead; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" + // It fits in the LongRunningResourceAction pattern, however we would have to rename the operation to 'skip' - so the path ends with ":skip" + // But renaming it to 'skip' also makes the client method be renamed to "Skip" - and we want it to be "SkipAction". Using projectedName does not solve the problem @doc("Skips an occurrence of an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip") @post @@ -256,6 +235,8 @@ interface DevBoxesOperations { >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" + // It fits in the LongRunningResourceAction pattern, however we would have to rename the operation to 'delay' - so the path ends with ":delay" + // But renaming it to 'delay' also makes the client method be renamed to "Delay" - and we want it to be "DelayAction". Using projectedName does not solve the problem @doc("Delays the occurrence of an action.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay") @post @@ -285,6 +266,8 @@ interface DevBoxesOperations { >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" + // It fits in the LongRunningResourceAction pattern, however we would have to rename the operation to 'delay' - so the path ends with ":delay" + // But renaming it to 'delay' also makes the client method be renamed to "Delay" - and we want it to be "DelayAllAction". Using projectedName does not solve the problem @doc("Delays all actions.") @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay") @post @@ -311,13 +294,13 @@ interface DevBoxesOperations { } interface DevBoxesDevCenterOperations { - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern since DevBox has a different path" @doc("Lists Dev Boxes that the caller has access to in the DevCenter.") @route("/devboxes") @get listAllDevBoxes is Azure.Core.Foundations.Operation<{}, DevBoxListResult>; - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern since DevBox has a different path" @doc("Lists Dev Boxes in the Dev Center for a particular user.") @route("/users/{userId}/devboxes") @get diff --git a/specification/devcenter/DevCenter/Environments/routes.tsp b/specification/devcenter/DevCenter/Environments/routes.tsp index d1e156b805c1..a579cee0adaa 100644 --- a/specification/devcenter/DevCenter/Environments/routes.tsp +++ b/specification/devcenter/DevCenter/Environments/routes.tsp @@ -11,7 +11,7 @@ using TypeSpec.Http; namespace DevCenterService; interface EnvironmentsOperations { - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "two different operations that returns environment list result" + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern since Environment has a different path" @doc("Lists the environments for a project.") @route("/projects/{projectName}/environments") @get @@ -24,7 +24,10 @@ interface EnvironmentsOperations { EnvironmentListResult >; - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "two different operations that returns environment list result" + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Need of reuse EnvironmentListResult" + // This does fit in the ResourceList but since listAllEnvironments also uses environment list result, + // we can't use the standard operation here - it would not allow the use of EnvironmentListResult in the other operation. + // error when using it in other operation: duplicate-type-name 'PagedEnvironment' (model EnvironmentListResult) @doc("Lists the environments for a project and user.") @route("/projects/{projectName}/users/{userId}/environments") @get @@ -44,7 +47,8 @@ interface EnvironmentsOperations { @doc("Gets an environment") getEnvironment is StandardResourceOperations.ResourceRead; - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern" + //Can not use LongRunningCreateOrReplace because response is 200 or 201, but we only respond with 201" @doc("Creates or updates an environment.") @finalOperation(EnvironmentsOperations.getEnvironment) @pollingOperation(SharedOperations.getProjectOperationStatus) @@ -80,42 +84,43 @@ interface EnvironmentsOperations { } >; - // FIXME - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern" + //Can not use LongRunningResourceDelete because response is 202 or error, but we also accept 204 response" @doc("Deletes an environment and all its associated resources") @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @delete - deleteEnvironment( - ...Foundations.ApiVersionParameter, - - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string, - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string, - - @doc("The name of the environment.") - @path - environmentName: string, - ): { - @statusCode - statusCode: 202; - - @body body: OperationStatus; - - @header("Location") - location: string; - - @pollingLocation - @header("Operation-Location") - operationLocation: string; - } | { - @statusCode - statusCode: 204; - } | Azure.Core.Foundations.ErrorResponse; + deleteEnvironment is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string, + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string, + + @doc("The name of the environment.") + @path + environmentName: string, + }, + { + @statusCode + statusCode: 202; + + @body body: OperationStatus; + + @header("Location") + location: string; + + @pollingLocation + @header("Operation-Location") + operationLocation: string; + } | { + @statusCode + statusCode: 204; + } + >; @doc("Lists all of the catalogs available for a project.") listCatalogs is StandardResourceOperations.ResourceList; @@ -123,7 +128,7 @@ interface EnvironmentsOperations { @doc("Gets the specified catalog within the project") getCatalog is StandardResourceOperations.ResourceRead; - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "two different operations that returns environment definition list result" + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern since EnvironmentDefinition has a different path" @doc("Lists all environment definitions available for a project.") @route("/projects/{projectName}/environmentDefinitions") @get @@ -136,7 +141,10 @@ interface EnvironmentsOperations { EnvironmentDefinitionListResult >; - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "two different operations that returns environment definition list result" + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Need of reuse EnvironmentDefinitionListResult" + // This does fit in the ResourceList but since listEnvironmentDefinitions also uses environment list result, + // we can't use the standard operation here - it would not allow the use of EnvironmentDefinitionListResult in the other operation. + // error when using it in other operation: duplicate-type-name 'PagedEnvironmentDefinition' (model EnvironmentDefinitionListResult) @doc("Lists all environment definitions available within a catalog.") @route("/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions") @get @@ -156,7 +164,7 @@ interface EnvironmentsOperations { @doc("Get an environment definition from a catalog.") getEnvironmentDefinition is StandardResourceOperations.ResourceRead; - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations since there is no @key for EnvironmentType model" @doc("Lists all environment types configured for a project.") @route("/projects/{projectName}/environmentTypes") @get From a13fcda2cf39e941cf4ac804b27d49a062a3b3dc Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 20 Feb 2024 11:30:48 -0800 Subject: [PATCH 138/187] Revert "update enum to union" This reverts commit cd7f2afb6e6f88215bceb7c831b8a824d95979df. --- .../devcenter/DevCenter/DevBox/models.tsp | 145 ++++++++---------- .../DevCenter/Environments/models.tsp | 51 +++--- 2 files changed, 91 insertions(+), 105 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index abebb3cbd43a..99a93bb9281e 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -10,159 +10,148 @@ using TypeSpec.Http; namespace DevCenterService; @doc("The operating system type.") -union OsType { - @doc("The Windows operating system.") Windows: "Windows", - string, +enum OsType { + @doc("The Windows operating system.") Windows, } @doc("Indicates whether hibernate is supported and enabled, disabled, or unsupported by the operating system. Unknown hibernate support is represented as null.") -union HibernateSupport { - @doc("Hibernate is enabled.") Enabled: "Enabled", - @doc("Hibernate is not enabled.") Disabled: "Disabled", - @doc("Hibernate is not supported by the operating system.") OsUnsupported: "OsUnsupported", - string, +enum HibernateSupport { + @doc("Hibernate is enabled.") Enabled, + @doc("Hibernate is not enabled.") Disabled, + @doc("Hibernate is not supported by the operating system.") OsUnsupported, } @doc("Indicates whether owners of Dev Boxes in a pool are local administrators on the Dev Boxes.") -union LocalAdminStatus { +enum LocalAdminStatus { @doc("Owners of Dev Boxes in the pool are local administrators on the Dev Boxes.") - Enabled: "Enabled", + Enabled, @doc("Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes.") - Disabled: "Disabled", - string, + Disabled, } @doc("Indicates the provisioning state of the Dev Box.") -union DevBoxProvisioningState { - @doc("Dev Box was successfully provisioned") Succeeded: "Succeeded", - @doc("Dev Box failed to provision") Failed: "Failed", - @doc("Dev Box provision was canceled") Canceled: "Canceled", - @doc("Dev Box is being created") Creating: "Creating", - @doc("Dev Box is being deleted") Deleting: "Deleting", - @doc("Dev Box is updating") Updating: "Updating", - @doc("Dev Box is starting") Starting: "Starting", - @doc("Dev Box is stopping") Stopping: "Stopping", - @doc("Dev Box is provisioning") Provisioning: "Provisioning", - @doc("Dev Box was provisioned with warning") ProvisionedWithWarning : "ProvisionedWithWarning", - @doc("Dev Box is in grace period") InGracePeriod: "InGracePeriod" , - @doc("Dev Box is not provisioned") NotProvisioned: "NotProvisioned", - string, +enum DevBoxProvisioningState { + @doc("Dev Box was successfully provisioned") Succeeded, + @doc("Dev Box failed to provision") Failed, + @doc("Dev Box provision was canceled") Canceled, + @doc("Dev Box is being created") Creating, + @doc("Dev Box is being deleted") Deleting, + @doc("Dev Box is updating") Updating, + @doc("Dev Box is starting") Starting, + @doc("Dev Box is stopping") Stopping, + @doc("Dev Box is provisioning") Provisioning, + @doc("Dev Box was provisioned with warning") ProvisionedWithWarning, + @doc("Dev Box is in grace period") InGracePeriod, + @doc("Dev Box is not provisioned") NotProvisioned, } @doc("Indicates the Dev Box compute.") -union SkuName { +enum SkuName { @doc("Intel, 8 vCPU, 32 GB RAM, 256 GB Storage") - general_i_8c32gb256ssd_v2: "general_i_8c32gb256ssd_v2", + general_i_8c32gb256ssd_v2, @doc("Intel, 8 vCPU, 32 GB RAM, 512 GB Storage") - general_i_8c32gb512ssd_v2: "general_i_8c32gb512ssd_v2", + general_i_8c32gb512ssd_v2, @doc("Intel, 8 vCPU, 32 GB RAM, 1024 GB Storage") - general_i_8c32gb1024ssd_v2: "general_i_8c32gb1024ssd_v2", + general_i_8c32gb1024ssd_v2, @doc("Intel, 8 vCPU, 32 GB RAM, 2048 GB Storage") - general_i_8c32gb2048ssd_v2: "general_i_8c32gb2048ssd_v2", + general_i_8c32gb2048ssd_v2, @doc("Intel, 16 vCPU, 64 GB RAM, 256 GB Storage") - general_i_16c64gb256ssd_v2: "general_i_16c64gb256ssd_v2", + general_i_16c64gb256ssd_v2, @doc("Intel, 16 vCPU, 64 GB RAM, 512 GB Storage") - general_i_16c64gb512ssd_v2: "general_i_16c64gb512ssd_v2", + general_i_16c64gb512ssd_v2, @doc("Intel, 16 vCPU, 64 GB RAM, 1024 GB Storage") - general_i_16c64gb1024ssd_v2: "general_i_16c64gb1024ssd_v2", + general_i_16c64gb1024ssd_v2, @doc("Intel, 16 vCPU, 64 GB RAM, 2048 GB Storage") - general_i_16c64gb2048ssd_v2: "general_i_16c64gb2048ssd_v2", + general_i_16c64gb2048ssd_v2, @doc("Intel, 32 vCPU, 128 GB RAM, 512 GB Storage") - general_i_32c128gb512ssd_v2: "general_i_32c128gb512ssd_v2", + general_i_32c128gb512ssd_v2, @doc("Intel, 32 vCPU, 128 GB RAM, 1024 GB Storage") - general_i_32c128gb1024ssd_v2: "general_i_32c128gb1024ssd_v2", + general_i_32c128gb1024ssd_v2, @doc("Intel, 32 vCPU, 128 GB RAM, 2048 GB Storage") - general_i_32c128gb2048ssd_v2: "general_i_32c128gb2048ssd_v2", + general_i_32c128gb2048ssd_v2, @doc("AMD, 8 vCPU, 32 GB RAM, 256 GB Storage") - general_a_8c32gb256ssd_v2: "general_a_8c32gb256ssd_v2", + general_a_8c32gb256ssd_v2, @doc("AMD, 8 vCPU, 32 GB RAM, 512 GB Storage") - general_a_8c32gb512ssd_v2: "general_a_8c32gb512ssd_v2", + general_a_8c32gb512ssd_v2, @doc("AMD, 8 vCPU, 32 GB RAM, 1024 GB Storage") - general_a_8c32gb1024ssd_v2: "general_a_8c32gb1024ssd_v2", + general_a_8c32gb1024ssd_v2, @doc("AMD, 8 vCPU, 32 GB RAM, 2048 GB Storage") - general_a_8c32gb2048ssd_v2: "general_a_8c32gb2048ssd_v2", + general_a_8c32gb2048ssd_v2, @doc("AMD, 16 vCPU, 64 GB RAM, 256 GB Storage") - general_a_16c64gb256ssd_v2: "general_a_16c64gb256ssd_v2", + general_a_16c64gb256ssd_v2, @doc("AMD, 16 vCPU, 64 GB RAM, 512 GB Storage") - general_a_16c64gb512ssd_v2: "general_a_16c64gb512ssd_v2", + general_a_16c64gb512ssd_v2, @doc("AMD, 16 vCPU, 64 GB RAM, 1024 GB Storage") - general_a_16c64gb1024ssd_v2: "general_a_16c64gb1024ssd_v2", + general_a_16c64gb1024ssd_v2, @doc("AMD, 16 vCPU, 64 GB RAM, 2048 GB Storage") - general_a_16c64gb2048ssd_v2: "general_a_16c64gb2048ssd_v2", + general_a_16c64gb2048ssd_v2, @doc("AMD, 32 vCPU, 128 GB RAM, 512 GB Storage") - general_a_32c128gb512ssd_v2: "general_a_32c128gb512ssd_v2", + general_a_32c128gb512ssd_v2, @doc("AMD, 32 vCPU, 128 GB RAM, 1024 GB Storage") - general_a_32c128gb1024ssd_v2: "general_a_32c128gb1024ssd_v2", + general_a_32c128gb1024ssd_v2, @doc("AMD, 32 vCPU, 128 GB RAM, 2048 GB Storage") - general_a_32c128gb2048ssd_v2: "general_a_32c128gb2048ssd_v2", - string, + general_a_32c128gb2048ssd_v2, } @doc("Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.") -union StopOnDisconnectEnableStatus { - @doc("Stop on disconnect is enabled on the Dev Box.") Enabled: "Enabled", - @doc("Stop on disconnect is not enabled on the Dev Box.") Disabled: "Disabled", - string, +enum StopOnDisconnectEnableStatus { + @doc("Stop on disconnect is enabled on the Dev Box.") Enabled, + @doc("Stop on disconnect is not enabled on the Dev Box.") Disabled, } @doc("Pool status indicating whether a pool is available to create Dev Boxes.") -union PoolHealthStatus { - @doc("The pool health status is not known.") Unknown: "Unknown", - @doc("The pool health status waiting for health checks to run.") Pending: "Pending", - @doc("The pool health status is healthy.") Healthy: "Healthy", - @doc("The pool health status has one or more warnings.") Warning: "Warning", - @doc("The pool health status is not healthy.") Unhealthy: "Unhealthy", - string, +enum PoolHealthStatus { + @doc("The pool health status is not known.") Unknown, + @doc("The pool health status waiting for health checks to run.") Pending, + @doc("The pool health status is healthy.") Healthy, + @doc("The pool health status has one or more warnings.") Warning, + @doc("The pool health status is not healthy.") Unhealthy, } @doc("The supported types for a scheduled task.") -union ScheduledType { - @doc("The scheduled task will stop impacted Dev Boxes.") StopDevBox: "StopDevBox", - string, +enum ScheduledType { + @doc("The scheduled task will stop impacted Dev Boxes.") StopDevBox, } @doc("The frequency of task execution.") -union ScheduledFrequency { - @doc("The scheduled task will run every day.") Daily: "Daily", - string, +enum ScheduledFrequency { + @doc("The scheduled task will run every day.") Daily, } @doc("The power states of a Dev Box.") -union PowerState { - @doc("The Dev Box power state is not known.") Unknown: "Unknown", - @doc("The Dev Box is running.") Running: "Running", - @doc("The Dev Box is deallocated.") Deallocated: "Deallocated", - @doc("The Dev Box is powered off.") PoweredOff: "PoweredOff", - @doc("The Dev Box is hibernated.") Hibernated: "Hibernated", - string, +enum PowerState { + @doc("The Dev Box power state is not known.") Unknown, + @doc("The Dev Box is running.") Running, + @doc("The Dev Box is deallocated.") Deallocated, + @doc("The Dev Box is powered off.") PoweredOff, + @doc("The Dev Box is hibernated.") Hibernated, } @doc("The type of action which will take place on a Dev Box.") -union DevBoxActionType { - @doc("The action will stop the Dev Box.") Stop: "Stop", - string, +enum DevBoxActionType { + @doc("The action will stop the Dev Box.") Stop, } @doc("The result of the delay operation on this action.") @@ -347,7 +336,7 @@ action performed by user. @doc("The current power state of the Dev Box.") @visibility("read") - powerState?: PowerState; + powerState?: PowerState = PowerState.Unknown; @doc(""" A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index a2c2d911ffa5..2f08d0a39b20 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -10,64 +10,61 @@ using TypeSpec.Http; namespace DevCenterService; @doc("The type of data a parameter accepts.") -union ParameterType { - @doc("The parameter accepts an array of values.") array: "array", - @doc("The parameter accepts a boolean value.") boolean: "boolean", - @doc("The parameter accepts an integer value.") integer: "integer", - @doc("The parameter accepts a number value.") number: "number", - @doc("The parameter accepts an object value.") object: "object", - @doc("The parameter accepts a string value.") string: "string", - string, +enum ParameterType { + @doc("The parameter accepts an array of values.") array, + @doc("The parameter accepts a boolean value.") boolean, + @doc("The parameter accepts an integer value.") integer, + @doc("The parameter accepts a number value.") number, + @doc("The parameter accepts an object value.") object, + @doc("The parameter accepts a string value.") string, } @doc("Indicates whether an environment type is enabled for use in a project.") -union EnvironmentTypeEnableStatus { - @doc("The environment type is enabled for use in the project.") Enabled: "Enabled", - @doc("The environment type is not enabled for use in the project.") Disabled: "Disabled", - string, +enum EnvironmentTypeEnableStatus { + @doc("The environment type is enabled for use in the project.") Enabled, + @doc("The environment type is not enabled for use in the project.") Disabled, } @doc("The provisioning state of the environment.") -union EnvironmentProvisioningState { +enum EnvironmentProvisioningState { @doc("The environment was successfully provisioned.") - Succeeded: "Succeeded", + Succeeded, @doc("The environment failed to provision.") - Failed: "Failed", + Failed, @doc("The environment provisioning was canceled.") - Canceled: "Canceled", + Canceled, @doc("The environment is creating.") - Creating: "Creating", + Creating, @doc("The environment was accepted.") - Accepted: "Accepted", + Accepted, @doc("The environment is deleting.") - Deleting: "Deleting", + Deleting, @doc("The environment is updating.") - Updating: "Updating", + Updating, @doc("The environment is preparing.") - Preparing: "Preparing", + Preparing, @doc("The environment is running.") - Running: "Running", + Running, @doc("The environment is Syncing.") - Syncing: "Syncing", + Syncing, @doc("The environment is moving resources.") - MovingResources: "MovingResources", + MovingResources, @doc("The environment has a transient failure.") - TransientFailure: "TransientFailure", + TransientFailure, @doc("The environment storage provisioning failed.") - StorageProvisioningFailed: "StorageProvisioningFailed", - string, + StorageProvisioningFailed, } @doc("Results of the environment list operation.") From faa734c6b0ecf7e2114b69ac56c1f321be5149c0 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 20 Feb 2024 13:21:06 -0800 Subject: [PATCH 139/187] tsp format --- .../devcenter/DevCenter/DevBox/models.tsp | 4 +- .../DevCenter/Environments/models.tsp | 1 - .../DevCenter/Environments/routes.tsp | 36 ++-- specification/devcenter/DevCenter/client.tsp | 159 ++++++++++++++---- .../devcenter/DevCenter/shared/routes.tsp | 1 - 5 files changed, 144 insertions(+), 57 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index 99a93bb9281e..bb74f99063a4 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -210,12 +210,12 @@ model HardwareProfile { @visibility("read") skuName?: SkuName; - #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" + #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" @doc("The number of vCPUs available for the Dev Box.") @visibility("read") vCPUs?: int32; - #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" + #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" @doc("The amount of memory available for the Dev Box.") @visibility("read") memoryGB?: int32; diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index 2f08d0a39b20..69921dedf8b5 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -172,7 +172,6 @@ model EnvironmentDefinitionParameter { description?: string; @doc("Default value of the parameter") - default?: string; @doc(""" diff --git a/specification/devcenter/DevCenter/Environments/routes.tsp b/specification/devcenter/DevCenter/Environments/routes.tsp index a579cee0adaa..f5c6d982b7cf 100644 --- a/specification/devcenter/DevCenter/Environments/routes.tsp +++ b/specification/devcenter/DevCenter/Environments/routes.tsp @@ -91,35 +91,35 @@ interface EnvironmentsOperations { @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @delete deleteEnvironment is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string, - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string, - - @doc("The name of the environment.") - @path - environmentName: string, - }, - { + { + @doc("The DevCenter Project upon which to execute operations.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of the environment.") + @path + environmentName: string; + }, + { @statusCode statusCode: 202; - + @body body: OperationStatus; - + @header("Location") location: string; - + @pollingLocation @header("Operation-Location") operationLocation: string; } | { @statusCode statusCode: 204; - } + } >; @doc("Lists all of the catalogs available for a project.") diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index b37d4b9b5011..483eaac54f07 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -74,68 +74,157 @@ interface EnvironmentClientOperations { "./examples/SharedOperations_GetProjectOperationStatus.json", "Get the status of an operation.");*/ -@@projectedName(DevCenterService.LocalAdminStatus, "client", "LocalAdministratorStatus"); -@@projectedName(DevCenterService.StopOnDisconnectEnableStatus, "client", "StopOnDisconnectStatus"); -@@projectedName(DevCenterService.EnvironmentTypeEnableStatus, "client", "EnvironmentTypeStatus"); -@@projectedName(DevCenterService.DevBoxActionDelayResultStatus, "client", "DevBoxActionDelayStatus"); +@@projectedName(DevCenterService.LocalAdminStatus, + "client", + "LocalAdministratorStatus" +); +@@projectedName(DevCenterService.StopOnDisconnectEnableStatus, + "client", + "StopOnDisconnectStatus" +); +@@projectedName(DevCenterService.EnvironmentTypeEnableStatus, + "client", + "EnvironmentTypeStatus" +); +@@projectedName(DevCenterService.DevBoxActionDelayResultStatus, + "client", + "DevBoxActionDelayStatus" +); @@projectedName(DevCenterService.OsType, "csharp", "DevBoxOSType"); -@@projectedName(DevCenterService.ScheduledFrequency, "csharp", "ScheduleFrequency"); +@@projectedName(DevCenterService.ScheduledFrequency, + "csharp", + "ScheduleFrequency" +); @@projectedName(DevCenterService.Pool, "csharp", "DevBoxPool"); @@projectedName(DevCenterService.Pool.osType, "csharp", "OSType"); -@@projectedName(DevCenterService.Pool.localAdministrator, "csharp", "LocalAdministratorStatus"); -@@projectedName(DevCenterService.HardwareProfile, "csharp", "DevBoxHardwareProfile"); +@@projectedName(DevCenterService.Pool.localAdministrator, + "csharp", + "LocalAdministratorStatus" +); +@@projectedName(DevCenterService.HardwareProfile, + "csharp", + "DevBoxHardwareProfile" +); @@projectedName(DevCenterService.HardwareProfile.vCPUs, "csharp", "vcpus"); -@@projectedName(DevCenterService.StorageProfile, "csharp", "DevBoxStorageProfile"); -@@projectedName(DevCenterService.StorageProfile.osDisk , "csharp", "OSDisk"); +@@projectedName(DevCenterService.StorageProfile, + "csharp", + "DevBoxStorageProfile" +); +@@projectedName(DevCenterService.StorageProfile.osDisk, "csharp", "OSDisk"); @@projectedName(DevCenterService.OsDisk, "csharp", "OSDisk"); -@@projectedName(DevCenterService.ImageReference, "csharp", "DevBoxImageReference"); -@@projectedName(DevCenterService.ImageReference.osBuildNumber, "csharp", "OSBuildNumber"); +@@projectedName(DevCenterService.ImageReference, + "csharp", + "DevBoxImageReference" +); +@@projectedName(DevCenterService.ImageReference.osBuildNumber, + "csharp", + "OSBuildNumber" +); @@projectedName(DevCenterService.Schedule, "csharp", "DevBoxSchedule"); @@projectedName(DevCenterService.Schedule.type, "csharp", "scheduledType"); @@projectedName(DevCenterService.DevBox.osType, "csharp", "OSType"); @@projectedName(DevCenterService.DevBox.user, "csharp", "userId"); -@@projectedName(DevCenterService.DevBox.localAdministrator, "csharp", "LocalAdministratorStatus"); +@@projectedName(DevCenterService.DevBox.localAdministrator, + "csharp", + "LocalAdministratorStatus" +); @@projectedName(DevCenterService.RemoteConnection.webUrl, "csharp", "webUri"); -@@projectedName(DevCenterService.RemoteConnection.rdpConnectionUrl, "csharp", "rdpConnectionUri"); +@@projectedName(DevCenterService.RemoteConnection.rdpConnectionUrl, + "csharp", + "rdpConnectionUri" +); @@projectedName(DevCenterService.DevBoxAction.next, "csharp", "nextAction"); -@@projectedName(DevCenterService.DevBoxActionDelayResult.action, "csharp", "nextAction"); -@@projectedName(DevCenterService.ParameterType, "csharp", "EnvironmentDefinitionParameterType"); +@@projectedName(DevCenterService.DevBoxActionDelayResult.action, + "csharp", + "nextAction" +); +@@projectedName(DevCenterService.ParameterType, + "csharp", + "EnvironmentDefinitionParameterType" +); @@projectedName(DevCenterService.Environment, "csharp", "DevCenterEnvironment"); -@@projectedName(DevCenterService.Environment.environmentType, "csharp", "environmentTypeName"); +@@projectedName(DevCenterService.Environment.environmentType, + "csharp", + "environmentTypeName" +); @@projectedName(DevCenterService.Environment.user, "csharp", "userId"); @@projectedName(DevCenterService.Catalog, "csharp", "DevCenterCatalog"); -@@projectedName(DevCenterService.EnvironmentDefinitionParameter.default, "csharp", "defaultValue"); -@@projectedName(DevCenterService.EnvironmentDefinitionParameter.type, "csharp", "parameterType"); -@@projectedName(DevCenterService.EnvironmentType, "csharp", "DevCenterEnvironmentType"); +@@projectedName(DevCenterService.EnvironmentDefinitionParameter.default, + "csharp", + "defaultValue" +); +@@projectedName(DevCenterService.EnvironmentDefinitionParameter.type, + "csharp", + "parameterType" +); +@@projectedName(DevCenterService.EnvironmentType, + "csharp", + "DevCenterEnvironmentType" +); @@projectedName(DevCenterService.OsType, "java", "DevBoxOsType"); -@@projectedName(DevCenterService.ScheduledFrequency, "java", "ScheduleFrequency"); +@@projectedName(DevCenterService.ScheduledFrequency, + "java", + "ScheduleFrequency" +); @@projectedName(DevCenterService.Pool, "java", "DevBoxPool"); -@@projectedName(DevCenterService.Pool.localAdministrator, "java", "LocalAdministratorStatus"); -@@projectedName(DevCenterService.HardwareProfile, "java", "DevBoxHardwareProfile"); -@@projectedName(DevCenterService.StorageProfile, "java", "DevBoxStorageProfile"); -@@projectedName(DevCenterService.ImageReference, "java", "DevBoxImageReference"); +@@projectedName(DevCenterService.Pool.localAdministrator, + "java", + "LocalAdministratorStatus" +); +@@projectedName(DevCenterService.HardwareProfile, + "java", + "DevBoxHardwareProfile" +); +@@projectedName(DevCenterService.StorageProfile, + "java", + "DevBoxStorageProfile" +); +@@projectedName(DevCenterService.ImageReference, + "java", + "DevBoxImageReference" +); @@projectedName(DevCenterService.Schedule, "java", "DevBoxSchedule"); @@projectedName(DevCenterService.Schedule.type, "java", "scheduledType"); @@projectedName(DevCenterService.DevBox.user, "java", "userId"); -@@projectedName(DevCenterService.DevBox.localAdministrator, "java", "LocalAdministratorStatus"); +@@projectedName(DevCenterService.DevBox.localAdministrator, + "java", + "LocalAdministratorStatus" +); @@projectedName(DevCenterService.DevBoxAction.next, "java", "nextAction"); -@@projectedName(DevCenterService.ParameterType, "java", "EnvironmentDefinitionParameterType"); +@@projectedName(DevCenterService.ParameterType, + "java", + "EnvironmentDefinitionParameterType" +); @@projectedName(DevCenterService.Environment, "java", "DevCenterEnvironment"); -@@projectedName(DevCenterService.Environment.environmentType, "java", "environmentTypeName"); +@@projectedName(DevCenterService.Environment.environmentType, + "java", + "environmentTypeName" +); @@projectedName(DevCenterService.Environment.user, "java", "userId"); @@projectedName(DevCenterService.Catalog, "java", "DevCenterCatalog"); -@@projectedName(DevCenterService.EnvironmentDefinitionParameter.default, "java", "defaultValue"); -@@projectedName(DevCenterService.EnvironmentDefinitionParameter.type, "java", "parameterType"); -@@projectedName(DevCenterService.EnvironmentType, "java", "DevCenterEnvironmentType"); - +@@projectedName(DevCenterService.EnvironmentDefinitionParameter.default, + "java", + "defaultValue" +); +@@projectedName(DevCenterService.EnvironmentDefinitionParameter.type, + "java", + "parameterType" +); +@@projectedName(DevCenterService.EnvironmentType, + "java", + "DevCenterEnvironmentType" +); + @@projectedName(DevCenterService.OsType, "python", "OSType"); @@projectedName(DevCenterService.HardwareProfile.vCPUs, "python", "vcpus"); -@@projectedName(DevCenterService.HardwareProfile.memoryGB, "python", "memoryGb"); +@@projectedName(DevCenterService.HardwareProfile.memoryGB, + "python", + "memoryGb" +); @@projectedName(DevCenterService.OsDisk, "python", "OSDisk"); -@@projectedName(DevCenterService.OsDisk.diskSizeGB, "python","diskSizeGb"); - +@@projectedName(DevCenterService.OsDisk.diskSizeGB, "python", "diskSizeGb"); /* @@clientName(DevCenterService.LocalAdminStatus, "LocalAdministratorStatus"); @@ -198,4 +287,4 @@ interface EnvironmentClientOperations { @@clientName(DevCenterService.HardwareProfile.vCPUs, "vcpus", "python"); @@clientName(DevCenterService.HardwareProfile.memoryGB, "memoryGb", "python"); @@clientName(DevCenterService.OsDisk, "OSDisk", "python"); -@@clientName(DevCenterService.OsDisk.diskSizeGB ,"diskSizeGb", "python");*/ \ No newline at end of file +@@clientName(DevCenterService.OsDisk.diskSizeGB ,"diskSizeGb", "python");*/ diff --git a/specification/devcenter/DevCenter/shared/routes.tsp b/specification/devcenter/DevCenter/shared/routes.tsp index 3f90c1e68936..d2a287e8864f 100644 --- a/specification/devcenter/DevCenter/shared/routes.tsp +++ b/specification/devcenter/DevCenter/shared/routes.tsp @@ -8,7 +8,6 @@ namespace DevCenterService; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface SharedOperations { - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Get the status of an operation.") @route("/projects/{projectName}/operationstatuses/{operationId}") From b4cb1bde9420cd9344cbb3ed2d640ca370e6c5bb Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 20 Feb 2024 13:37:05 -0800 Subject: [PATCH 140/187] re-add suppress in client.tsp --- specification/devcenter/DevCenter/client.tsp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 483eaac54f07..a9d63dbf0c17 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -23,6 +23,7 @@ interface DevCenterClientOperations { getProject is DevCenterService.DevCenterOperations.getProject; } +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "detailed suppress description for each operation can be found in routes.tsp" @client({ name: "DevBoxesClient", service: DevCenterService, @@ -50,6 +51,7 @@ interface DevBoxesClientOperations { delayAllActions is DevCenterService.DevBoxesOperations.delayAllActions; } +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "detailed suppress description for each operation can be found in routes.tsp" @client({ name: "DeploymentEnvironmentsClient", service: DevCenterService, From 68981f49ac24bd1da2623466e074d285f58ffec2 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 20 Feb 2024 15:12:51 -0800 Subject: [PATCH 141/187] remove client.tsp import from devbox model --- specification/devcenter/DevCenter/DevBox/models.tsp | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index bb74f99063a4..53f06632f090 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -2,7 +2,6 @@ import "@typespec/rest"; import "@typespec/http"; import "@azure-tools/typespec-azure-core"; import "../shared/models.tsp"; -import "../client.tsp"; using TypeSpec.Rest; using TypeSpec.Http; From a8ff332105a2455c41f65e2e08e2d8f4ed9d093a Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 20 Feb 2024 15:20:44 -0800 Subject: [PATCH 142/187] try example in client --- specification/devcenter/DevCenter/client.tsp | 11 +-- .../stable/2023-04-01/devbox.json | 69 ++++++++++++++----- .../stable/2023-04-01/environments.json | 5 -- 3 files changed, 59 insertions(+), 26 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index a9d63dbf0c17..c502c605c0d1 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -3,13 +3,13 @@ import "./Environments/routes.tsp"; import "./DevCenter/routes.tsp"; import "./DevBox/routes.tsp"; import "@azure-tools/typespec-client-generator-core"; -//import "@azure-tools/typespec-autorest"; +import "@azure-tools/typespec-autorest"; using Azure.Core; using TypeSpec.Versioning; using DevCenterService; using Azure.ClientGenerator.Core; -//using Autorest; +using Autorest; @useDependency(APIVersions.v2023_04_01) namespace SdkCustomizations; @@ -72,9 +72,10 @@ interface EnvironmentClientOperations { @@access(DevCenterService.DevBox, Access.public); @@usage(DevCenterService.DevBox, Usage.input | Usage.output); -/*@@example(DevCenterService.SharedOperations.getProjectOperationStatus, - "./examples/SharedOperations_GetProjectOperationStatus.json", - "Get the status of an operation.");*/ +@@example(DevCenterService.SharedOperations.getProjectOperationStatus, + "./examples/SharedOperations_GetProjectOperationStatus.json", + "Get the status of an operation." +); @@projectedName(DevCenterService.LocalAdminStatus, "client", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json index 80526e07cc1c..e76840524316 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json @@ -132,11 +132,6 @@ } } } - }, - "x-ms-examples": { - "Get the status of an operation.": { - "$ref": "./examples/SharedOperations_GetProjectOperationStatus.json" - } } } }, @@ -465,28 +460,28 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute the operation.", + "description": "Name of the project", "required": true, "type": "string" }, { "name": "userId", "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "description": "The AAD object id of the user", "required": true, "type": "string" }, { "name": "devBoxName", "in": "path", - "description": "The name of a Dev Box.", + "description": "Display name for the Dev Box", "required": true, "type": "string" }, { - "name": "body", + "name": "resource", "in": "body", - "description": "Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator", + "description": "The resource instance.", "required": true, "schema": { "$ref": "#/definitions/DevBox" @@ -498,6 +493,13 @@ "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/DevBox" + }, + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." + } } }, "201": { @@ -506,13 +508,10 @@ "$ref": "#/definitions/DevBox" }, "headers": { - "Location": { + "Operation-Location": { "type": "string", "format": "uri", - "description": "The location of an instance of DevBox" - }, - "Operation-Location": { - "type": "string" + "description": "The location for monitoring the operation state." } } }, @@ -1363,9 +1362,47 @@ "readOnly": true }, "powerState": { - "$ref": "#/definitions/PowerState", + "type": "string", "description": "The current power state of the Dev Box.", "default": "Unknown", + "enum": [ + "Unknown", + "Running", + "Deallocated", + "PoweredOff", + "Hibernated" + ], + "x-ms-enum": { + "name": "PowerState", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "The Dev Box power state is not known." + }, + { + "name": "Running", + "value": "Running", + "description": "The Dev Box is running." + }, + { + "name": "Deallocated", + "value": "Deallocated", + "description": "The Dev Box is deallocated." + }, + { + "name": "PoweredOff", + "value": "PoweredOff", + "description": "The Dev Box is powered off." + }, + { + "name": "Hibernated", + "value": "Hibernated", + "description": "The Dev Box is hibernated." + } + ] + }, "readOnly": true }, "uniqueId": { diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index ec64147233c3..1fe1586f15ba 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -437,11 +437,6 @@ } } } - }, - "x-ms-examples": { - "Get the status of an operation.": { - "$ref": "./examples/SharedOperations_GetProjectOperationStatus.json" - } } } }, From 9c1eadc78f3981d2904b4bb771cd21f7a1174481 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 20 Feb 2024 15:24:57 -0800 Subject: [PATCH 143/187] move example back to shared as csharp emitter does not understdand aurorest import --- specification/devcenter/DevCenter/client.tsp | 6 ------ specification/devcenter/DevCenter/shared/routes.tsp | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index c502c605c0d1..c672a0f146a1 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -3,13 +3,11 @@ import "./Environments/routes.tsp"; import "./DevCenter/routes.tsp"; import "./DevBox/routes.tsp"; import "@azure-tools/typespec-client-generator-core"; -import "@azure-tools/typespec-autorest"; using Azure.Core; using TypeSpec.Versioning; using DevCenterService; using Azure.ClientGenerator.Core; -using Autorest; @useDependency(APIVersions.v2023_04_01) namespace SdkCustomizations; @@ -72,10 +70,6 @@ interface EnvironmentClientOperations { @@access(DevCenterService.DevBox, Access.public); @@usage(DevCenterService.DevBox, Usage.input | Usage.output); -@@example(DevCenterService.SharedOperations.getProjectOperationStatus, - "./examples/SharedOperations_GetProjectOperationStatus.json", - "Get the status of an operation." -); @@projectedName(DevCenterService.LocalAdminStatus, "client", diff --git a/specification/devcenter/DevCenter/shared/routes.tsp b/specification/devcenter/DevCenter/shared/routes.tsp index d2a287e8864f..04226ebedd4e 100644 --- a/specification/devcenter/DevCenter/shared/routes.tsp +++ b/specification/devcenter/DevCenter/shared/routes.tsp @@ -1,8 +1,10 @@ import "@typespec/rest"; import "./models.tsp"; +import "@azure-tools/typespec-autorest"; using TypeSpec.Rest; using TypeSpec.Http; +using Autorest; namespace DevCenterService; @@ -10,6 +12,10 @@ namespace DevCenterService; interface SharedOperations { #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Get the status of an operation.") + @example( + "./examples/SharedOperations_GetProjectOperationStatus.json", + "Get the status of an operation." + ) @route("/projects/{projectName}/operationstatuses/{operationId}") @get getProjectOperationStatus is Azure.Core.Foundations.Operation< From 571e752caaa8b81a6c054103e52ef6cd075503cf Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 20 Feb 2024 15:28:22 -0800 Subject: [PATCH 144/187] swagger updates --- .../Microsoft.DevCenter/stable/2023-04-01/devbox.json | 5 +++++ .../Microsoft.DevCenter/stable/2023-04-01/environments.json | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json index e76840524316..4347ea6d25ce 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json @@ -132,6 +132,11 @@ } } } + }, + "x-ms-examples": { + "Get the status of an operation.": { + "$ref": "./examples/SharedOperations_GetProjectOperationStatus.json" + } } } }, diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index 1fe1586f15ba..ec64147233c3 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -437,6 +437,11 @@ } } } + }, + "x-ms-examples": { + "Get the status of an operation.": { + "$ref": "./examples/SharedOperations_GetProjectOperationStatus.json" + } } } }, From e680cac0a95cb50b6ddc5d8fbb04bb25fb014cc2 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 20 Feb 2024 17:51:26 -0800 Subject: [PATCH 145/187] delete example as csharp emitter doens't understand autorest import --- specification/devcenter/DevCenter/shared/routes.tsp | 6 ------ .../Microsoft.DevCenter/stable/2023-04-01/devbox.json | 5 ----- .../Microsoft.DevCenter/stable/2023-04-01/environments.json | 5 ----- 3 files changed, 16 deletions(-) diff --git a/specification/devcenter/DevCenter/shared/routes.tsp b/specification/devcenter/DevCenter/shared/routes.tsp index 04226ebedd4e..d2a287e8864f 100644 --- a/specification/devcenter/DevCenter/shared/routes.tsp +++ b/specification/devcenter/DevCenter/shared/routes.tsp @@ -1,10 +1,8 @@ import "@typespec/rest"; import "./models.tsp"; -import "@azure-tools/typespec-autorest"; using TypeSpec.Rest; using TypeSpec.Http; -using Autorest; namespace DevCenterService; @@ -12,10 +10,6 @@ namespace DevCenterService; interface SharedOperations { #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Get the status of an operation.") - @example( - "./examples/SharedOperations_GetProjectOperationStatus.json", - "Get the status of an operation." - ) @route("/projects/{projectName}/operationstatuses/{operationId}") @get getProjectOperationStatus is Azure.Core.Foundations.Operation< diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json index 4347ea6d25ce..e76840524316 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json @@ -132,11 +132,6 @@ } } } - }, - "x-ms-examples": { - "Get the status of an operation.": { - "$ref": "./examples/SharedOperations_GetProjectOperationStatus.json" - } } } }, diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index ec64147233c3..1fe1586f15ba 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -437,11 +437,6 @@ } } } - }, - "x-ms-examples": { - "Get the status of an operation.": { - "$ref": "./examples/SharedOperations_GetProjectOperationStatus.json" - } } } }, From 50140f3e65c6ef04a6b2c37fbaa88fd5587ca0b0 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 21 Feb 2024 12:06:37 -0800 Subject: [PATCH 146/187] fix wrong projected name and remaining union --- specification/devcenter/DevCenter/DevBox/models.tsp | 7 +++---- specification/devcenter/DevCenter/client.tsp | 10 +++++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index 53f06632f090..ebc4ee2039e2 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -154,10 +154,9 @@ enum DevBoxActionType { } @doc("The result of the delay operation on this action.") -union DevBoxActionDelayResultStatus { - @doc("The delay operation succeeded.") Succeeded: "Succeeded", - @doc("The delay operation failed.") Failed: "Failed", - string, +enum DevBoxActionDelayResultStatus { + @doc("The delay operation succeeded.") Succeeded, + @doc("The delay operation failed.") Failed, } @doc("A pool of Dev Boxes.") diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index c672a0f146a1..0282505f5b33 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -103,7 +103,6 @@ interface EnvironmentClientOperations { "csharp", "DevBoxHardwareProfile" ); -@@projectedName(DevCenterService.HardwareProfile.vCPUs, "csharp", "vcpus"); @@projectedName(DevCenterService.StorageProfile, "csharp", "DevBoxStorageProfile" @@ -132,9 +131,9 @@ interface EnvironmentClientOperations { "rdpConnectionUri" ); @@projectedName(DevCenterService.DevBoxAction.next, "csharp", "nextAction"); -@@projectedName(DevCenterService.DevBoxActionDelayResult.action, +@@projectedName(DevCenterService.DevBoxActionDelayResult.name, "csharp", - "nextAction" + "actionName" ); @@projectedName(DevCenterService.ParameterType, "csharp", @@ -213,6 +212,7 @@ interface EnvironmentClientOperations { "java", "DevCenterEnvironmentType" ); +@@projectedName(DevCenterService.HardwareProfile.vCPUs, "java", "vcpus"); @@projectedName(DevCenterService.OsType, "python", "OSType"); @@projectedName(DevCenterService.HardwareProfile.vCPUs, "python", "vcpus"); @@ -235,7 +235,6 @@ interface EnvironmentClientOperations { @@clientName(DevCenterService.Pool.osType, "OSType", "csharp"); @@clientName(DevCenterService.Pool.localAdministrator, "LocalAdministratorStatus", "csharp"); @@clientName(DevCenterService.HardwareProfile, "DevBoxHardwareProfile", "csharp"); -@@clientName(DevCenterService.HardwareProfile.vCPUs, "vcpus", "csharp"); @@clientName(DevCenterService.StorageProfile, "DevBoxStorageProfile", "csharp"); @@clientName(DevCenterService.StorageProfile.osDisk , "OSDisk", "csharp"); @@clientName(DevCenterService.OsDisk, "OSDisk", "csharp"); @@ -249,7 +248,7 @@ interface EnvironmentClientOperations { @@clientName(DevCenterService.RemoteConnection.webUrl , "webUri", "csharp"); @@clientName(DevCenterService.RemoteConnection.rdpConnectionUrl , "rdpConnectionUri", "csharp"); @@clientName(DevCenterService.DevBoxAction.next, "nextAction", "csharp"); -@@clientName(DevCenterService.DevBoxActionDelayResult.action, "nextAction", "csharp"); +@@clientName(DevCenterService.DevBoxActionDelayResult.name, "actionName", "csharp"); @@clientName(DevCenterService.ParameterType, "EnvironmentDefinitionParameterType", "csharp"); @@clientName(DevCenterService.Environment, "DevCenterEnvironment", "csharp"); @@clientName(DevCenterService.Environment.environmentType, "environmentTypeName","csharp"); @@ -264,6 +263,7 @@ interface EnvironmentClientOperations { @@clientName(DevCenterService.Pool, "DevBoxPool", "java"); @@clientName(DevCenterService.Pool.localAdministrator, "LocalAdministratorStatus", "java"); @@clientName(DevCenterService.HardwareProfile, "DevBoxHardwareProfile", "java"); +@@clientName(DevCenterService.HardwareProfile.vCPUs, "vcpus", "java"); @@clientName(DevCenterService.StorageProfile, "DevBoxStorageProfile", "java"); @@clientName(DevCenterService.ImageReference, "DevBoxImageReference", "java"); @@clientName(DevCenterService.Schedule, "DevBoxSchedule", "java"); From e7c90a1d46d71b9e6fa2849824f0cce8e9934ab3 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 21 Feb 2024 13:20:18 -0800 Subject: [PATCH 147/187] fix XMS_EXAMPLE_NOTFOUND_ERROR --- ...dOperations_GetProjectOperationStatus.json | 1 - ...dOperations_GetProjectOperationStatus.json | 19 +++++++++++++++++++ .../stable/2023-04-01/devbox.json | 5 +++++ .../stable/2023-04-01/environments.json | 5 +++++ ...dOperations_GetProjectOperationStatus.json | 1 - 5 files changed, 29 insertions(+), 2 deletions(-) rename specification/devcenter/DevCenter/{shared => DevBox}/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json (99%) create mode 100644 specification/devcenter/DevCenter/Environments/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json diff --git a/specification/devcenter/DevCenter/shared/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json similarity index 99% rename from specification/devcenter/DevCenter/shared/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json rename to specification/devcenter/DevCenter/DevBox/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json index 7e9b2b98019b..d6c4b10ab2f4 100644 --- a/specification/devcenter/DevCenter/shared/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json @@ -17,4 +17,3 @@ } } } -} diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json new file mode 100644 index 000000000000..d6c4b10ab2f4 --- /dev/null +++ b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json @@ -0,0 +1,19 @@ +{ + "title": "Get the status of an operation.", + "operationId": "SharedOperations_GetProjectOperationStatus", + "parameters": { + "api-version": "2023-04-01", + "projectName": "myProject", + "operationId": "fa067167-e49d-41bd-8dd8-de719b9de3b3" + }, + "responses": { + "200": { + "body": { + "id": "/projects/myProject/operationStatuses/fa067167-e49d-41bd-8dd8-de719b9de3b3", + "name": "fa067167-e49d-41bd-8dd8-de719b9de3b3", + "status": "Running", + "startTime": "2024-01-24T21:14:58.472Z" + } + } + } +} diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json index e76840524316..4347ea6d25ce 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json @@ -132,6 +132,11 @@ } } } + }, + "x-ms-examples": { + "Get the status of an operation.": { + "$ref": "./examples/SharedOperations_GetProjectOperationStatus.json" + } } } }, diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index 1fe1586f15ba..ec64147233c3 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -437,6 +437,11 @@ } } } + }, + "x-ms-examples": { + "Get the status of an operation.": { + "$ref": "./examples/SharedOperations_GetProjectOperationStatus.json" + } } } }, diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/SharedOperations_GetProjectOperationStatus.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/SharedOperations_GetProjectOperationStatus.json index 7e9b2b98019b..d6c4b10ab2f4 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/SharedOperations_GetProjectOperationStatus.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/SharedOperations_GetProjectOperationStatus.json @@ -17,4 +17,3 @@ } } } -} From f2beac0b53c20314837a070fecd56bcb08fce08d Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 21 Feb 2024 14:00:19 -0800 Subject: [PATCH 148/187] revert stand op for create dev box since it generates wrong swagger --- .../devcenter/DevCenter/DevBox/routes.tsp | 46 ++++++++++++++++++- .../stable/2023-04-01/devbox.json | 24 ++++------ 2 files changed, 55 insertions(+), 15 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/routes.tsp b/specification/devcenter/DevCenter/DevBox/routes.tsp index 91a3f8b6f103..5a1048c78c29 100644 --- a/specification/devcenter/DevCenter/DevBox/routes.tsp +++ b/specification/devcenter/DevCenter/DevBox/routes.tsp @@ -45,9 +45,53 @@ interface DevBoxesOperations { @doc("Gets a Dev Box") getDevBox is StandardResourceOperations.ResourceRead; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Standard operations produce wrong swagger" + // The standard operation names the body as resource, so the generated swagger has parameter + // { + // "name": "resource", + // "in": "body", + // }, + // instead of the desired + // { + // "name": "body", + // "in": "body", + // } @doc("Creates or replaces a Dev Box.") + @finalOperation(DevBoxesOperations.getDevBox) @pollingOperation(SharedOperations.getProjectOperationStatus) - createDevBox is StandardResourceOperations.LongRunningResourceCreateOrReplace; + @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") + @put + createDevBox is Azure.Core.Foundations.Operation< + { + @doc("The DevCenter Project upon which to execute the operation.") + @path + projectName: string; + + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") + @path + userId: string; + + @doc("The name of a Dev Box.") + @path + devBoxName: string; + + @doc("Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator") + @body + body: DevBox; + }, + DevBox | { + @statusCode statusCode: 201; + + @header("Location") + location: ResourceLocation; + + @pollingLocation + @header("Operation-Location") + operationLocation: string; + + @body body?: DevBox; + } + >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern" //Can not use LongRunningResourceDelete because response is 202 or error, but we also accept 204 response" diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json index 4347ea6d25ce..f0ccb5744ab3 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json @@ -465,28 +465,28 @@ { "name": "projectName", "in": "path", - "description": "Name of the project", + "description": "The DevCenter Project upon which to execute the operation.", "required": true, "type": "string" }, { "name": "userId", "in": "path", - "description": "The AAD object id of the user", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", "required": true, "type": "string" }, { "name": "devBoxName", "in": "path", - "description": "Display name for the Dev Box", + "description": "The name of a Dev Box.", "required": true, "type": "string" }, { - "name": "resource", + "name": "body", "in": "body", - "description": "The resource instance.", + "description": "Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator", "required": true, "schema": { "$ref": "#/definitions/DevBox" @@ -498,13 +498,6 @@ "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/DevBox" - }, - "headers": { - "Operation-Location": { - "type": "string", - "format": "uri", - "description": "The location for monitoring the operation state." - } } }, "201": { @@ -513,10 +506,13 @@ "$ref": "#/definitions/DevBox" }, "headers": { - "Operation-Location": { + "Location": { "type": "string", "format": "uri", - "description": "The location for monitoring the operation state." + "description": "The location of an instance of DevBox" + }, + "Operation-Location": { + "type": "string" } } }, From fdb8accb340e888a6301cea09b1a282a38a902c0 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 21 Feb 2024 14:36:48 -0800 Subject: [PATCH 149/187] update environment paramater type --- .../devcenter/DevCenter/Environments/models.tsp | 2 +- .../stable/2023-04-01/environments.json | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index 69921dedf8b5..8817231da09f 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -116,7 +116,7 @@ resource has been created. """) model EnvironmentUpdateProperties { @doc("Parameters object for the environment.") - parameters?: bytes; + parameters?: Record; } @doc("A catalog.") diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index ec64147233c3..f252485743b8 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -797,9 +797,11 @@ "description": "Properties of an environment.", "properties": { "parameters": { - "type": "string", - "format": "byte", - "description": "Parameters object for the environment." + "type": "object", + "description": "Parameters object for the environment.", + "additionalProperties": { + "type": "string" + } }, "name": { "type": "string", @@ -1091,9 +1093,11 @@ "description": "Properties of an environment. These properties can be updated after the\nresource has been created.", "properties": { "parameters": { - "type": "string", - "format": "byte", - "description": "Parameters object for the environment." + "type": "object", + "description": "Parameters object for the environment.", + "additionalProperties": { + "type": "string" + } } } }, From c8f5d13a759a80cf1347a04041ba3b718a58d0f2 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 21 Feb 2024 16:35:49 -0800 Subject: [PATCH 150/187] update parameterSchema type --- specification/devcenter/DevCenter/Environments/models.tsp | 4 +++- .../Microsoft.DevCenter/stable/2023-04-01/environments.json | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index 8817231da09f..d3106877879a 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -153,8 +153,10 @@ model EnvironmentDefinition { @doc("Input parameters passed to an environment.") parameters?: EnvironmentDefinitionParameter[]; + #suppress "@azure-tools/typespec-azure-core/no-unknown" "there is no build in type to describe json" + //using unkown here is better than string since it generates BinaryData in the SDK @doc("JSON schema defining the parameters object passed to an environment.") - parametersSchema?: bytes; + parametersSchema?: unknown; @doc("Path to the Environment Definition entrypoint file.") templatePath?: string; diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index f252485743b8..e3c01d8c2f98 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -889,8 +889,6 @@ } }, "parametersSchema": { - "type": "string", - "format": "byte", "description": "JSON schema defining the parameters object passed to an environment." }, "templatePath": { From 2bcdfe0fab23f5558fd7b2828b0af2ca8062e03e Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 22 Feb 2024 09:54:00 -0800 Subject: [PATCH 151/187] Rename interface so we mantain the same operationId in the generated swagger --- ...esDevCenterOperations_ListAllDevBoxes.json | 2 +- ...enterOperations_ListAllDevBoxesByUser.json | 2 +- .../DevBoxesOperations_CreateDevBox.json | 2 +- .../DevBoxesOperations_DelayAction.json | 2 +- .../DevBoxesOperations_DelayAllActions.json | 2 +- .../DevBoxesOperations_DeleteDevBox.json | 2 +- .../DevBoxesOperations_GetDevBox.json | 2 +- .../DevBoxesOperations_GetDevBoxAction.json | 2 +- .../DevBoxesOperations_GetPool.json | 2 +- ...evBoxesOperations_GetRemoteConnection.json | 2 +- .../DevBoxesOperations_GetSchedule.json | 2 +- .../DevBoxesOperations_ListDevBoxActions.json | 2 +- .../DevBoxesOperations_ListDevBoxes.json | 2 +- .../DevBoxesOperations_ListPools.json | 2 +- .../DevBoxesOperations_ListSchedules.json | 2 +- .../DevBoxesOperations_RestartDevBox.json | 2 +- .../DevBoxesOperations_SkipAction.json | 2 +- .../DevBoxesOperations_StartDevBox.json | 2 +- .../DevBoxesOperations_StopDevBox.json | 2 +- .../devcenter/DevCenter/DevBox/routes.tsp | 6 +- .../DevCenterOperations_GetProject.json | 2 +- .../DevCenterOperations_ListProjects.json | 2 +- .../devcenter/DevCenter/DevCenter/routes.tsp | 2 +- ...sOperations_CreateOrUpdateEnvironment.json | 2 +- ...ironmentsOperations_DeleteEnvironment.json | 2 +- .../EnvironmentsOperations_GetCatalog.json | 2 +- ...EnvironmentsOperations_GetEnvironment.json | 2 +- ...tsOperations_GetEnvironmentDefinition.json | 2 +- ...onmentsOperations_ListAllEnvironments.json | 2 +- .../EnvironmentsOperations_ListCatalogs.json | 2 +- ...Operations_ListEnvironmentDefinitions.json | 2 +- ...s_ListEnvironmentDefinitionsByCatalog.json | 2 +- ...nmentsOperations_ListEnvironmentTypes.json | 2 +- ...vironmentsOperations_ListEnvironments.json | 2 +- .../DevCenter/Environments/routes.tsp | 4 +- specification/devcenter/DevCenter/client.tsp | 64 +++++++++---------- .../devcenter/DevCenter/python-client.tsp | 64 +++++++++---------- .../devcenter/DevCenter/shared/models.tsp | 4 +- .../stable/2023-04-01/devbox.json | 38 +++++------ .../stable/2023-04-01/devcenter.json | 4 +- .../stable/2023-04-01/environments.json | 22 +++---- ...esDevCenterOperations_ListAllDevBoxes.json | 2 +- ...enterOperations_ListAllDevBoxesByUser.json | 2 +- .../DevBoxesOperations_CreateDevBox.json | 2 +- .../DevBoxesOperations_DelayAction.json | 2 +- .../DevBoxesOperations_DelayAllActions.json | 2 +- .../DevBoxesOperations_DeleteDevBox.json | 2 +- .../DevBoxesOperations_GetDevBox.json | 2 +- .../DevBoxesOperations_GetDevBoxAction.json | 2 +- .../examples/DevBoxesOperations_GetPool.json | 2 +- ...evBoxesOperations_GetRemoteConnection.json | 2 +- .../DevBoxesOperations_GetSchedule.json | 2 +- .../DevBoxesOperations_ListDevBoxActions.json | 2 +- .../DevBoxesOperations_ListDevBoxes.json | 2 +- .../DevBoxesOperations_ListPools.json | 2 +- .../DevBoxesOperations_ListSchedules.json | 2 +- .../DevBoxesOperations_RestartDevBox.json | 2 +- .../DevBoxesOperations_SkipAction.json | 2 +- .../DevBoxesOperations_StartDevBox.json | 2 +- .../DevBoxesOperations_StopDevBox.json | 2 +- .../DevCenterOperations_GetProject.json | 2 +- .../DevCenterOperations_ListProjects.json | 2 +- ...sOperations_CreateOrUpdateEnvironment.json | 2 +- ...ironmentsOperations_DeleteEnvironment.json | 2 +- .../EnvironmentsOperations_GetCatalog.json | 2 +- ...EnvironmentsOperations_GetEnvironment.json | 2 +- ...tsOperations_GetEnvironmentDefinition.json | 2 +- ...onmentsOperations_ListAllEnvironments.json | 2 +- .../EnvironmentsOperations_ListCatalogs.json | 2 +- ...Operations_ListEnvironmentDefinitions.json | 2 +- ...s_ListEnvironmentDefinitionsByCatalog.json | 2 +- ...nmentsOperations_ListEnvironmentTypes.json | 2 +- ...vironmentsOperations_ListEnvironments.json | 2 +- 73 files changed, 168 insertions(+), 168 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json index a60cb4dd87e7..33e7210819fb 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json @@ -1,6 +1,6 @@ { "title": "Lists Dev Boxes that the caller has access to in the DevCenter.", - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", + "operationId": "DevBoxesDevCenter_ListAllDevBoxes", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json index c42b57185035..1fde15c1bbb5 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json @@ -1,6 +1,6 @@ { "title": "Lists Dev Boxes in the Dev Center for a particular user.", - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "operationId": "DevBoxesDevCenter_ListAllDevBoxesByUser", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json index f51bad1c0086..c7e4037d4b1d 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json @@ -1,6 +1,6 @@ { "title": "Creates or replaces a Dev Box.", - "operationId": "DevBoxesOperations_CreateDevBox", + "operationId": "DevBoxes_CreateDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DelayAction.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DelayAction.json index db7107cfc6bc..6a5868c5ec6f 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DelayAction.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DelayAction.json @@ -1,6 +1,6 @@ { "title": "Delays the occurrence of an action.", - "operationId": "DevBoxesOperations_DelayAction", + "operationId": "DevBoxes_DelayAction", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json index 6a7ade1eef30..d2118defad1b 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json @@ -1,6 +1,6 @@ { "title": "Delays all actions.", - "operationId": "DevBoxesOperations_DelayAllActions", + "operationId": "DevBoxes_DelayAllActions", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json index 4843a80ed6c9..bf47f4e2ece2 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json @@ -1,6 +1,6 @@ { "title": "Deletes a Dev Box.", - "operationId": "DevBoxesOperations_DeleteDevBox", + "operationId": "DevBoxes_DeleteDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBox.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBox.json index f29193eb0b35..2a9466ad1853 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBox.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBox.json @@ -1,6 +1,6 @@ { "title": "Gets a Dev Box", - "operationId": "DevBoxesOperations_GetDevBox", + "operationId": "DevBoxes_GetDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json index 0d94918c712d..9dc6907e4778 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json @@ -1,6 +1,6 @@ { "title": "Gets an action.", - "operationId": "DevBoxesOperations_GetDevBoxAction", + "operationId": "DevBoxes_GetDevBoxAction", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetPool.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetPool.json index 7b53a6ac96b4..3bd532947546 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetPool.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetPool.json @@ -1,6 +1,6 @@ { "title": "Gets a pool", - "operationId": "DevBoxesOperations_GetPool", + "operationId": "DevBoxes_GetPool", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json index a01b7df571fd..3ff9f5a30770 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json @@ -1,6 +1,6 @@ { "title": "Gets RDP Connection info", - "operationId": "DevBoxesOperations_GetRemoteConnection", + "operationId": "DevBoxes_GetRemoteConnection", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetSchedule.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetSchedule.json index 8ba5489b95c6..0c94f8fd4167 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetSchedule.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetSchedule.json @@ -1,6 +1,6 @@ { "title": "Gets a schedule.", - "operationId": "DevBoxesOperations_GetSchedule", + "operationId": "DevBoxes_GetSchedule", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json index db1ae0af7c62..66ff10604340 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json @@ -1,6 +1,6 @@ { "title": "Lists actions on a Dev Box.", - "operationId": "DevBoxesOperations_ListDevBoxActions", + "operationId": "DevBoxes_ListDevBoxActions", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json index 2140a65cb857..d271ba40343f 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json @@ -1,6 +1,6 @@ { "title": "Lists Dev Boxes in the project for a particular user.", - "operationId": "DevBoxesOperations_ListDevBoxes", + "operationId": "DevBoxes_ListDevBoxes", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListPools.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListPools.json index 42c39b484d20..f31808873991 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListPools.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListPools.json @@ -1,6 +1,6 @@ { "title": "Lists available pools", - "operationId": "DevBoxesOperations_ListPools", + "operationId": "DevBoxes_ListPools", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListSchedules.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListSchedules.json index 0a5afd4f207a..4bb5de2787fc 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListSchedules.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListSchedules.json @@ -1,6 +1,6 @@ { "title": "Lists available schedules for a pool.", - "operationId": "DevBoxesOperations_ListSchedules", + "operationId": "DevBoxes_ListSchedules", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json index 3c0e55515dd6..f9abacb1d881 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json @@ -1,6 +1,6 @@ { "title": "Restarts a Dev Box", - "operationId": "DevBoxesOperations_RestartDevBox", + "operationId": "DevBoxes_RestartDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_SkipAction.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_SkipAction.json index 1e8552d6bd35..b44cbd7dc65a 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_SkipAction.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_SkipAction.json @@ -1,6 +1,6 @@ { "title": "Skips an occurrence of an action.", - "operationId": "DevBoxesOperations_SkipAction", + "operationId": "DevBoxes_SkipAction", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_StartDevBox.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_StartDevBox.json index 292e5e1c947a..462358dc151e 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_StartDevBox.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_StartDevBox.json @@ -1,6 +1,6 @@ { "title": "Starts a Dev Box", - "operationId": "DevBoxesOperations_StartDevBox", + "operationId": "DevBoxes_StartDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_StopDevBox.json b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_StopDevBox.json index b92d1089e864..eb10c60cf0c8 100644 --- a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_StopDevBox.json +++ b/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_StopDevBox.json @@ -1,6 +1,6 @@ { "title": "Stops a Dev Box", - "operationId": "DevBoxesOperations_StopDevBox", + "operationId": "DevBoxes_StopDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/DevBox/routes.tsp b/specification/devcenter/DevCenter/DevBox/routes.tsp index 5a1048c78c29..faddd42bc826 100644 --- a/specification/devcenter/DevCenter/DevBox/routes.tsp +++ b/specification/devcenter/DevCenter/DevBox/routes.tsp @@ -9,7 +9,7 @@ using TypeSpec.Http; namespace DevCenterService; -interface DevBoxesOperations { +interface DevBoxes { @doc("Lists available pools") listPools is StandardResourceOperations.ResourceList; @@ -57,7 +57,7 @@ interface DevBoxesOperations { // "in": "body", // } @doc("Creates or replaces a Dev Box.") - @finalOperation(DevBoxesOperations.getDevBox) + @finalOperation(DevBoxes.getDevBox) @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @put @@ -337,7 +337,7 @@ interface DevBoxesOperations { >; } -interface DevBoxesDevCenterOperations { +interface DevBoxesDevCenter { #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern since DevBox has a different path" @doc("Lists Dev Boxes that the caller has access to in the DevCenter.") @route("/devboxes") diff --git a/specification/devcenter/DevCenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json b/specification/devcenter/DevCenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json index fe1a721864bc..cc1f988275f0 100644 --- a/specification/devcenter/DevCenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json +++ b/specification/devcenter/DevCenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json @@ -1,6 +1,6 @@ { "title": "Gets a project.", - "operationId": "DevCenterOperations_GetProject", + "operationId": "DevCenter_GetProject", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json b/specification/devcenter/DevCenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json index 1e7bdde95309..08b5c7d28016 100644 --- a/specification/devcenter/DevCenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json +++ b/specification/devcenter/DevCenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json @@ -1,6 +1,6 @@ { "title": "Lists all projects.", - "operationId": "DevCenterOperations_ListProjects", + "operationId": "DevCenter_ListProjects", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com" diff --git a/specification/devcenter/DevCenter/DevCenter/routes.tsp b/specification/devcenter/DevCenter/DevCenter/routes.tsp index 61be234c1c9a..82c4a9e306fe 100644 --- a/specification/devcenter/DevCenter/DevCenter/routes.tsp +++ b/specification/devcenter/DevCenter/DevCenter/routes.tsp @@ -8,7 +8,7 @@ using TypeSpec.Http; namespace DevCenterService; -interface DevCenterOperations { +interface DevCenter { @doc("Lists all projects.") listProjects is StandardResourceOperations.ResourceList; diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json index 40bd8016a490..0bc523537a63 100644 --- a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json +++ b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json @@ -1,6 +1,6 @@ { "title": "Creates or updates an environment.", - "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", + "operationId": "Environments_CreateOrUpdateEnvironment", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json index db378d427835..2c6dec31e1f3 100644 --- a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json +++ b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json @@ -1,6 +1,6 @@ { "title": "Deletes an environment and all its associated resources", - "operationId": "EnvironmentsOperations_DeleteEnvironment", + "operationId": "Environments_DeleteEnvironment", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json index 7d9de8e13786..7a6ccf37974b 100644 --- a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json +++ b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json @@ -1,6 +1,6 @@ { "title": "Gets the specified catalog within the project", - "operationId": "EnvironmentsOperations_GetCatalog", + "operationId": "Environments_GetCatalog", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json index eb89813acaf7..b8962bb6117a 100644 --- a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json +++ b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json @@ -1,6 +1,6 @@ { "title": "Gets an environment", - "operationId": "EnvironmentsOperations_GetEnvironment", + "operationId": "Environments_GetEnvironment", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json index e4efa7edea54..e08ddd9df7f6 100644 --- a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json +++ b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json @@ -1,6 +1,6 @@ { "title": "Get an environment definition from a catalog.", - "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "operationId": "Environments_GetEnvironmentDefinition", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json index ab203c460a33..750fded4c169 100644 --- a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json +++ b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json @@ -1,6 +1,6 @@ { "title": "Lists the environments for a project.", - "operationId": "EnvironmentsOperations_ListAllEnvironments", + "operationId": "Environments_ListAllEnvironments", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json index 17c683e6c9b3..9aebb61047ca 100644 --- a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json +++ b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json @@ -1,6 +1,6 @@ { "title": "Lists all of the catalogs available for a project.", - "operationId": "EnvironmentsOperations_ListCatalogs", + "operationId": "Environments_ListCatalogs", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json index aabe3738602c..de27ff8c571a 100644 --- a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json +++ b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json @@ -1,6 +1,6 @@ { "title": "Lists all environment definitions available for a project.", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", + "operationId": "Environments_ListEnvironmentDefinitions", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json index d9c411224b8e..4c021662bf33 100644 --- a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json +++ b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json @@ -1,6 +1,6 @@ { "title": "Lists all environment definitions available within a catalog.", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "operationId": "Environments_ListEnvironmentDefinitionsByCatalog", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json index 83e22df09846..364712b931e0 100644 --- a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json +++ b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json @@ -1,6 +1,6 @@ { "title": "Lists all environment types configured for a project.", - "operationId": "EnvironmentsOperations_ListEnvironmentTypes", + "operationId": "Environments_ListEnvironmentTypes", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json index 51f0384a6ffb..3620693a633e 100644 --- a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json +++ b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json @@ -1,6 +1,6 @@ { "title": "Lists the environments for a project and user.", - "operationId": "EnvironmentsOperations_ListEnvironments", + "operationId": "Environments_ListEnvironments", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/Environments/routes.tsp b/specification/devcenter/DevCenter/Environments/routes.tsp index f5c6d982b7cf..60e23e9680a1 100644 --- a/specification/devcenter/DevCenter/Environments/routes.tsp +++ b/specification/devcenter/DevCenter/Environments/routes.tsp @@ -10,7 +10,7 @@ using TypeSpec.Http; namespace DevCenterService; -interface EnvironmentsOperations { +interface Environments { #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern since Environment has a different path" @doc("Lists the environments for a project.") @route("/projects/{projectName}/environments") @@ -50,7 +50,7 @@ interface EnvironmentsOperations { #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern" //Can not use LongRunningCreateOrReplace because response is 200 or 201, but we only respond with 201" @doc("Creates or updates an environment.") - @finalOperation(EnvironmentsOperations.getEnvironment) + @finalOperation(Environments.getEnvironment) @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @put diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 0282505f5b33..53dcda3521d2 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -17,8 +17,8 @@ namespace SdkCustomizations; service: DevCenterService, }) interface DevCenterClientOperations { - listProjects is DevCenterService.DevCenterOperations.listProjects; - getProject is DevCenterService.DevCenterOperations.getProject; + listProjects is DevCenterService.DevCenter.listProjects; + getProject is DevCenterService.DevCenter.getProject; } #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "detailed suppress description for each operation can be found in routes.tsp" @@ -27,26 +27,26 @@ interface DevCenterClientOperations { service: DevCenterService, }) interface DevBoxesClientOperations { - listPools is DevCenterService.DevBoxesOperations.listPools; - getPool is DevCenterService.DevBoxesOperations.getPool; - listSchedules is DevCenterService.DevBoxesOperations.listSchedules; - getSchedule is DevCenterService.DevBoxesOperations.getSchedule; - listAllDevBoxes is DevCenterService.DevBoxesDevCenterOperations.listAllDevBoxes; - listAllDevBoxesByUser is DevCenterService.DevBoxesDevCenterOperations.listAllDevBoxesByUser; - listDevBoxes is DevCenterService.DevBoxesOperations.listDevBoxes; - getDevBox is DevCenterService.DevBoxesOperations.getDevBox; + listPools is DevCenterService.DevBoxes.listPools; + getPool is DevCenterService.DevBoxes.getPool; + listSchedules is DevCenterService.DevBoxes.listSchedules; + getSchedule is DevCenterService.DevBoxes.getSchedule; + listAllDevBoxes is DevCenterService.DevBoxesDevCenter.listAllDevBoxes; + listAllDevBoxesByUser is DevCenterService.DevBoxesDevCenter.listAllDevBoxesByUser; + listDevBoxes is DevCenterService.DevBoxes.listDevBoxes; + getDevBox is DevCenterService.DevBoxes.getDevBox; @convenientAPI(false) - createDevBox is DevCenterService.DevBoxesOperations.createDevBox; - deleteDevBox is DevCenterService.DevBoxesOperations.deleteDevBox; - startDevBox is DevCenterService.DevBoxesOperations.startDevBox; - stopDevBox is DevCenterService.DevBoxesOperations.stopDevBox; - restartDevBox is DevCenterService.DevBoxesOperations.restartDevBox; - getRemoteConnection is DevCenterService.DevBoxesOperations.getRemoteConnection; - listDevBoxActions is DevCenterService.DevBoxesOperations.listDevBoxActions; - getDevBoxAction is DevCenterService.DevBoxesOperations.getDevBoxAction; - skipAction is DevCenterService.DevBoxesOperations.skipAction; - delayAction is DevCenterService.DevBoxesOperations.delayAction; - delayAllActions is DevCenterService.DevBoxesOperations.delayAllActions; + createDevBox is DevCenterService.DevBoxes.createDevBox; + deleteDevBox is DevCenterService.DevBoxes.deleteDevBox; + startDevBox is DevCenterService.DevBoxes.startDevBox; + stopDevBox is DevCenterService.DevBoxes.stopDevBox; + restartDevBox is DevCenterService.DevBoxes.restartDevBox; + getRemoteConnection is DevCenterService.DevBoxes.getRemoteConnection; + listDevBoxActions is DevCenterService.DevBoxes.listDevBoxActions; + getDevBoxAction is DevCenterService.DevBoxes.getDevBoxAction; + skipAction is DevCenterService.DevBoxes.skipAction; + delayAction is DevCenterService.DevBoxes.delayAction; + delayAllActions is DevCenterService.DevBoxes.delayAllActions; } #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "detailed suppress description for each operation can be found in routes.tsp" @@ -55,17 +55,17 @@ interface DevBoxesClientOperations { service: DevCenterService, }) interface EnvironmentClientOperations { - listAllEnvironments is DevCenterService.EnvironmentsOperations.listAllEnvironments; - listEnvironments is DevCenterService.EnvironmentsOperations.listEnvironments; - getEnvironment is DevCenterService.EnvironmentsOperations.getEnvironment; - createOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.createOrUpdateEnvironment; - deleteEnvironment is DevCenterService.EnvironmentsOperations.deleteEnvironment; - listCatalogs is DevCenterService.EnvironmentsOperations.listCatalogs; - getCatalog is DevCenterService.EnvironmentsOperations.getCatalog; - listEnvironmentDefinitions is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitions; - listEnvironmentDefinitionsByCatalog is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitionsByCatalog; - getEnvironmentDefinition is DevCenterService.EnvironmentsOperations.getEnvironmentDefinition; - listEnvironmentTypes is DevCenterService.EnvironmentsOperations.listEnvironmentTypes; + listAllEnvironments is DevCenterService.Environments.listAllEnvironments; + listEnvironments is DevCenterService.Environments.listEnvironments; + getEnvironment is DevCenterService.Environments.getEnvironment; + createOrUpdateEnvironment is DevCenterService.Environments.createOrUpdateEnvironment; + deleteEnvironment is DevCenterService.Environments.deleteEnvironment; + listCatalogs is DevCenterService.Environments.listCatalogs; + getCatalog is DevCenterService.Environments.getCatalog; + listEnvironmentDefinitions is DevCenterService.Environments.listEnvironmentDefinitions; + listEnvironmentDefinitionsByCatalog is DevCenterService.Environments.listEnvironmentDefinitionsByCatalog; + getEnvironmentDefinition is DevCenterService.Environments.getEnvironmentDefinition; + listEnvironmentTypes is DevCenterService.Environments.listEnvironmentTypes; } @@access(DevCenterService.DevBox, Access.public); diff --git a/specification/devcenter/DevCenter/python-client.tsp b/specification/devcenter/DevCenter/python-client.tsp index 9ecf2b88b5dc..92e156fb8dc8 100644 --- a/specification/devcenter/DevCenter/python-client.tsp +++ b/specification/devcenter/DevCenter/python-client.tsp @@ -18,40 +18,40 @@ namespace PythonSdkCustomizations; }) interface DevCenterClientOperations { //DevCenters - listProjects is DevCenterService.DevCenterOperations.listProjects; - getProject is DevCenterService.DevCenterOperations.getProject; + listProjects is DevCenterService.DevCenter.listProjects; + getProject is DevCenterService.DevCenter.getProject; //DevBoxes - listPools is DevCenterService.DevBoxesOperations.listPools; - getPool is DevCenterService.DevBoxesOperations.getPool; - listSchedules is DevCenterService.DevBoxesOperations.listSchedules; - getSchedule is DevCenterService.DevBoxesOperations.getSchedule; - listAllDevBoxes is DevCenterService.DevBoxesDevCenterOperations.listAllDevBoxes; - listAllDevBoxesByUser is DevCenterService.DevBoxesDevCenterOperations.listAllDevBoxesByUser; - listDevBoxes is DevCenterService.DevBoxesOperations.listDevBoxes; - getDevBox is DevCenterService.DevBoxesOperations.getDevBox; - createDevBox is DevCenterService.DevBoxesOperations.createDevBox; - deleteDevBox is DevCenterService.DevBoxesOperations.deleteDevBox; - startDevBox is DevCenterService.DevBoxesOperations.startDevBox; - stopDevBox is DevCenterService.DevBoxesOperations.stopDevBox; - restartDevBox is DevCenterService.DevBoxesOperations.restartDevBox; - getRemoteConnection is DevCenterService.DevBoxesOperations.getRemoteConnection; - listDevBoxActions is DevCenterService.DevBoxesOperations.listDevBoxActions; - getDevBoxAction is DevCenterService.DevBoxesOperations.getDevBoxAction; - skipAction is DevCenterService.DevBoxesOperations.skipAction; - delayAction is DevCenterService.DevBoxesOperations.delayAction; - delayAllActions is DevCenterService.DevBoxesOperations.delayAllActions; + listPools is DevCenterService.DevBoxes.listPools; + getPool is DevCenterService.DevBoxes.getPool; + listSchedules is DevCenterService.DevBoxes.listSchedules; + getSchedule is DevCenterService.DevBoxes.getSchedule; + listAllDevBoxes is DevCenterService.DevBoxesDevCenter.listAllDevBoxes; + listAllDevBoxesByUser is DevCenterService.DevBoxesDevCenter.listAllDevBoxesByUser; + listDevBoxes is DevCenterService.DevBoxes.listDevBoxes; + getDevBox is DevCenterService.DevBoxes.getDevBox; + createDevBox is DevCenterService.DevBoxes.createDevBox; + deleteDevBox is DevCenterService.DevBoxes.deleteDevBox; + startDevBox is DevCenterService.DevBoxes.startDevBox; + stopDevBox is DevCenterService.DevBoxes.stopDevBox; + restartDevBox is DevCenterService.DevBoxes.restartDevBox; + getRemoteConnection is DevCenterService.DevBoxes.getRemoteConnection; + listDevBoxActions is DevCenterService.DevBoxes.listDevBoxActions; + getDevBoxAction is DevCenterService.DevBoxes.getDevBoxAction; + skipAction is DevCenterService.DevBoxes.skipAction; + delayAction is DevCenterService.DevBoxes.delayAction; + delayAllActions is DevCenterService.DevBoxes.delayAllActions; //Environments - listAllEnvironments is DevCenterService.EnvironmentsOperations.listAllEnvironments; - listEnvironments is DevCenterService.EnvironmentsOperations.listEnvironments; - getEnvironment is DevCenterService.EnvironmentsOperations.getEnvironment; - createOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.createOrUpdateEnvironment; - deleteEnvironment is DevCenterService.EnvironmentsOperations.deleteEnvironment; - listCatalogs is DevCenterService.EnvironmentsOperations.listCatalogs; - getCatalog is DevCenterService.EnvironmentsOperations.getCatalog; - listEnvironmentDefinitions is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitions; - listEnvironmentDefinitionsByCatalog is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitionsByCatalog; - getEnvironmentDefinition is DevCenterService.EnvironmentsOperations.getEnvironmentDefinition; - listEnvironmentTypes is DevCenterService.EnvironmentsOperations.listEnvironmentTypes; + listAllEnvironments is DevCenterService.Environments.listAllEnvironments; + listEnvironments is DevCenterService.Environments.listEnvironments; + getEnvironment is DevCenterService.Environments.getEnvironment; + createOrUpdateEnvironment is DevCenterService.Environments.createOrUpdateEnvironment; + deleteEnvironment is DevCenterService.Environments.deleteEnvironment; + listCatalogs is DevCenterService.Environments.listCatalogs; + getCatalog is DevCenterService.Environments.getCatalog; + listEnvironmentDefinitions is DevCenterService.Environments.listEnvironmentDefinitions; + listEnvironmentDefinitionsByCatalog is DevCenterService.Environments.listEnvironmentDefinitionsByCatalog; + getEnvironmentDefinition is DevCenterService.Environments.getEnvironmentDefinition; + listEnvironmentTypes is DevCenterService.Environments.listEnvironmentTypes; } diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index 472ad71d8b7d..dd819c2c4f83 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -11,8 +11,8 @@ namespace DevCenterService; @doc("Indicates whether operation status is running, completed, canceled or failed.") @lroStatus -@projectedName("csharp", "DevCenterOperationStatus") -@projectedName("java", "DevCenterOperationStatus") +@projectedName("csharp", "DevCentertatus") +@projectedName("java", "DevCentertatus") @projectedName("python", "OperationStatus") enum OperationStatusValue { @doc("Operation is in progress") diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json index f0ccb5744ab3..bee2f5112b4e 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json @@ -53,7 +53,7 @@ "paths": { "/devboxes": { "get": { - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", + "operationId": "DevBoxesDevCenter_ListAllDevBoxes", "description": "Lists Dev Boxes that the caller has access to in the DevCenter.", "parameters": [ { @@ -142,7 +142,7 @@ }, "/projects/{projectName}/pools": { "get": { - "operationId": "DevBoxesOperations_ListPools", + "operationId": "DevBoxes_ListPools", "description": "Lists available pools", "parameters": [ { @@ -188,7 +188,7 @@ }, "/projects/{projectName}/pools/{poolName}": { "get": { - "operationId": "DevBoxesOperations_GetPool", + "operationId": "DevBoxes_GetPool", "description": "Gets a pool", "parameters": [ { @@ -238,7 +238,7 @@ }, "/projects/{projectName}/pools/{poolName}/schedules": { "get": { - "operationId": "DevBoxesOperations_ListSchedules", + "operationId": "DevBoxes_ListSchedules", "description": "Lists available schedules for a pool.", "parameters": [ { @@ -291,7 +291,7 @@ }, "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { "get": { - "operationId": "DevBoxesOperations_GetSchedule", + "operationId": "DevBoxes_GetSchedule", "description": "Gets a schedule.", "parameters": [ { @@ -348,7 +348,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes": { "get": { - "operationId": "DevBoxesOperations_ListDevBoxes", + "operationId": "DevBoxes_ListDevBoxes", "description": "Lists Dev Boxes in the project for a particular user.", "parameters": [ { @@ -401,7 +401,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}": { "get": { - "operationId": "DevBoxesOperations_GetDevBox", + "operationId": "DevBoxes_GetDevBox", "description": "Gets a Dev Box", "parameters": [ { @@ -456,7 +456,7 @@ } }, "put": { - "operationId": "DevBoxesOperations_CreateDevBox", + "operationId": "DevBoxes_CreateDevBox", "description": "Creates or replaces a Dev Box.", "parameters": [ { @@ -537,7 +537,7 @@ "x-ms-long-running-operation": true }, "delete": { - "operationId": "DevBoxesOperations_DeleteDevBox", + "operationId": "DevBoxes_DeleteDevBox", "description": "Deletes a Dev Box.", "parameters": [ { @@ -606,7 +606,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start": { "post": { - "operationId": "DevBoxesOperations_StartDevBox", + "operationId": "DevBoxes_StartDevBox", "description": "Starts a Dev Box", "parameters": [ { @@ -671,7 +671,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop": { "post": { - "operationId": "DevBoxesOperations_StopDevBox", + "operationId": "DevBoxes_StopDevBox", "description": "Stops a Dev Box", "parameters": [ { @@ -743,7 +743,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart": { "post": { - "operationId": "DevBoxesOperations_RestartDevBox", + "operationId": "DevBoxes_RestartDevBox", "description": "Restarts a Dev Box", "parameters": [ { @@ -808,7 +808,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions": { "get": { - "operationId": "DevBoxesOperations_ListDevBoxActions", + "operationId": "DevBoxes_ListDevBoxActions", "description": "Lists actions on a Dev Box.", "parameters": [ { @@ -868,7 +868,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}": { "get": { - "operationId": "DevBoxesOperations_GetDevBoxAction", + "operationId": "DevBoxes_GetDevBoxAction", "description": "Gets an action.", "parameters": [ { @@ -932,7 +932,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip": { "post": { - "operationId": "DevBoxesOperations_SkipAction", + "operationId": "DevBoxes_SkipAction", "description": "Skips an occurrence of an action.", "parameters": [ { @@ -993,7 +993,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay": { "post": { - "operationId": "DevBoxesOperations_DelayAction", + "operationId": "DevBoxes_DelayAction", "description": "Delays the occurrence of an action.", "parameters": [ { @@ -1066,7 +1066,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay": { "post": { - "operationId": "DevBoxesOperations_DelayAllActions", + "operationId": "DevBoxes_DelayAllActions", "description": "Delays all actions.", "parameters": [ { @@ -1135,7 +1135,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection": { "get": { - "operationId": "DevBoxesOperations_GetRemoteConnection", + "operationId": "DevBoxes_GetRemoteConnection", "description": "Gets RDP Connection info", "parameters": [ { @@ -1192,7 +1192,7 @@ }, "/users/{userId}/devboxes": { "get": { - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "operationId": "DevBoxesDevCenter_ListAllDevBoxesByUser", "description": "Lists Dev Boxes in the Dev Center for a particular user.", "parameters": [ { diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json index 26e9c64b0430..0c6bb39eaf94 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json @@ -53,7 +53,7 @@ "paths": { "/projects": { "get": { - "operationId": "DevCenterOperations_ListProjects", + "operationId": "DevCenter_ListProjects", "description": "Lists all projects.", "parameters": [ { @@ -92,7 +92,7 @@ }, "/projects/{projectName}": { "get": { - "operationId": "DevCenterOperations_GetProject", + "operationId": "DevCenter_GetProject", "description": "Gets a project.", "parameters": [ { diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index e3c01d8c2f98..dcce5c3711fb 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -53,7 +53,7 @@ "paths": { "/projects/{projectName}/catalogs": { "get": { - "operationId": "EnvironmentsOperations_ListCatalogs", + "operationId": "Environments_ListCatalogs", "description": "Lists all of the catalogs available for a project.", "parameters": [ { @@ -99,7 +99,7 @@ }, "/projects/{projectName}/catalogs/{catalogName}": { "get": { - "operationId": "EnvironmentsOperations_GetCatalog", + "operationId": "Environments_GetCatalog", "description": "Gets the specified catalog within the project", "parameters": [ { @@ -149,7 +149,7 @@ }, "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "operationId": "Environments_ListEnvironmentDefinitionsByCatalog", "description": "Lists all environment definitions available within a catalog.", "parameters": [ { @@ -202,7 +202,7 @@ }, "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { "get": { - "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "operationId": "Environments_GetEnvironmentDefinition", "description": "Get an environment definition from a catalog.", "parameters": [ { @@ -259,7 +259,7 @@ }, "/projects/{projectName}/environmentDefinitions": { "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", + "operationId": "Environments_ListEnvironmentDefinitions", "description": "Lists all environment definitions available for a project.", "parameters": [ { @@ -305,7 +305,7 @@ }, "/projects/{projectName}/environmentTypes": { "get": { - "operationId": "EnvironmentsOperations_ListEnvironmentTypes", + "operationId": "Environments_ListEnvironmentTypes", "description": "Lists all environment types configured for a project.", "parameters": [ { @@ -351,7 +351,7 @@ }, "/projects/{projectName}/environments": { "get": { - "operationId": "EnvironmentsOperations_ListAllEnvironments", + "operationId": "Environments_ListAllEnvironments", "description": "Lists the environments for a project.", "parameters": [ { @@ -447,7 +447,7 @@ }, "/projects/{projectName}/users/{userId}/environments": { "get": { - "operationId": "EnvironmentsOperations_ListEnvironments", + "operationId": "Environments_ListEnvironments", "description": "Lists the environments for a project and user.", "parameters": [ { @@ -500,7 +500,7 @@ }, "/projects/{projectName}/users/{userId}/environments/{environmentName}": { "get": { - "operationId": "EnvironmentsOperations_GetEnvironment", + "operationId": "Environments_GetEnvironment", "description": "Gets an environment", "parameters": [ { @@ -555,7 +555,7 @@ } }, "put": { - "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", + "operationId": "Environments_CreateOrUpdateEnvironment", "description": "Creates or updates an environment.", "parameters": [ { @@ -625,7 +625,7 @@ "x-ms-long-running-operation": true }, "delete": { - "operationId": "EnvironmentsOperations_DeleteEnvironment", + "operationId": "Environments_DeleteEnvironment", "description": "Deletes an environment and all its associated resources", "parameters": [ { diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json index a60cb4dd87e7..33e7210819fb 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json @@ -1,6 +1,6 @@ { "title": "Lists Dev Boxes that the caller has access to in the DevCenter.", - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxes", + "operationId": "DevBoxesDevCenter_ListAllDevBoxes", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json index c42b57185035..1fde15c1bbb5 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json @@ -1,6 +1,6 @@ { "title": "Lists Dev Boxes in the Dev Center for a particular user.", - "operationId": "DevBoxesDevCenterOperations_ListAllDevBoxesByUser", + "operationId": "DevBoxesDevCenter_ListAllDevBoxesByUser", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json index f51bad1c0086..c7e4037d4b1d 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json @@ -1,6 +1,6 @@ { "title": "Creates or replaces a Dev Box.", - "operationId": "DevBoxesOperations_CreateDevBox", + "operationId": "DevBoxes_CreateDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json index db7107cfc6bc..6a5868c5ec6f 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json @@ -1,6 +1,6 @@ { "title": "Delays the occurrence of an action.", - "operationId": "DevBoxesOperations_DelayAction", + "operationId": "DevBoxes_DelayAction", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json index 6a7ade1eef30..d2118defad1b 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json @@ -1,6 +1,6 @@ { "title": "Delays all actions.", - "operationId": "DevBoxesOperations_DelayAllActions", + "operationId": "DevBoxes_DelayAllActions", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json index 4843a80ed6c9..bf47f4e2ece2 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json @@ -1,6 +1,6 @@ { "title": "Deletes a Dev Box.", - "operationId": "DevBoxesOperations_DeleteDevBox", + "operationId": "DevBoxes_DeleteDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json index f29193eb0b35..2a9466ad1853 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json @@ -1,6 +1,6 @@ { "title": "Gets a Dev Box", - "operationId": "DevBoxesOperations_GetDevBox", + "operationId": "DevBoxes_GetDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json index 0d94918c712d..9dc6907e4778 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json @@ -1,6 +1,6 @@ { "title": "Gets an action.", - "operationId": "DevBoxesOperations_GetDevBoxAction", + "operationId": "DevBoxes_GetDevBoxAction", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json index 7b53a6ac96b4..3bd532947546 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json @@ -1,6 +1,6 @@ { "title": "Gets a pool", - "operationId": "DevBoxesOperations_GetPool", + "operationId": "DevBoxes_GetPool", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json index a01b7df571fd..3ff9f5a30770 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json @@ -1,6 +1,6 @@ { "title": "Gets RDP Connection info", - "operationId": "DevBoxesOperations_GetRemoteConnection", + "operationId": "DevBoxes_GetRemoteConnection", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json index 8ba5489b95c6..0c94f8fd4167 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json @@ -1,6 +1,6 @@ { "title": "Gets a schedule.", - "operationId": "DevBoxesOperations_GetSchedule", + "operationId": "DevBoxes_GetSchedule", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json index db1ae0af7c62..66ff10604340 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json @@ -1,6 +1,6 @@ { "title": "Lists actions on a Dev Box.", - "operationId": "DevBoxesOperations_ListDevBoxActions", + "operationId": "DevBoxes_ListDevBoxActions", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json index 2140a65cb857..d271ba40343f 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json @@ -1,6 +1,6 @@ { "title": "Lists Dev Boxes in the project for a particular user.", - "operationId": "DevBoxesOperations_ListDevBoxes", + "operationId": "DevBoxes_ListDevBoxes", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json index 42c39b484d20..f31808873991 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json @@ -1,6 +1,6 @@ { "title": "Lists available pools", - "operationId": "DevBoxesOperations_ListPools", + "operationId": "DevBoxes_ListPools", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json index 0a5afd4f207a..4bb5de2787fc 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json @@ -1,6 +1,6 @@ { "title": "Lists available schedules for a pool.", - "operationId": "DevBoxesOperations_ListSchedules", + "operationId": "DevBoxes_ListSchedules", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json index 3c0e55515dd6..f9abacb1d881 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json @@ -1,6 +1,6 @@ { "title": "Restarts a Dev Box", - "operationId": "DevBoxesOperations_RestartDevBox", + "operationId": "DevBoxes_RestartDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json index 1e8552d6bd35..b44cbd7dc65a 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json @@ -1,6 +1,6 @@ { "title": "Skips an occurrence of an action.", - "operationId": "DevBoxesOperations_SkipAction", + "operationId": "DevBoxes_SkipAction", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json index 292e5e1c947a..462358dc151e 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json @@ -1,6 +1,6 @@ { "title": "Starts a Dev Box", - "operationId": "DevBoxesOperations_StartDevBox", + "operationId": "DevBoxes_StartDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json index b92d1089e864..eb10c60cf0c8 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json @@ -1,6 +1,6 @@ { "title": "Stops a Dev Box", - "operationId": "DevBoxesOperations_StopDevBox", + "operationId": "DevBoxes_StopDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json index fe1a721864bc..cc1f988275f0 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json @@ -1,6 +1,6 @@ { "title": "Gets a project.", - "operationId": "DevCenterOperations_GetProject", + "operationId": "DevCenter_GetProject", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json index 1e7bdde95309..08b5c7d28016 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json @@ -1,6 +1,6 @@ { "title": "Lists all projects.", - "operationId": "DevCenterOperations_ListProjects", + "operationId": "DevCenter_ListProjects", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com" diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json index 40bd8016a490..0bc523537a63 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json @@ -1,6 +1,6 @@ { "title": "Creates or updates an environment.", - "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", + "operationId": "Environments_CreateOrUpdateEnvironment", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json index db378d427835..2c6dec31e1f3 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json @@ -1,6 +1,6 @@ { "title": "Deletes an environment and all its associated resources", - "operationId": "EnvironmentsOperations_DeleteEnvironment", + "operationId": "Environments_DeleteEnvironment", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json index 7d9de8e13786..7a6ccf37974b 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json @@ -1,6 +1,6 @@ { "title": "Gets the specified catalog within the project", - "operationId": "EnvironmentsOperations_GetCatalog", + "operationId": "Environments_GetCatalog", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json index eb89813acaf7..b8962bb6117a 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json @@ -1,6 +1,6 @@ { "title": "Gets an environment", - "operationId": "EnvironmentsOperations_GetEnvironment", + "operationId": "Environments_GetEnvironment", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json index e4efa7edea54..e08ddd9df7f6 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json @@ -1,6 +1,6 @@ { "title": "Get an environment definition from a catalog.", - "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", + "operationId": "Environments_GetEnvironmentDefinition", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json index ab203c460a33..750fded4c169 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json @@ -1,6 +1,6 @@ { "title": "Lists the environments for a project.", - "operationId": "EnvironmentsOperations_ListAllEnvironments", + "operationId": "Environments_ListAllEnvironments", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json index 17c683e6c9b3..9aebb61047ca 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json @@ -1,6 +1,6 @@ { "title": "Lists all of the catalogs available for a project.", - "operationId": "EnvironmentsOperations_ListCatalogs", + "operationId": "Environments_ListCatalogs", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json index aabe3738602c..de27ff8c571a 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json @@ -1,6 +1,6 @@ { "title": "Lists all environment definitions available for a project.", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", + "operationId": "Environments_ListEnvironmentDefinitions", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json index d9c411224b8e..4c021662bf33 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json @@ -1,6 +1,6 @@ { "title": "Lists all environment definitions available within a catalog.", - "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", + "operationId": "Environments_ListEnvironmentDefinitionsByCatalog", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json index 83e22df09846..364712b931e0 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json @@ -1,6 +1,6 @@ { "title": "Lists all environment types configured for a project.", - "operationId": "EnvironmentsOperations_ListEnvironmentTypes", + "operationId": "Environments_ListEnvironmentTypes", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json index 51f0384a6ffb..3620693a633e 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json @@ -1,6 +1,6 @@ { "title": "Lists the environments for a project and user.", - "operationId": "EnvironmentsOperations_ListEnvironments", + "operationId": "Environments_ListEnvironments", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", From f73cb33a5428a48bfebd2d3f709170c4b80351e3 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 22 Feb 2024 17:51:13 -0800 Subject: [PATCH 152/187] add lenght limits and pattern --- .../devcenter/DevCenter/DevBox/models.tsp | 8 +- .../DevCenter/Environments/models.tsp | 11 ++- .../devcenter/DevCenter/shared/models.tsp | 10 ++- .../stable/2023-04-01/devbox.json | 90 +++++++++++++++---- .../stable/2023-04-01/devcenter.json | 13 ++- .../stable/2023-04-01/environments.json | 64 ++++++++++--- 6 files changed, 161 insertions(+), 35 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index ebc4ee2039e2..48cff2f0e7b2 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -303,6 +303,9 @@ model DevBoxListResult is Azure.Core.Page; model DevBox { @key("devBoxName") @doc("Display name for the Dev Box") + @minLength(3) + @maxLength(63) + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") @visibility("read") name: string; @@ -397,8 +400,11 @@ model RemoteConnection { @parentResource(DevBox) model DevBoxAction { @key("actionName") - @visibility("read") @doc("The name of the action.") + @minLength(3) + @maxLength(63) + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @visibility("read") name: string; @doc("The action that will be taken.") diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index d3106877879a..7fc9fb4b6c19 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -77,8 +77,11 @@ model Environment { ...EnvironmentUpdateProperties; @doc("Environment name.") - @visibility("read") @key("environmentName") + @minLength(3) + @maxLength(63) + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @visibility("read") name: string; @doc("Environment type.") @@ -125,6 +128,9 @@ model EnvironmentUpdateProperties { model Catalog { @doc("Name of the catalog.") @key("catalogName") + @minLength(3) + @maxLength(63) + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") @visibility("read") name: string; } @@ -141,6 +147,9 @@ model EnvironmentDefinition { @doc("Name of the environment definition.") @key("definitionName") + @minLength(3) + @maxLength(63) + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") @visibility("read") name: string; diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index dd819c2c4f83..d6fc35480b21 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -69,8 +69,11 @@ model OperationStatus { @projectedName("csharp", "DevCenterProject") model Project { @key("projectName") - @visibility("read") @doc("Name of the project") + @minLength(3) + @maxLength(63) + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @visibility("read") name: string; @doc("Description of the project.") @@ -89,7 +92,10 @@ create across all pools in the project. @parentResource(Project) model User { @key("userId") + @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context") + @minLength(2) + @maxLength(36) + @pattern("^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$") @visibility("read") - @doc("The AAD object id of the user") userId: string; } diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json index bee2f5112b4e..9a9b0f4ebe43 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json @@ -153,7 +153,10 @@ "in": "path", "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], "responses": { @@ -199,7 +202,10 @@ "in": "path", "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "poolName", @@ -249,7 +255,10 @@ "in": "path", "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "poolName", @@ -302,7 +311,10 @@ "in": "path", "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "poolName", @@ -412,21 +424,30 @@ "in": "path", "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "userId", "in": "path", - "description": "The AAD object id of the user", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", "required": true, - "type": "string" + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" }, { "name": "devBoxName", "in": "path", "description": "Display name for the Dev Box", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], "responses": { @@ -819,21 +840,30 @@ "in": "path", "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "userId", "in": "path", - "description": "The AAD object id of the user", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", "required": true, - "type": "string" + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" }, { "name": "devBoxName", "in": "path", "description": "Display name for the Dev Box", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], "responses": { @@ -879,28 +909,40 @@ "in": "path", "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "userId", "in": "path", - "description": "The AAD object id of the user", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", "required": true, - "type": "string" + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" }, { "name": "devBoxName", "in": "path", "description": "Display name for the Dev Box", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "actionName", "in": "path", "description": "The name of the action.", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], "responses": { @@ -1329,6 +1371,9 @@ "name": { "type": "string", "description": "Display name for the Dev Box", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", "readOnly": true }, "projectName": { @@ -1473,6 +1518,9 @@ "name": { "type": "string", "description": "The name of the action.", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", "readOnly": true }, "actionType": { @@ -2144,6 +2192,9 @@ "name": { "type": "string", "description": "Name of the project", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", "readOnly": true }, "description": { @@ -2449,7 +2500,10 @@ "properties": { "userId": { "type": "string", - "description": "The AAD object id of the user", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$", "readOnly": true } }, diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json index 0c6bb39eaf94..e3b1858c2cff 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json @@ -103,7 +103,10 @@ "in": "path", "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], "responses": { @@ -330,6 +333,9 @@ "name": { "type": "string", "description": "Name of the project", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", "readOnly": true }, "description": { @@ -353,7 +359,10 @@ "properties": { "userId": { "type": "string", - "description": "The AAD object id of the user", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$", "readOnly": true } }, diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index dcce5c3711fb..267de3664a7b 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -64,7 +64,10 @@ "in": "path", "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], "responses": { @@ -110,14 +113,20 @@ "in": "path", "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "catalogName", "in": "path", "description": "Name of the catalog.", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], "responses": { @@ -213,21 +222,30 @@ "in": "path", "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "catalogName", "in": "path", "description": "Name of the catalog.", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "definitionName", "in": "path", "description": "Name of the environment definition.", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], "responses": { @@ -511,21 +529,30 @@ "in": "path", "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "userId", "in": "path", - "description": "The AAD object id of the user", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", "required": true, - "type": "string" + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" }, { "name": "environmentName", "in": "path", "description": "Environment name.", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], "responses": { @@ -785,6 +812,9 @@ "name": { "type": "string", "description": "Name of the catalog.", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", "readOnly": true } }, @@ -806,6 +836,9 @@ "name": { "type": "string", "description": "Environment name.", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", "readOnly": true }, "environmentType": { @@ -871,6 +904,9 @@ "name": { "type": "string", "description": "Name of the environment definition.", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", "readOnly": true }, "catalogName": { @@ -1328,6 +1364,9 @@ "name": { "type": "string", "description": "Name of the project", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", "readOnly": true }, "description": { @@ -1351,7 +1390,10 @@ "properties": { "userId": { "type": "string", - "description": "The AAD object id of the user", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$", "readOnly": true } }, From b44e62be7b9a3362d1d0338ae2bf0c4819b92bb2 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 23 Feb 2024 12:26:11 -0800 Subject: [PATCH 153/187] try unkown type for EnvironmentUpdateProperties --- specification/devcenter/DevCenter/Environments/models.tsp | 3 ++- .../stable/2023-04-01/environments.json | 8 ++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index 7fc9fb4b6c19..8332a650b796 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -118,8 +118,9 @@ Properties of an environment. These properties can be updated after the resource has been created. """) model EnvironmentUpdateProperties { + #suppress "@azure-tools/typespec-azure-core/bad-record-type" "there is no build in type to describe object" @doc("Parameters object for the environment.") - parameters?: Record; + parameters?: Record; } @doc("A catalog.") diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index 267de3664a7b..a6bfabac48a0 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -829,9 +829,7 @@ "parameters": { "type": "object", "description": "Parameters object for the environment.", - "additionalProperties": { - "type": "string" - } + "additionalProperties": {} }, "name": { "type": "string", @@ -1129,9 +1127,7 @@ "parameters": { "type": "object", "description": "Parameters object for the environment.", - "additionalProperties": { - "type": "string" - } + "additionalProperties": {} } } }, From 2f41b06ece4e6e745cd58af8dd07ea55c1b31ac1 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 23 Feb 2024 14:02:15 -0800 Subject: [PATCH 154/187] update operation status type --- specification/devcenter/DevCenter/shared/models.tsp | 5 +++-- .../Microsoft.DevCenter/stable/2023-04-01/devbox.json | 4 +--- .../Microsoft.DevCenter/stable/2023-04-01/devcenter.json | 4 +--- .../Microsoft.DevCenter/stable/2023-04-01/environments.json | 4 +--- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index d6fc35480b21..468a008926f4 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -55,10 +55,11 @@ model OperationStatus { @doc("Percent of the operation that is complete") @minValue(0.0) @maxValue(100.0) - percentComplete?: float32; + percentComplete?: float64; + #suppress "@azure-tools/typespec-azure-core/no-unknown" "there is no build in type to describe object" @doc("Custom operation properties, populated only for a successful operation.") - properties?: bytes; + properties?: unknown; @doc("Operation Error message") error?: Azure.Core.Foundations.Error; diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json index 9a9b0f4ebe43..e80d90fbd114 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json @@ -1854,14 +1854,12 @@ }, "percentComplete": { "type": "number", - "format": "float", + "format": "double", "description": "Percent of the operation that is complete", "minimum": 0, "maximum": 100 }, "properties": { - "type": "string", - "format": "byte", "description": "Custom operation properties, populated only for a successful operation." }, "error": { diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json index e3b1858c2cff..dd688cfb106f 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json @@ -249,14 +249,12 @@ }, "percentComplete": { "type": "number", - "format": "float", + "format": "double", "description": "Percent of the operation that is complete", "minimum": 0, "maximum": 100 }, "properties": { - "type": "string", - "format": "byte", "description": "Custom operation properties, populated only for a successful operation." }, "error": { diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index a6bfabac48a0..3daf3819303e 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -1163,14 +1163,12 @@ }, "percentComplete": { "type": "number", - "format": "float", + "format": "double", "description": "Percent of the operation that is complete", "minimum": 0, "maximum": 100 }, "properties": { - "type": "string", - "format": "byte", "description": "Custom operation properties, populated only for a successful operation." }, "error": { From 8cfcc8d7248006bc39e11910fe86d03003241a7b Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 26 Feb 2024 09:57:57 -0800 Subject: [PATCH 155/187] stand op action --- .../devcenter/DevCenter/DevBox/routes.tsp | 166 +++--------------- 1 file changed, 25 insertions(+), 141 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/routes.tsp b/specification/devcenter/DevCenter/DevBox/routes.tsp index faddd42bc826..fef724d47367 100644 --- a/specification/devcenter/DevCenter/DevBox/routes.tsp +++ b/specification/devcenter/DevCenter/DevBox/routes.tsp @@ -129,98 +129,35 @@ interface DevBoxes { } >; - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" - // It fits in the LongRunningResourceAction pattern, however we would have to rename the operation to 'start' - so the path ends with ":start" - // But renaming it to 'start' also makes the client method be renamed to "Start" - and we want it to be "StartDevBox". Using projectedName does not solve the problem @doc("Starts a Dev Box") @pollingOperation(SharedOperations.getProjectOperationStatus) - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start") - @post - startDevBox is Foundations.LongRunningOperation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - }, - { - @statusCode - statusCode: 202; - - @body - body: OperationStatus; - } + @action("start") + startDevBox is StandardResourceOperations.LongRunningResourceAction< + DevBox, + {}, + OperationStatus & AcceptedResponse >; - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" - // It fits in the LongRunningResourceAction pattern, however we would have to rename the operation to 'stop' - so the path ends with ":stop" - // But renaming it to 'stop' also makes the client method be renamed to "Stop" - and we want it to be "StopDevBox". Using projectedName does not solve the problem @doc("Stops a Dev Box") @pollingOperation(SharedOperations.getProjectOperationStatus) - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop") - @post - stopDevBox is Foundations.LongRunningOperation< + @action("stop") + stopDevBox is StandardResourceOperations.LongRunningResourceAction< + DevBox, { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - @doc("Optional parameter to hibernate the dev box.") @query hibernate?: boolean; }, - { - @statusCode - statusCode: 202; - - @body - body: OperationStatus; - } + OperationStatus & AcceptedResponse >; - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" - // It fits in the LongRunningResourceAction pattern, however we would have to rename the operation to 'restart' - so the path ends with ":restart" - // But renaming it to 'restart' also makes the client method be renamed to "Restart" - and we want it to be "RestartDevBox". Using projectedName does not solve the problem @doc("Restarts a Dev Box") @pollingOperation(SharedOperations.getProjectOperationStatus) - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart") - @post - restartDevBox is Foundations.LongRunningOperation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - }, - { - @statusCode - statusCode: 202; - - @body - body: OperationStatus; - } + @action("restart") + restartDevBox is StandardResourceOperations.LongRunningResourceAction< + DevBox, + {}, + OperationStatus & AcceptedResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @@ -251,57 +188,19 @@ interface DevBoxes { @doc("Gets an action.") getDevBoxAction is StandardResourceOperations.ResourceRead; - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" - // It fits in the LongRunningResourceAction pattern, however we would have to rename the operation to 'skip' - so the path ends with ":skip" - // But renaming it to 'skip' also makes the client method be renamed to "Skip" - and we want it to be "SkipAction". Using projectedName does not solve the problem @doc("Skips an occurrence of an action.") - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip") - @post - skipAction is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - - @doc("The name of an action that will take place on a Dev Box.") - @path - actionName: string; - }, - void + @action("skip") + skipAction is StandardResourceOperations.ResourceAction< + DevBoxAction, + {}, + NoContentResponse >; - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" - // It fits in the LongRunningResourceAction pattern, however we would have to rename the operation to 'delay' - so the path ends with ":delay" - // But renaming it to 'delay' also makes the client method be renamed to "Delay" - and we want it to be "DelayAction". Using projectedName does not solve the problem @doc("Delays the occurrence of an action.") - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay") - @post - delayAction is Azure.Core.Foundations.Operation< + @action("delay") + delayAction is StandardResourceOperations.ResourceAction< + DevBoxAction, { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - - @doc("The name of an action that will take place on a Dev Box.") - @path - actionName: string; - @doc("The time to delay the Dev Box action or actions until.") @query("until") delayUntil: utcDateTime; @@ -309,26 +208,11 @@ interface DevBoxes { DevBoxAction >; - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" - // It fits in the LongRunningResourceAction pattern, however we would have to rename the operation to 'delay' - so the path ends with ":delay" - // But renaming it to 'delay' also makes the client method be renamed to "Delay" - and we want it to be "DelayAllAction". Using projectedName does not solve the problem @doc("Delays all actions.") - @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay") - @post - delayAllActions is Azure.Core.Foundations.Operation< + @action("delay") + delayAllActions is StandardResourceOperations.ResourceCollectionAction< + DevBoxAction, { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.") - @path - userId: string; - - @doc("The name of a Dev Box.") - @path - devBoxName: string; - @doc("The time to delay the Dev Box action or actions until.") @query("until") delayUntil: utcDateTime; From 18b344d5a58cbfea34239385dc6545dfff1f1142 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 26 Feb 2024 11:10:00 -0800 Subject: [PATCH 156/187] swagger stand op action --- .../stable/2023-04-01/devbox.json | 257 +++++++++++++++--- 1 file changed, 214 insertions(+), 43 deletions(-) diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json index e80d90fbd114..2362e8340a37 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json @@ -636,30 +636,62 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "userId", "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", "required": true, - "type": "string" + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" }, { "name": "devBoxName", "in": "path", - "description": "The name of a Dev Box.", + "description": "Display name for the Dev Box", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], "responses": { "202": { "description": "The request has been accepted for processing, but processing has not yet completed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "type": "object", + "description": "Provides status details for long running operations.", + "properties": { + "id": { + "type": "string", + "description": "The unique ID of the operation." + }, + "status": { + "$ref": "#/definitions/Azure.Core.Foundations.OperationState", + "description": "The status of the operation" + }, + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "Error object that describes the error when status is \"Failed\"." + }, + "result": { + "$ref": "#/definitions/OperationStatus", + "description": "The result of the operation." + } + }, + "required": [ + "id", + "status" + ] }, "headers": { "Operation-Location": { @@ -701,23 +733,32 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "userId", "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", "required": true, - "type": "string" + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" }, { "name": "devBoxName", "in": "path", - "description": "The name of a Dev Box.", + "description": "Display name for the Dev Box", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "hibernate", @@ -731,7 +772,30 @@ "202": { "description": "The request has been accepted for processing, but processing has not yet completed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "type": "object", + "description": "Provides status details for long running operations.", + "properties": { + "id": { + "type": "string", + "description": "The unique ID of the operation." + }, + "status": { + "$ref": "#/definitions/Azure.Core.Foundations.OperationState", + "description": "The status of the operation" + }, + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "Error object that describes the error when status is \"Failed\"." + }, + "result": { + "$ref": "#/definitions/OperationStatus", + "description": "The result of the operation." + } + }, + "required": [ + "id", + "status" + ] }, "headers": { "Operation-Location": { @@ -773,30 +837,62 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "userId", "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", "required": true, - "type": "string" + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" }, { "name": "devBoxName", "in": "path", - "description": "The name of a Dev Box.", + "description": "Display name for the Dev Box", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], "responses": { "202": { "description": "The request has been accepted for processing, but processing has not yet completed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "type": "object", + "description": "Provides status details for long running operations.", + "properties": { + "id": { + "type": "string", + "description": "The unique ID of the operation." + }, + "status": { + "$ref": "#/definitions/Azure.Core.Foundations.OperationState", + "description": "The status of the operation" + }, + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "Error object that describes the error when status is \"Failed\"." + }, + "result": { + "$ref": "#/definitions/OperationStatus", + "description": "The result of the operation." + } + }, + "required": [ + "id", + "status" + ] }, "headers": { "Operation-Location": { @@ -983,30 +1079,42 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "userId", "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", "required": true, - "type": "string" + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" }, { "name": "devBoxName", "in": "path", - "description": "The name of a Dev Box.", + "description": "Display name for the Dev Box", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "actionName", "in": "path", - "description": "The name of an action that will take place on a Dev Box.", + "description": "The name of the action.", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], "responses": { @@ -1044,30 +1152,42 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "userId", "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", "required": true, - "type": "string" + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" }, { "name": "devBoxName", "in": "path", - "description": "The name of a Dev Box.", + "description": "Display name for the Dev Box", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "actionName", "in": "path", - "description": "The name of an action that will take place on a Dev Box.", + "description": "The name of the action.", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "until", @@ -1117,23 +1237,32 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "userId", "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", "required": true, - "type": "string" + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" }, { "name": "devBoxName", "in": "path", - "description": "The name of a Dev Box.", + "description": "Display name for the Dev Box", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "until", @@ -1359,6 +1488,48 @@ } } }, + "Azure.Core.Foundations.OperationState": { + "type": "string", + "description": "Enum describing allowed operation states.", + "enum": [ + "NotStarted", + "Running", + "Succeeded", + "Failed", + "Canceled" + ], + "x-ms-enum": { + "name": "OperationState", + "modelAsString": true, + "values": [ + { + "name": "NotStarted", + "value": "NotStarted", + "description": "The operation has not started." + }, + { + "name": "Running", + "value": "Running", + "description": "The operation is in progress." + }, + { + "name": "Succeeded", + "value": "Succeeded", + "description": "The operation has completed successfully." + }, + { + "name": "Failed", + "value": "Failed", + "description": "The operation has failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "The operation has been canceled by the user." + } + ] + } + }, "Azure.Core.uuid": { "type": "string", "format": "uuid", From 04d0485fb8da9e82769c6c1f18eb0c6ac1de1060 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 26 Feb 2024 11:27:53 -0800 Subject: [PATCH 157/187] move ramaining projectedName to client --- specification/devcenter/DevCenter/client.tsp | 86 +++++-------------- .../devcenter/DevCenter/shared/models.tsp | 7 -- 2 files changed, 23 insertions(+), 70 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 53dcda3521d2..8530a83d4941 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -158,6 +158,15 @@ interface EnvironmentClientOperations { "csharp", "DevCenterEnvironmentType" ); +@@projectedName(DevCenterService.OperationStatusValue, + "csharp", + "DevCenterStatus" +); +@@projectedName(DevCenterService.OperationStatus, + "csharp", + "DevCenterOperationDetails" +); +@@projectedName(DevCenterService.Project, "csharp", "DevCenterProject"); @@projectedName(DevCenterService.OsType, "java", "DevBoxOsType"); @@projectedName(DevCenterService.ScheduledFrequency, @@ -213,6 +222,15 @@ interface EnvironmentClientOperations { "DevCenterEnvironmentType" ); @@projectedName(DevCenterService.HardwareProfile.vCPUs, "java", "vcpus"); +@@projectedName(DevCenterService.OperationStatusValue, + "java", + "DevCenterStatus" +); +@@projectedName(DevCenterService.OperationStatus, + "java", + "DevCenterOperationDetails" +); +@@projectedName(DevCenterService.Project, "java", "DevCenterProject"); @@projectedName(DevCenterService.OsType, "python", "OSType"); @@projectedName(DevCenterService.HardwareProfile.vCPUs, "python", "vcpus"); @@ -222,66 +240,8 @@ interface EnvironmentClientOperations { ); @@projectedName(DevCenterService.OsDisk, "python", "OSDisk"); @@projectedName(DevCenterService.OsDisk.diskSizeGB, "python", "diskSizeGb"); - -/* -@@clientName(DevCenterService.LocalAdminStatus, "LocalAdministratorStatus"); -@@clientName(DevCenterService.StopOnDisconnectEnableStatus, "StopOnDisconnectStatus"); -@@clientName(DevCenterService.EnvironmentTypeEnableStatus, "EnvironmentTypeStatus"); -@@clientName(DevCenterService.DevBoxActionDelayResultStatus, "DevBoxActionDelayStatus"); - -@@clientName(DevCenterService.OsType, "DevBoxOSType", "csharp"); -@@clientName(DevCenterService.ScheduledFrequency, "ScheduleFrequency", "csharp"); -@@clientName(DevCenterService.Pool, "DevBoxPool", "csharp"); -@@clientName(DevCenterService.Pool.osType, "OSType", "csharp"); -@@clientName(DevCenterService.Pool.localAdministrator, "LocalAdministratorStatus", "csharp"); -@@clientName(DevCenterService.HardwareProfile, "DevBoxHardwareProfile", "csharp"); -@@clientName(DevCenterService.StorageProfile, "DevBoxStorageProfile", "csharp"); -@@clientName(DevCenterService.StorageProfile.osDisk , "OSDisk", "csharp"); -@@clientName(DevCenterService.OsDisk, "OSDisk", "csharp"); -@@clientName(DevCenterService.ImageReference, "DevBoxImageReference", "csharp"); -@@clientName(DevCenterService.ImageReference.osBuildNumber , "OSBuildNumber", "csharp"); -@@clientName(DevCenterService.Schedule, "DevBoxSchedule", "csharp"); -@@clientName(DevCenterService.Schedule.type, "scheduledType", "csharp"); -@@clientName(DevCenterService.DevBox.osType , "OSType", "csharp"); -@@clientName(DevCenterService.DevBox.user , "userId", "csharp"); -@@clientName(DevCenterService.DevBox.localAdministrator , "LocalAdministratorStatus", "csharp"); -@@clientName(DevCenterService.RemoteConnection.webUrl , "webUri", "csharp"); -@@clientName(DevCenterService.RemoteConnection.rdpConnectionUrl , "rdpConnectionUri", "csharp"); -@@clientName(DevCenterService.DevBoxAction.next, "nextAction", "csharp"); -@@clientName(DevCenterService.DevBoxActionDelayResult.name, "actionName", "csharp"); -@@clientName(DevCenterService.ParameterType, "EnvironmentDefinitionParameterType", "csharp"); -@@clientName(DevCenterService.Environment, "DevCenterEnvironment", "csharp"); -@@clientName(DevCenterService.Environment.environmentType, "environmentTypeName","csharp"); -@@clientName(DevCenterService.Environment.user, "userId","csharp"); -@@clientName(DevCenterService.Catalog, "DevCenterCatalog", "csharp"); -@@clientName(DevCenterService.EnvironmentDefinitionParameter.default, "defaultValue", "csharp"); -@@clientName(DevCenterService.EnvironmentDefinitionParameter.type, "parameterType", "csharp"); -@@clientName(DevCenterService.EnvironmentType, "DevCenterEnvironmentType", "csharp"); - -@@clientName(DevCenterService.OsType, "DevBoxOsType" ,"java"); -@@clientName(DevCenterService.ScheduledFrequency, "ScheduleFrequency", "java"); -@@clientName(DevCenterService.Pool, "DevBoxPool", "java"); -@@clientName(DevCenterService.Pool.localAdministrator, "LocalAdministratorStatus", "java"); -@@clientName(DevCenterService.HardwareProfile, "DevBoxHardwareProfile", "java"); -@@clientName(DevCenterService.HardwareProfile.vCPUs, "vcpus", "java"); -@@clientName(DevCenterService.StorageProfile, "DevBoxStorageProfile", "java"); -@@clientName(DevCenterService.ImageReference, "DevBoxImageReference", "java"); -@@clientName(DevCenterService.Schedule, "DevBoxSchedule", "java"); -@@clientName(DevCenterService.Schedule.type, "scheduledType", "java"); -@@clientName(DevCenterService.DevBox.user , "userId", "java"); -@@clientName(DevCenterService.DevBox.localAdministrator , "LocalAdministratorStatus", "java"); -@@clientName(DevCenterService.DevBoxAction.next, "nextAction", "java"); -@@clientName(DevCenterService.ParameterType, "EnvironmentDefinitionParameterType", "java"); -@@clientName(DevCenterService.Environment, "DevCenterEnvironment", "java"); -@@clientName(DevCenterService.Environment.environmentType, "environmentTypeName", "java"); -@@clientName(DevCenterService.Environment.user, "userId", "java"); -@@clientName(DevCenterService.Catalog, "DevCenterCatalog", "java"); -@@clientName(DevCenterService.EnvironmentDefinitionParameter.default, "defaultValue", "java"); -@@clientName(DevCenterService.EnvironmentDefinitionParameter.type, "parameterType", "java"); -@@clientName(DevCenterService.EnvironmentType, "DevCenterEnvironmentType", "java"); - -@@clientName(DevCenterService.OsType, "OSType", "python"); -@@clientName(DevCenterService.HardwareProfile.vCPUs, "vcpus", "python"); -@@clientName(DevCenterService.HardwareProfile.memoryGB, "memoryGb", "python"); -@@clientName(DevCenterService.OsDisk, "OSDisk", "python"); -@@clientName(DevCenterService.OsDisk.diskSizeGB ,"diskSizeGb", "python");*/ +@@projectedName(DevCenterService.OperationStatus, "python", "OperationDetails"); +@@projectedName(DevCenterService.OperationStatusValue, + "python", + "OperationStatus" +); diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index 468a008926f4..a38787207d0c 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -11,9 +11,6 @@ namespace DevCenterService; @doc("Indicates whether operation status is running, completed, canceled or failed.") @lroStatus -@projectedName("csharp", "DevCentertatus") -@projectedName("java", "DevCentertatus") -@projectedName("python", "OperationStatus") enum OperationStatusValue { @doc("Operation is in progress") Running, @@ -30,9 +27,6 @@ enum OperationStatusValue { } @doc("The current status of an async operation") -@projectedName("csharp", "DevCenterOperationDetails") -@projectedName("java", "DevCenterOperationDetails") -@projectedName("python", "OperationDetails") model OperationStatus { @doc("Fully qualified ID for the operation status.") id?: string; @@ -67,7 +61,6 @@ model OperationStatus { @doc("Project details.") @resource("projects") -@projectedName("csharp", "DevCenterProject") model Project { @key("projectName") @doc("Name of the project") From 7a490682260f8cb33fb1e797adb00075c2b2f7db Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 26 Feb 2024 11:56:35 -0800 Subject: [PATCH 158/187] stand op for operation status --- .../devcenter/DevCenter/shared/models.tsp | 6 +++++- .../devcenter/DevCenter/shared/routes.tsp | 19 +++---------------- .../stable/2023-04-01/devbox.json | 13 +++++++++---- .../stable/2023-04-01/devcenter.json | 4 +++- .../stable/2023-04-01/environments.json | 13 +++++++++---- 5 files changed, 29 insertions(+), 26 deletions(-) diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index a38787207d0c..86027c83e54c 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -27,9 +27,13 @@ enum OperationStatusValue { } @doc("The current status of an async operation") +@resource("operationstatuses") +@parentResource(Project) model OperationStatus { @doc("Fully qualified ID for the operation status.") - id?: string; + @key("operationId") + @visibility("read") + id: string; @doc("The operation id name") name?: string; diff --git a/specification/devcenter/DevCenter/shared/routes.tsp b/specification/devcenter/DevCenter/shared/routes.tsp index d2a287e8864f..a477894e502b 100644 --- a/specification/devcenter/DevCenter/shared/routes.tsp +++ b/specification/devcenter/DevCenter/shared/routes.tsp @@ -1,27 +1,14 @@ import "@typespec/rest"; import "./models.tsp"; +import "@azure-tools/typespec-azure-core"; +using Azure.Core; using TypeSpec.Rest; using TypeSpec.Http; namespace DevCenterService; -#suppress "@azure-tools/typespec-azure-core/use-standard-operations" interface SharedOperations { - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" @doc("Get the status of an operation.") - @route("/projects/{projectName}/operationstatuses/{operationId}") - @get - getProjectOperationStatus is Azure.Core.Foundations.Operation< - { - @doc("The DevCenter Project upon which to execute operations.") - @path - projectName: string; - - @doc("Operation Id") - @path - operationId: string; - }, - OperationStatus - >; + getProjectOperationStatus is StandardResourceOperations.ResourceRead; } diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json index 2362e8340a37..ef2279db6d8f 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json @@ -101,14 +101,17 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "operationId", "in": "path", - "description": "Operation Id", + "description": "Fully qualified ID for the operation status.", "required": true, "type": "string" } @@ -1999,7 +2002,8 @@ "properties": { "id": { "type": "string", - "description": "Fully qualified ID for the operation status." + "description": "Fully qualified ID for the operation status.", + "readOnly": true }, "name": { "type": "string", @@ -2039,6 +2043,7 @@ } }, "required": [ + "id", "status" ] }, diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json index dd688cfb106f..be926ad8387c 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json @@ -223,7 +223,8 @@ "properties": { "id": { "type": "string", - "description": "Fully qualified ID for the operation status." + "description": "Fully qualified ID for the operation status.", + "readOnly": true }, "name": { "type": "string", @@ -263,6 +264,7 @@ } }, "required": [ + "id", "status" ] }, diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index 3daf3819303e..afc54a298b89 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -424,14 +424,17 @@ { "name": "projectName", "in": "path", - "description": "The DevCenter Project upon which to execute operations.", + "description": "Name of the project", "required": true, - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "operationId", "in": "path", - "description": "Operation Id", + "description": "Fully qualified ID for the operation status.", "required": true, "type": "string" } @@ -1137,7 +1140,8 @@ "properties": { "id": { "type": "string", - "description": "Fully qualified ID for the operation status." + "description": "Fully qualified ID for the operation status.", + "readOnly": true }, "name": { "type": "string", @@ -1177,6 +1181,7 @@ } }, "required": [ + "id", "status" ] }, From 599b753d9be66d4f064c4a340a32e36357ab4914 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 26 Feb 2024 17:18:08 -0800 Subject: [PATCH 159/187] use {} instead of Record --- specification/devcenter/DevCenter/Environments/models.tsp | 2 +- .../Microsoft.DevCenter/stable/2023-04-01/environments.json | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index 8332a650b796..f153bbc08481 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -120,7 +120,7 @@ resource has been created. model EnvironmentUpdateProperties { #suppress "@azure-tools/typespec-azure-core/bad-record-type" "there is no build in type to describe object" @doc("Parameters object for the environment.") - parameters?: Record; + parameters?: {}; } @doc("A catalog.") diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index afc54a298b89..049d4950d924 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -831,8 +831,7 @@ "properties": { "parameters": { "type": "object", - "description": "Parameters object for the environment.", - "additionalProperties": {} + "description": "Parameters object for the environment." }, "name": { "type": "string", @@ -1129,8 +1128,7 @@ "properties": { "parameters": { "type": "object", - "description": "Parameters object for the environment.", - "additionalProperties": {} + "description": "Parameters object for the environment." } } }, From da405d047fe9be6f9c9bd7bbafc74e5b10208fab Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 27 Feb 2024 10:34:33 -0800 Subject: [PATCH 160/187] Revert "use {} instead of Record" This reverts commit 120286c279044060d328b8cf8f2c9d3f43db2aee. --- specification/devcenter/DevCenter/Environments/models.tsp | 2 +- .../Microsoft.DevCenter/stable/2023-04-01/environments.json | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index f153bbc08481..8332a650b796 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -120,7 +120,7 @@ resource has been created. model EnvironmentUpdateProperties { #suppress "@azure-tools/typespec-azure-core/bad-record-type" "there is no build in type to describe object" @doc("Parameters object for the environment.") - parameters?: {}; + parameters?: Record; } @doc("A catalog.") diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json index 049d4950d924..afc54a298b89 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json @@ -831,7 +831,8 @@ "properties": { "parameters": { "type": "object", - "description": "Parameters object for the environment." + "description": "Parameters object for the environment.", + "additionalProperties": {} }, "name": { "type": "string", @@ -1128,7 +1129,8 @@ "properties": { "parameters": { "type": "object", - "description": "Parameters object for the environment." + "description": "Parameters object for the environment.", + "additionalProperties": {} } } }, From fd5aa139cfda8b561c28fbffd6908693ab3d16ee Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 27 Feb 2024 10:46:08 -0800 Subject: [PATCH 161/187] add csharp package dir and clean up tspconfig --- specification/devcenter/DevCenter/tspconfig.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index 6f1edeaa8673..d456f576d7fc 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -6,21 +6,17 @@ linter: - "@azure-tools/typespec-azure-core/all" options: "@azure-tools/typespec-csharp": - namespace : "Azure.Developer.DevCenter" + package-dir: "Azure.Developer.DevCenter" + namespace: "{package-dir}" clear-output-folder : true - # new-project : false - # model-namespace : false "@azure-tools/typespec-python": package-dir: "azure-developer-devcenter" package-name: "{package-dir}" package-mode: "azure-dataplane" - #models-mode: none "@azure-tools/typespec-ts": title: "Azure Developer DevCenter" package-dir: "developer-devcenter-rest" generateMetadata: true - #generateTest: true - #"emitter-output-dir": "{output-dir}" packageDetails: name: "@azure-rest/developer-devcenter" description: "Azure Developer DevCenter Client" From 0817dfd5c2df50ed411802de211a7f1620c07a4f Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 27 Feb 2024 16:22:05 -0800 Subject: [PATCH 162/187] try fix lint diff rule --- .../devcenter/DevCenter/DevBox/routes.tsp | 24 +++- .../stable/2023-04-01/devbox.json | 117 +----------------- 2 files changed, 24 insertions(+), 117 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/routes.tsp b/specification/devcenter/DevCenter/DevBox/routes.tsp index fef724d47367..fec9c7684e1c 100644 --- a/specification/devcenter/DevCenter/DevBox/routes.tsp +++ b/specification/devcenter/DevCenter/DevBox/routes.tsp @@ -135,7 +135,13 @@ interface DevBoxes { startDevBox is StandardResourceOperations.LongRunningResourceAction< DevBox, {}, - OperationStatus & AcceptedResponse + { + @statusCode + statusCode: 202; + + @body + body: OperationStatus; + } >; @doc("Stops a Dev Box") @@ -148,7 +154,13 @@ interface DevBoxes { @query hibernate?: boolean; }, - OperationStatus & AcceptedResponse + { + @statusCode + statusCode: 202; + + @body + body: OperationStatus; + } >; @doc("Restarts a Dev Box") @@ -157,7 +169,13 @@ interface DevBoxes { restartDevBox is StandardResourceOperations.LongRunningResourceAction< DevBox, {}, - OperationStatus & AcceptedResponse + { + @statusCode + statusCode: 202; + + @body + body: OperationStatus; + } >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "can not be represeted by using stand operations" diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json index ef2279db6d8f..3f47f287ba78 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json @@ -671,30 +671,7 @@ "202": { "description": "The request has been accepted for processing, but processing has not yet completed.", "schema": { - "type": "object", - "description": "Provides status details for long running operations.", - "properties": { - "id": { - "type": "string", - "description": "The unique ID of the operation." - }, - "status": { - "$ref": "#/definitions/Azure.Core.Foundations.OperationState", - "description": "The status of the operation" - }, - "error": { - "$ref": "#/definitions/Azure.Core.Foundations.Error", - "description": "Error object that describes the error when status is \"Failed\"." - }, - "result": { - "$ref": "#/definitions/OperationStatus", - "description": "The result of the operation." - } - }, - "required": [ - "id", - "status" - ] + "$ref": "#/definitions/OperationStatus" }, "headers": { "Operation-Location": { @@ -775,30 +752,7 @@ "202": { "description": "The request has been accepted for processing, but processing has not yet completed.", "schema": { - "type": "object", - "description": "Provides status details for long running operations.", - "properties": { - "id": { - "type": "string", - "description": "The unique ID of the operation." - }, - "status": { - "$ref": "#/definitions/Azure.Core.Foundations.OperationState", - "description": "The status of the operation" - }, - "error": { - "$ref": "#/definitions/Azure.Core.Foundations.Error", - "description": "Error object that describes the error when status is \"Failed\"." - }, - "result": { - "$ref": "#/definitions/OperationStatus", - "description": "The result of the operation." - } - }, - "required": [ - "id", - "status" - ] + "$ref": "#/definitions/OperationStatus" }, "headers": { "Operation-Location": { @@ -872,30 +826,7 @@ "202": { "description": "The request has been accepted for processing, but processing has not yet completed.", "schema": { - "type": "object", - "description": "Provides status details for long running operations.", - "properties": { - "id": { - "type": "string", - "description": "The unique ID of the operation." - }, - "status": { - "$ref": "#/definitions/Azure.Core.Foundations.OperationState", - "description": "The status of the operation" - }, - "error": { - "$ref": "#/definitions/Azure.Core.Foundations.Error", - "description": "Error object that describes the error when status is \"Failed\"." - }, - "result": { - "$ref": "#/definitions/OperationStatus", - "description": "The result of the operation." - } - }, - "required": [ - "id", - "status" - ] + "$ref": "#/definitions/OperationStatus" }, "headers": { "Operation-Location": { @@ -1491,48 +1422,6 @@ } } }, - "Azure.Core.Foundations.OperationState": { - "type": "string", - "description": "Enum describing allowed operation states.", - "enum": [ - "NotStarted", - "Running", - "Succeeded", - "Failed", - "Canceled" - ], - "x-ms-enum": { - "name": "OperationState", - "modelAsString": true, - "values": [ - { - "name": "NotStarted", - "value": "NotStarted", - "description": "The operation has not started." - }, - { - "name": "Running", - "value": "Running", - "description": "The operation is in progress." - }, - { - "name": "Succeeded", - "value": "Succeeded", - "description": "The operation has completed successfully." - }, - { - "name": "Failed", - "value": "Failed", - "description": "The operation has failed." - }, - { - "name": "Canceled", - "value": "Canceled", - "description": "The operation has been canceled by the user." - } - ] - } - }, "Azure.Core.uuid": { "type": "string", "format": "uuid", From 3eaf91f509656447f6bacda5a7aad1f95507ba3f Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 28 Feb 2024 15:58:06 -0800 Subject: [PATCH 163/187] move to one swagger --- .../devcenter/DevCenter/DevBox/main.tsp | 12 - .../devcenter/DevCenter/DevBox/tspconfig.yaml | 12 - .../devcenter/DevCenter/DevCenter/main.tsp | 12 - .../DevCenter/DevCenter/tspconfig.yaml | 12 - ...dOperations_GetProjectOperationStatus.json | 19 - .../devcenter/DevCenter/Environments/main.tsp | 12 - .../DevCenter/Environments/tspconfig.yaml | 12 - specification/devcenter/DevCenter/client.tsp | 1 - ...esDevCenterOperations_ListAllDevBoxes.json | 0 ...enterOperations_ListAllDevBoxesByUser.json | 0 .../DevBoxesOperations_CreateDevBox.json | 0 .../DevBoxesOperations_DelayAction.json | 0 .../DevBoxesOperations_DelayAllActions.json | 0 .../DevBoxesOperations_DeleteDevBox.json | 0 .../DevBoxesOperations_GetDevBox.json | 0 .../DevBoxesOperations_GetDevBoxAction.json | 0 .../DevBoxesOperations_GetPool.json | 0 ...evBoxesOperations_GetRemoteConnection.json | 0 .../DevBoxesOperations_GetSchedule.json | 0 .../DevBoxesOperations_ListDevBoxActions.json | 0 .../DevBoxesOperations_ListDevBoxes.json | 0 .../DevBoxesOperations_ListPools.json | 0 .../DevBoxesOperations_ListSchedules.json | 0 .../DevBoxesOperations_RestartDevBox.json | 0 .../DevBoxesOperations_SkipAction.json | 0 .../DevBoxesOperations_StartDevBox.json | 0 .../DevBoxesOperations_StopDevBox.json | 0 .../DevCenterOperations_GetProject.json | 0 .../DevCenterOperations_ListProjects.json | 0 ...sOperations_CreateOrUpdateEnvironment.json | 0 ...ironmentsOperations_DeleteEnvironment.json | 0 .../EnvironmentsOperations_GetCatalog.json | 0 ...EnvironmentsOperations_GetEnvironment.json | 0 ...tsOperations_GetEnvironmentDefinition.json | 0 ...onmentsOperations_ListAllEnvironments.json | 0 .../EnvironmentsOperations_ListCatalogs.json | 0 ...Operations_ListEnvironmentDefinitions.json | 0 ...s_ListEnvironmentDefinitionsByCatalog.json | 0 ...nmentsOperations_ListEnvironmentTypes.json | 0 ...vironmentsOperations_ListEnvironments.json | 0 ...dOperations_GetProjectOperationStatus.json | 0 .../DevCenter/{service.tsp => main.tsp} | 3 + .../devcenter/DevCenter/python-client.tsp | 1 - .../devcenter/DevCenter/shared/models.tsp | 2 +- .../devcenter/DevCenter/tspconfig.yaml | 8 + .../stable/2023-04-01/devbox.json | 2590 ------------ .../stable/2023-04-01/devcenter.json | 3718 ++++++++++++++++- .../stable/2023-04-01/environments.json | 1416 ------- specification/devcenter/data-plane/readme.md | 2 - 49 files changed, 3566 insertions(+), 4266 deletions(-) delete mode 100644 specification/devcenter/DevCenter/DevBox/main.tsp delete mode 100644 specification/devcenter/DevCenter/DevBox/tspconfig.yaml delete mode 100644 specification/devcenter/DevCenter/DevCenter/main.tsp delete mode 100644 specification/devcenter/DevCenter/DevCenter/tspconfig.yaml delete mode 100644 specification/devcenter/DevCenter/Environments/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json delete mode 100644 specification/devcenter/DevCenter/Environments/main.tsp delete mode 100644 specification/devcenter/DevCenter/Environments/tspconfig.yaml rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesOperations_DelayAction.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesOperations_GetDevBox.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesOperations_GetPool.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesOperations_GetSchedule.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesOperations_ListPools.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesOperations_ListSchedules.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesOperations_SkipAction.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesOperations_StartDevBox.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/DevBoxesOperations_StopDevBox.json (100%) rename specification/devcenter/DevCenter/{DevCenter => }/examples/2023-04-01/DevCenterOperations_GetProject.json (100%) rename specification/devcenter/DevCenter/{DevCenter => }/examples/2023-04-01/DevCenterOperations_ListProjects.json (100%) rename specification/devcenter/DevCenter/{Environments => }/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json (100%) rename specification/devcenter/DevCenter/{Environments => }/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json (100%) rename specification/devcenter/DevCenter/{Environments => }/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json (100%) rename specification/devcenter/DevCenter/{Environments => }/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json (100%) rename specification/devcenter/DevCenter/{Environments => }/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json (100%) rename specification/devcenter/DevCenter/{Environments => }/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json (100%) rename specification/devcenter/DevCenter/{Environments => }/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json (100%) rename specification/devcenter/DevCenter/{Environments => }/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json (100%) rename specification/devcenter/DevCenter/{Environments => }/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json (100%) rename specification/devcenter/DevCenter/{Environments => }/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json (100%) rename specification/devcenter/DevCenter/{Environments => }/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json (100%) rename specification/devcenter/DevCenter/{DevBox => }/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json (100%) rename specification/devcenter/DevCenter/{service.tsp => main.tsp} (89%) delete mode 100644 specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json delete mode 100644 specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json diff --git a/specification/devcenter/DevCenter/DevBox/main.tsp b/specification/devcenter/DevCenter/DevBox/main.tsp deleted file mode 100644 index 5f87a9f6ce2e..000000000000 --- a/specification/devcenter/DevCenter/DevBox/main.tsp +++ /dev/null @@ -1,12 +0,0 @@ -import "@typespec/rest"; -import "@typespec/http"; -import "@azure-tools/typespec-azure-core"; -import "../service.tsp"; -import "./routes.tsp"; - -using Azure.Core; -using TypeSpec.Versioning; -using TypeSpec.Rest; -using TypeSpec.Http; - -namespace DevCenterService; diff --git a/specification/devcenter/DevCenter/DevBox/tspconfig.yaml b/specification/devcenter/DevCenter/DevBox/tspconfig.yaml deleted file mode 100644 index 9d02e42a8017..000000000000 --- a/specification/devcenter/DevCenter/DevBox/tspconfig.yaml +++ /dev/null @@ -1,12 +0,0 @@ -emit: [ - "@azure-tools/typespec-autorest", -] -linter: - extends: - - "@azure-tools/typespec-azure-core/all" -options: - "@azure-tools/typespec-autorest": - azure-resource-provider-folder: "data-plane" - emitter-output-dir: "{project-root}/../.." - output-file: "{azure-resource-provider-folder}/Microsoft.DevCenter/{version-status}/{version}/devbox.json" - examples-directory: "examples" diff --git a/specification/devcenter/DevCenter/DevCenter/main.tsp b/specification/devcenter/DevCenter/DevCenter/main.tsp deleted file mode 100644 index 5f87a9f6ce2e..000000000000 --- a/specification/devcenter/DevCenter/DevCenter/main.tsp +++ /dev/null @@ -1,12 +0,0 @@ -import "@typespec/rest"; -import "@typespec/http"; -import "@azure-tools/typespec-azure-core"; -import "../service.tsp"; -import "./routes.tsp"; - -using Azure.Core; -using TypeSpec.Versioning; -using TypeSpec.Rest; -using TypeSpec.Http; - -namespace DevCenterService; diff --git a/specification/devcenter/DevCenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/DevCenter/tspconfig.yaml deleted file mode 100644 index 04e4f0ed98c8..000000000000 --- a/specification/devcenter/DevCenter/DevCenter/tspconfig.yaml +++ /dev/null @@ -1,12 +0,0 @@ -emit: [ - "@azure-tools/typespec-autorest", -] -linter: - extends: - - "@azure-tools/typespec-azure-core/all" -options: - "@azure-tools/typespec-autorest": - azure-resource-provider-folder: "data-plane" - emitter-output-dir: "{project-root}/../.." - output-file: "{azure-resource-provider-folder}/Microsoft.DevCenter/{version-status}/{version}/devcenter.json" - examples-directory: "examples" \ No newline at end of file diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json b/specification/devcenter/DevCenter/Environments/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json deleted file mode 100644 index d6c4b10ab2f4..000000000000 --- a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title": "Get the status of an operation.", - "operationId": "SharedOperations_GetProjectOperationStatus", - "parameters": { - "api-version": "2023-04-01", - "projectName": "myProject", - "operationId": "fa067167-e49d-41bd-8dd8-de719b9de3b3" - }, - "responses": { - "200": { - "body": { - "id": "/projects/myProject/operationStatuses/fa067167-e49d-41bd-8dd8-de719b9de3b3", - "name": "fa067167-e49d-41bd-8dd8-de719b9de3b3", - "status": "Running", - "startTime": "2024-01-24T21:14:58.472Z" - } - } - } -} diff --git a/specification/devcenter/DevCenter/Environments/main.tsp b/specification/devcenter/DevCenter/Environments/main.tsp deleted file mode 100644 index 5f87a9f6ce2e..000000000000 --- a/specification/devcenter/DevCenter/Environments/main.tsp +++ /dev/null @@ -1,12 +0,0 @@ -import "@typespec/rest"; -import "@typespec/http"; -import "@azure-tools/typespec-azure-core"; -import "../service.tsp"; -import "./routes.tsp"; - -using Azure.Core; -using TypeSpec.Versioning; -using TypeSpec.Rest; -using TypeSpec.Http; - -namespace DevCenterService; diff --git a/specification/devcenter/DevCenter/Environments/tspconfig.yaml b/specification/devcenter/DevCenter/Environments/tspconfig.yaml deleted file mode 100644 index 0431ef35294e..000000000000 --- a/specification/devcenter/DevCenter/Environments/tspconfig.yaml +++ /dev/null @@ -1,12 +0,0 @@ -emit: [ - "@azure-tools/typespec-autorest", -] -linter: - extends: - - "@azure-tools/typespec-azure-core/all" -options: - "@azure-tools/typespec-autorest": - azure-resource-provider-folder: "data-plane" - emitter-output-dir: "{project-root}/../.." - output-file: "{azure-resource-provider-folder}/Microsoft.DevCenter/{version-status}/{version}/environments.json" - examples-directory: "examples" \ No newline at end of file diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 8530a83d4941..18391217d5d0 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -1,4 +1,3 @@ -import "./service.tsp"; import "./Environments/routes.tsp"; import "./DevCenter/routes.tsp"; import "./DevBox/routes.tsp"; diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxes.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DelayAction.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAction.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DelayAction.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAction.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBox.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBox.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBox.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetPool.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetPool.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetPool.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetPool.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetSchedule.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetSchedule.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_GetSchedule.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetSchedule.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListPools.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListPools.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListPools.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListPools.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListSchedules.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListSchedules.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_ListSchedules.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListSchedules.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_SkipAction.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_SkipAction.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_SkipAction.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_SkipAction.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_StartDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StartDevBox.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_StartDevBox.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StartDevBox.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_StopDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StopDevBox.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/DevBoxesOperations_StopDevBox.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StopDevBox.json diff --git a/specification/devcenter/DevCenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json similarity index 100% rename from specification/devcenter/DevCenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json diff --git a/specification/devcenter/DevCenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json similarity index 100% rename from specification/devcenter/DevCenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json rename to specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json similarity index 100% rename from specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json rename to specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json similarity index 100% rename from specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json rename to specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json similarity index 100% rename from specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json rename to specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json similarity index 100% rename from specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json rename to specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json similarity index 100% rename from specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json rename to specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json similarity index 100% rename from specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json rename to specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json similarity index 100% rename from specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json rename to specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json similarity index 100% rename from specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json rename to specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json similarity index 100% rename from specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json rename to specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json similarity index 100% rename from specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json rename to specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json diff --git a/specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json similarity index 100% rename from specification/devcenter/DevCenter/Environments/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json rename to specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json diff --git a/specification/devcenter/DevCenter/DevBox/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json b/specification/devcenter/DevCenter/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json similarity index 100% rename from specification/devcenter/DevCenter/DevBox/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json rename to specification/devcenter/DevCenter/examples/2023-04-01/SharedOperations_GetProjectOperationStatus.json diff --git a/specification/devcenter/DevCenter/service.tsp b/specification/devcenter/DevCenter/main.tsp similarity index 89% rename from specification/devcenter/DevCenter/service.tsp rename to specification/devcenter/DevCenter/main.tsp index dadeb0d979a2..d51242bb7df3 100644 --- a/specification/devcenter/DevCenter/service.tsp +++ b/specification/devcenter/DevCenter/main.tsp @@ -1,6 +1,9 @@ import "@typespec/rest"; import "@typespec/http"; import "@azure-tools/typespec-azure-core"; +import "./DevBox/routes.tsp"; +import "./DevCenter/routes.tsp"; +import "./Environments/routes.tsp"; using Azure.Core; using TypeSpec.Versioning; diff --git a/specification/devcenter/DevCenter/python-client.tsp b/specification/devcenter/DevCenter/python-client.tsp index 92e156fb8dc8..287a658cbe72 100644 --- a/specification/devcenter/DevCenter/python-client.tsp +++ b/specification/devcenter/DevCenter/python-client.tsp @@ -1,4 +1,3 @@ -import "./service.tsp"; import "./environments/routes.tsp"; import "./devcenter/routes.tsp"; import "./devbox/routes.tsp"; diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index 86027c83e54c..bce3393576c7 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -1,7 +1,7 @@ import "@typespec/rest"; import "@typespec/http"; import "@azure-tools/typespec-azure-core"; -import "../service.tsp"; +import "../main.tsp"; using Azure.Core; using TypeSpec.Rest; diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index d456f576d7fc..65f395238ea1 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -1,10 +1,18 @@ parameters: service-dir: default: "sdk/devcenter" +emit: [ + "@azure-tools/typespec-autorest", +] linter: extends: - "@azure-tools/typespec-azure-core/all" options: + "@azure-tools/typespec-autorest": + azure-resource-provider-folder: "data-plane" + emitter-output-dir: "{project-root}/.." + output-file: "{azure-resource-provider-folder}/Microsoft.DevCenter/{version-status}/{version}/devcenter.json" + examples-directory: "examples" "@azure-tools/typespec-csharp": package-dir: "Azure.Developer.DevCenter" namespace: "{package-dir}" diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json deleted file mode 100644 index 3f47f287ba78..000000000000 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json +++ /dev/null @@ -1,2590 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "DevCenter", - "version": "2023-04-01", - "description": "DevCenter service", - "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 DevCenter-specific URI to operate on.", - "required": true, - "type": "string" - } - ] - }, - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ], - "security": [ - { - "OAuth2Auth": [ - "https://devcenter.azure.com/.default" - ] - } - ], - "securityDefinitions": { - "OAuth2Auth": { - "type": "oauth2", - "flow": "implicit", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "scopes": { - "https://devcenter.azure.com/.default": "" - } - } - }, - "tags": [], - "paths": { - "/devboxes": { - "get": { - "operationId": "DevBoxesDevCenter_ListAllDevBoxes", - "description": "Lists Dev Boxes that the caller has access to in the DevCenter.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBox" - } - }, - "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": { - "Lists Dev Boxes that the caller has access to in the DevCenter.": { - "$ref": "./examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/operationstatuses/{operationId}": { - "get": { - "operationId": "SharedOperations_GetProjectOperationStatus", - "description": "Get the status of an operation.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "operationId", - "in": "path", - "description": "Fully qualified ID for the operation status.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "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": { - "Get the status of an operation.": { - "$ref": "./examples/SharedOperations_GetProjectOperationStatus.json" - } - } - } - }, - "/projects/{projectName}/pools": { - "get": { - "operationId": "DevBoxes_ListPools", - "description": "Lists available pools", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedPool" - } - }, - "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": { - "Lists available pools": { - "$ref": "./examples/DevBoxesOperations_ListPools.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/pools/{poolName}": { - "get": { - "operationId": "DevBoxes_GetPool", - "description": "Gets a pool", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "poolName", - "in": "path", - "description": "Pool name", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Pool" - } - }, - "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": { - "Gets a pool": { - "$ref": "./examples/DevBoxesOperations_GetPool.json" - } - } - } - }, - "/projects/{projectName}/pools/{poolName}/schedules": { - "get": { - "operationId": "DevBoxes_ListSchedules", - "description": "Lists available schedules for a pool.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "poolName", - "in": "path", - "description": "Pool name", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedSchedule" - } - }, - "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": { - "Lists available schedules for a pool.": { - "$ref": "./examples/DevBoxesOperations_ListSchedules.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { - "get": { - "operationId": "DevBoxes_GetSchedule", - "description": "Gets a schedule.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "poolName", - "in": "path", - "description": "Pool name", - "required": true, - "type": "string" - }, - { - "name": "scheduleName", - "in": "path", - "description": "Display name for the Schedule", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "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": { - "Gets a schedule.": { - "$ref": "./examples/DevBoxesOperations_GetSchedule.json" - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes": { - "get": { - "operationId": "DevBoxes_ListDevBoxes", - "description": "Lists Dev Boxes in the project for a particular user.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBox" - } - }, - "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": { - "Lists Dev Boxes in the project for a particular user.": { - "$ref": "./examples/DevBoxesOperations_ListDevBoxes.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}": { - "get": { - "operationId": "DevBoxes_GetDevBox", - "description": "Gets a Dev Box", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", - "required": true, - "type": "string", - "minLength": 2, - "maxLength": 36, - "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" - }, - { - "name": "devBoxName", - "in": "path", - "description": "Display name for the Dev Box", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBox" - } - }, - "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": { - "Gets a Dev Box": { - "$ref": "./examples/DevBoxesOperations_GetDevBox.json" - } - } - }, - "put": { - "operationId": "DevBoxes_CreateDevBox", - "description": "Creates or replaces a Dev Box.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute the operation.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "description": "Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator", - "required": true, - "schema": { - "$ref": "#/definitions/DevBox" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBox" - } - }, - "201": { - "description": "The request has succeeded and a new resource has been created as a result.", - "schema": { - "$ref": "#/definitions/DevBox" - }, - "headers": { - "Location": { - "type": "string", - "format": "uri", - "description": "The location of an instance of DevBox" - }, - "Operation-Location": { - "type": "string" - } - } - }, - "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": { - "Creates or replaces a Dev Box.": { - "$ref": "./examples/DevBoxesOperations_CreateDevBox.json" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "operationId": "DevBoxes_DeleteDevBox", - "description": "Deletes a Dev Box.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "202": { - "description": "The request has been accepted for processing, but processing has not yet completed.", - "schema": { - "$ref": "#/definitions/OperationStatus" - }, - "headers": { - "Location": { - "type": "string" - }, - "Operation-Location": { - "type": "string" - } - } - }, - "204": { - "description": "There is no content to send for this request, but the headers may be useful. " - }, - "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": { - "Deletes a Dev Box.": { - "$ref": "./examples/DevBoxesOperations_DeleteDevBox.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start": { - "post": { - "operationId": "DevBoxes_StartDevBox", - "description": "Starts a Dev Box", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", - "required": true, - "type": "string", - "minLength": 2, - "maxLength": 36, - "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" - }, - { - "name": "devBoxName", - "in": "path", - "description": "Display name for the Dev Box", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - } - ], - "responses": { - "202": { - "description": "The request has been accepted for processing, but processing has not yet completed.", - "schema": { - "$ref": "#/definitions/OperationStatus" - }, - "headers": { - "Operation-Location": { - "type": "string", - "format": "uri", - "description": "The location for monitoring the operation state." - } - } - }, - "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": { - "Starts a Dev Box": { - "$ref": "./examples/DevBoxesOperations_StartDevBox.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop": { - "post": { - "operationId": "DevBoxes_StopDevBox", - "description": "Stops a Dev Box", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", - "required": true, - "type": "string", - "minLength": 2, - "maxLength": 36, - "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" - }, - { - "name": "devBoxName", - "in": "path", - "description": "Display name for the Dev Box", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "hibernate", - "in": "query", - "description": "Optional parameter to hibernate the dev box.", - "required": false, - "type": "boolean" - } - ], - "responses": { - "202": { - "description": "The request has been accepted for processing, but processing has not yet completed.", - "schema": { - "$ref": "#/definitions/OperationStatus" - }, - "headers": { - "Operation-Location": { - "type": "string", - "format": "uri", - "description": "The location for monitoring the operation state." - } - } - }, - "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": { - "Stops a Dev Box": { - "$ref": "./examples/DevBoxesOperations_StopDevBox.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart": { - "post": { - "operationId": "DevBoxes_RestartDevBox", - "description": "Restarts a Dev Box", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", - "required": true, - "type": "string", - "minLength": 2, - "maxLength": 36, - "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" - }, - { - "name": "devBoxName", - "in": "path", - "description": "Display name for the Dev Box", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - } - ], - "responses": { - "202": { - "description": "The request has been accepted for processing, but processing has not yet completed.", - "schema": { - "$ref": "#/definitions/OperationStatus" - }, - "headers": { - "Operation-Location": { - "type": "string", - "format": "uri", - "description": "The location for monitoring the operation state." - } - } - }, - "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": { - "Restarts a Dev Box": { - "$ref": "./examples/DevBoxesOperations_RestartDevBox.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions": { - "get": { - "operationId": "DevBoxes_ListDevBoxActions", - "description": "Lists actions on a Dev Box.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", - "required": true, - "type": "string", - "minLength": 2, - "maxLength": 36, - "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" - }, - { - "name": "devBoxName", - "in": "path", - "description": "Display name for the Dev Box", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBoxAction" - } - }, - "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": { - "Lists actions on a Dev Box.": { - "$ref": "./examples/DevBoxesOperations_ListDevBoxActions.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}": { - "get": { - "operationId": "DevBoxes_GetDevBoxAction", - "description": "Gets an action.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", - "required": true, - "type": "string", - "minLength": 2, - "maxLength": 36, - "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" - }, - { - "name": "devBoxName", - "in": "path", - "description": "Display name for the Dev Box", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "actionName", - "in": "path", - "description": "The name of the action.", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBoxAction" - } - }, - "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": { - "Gets an action.": { - "$ref": "./examples/DevBoxesOperations_GetDevBoxAction.json" - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip": { - "post": { - "operationId": "DevBoxes_SkipAction", - "description": "Skips an occurrence of an action.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", - "required": true, - "type": "string", - "minLength": 2, - "maxLength": 36, - "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" - }, - { - "name": "devBoxName", - "in": "path", - "description": "Display name for the Dev Box", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "actionName", - "in": "path", - "description": "The name of the action.", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - } - ], - "responses": { - "204": { - "description": "There is no content to send for this request, but the headers may be useful. " - }, - "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": { - "Skips an occurrence of an action.": { - "$ref": "./examples/DevBoxesOperations_SkipAction.json" - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay": { - "post": { - "operationId": "DevBoxes_DelayAction", - "description": "Delays the occurrence of an action.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", - "required": true, - "type": "string", - "minLength": 2, - "maxLength": 36, - "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" - }, - { - "name": "devBoxName", - "in": "path", - "description": "Display name for the Dev Box", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "actionName", - "in": "path", - "description": "The name of the action.", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "until", - "in": "query", - "description": "The time to delay the Dev Box action or actions until.", - "required": true, - "type": "string", - "format": "date-time", - "x-ms-client-name": "delayUntil" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBoxAction" - } - }, - "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": { - "Delays the occurrence of an action.": { - "$ref": "./examples/DevBoxesOperations_DelayAction.json" - } - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay": { - "post": { - "operationId": "DevBoxes_DelayAllActions", - "description": "Delays all actions.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", - "required": true, - "type": "string", - "minLength": 2, - "maxLength": 36, - "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" - }, - { - "name": "devBoxName", - "in": "path", - "description": "Display name for the Dev Box", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "until", - "in": "query", - "description": "The time to delay the Dev Box action or actions until.", - "required": true, - "type": "string", - "format": "date-time", - "x-ms-client-name": "delayUntil" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBoxActionDelayResult" - } - }, - "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": { - "Delays all actions.": { - "$ref": "./examples/DevBoxesOperations_DelayAllActions.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection": { - "get": { - "operationId": "DevBoxes_GetRemoteConnection", - "description": "Gets RDP Connection info", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "devBoxName", - "in": "path", - "description": "The name of a Dev Box.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/RemoteConnection" - } - }, - "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": { - "Gets RDP Connection info": { - "$ref": "./examples/DevBoxesOperations_GetRemoteConnection.json" - } - } - } - }, - "/users/{userId}/devboxes": { - "get": { - "operationId": "DevBoxesDevCenter_ListAllDevBoxesByUser", - "description": "Lists Dev Boxes in the Dev Center for a particular user.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedDevBox" - } - }, - "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": { - "Lists Dev Boxes in the Dev Center for a particular user.": { - "$ref": "./examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "APIVersions": { - "type": "string", - "description": "DevCenter API versions", - "enum": [ - "2023-04-01" - ], - "x-ms-enum": { - "name": "APIVersions", - "modelAsString": true, - "values": [ - { - "name": "v2023_04_01", - "value": "2023-04-01", - "description": "The 2023-04-01 service API version" - } - ] - } - }, - "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." - } - } - }, - "Azure.Core.uuid": { - "type": "string", - "format": "uuid", - "description": "Universally Unique Identifier" - }, - "DevBox": { - "type": "object", - "description": "A Dev Box", - "properties": { - "name": { - "type": "string", - "description": "Display name for the Dev Box", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "readOnly": true - }, - "projectName": { - "type": "string", - "description": "Name of the project this Dev Box belongs to", - "readOnly": true - }, - "poolName": { - "type": "string", - "description": "The name of the Dev Box pool this machine belongs to.", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "hibernateSupport": { - "$ref": "#/definitions/HibernateSupport", - "description": "Indicates whether hibernate is enabled/disabled or unknown.", - "readOnly": true - }, - "provisioningState": { - "$ref": "#/definitions/DevBoxProvisioningState", - "description": "The current provisioning state of the Dev Box.", - "readOnly": true - }, - "actionState": { - "type": "string", - "description": "The current action state of the Dev Box. This is state is based on previous\naction performed by user.", - "readOnly": true - }, - "powerState": { - "type": "string", - "description": "The current power state of the Dev Box.", - "default": "Unknown", - "enum": [ - "Unknown", - "Running", - "Deallocated", - "PoweredOff", - "Hibernated" - ], - "x-ms-enum": { - "name": "PowerState", - "modelAsString": true, - "values": [ - { - "name": "Unknown", - "value": "Unknown", - "description": "The Dev Box power state is not known." - }, - { - "name": "Running", - "value": "Running", - "description": "The Dev Box is running." - }, - { - "name": "Deallocated", - "value": "Deallocated", - "description": "The Dev Box is deallocated." - }, - { - "name": "PoweredOff", - "value": "PoweredOff", - "description": "The Dev Box is powered off." - }, - { - "name": "Hibernated", - "value": "Hibernated", - "description": "The Dev Box is hibernated." - } - ] - }, - "readOnly": true - }, - "uniqueId": { - "$ref": "#/definitions/Azure.Core.uuid", - "description": "A unique identifier for the Dev Box. This is a GUID-formatted string (e.g.\n00000000-0000-0000-0000-000000000000).", - "readOnly": true - }, - "error": { - "$ref": "#/definitions/Azure.Core.Foundations.Error", - "description": "Provisioning or action error details. Populated only for error states.", - "readOnly": true - }, - "location": { - "type": "string", - "description": "Azure region where this Dev Box is located. This will be the same region as the\nVirtual Network it is attached to.", - "readOnly": true - }, - "osType": { - "$ref": "#/definitions/OsType", - "description": "The operating system type of this Dev Box.", - "readOnly": true - }, - "user": { - "$ref": "#/definitions/Azure.Core.uuid", - "description": "The AAD object id of the user this Dev Box is assigned to.", - "readOnly": true - }, - "hardwareProfile": { - "$ref": "#/definitions/HardwareProfile", - "description": "Information about the Dev Box's hardware resources", - "readOnly": true - }, - "storageProfile": { - "$ref": "#/definitions/StorageProfile", - "description": "Storage settings for this Dev Box", - "readOnly": true - }, - "imageReference": { - "$ref": "#/definitions/ImageReference", - "description": "Information about the image used for this Dev Box", - "readOnly": true - }, - "createdTime": { - "type": "string", - "format": "date-time", - "description": "Creation time of this Dev Box", - "readOnly": true - }, - "localAdministrator": { - "$ref": "#/definitions/LocalAdminStatus", - "description": "Indicates whether the owner of the Dev Box is a local administrator.", - "x-ms-mutability": [ - "read", - "create" - ] - } - }, - "required": [ - "name", - "poolName" - ] - }, - "DevBoxAction": { - "type": "object", - "description": "An action which will take place on a Dev Box.", - "properties": { - "name": { - "type": "string", - "description": "The name of the action.", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "readOnly": true - }, - "actionType": { - "$ref": "#/definitions/DevBoxActionType", - "description": "The action that will be taken." - }, - "sourceId": { - "type": "string", - "description": "The id of the resource which triggered this action" - }, - "suspendedUntil": { - "type": "string", - "format": "date-time", - "description": "The earliest time that the action could occur (UTC)." - }, - "next": { - "$ref": "#/definitions/DevBoxNextAction", - "description": "Details about the next run of this action." - } - }, - "required": [ - "name", - "actionType", - "sourceId" - ] - }, - "DevBoxActionDelayResult": { - "type": "object", - "description": "The action delay result", - "properties": { - "name": { - "type": "string", - "description": "The name of the action." - }, - "result": { - "$ref": "#/definitions/DevBoxActionDelayResultStatus", - "description": "The result of the delay operation on this action." - }, - "action": { - "$ref": "#/definitions/DevBoxAction", - "description": "The delayed action" - }, - "error": { - "$ref": "#/definitions/Azure.Core.Foundations.Error", - "description": "Information about the error that occurred. Only populated on error." - } - }, - "required": [ - "name", - "result" - ] - }, - "DevBoxActionDelayResultStatus": { - "type": "string", - "description": "The result of the delay operation on this action.", - "enum": [ - "Succeeded", - "Failed" - ], - "x-ms-enum": { - "name": "DevBoxActionDelayResultStatus", - "modelAsString": true, - "values": [ - { - "name": "Succeeded", - "value": "Succeeded", - "description": "The delay operation succeeded." - }, - { - "name": "Failed", - "value": "Failed", - "description": "The delay operation failed." - } - ] - } - }, - "DevBoxActionType": { - "type": "string", - "description": "The type of action which will take place on a Dev Box.", - "enum": [ - "Stop" - ], - "x-ms-enum": { - "name": "DevBoxActionType", - "modelAsString": true, - "values": [ - { - "name": "Stop", - "value": "Stop", - "description": "The action will stop the Dev Box." - } - ] - } - }, - "DevBoxNextAction": { - "type": "object", - "description": "Details about the next run of an action.", - "properties": { - "scheduledTime": { - "type": "string", - "format": "date-time", - "description": "The time the action will be triggered (UTC)." - } - }, - "required": [ - "scheduledTime" - ] - }, - "DevBoxProvisioningState": { - "type": "string", - "description": "Indicates the provisioning state of the Dev Box.", - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "Creating", - "Deleting", - "Updating", - "Starting", - "Stopping", - "Provisioning", - "ProvisionedWithWarning", - "InGracePeriod", - "NotProvisioned" - ], - "x-ms-enum": { - "name": "DevBoxProvisioningState", - "modelAsString": true, - "values": [ - { - "name": "Succeeded", - "value": "Succeeded", - "description": "Dev Box was successfully provisioned" - }, - { - "name": "Failed", - "value": "Failed", - "description": "Dev Box failed to provision" - }, - { - "name": "Canceled", - "value": "Canceled", - "description": "Dev Box provision was canceled" - }, - { - "name": "Creating", - "value": "Creating", - "description": "Dev Box is being created" - }, - { - "name": "Deleting", - "value": "Deleting", - "description": "Dev Box is being deleted" - }, - { - "name": "Updating", - "value": "Updating", - "description": "Dev Box is updating" - }, - { - "name": "Starting", - "value": "Starting", - "description": "Dev Box is starting" - }, - { - "name": "Stopping", - "value": "Stopping", - "description": "Dev Box is stopping" - }, - { - "name": "Provisioning", - "value": "Provisioning", - "description": "Dev Box is provisioning" - }, - { - "name": "ProvisionedWithWarning", - "value": "ProvisionedWithWarning", - "description": "Dev Box was provisioned with warning" - }, - { - "name": "InGracePeriod", - "value": "InGracePeriod", - "description": "Dev Box is in grace period" - }, - { - "name": "NotProvisioned", - "value": "NotProvisioned", - "description": "Dev Box is not provisioned" - } - ] - } - }, - "HardwareProfile": { - "type": "object", - "description": "Hardware specifications for the Dev Box.", - "properties": { - "skuName": { - "$ref": "#/definitions/SkuName", - "description": "The name of the SKU", - "readOnly": true - }, - "vCPUs": { - "type": "integer", - "format": "int32", - "description": "The number of vCPUs available for the Dev Box.", - "readOnly": true - }, - "memoryGB": { - "type": "integer", - "format": "int32", - "description": "The amount of memory available for the Dev Box.", - "readOnly": true - } - } - }, - "HibernateSupport": { - "type": "string", - "description": "Indicates whether hibernate is supported and enabled, disabled, or unsupported by the operating system. Unknown hibernate support is represented as null.", - "enum": [ - "Enabled", - "Disabled", - "OsUnsupported" - ], - "x-ms-enum": { - "name": "HibernateSupport", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "Hibernate is enabled." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "Hibernate is not enabled." - }, - { - "name": "OsUnsupported", - "value": "OsUnsupported", - "description": "Hibernate is not supported by the operating system." - } - ] - } - }, - "ImageReference": { - "type": "object", - "description": "Specifies information about the image used", - "properties": { - "name": { - "type": "string", - "description": "The name of the image used.", - "readOnly": true - }, - "version": { - "type": "string", - "description": "The version of the image.", - "readOnly": true - }, - "operatingSystem": { - "type": "string", - "description": "The operating system of the image.", - "readOnly": true - }, - "osBuildNumber": { - "type": "string", - "description": "The operating system build number of the image.", - "readOnly": true - }, - "publishedDate": { - "type": "string", - "format": "date-time", - "description": "The datetime that the backing image version was published.", - "readOnly": true - } - } - }, - "LocalAdminStatus": { - "type": "string", - "description": "Indicates whether owners of Dev Boxes in a pool are local administrators on the Dev Boxes.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "LocalAdminStatus", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "Owners of Dev Boxes in the pool are local administrators on the Dev Boxes." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes." - } - ] - } - }, - "OperationStatus": { - "type": "object", - "description": "The current status of an async operation", - "properties": { - "id": { - "type": "string", - "description": "Fully qualified ID for the operation status.", - "readOnly": true - }, - "name": { - "type": "string", - "description": "The operation id name" - }, - "status": { - "$ref": "#/definitions/OperationStatusValue", - "description": "Provisioning state of the resource." - }, - "resourceId": { - "type": "string", - "description": "The id of the resource." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the operation" - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the operation" - }, - "percentComplete": { - "type": "number", - "format": "double", - "description": "Percent of the operation that is complete", - "minimum": 0, - "maximum": 100 - }, - "properties": { - "description": "Custom operation properties, populated only for a successful operation." - }, - "error": { - "$ref": "#/definitions/Azure.Core.Foundations.Error", - "description": "Operation Error message" - } - }, - "required": [ - "id", - "status" - ] - }, - "OperationStatusValue": { - "type": "string", - "description": "Indicates whether operation status is running, completed, canceled or failed.", - "enum": [ - "Running", - "Completed", - "Canceled", - "Failed" - ], - "x-ms-enum": { - "name": "OperationStatusValue", - "modelAsString": true, - "values": [ - { - "name": "Running", - "value": "Running", - "description": "Operation is in progress" - }, - { - "name": "Completed", - "value": "Completed", - "description": "Operation is completed with success" - }, - { - "name": "Canceled", - "value": "Canceled", - "description": "Operation was canceled" - }, - { - "name": "Failed", - "value": "Failed", - "description": "Operation failed" - } - ] - } - }, - "OsDisk": { - "type": "object", - "description": "Settings for the operating system disk.", - "properties": { - "diskSizeGB": { - "type": "integer", - "format": "int32", - "description": "The size of the OS Disk in gigabytes.", - "readOnly": true - } - } - }, - "OsType": { - "type": "string", - "description": "The operating system type.", - "enum": [ - "Windows" - ], - "x-ms-enum": { - "name": "OsType", - "modelAsString": true, - "values": [ - { - "name": "Windows", - "value": "Windows", - "description": "The Windows operating system." - } - ] - } - }, - "PagedDevBox": { - "type": "object", - "description": "The Dev Box list result", - "properties": { - "value": { - "type": "array", - "description": "The DevBox items on this page", - "items": { - "$ref": "#/definitions/DevBox" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedDevBoxAction": { - "type": "object", - "description": "Paged collection of DevBoxAction items", - "properties": { - "value": { - "type": "array", - "description": "The DevBoxAction items on this page", - "items": { - "$ref": "#/definitions/DevBoxAction" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedDevBoxActionDelayResult": { - "type": "object", - "description": "The actions list result", - "properties": { - "value": { - "type": "array", - "description": "The DevBoxActionDelayResult items on this page", - "items": { - "$ref": "#/definitions/DevBoxActionDelayResult" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedPool": { - "type": "object", - "description": "Paged collection of Pool items", - "properties": { - "value": { - "type": "array", - "description": "The Pool items on this page", - "items": { - "$ref": "#/definitions/Pool" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedSchedule": { - "type": "object", - "description": "Paged collection of Schedule items", - "properties": { - "value": { - "type": "array", - "description": "The Schedule items on this page", - "items": { - "$ref": "#/definitions/Schedule" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "Pool": { - "type": "object", - "description": "A pool of Dev Boxes.", - "properties": { - "name": { - "type": "string", - "description": "Pool name", - "readOnly": true - }, - "location": { - "type": "string", - "description": "Azure region where Dev Boxes in the pool are located" - }, - "osType": { - "$ref": "#/definitions/OsType", - "description": "The operating system type of Dev Boxes in this pool" - }, - "hardwareProfile": { - "$ref": "#/definitions/HardwareProfile", - "description": "Hardware settings for the Dev Boxes created in this pool" - }, - "hibernateSupport": { - "$ref": "#/definitions/HibernateSupport", - "description": "Indicates whether hibernate is enabled/disabled or unknown." - }, - "storageProfile": { - "$ref": "#/definitions/StorageProfile", - "description": "Storage settings for Dev Box created in this pool" - }, - "imageReference": { - "$ref": "#/definitions/ImageReference", - "description": "Image settings for Dev Boxes create in this pool" - }, - "localAdministrator": { - "$ref": "#/definitions/LocalAdminStatus", - "description": "Indicates whether owners of Dev Boxes in this pool are local administrators on\nthe Dev Boxes." - }, - "stopOnDisconnect": { - "$ref": "#/definitions/StopOnDisconnectConfiguration", - "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool." - }, - "healthStatus": { - "$ref": "#/definitions/PoolHealthStatus", - "description": "Overall health status of the Pool. Indicates whether or not the Pool is\navailable to create Dev Boxes." - } - }, - "required": [ - "name", - "location", - "healthStatus" - ] - }, - "PoolHealthStatus": { - "type": "string", - "description": "Pool status indicating whether a pool is available to create Dev Boxes.", - "enum": [ - "Unknown", - "Pending", - "Healthy", - "Warning", - "Unhealthy" - ], - "x-ms-enum": { - "name": "PoolHealthStatus", - "modelAsString": true, - "values": [ - { - "name": "Unknown", - "value": "Unknown", - "description": "The pool health status is not known." - }, - { - "name": "Pending", - "value": "Pending", - "description": "The pool health status waiting for health checks to run." - }, - { - "name": "Healthy", - "value": "Healthy", - "description": "The pool health status is healthy." - }, - { - "name": "Warning", - "value": "Warning", - "description": "The pool health status has one or more warnings." - }, - { - "name": "Unhealthy", - "value": "Unhealthy", - "description": "The pool health status is not healthy." - } - ] - } - }, - "PowerState": { - "type": "string", - "description": "The power states of a Dev Box.", - "enum": [ - "Unknown", - "Running", - "Deallocated", - "PoweredOff", - "Hibernated" - ], - "x-ms-enum": { - "name": "PowerState", - "modelAsString": true, - "values": [ - { - "name": "Unknown", - "value": "Unknown", - "description": "The Dev Box power state is not known." - }, - { - "name": "Running", - "value": "Running", - "description": "The Dev Box is running." - }, - { - "name": "Deallocated", - "value": "Deallocated", - "description": "The Dev Box is deallocated." - }, - { - "name": "PoweredOff", - "value": "PoweredOff", - "description": "The Dev Box is powered off." - }, - { - "name": "Hibernated", - "value": "Hibernated", - "description": "The Dev Box is hibernated." - } - ] - } - }, - "Project": { - "type": "object", - "description": "Project details.", - "properties": { - "name": { - "type": "string", - "description": "Name of the project", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "readOnly": true - }, - "description": { - "type": "string", - "description": "Description of the project." - }, - "maxDevBoxesPerUser": { - "type": "integer", - "format": "int32", - "description": "When specified, indicates the maximum number of Dev Boxes a single user can\ncreate across all pools in the project.", - "minimum": 0 - } - }, - "required": [ - "name" - ] - }, - "RemoteConnection": { - "type": "object", - "description": "Provides remote connection information for a Dev Box.", - "properties": { - "webUrl": { - "type": "string", - "format": "uri", - "description": "URL to open a browser based RDP session." - }, - "rdpConnectionUrl": { - "type": "string", - "format": "uri", - "description": "Link to open a Remote Desktop session." - } - } - }, - "Schedule": { - "type": "object", - "description": "A Schedule to execute action.", - "properties": { - "name": { - "type": "string", - "description": "Display name for the Schedule", - "readOnly": true - }, - "type": { - "$ref": "#/definitions/ScheduledType", - "description": "Supported type this scheduled task represents." - }, - "frequency": { - "$ref": "#/definitions/ScheduledFrequency", - "description": "The frequency of this scheduled task." - }, - "time": { - "type": "string", - "description": "The target time to trigger the action. The format is HH:MM." - }, - "timeZone": { - "type": "string", - "description": "The IANA timezone id at which the schedule should execute." - } - }, - "required": [ - "name", - "type", - "frequency", - "time", - "timeZone" - ] - }, - "ScheduledFrequency": { - "type": "string", - "description": "The frequency of task execution.", - "enum": [ - "Daily" - ], - "x-ms-enum": { - "name": "ScheduledFrequency", - "modelAsString": true, - "values": [ - { - "name": "Daily", - "value": "Daily", - "description": "The scheduled task will run every day." - } - ] - } - }, - "ScheduledType": { - "type": "string", - "description": "The supported types for a scheduled task.", - "enum": [ - "StopDevBox" - ], - "x-ms-enum": { - "name": "ScheduledType", - "modelAsString": true, - "values": [ - { - "name": "StopDevBox", - "value": "StopDevBox", - "description": "The scheduled task will stop impacted Dev Boxes." - } - ] - } - }, - "SkuName": { - "type": "string", - "description": "Indicates the Dev Box compute.", - "enum": [ - "general_i_8c32gb256ssd_v2", - "general_i_8c32gb512ssd_v2", - "general_i_8c32gb1024ssd_v2", - "general_i_8c32gb2048ssd_v2", - "general_i_16c64gb256ssd_v2", - "general_i_16c64gb512ssd_v2", - "general_i_16c64gb1024ssd_v2", - "general_i_16c64gb2048ssd_v2", - "general_i_32c128gb512ssd_v2", - "general_i_32c128gb1024ssd_v2", - "general_i_32c128gb2048ssd_v2", - "general_a_8c32gb256ssd_v2", - "general_a_8c32gb512ssd_v2", - "general_a_8c32gb1024ssd_v2", - "general_a_8c32gb2048ssd_v2", - "general_a_16c64gb256ssd_v2", - "general_a_16c64gb512ssd_v2", - "general_a_16c64gb1024ssd_v2", - "general_a_16c64gb2048ssd_v2", - "general_a_32c128gb512ssd_v2", - "general_a_32c128gb1024ssd_v2", - "general_a_32c128gb2048ssd_v2" - ], - "x-ms-enum": { - "name": "SkuName", - "modelAsString": true, - "values": [ - { - "name": "general_i_8c32gb256ssd_v2", - "value": "general_i_8c32gb256ssd_v2", - "description": "Intel, 8 vCPU, 32 GB RAM, 256 GB Storage" - }, - { - "name": "general_i_8c32gb512ssd_v2", - "value": "general_i_8c32gb512ssd_v2", - "description": "Intel, 8 vCPU, 32 GB RAM, 512 GB Storage" - }, - { - "name": "general_i_8c32gb1024ssd_v2", - "value": "general_i_8c32gb1024ssd_v2", - "description": "Intel, 8 vCPU, 32 GB RAM, 1024 GB Storage" - }, - { - "name": "general_i_8c32gb2048ssd_v2", - "value": "general_i_8c32gb2048ssd_v2", - "description": "Intel, 8 vCPU, 32 GB RAM, 2048 GB Storage" - }, - { - "name": "general_i_16c64gb256ssd_v2", - "value": "general_i_16c64gb256ssd_v2", - "description": "Intel, 16 vCPU, 64 GB RAM, 256 GB Storage" - }, - { - "name": "general_i_16c64gb512ssd_v2", - "value": "general_i_16c64gb512ssd_v2", - "description": "Intel, 16 vCPU, 64 GB RAM, 512 GB Storage" - }, - { - "name": "general_i_16c64gb1024ssd_v2", - "value": "general_i_16c64gb1024ssd_v2", - "description": "Intel, 16 vCPU, 64 GB RAM, 1024 GB Storage" - }, - { - "name": "general_i_16c64gb2048ssd_v2", - "value": "general_i_16c64gb2048ssd_v2", - "description": "Intel, 16 vCPU, 64 GB RAM, 2048 GB Storage" - }, - { - "name": "general_i_32c128gb512ssd_v2", - "value": "general_i_32c128gb512ssd_v2", - "description": "Intel, 32 vCPU, 128 GB RAM, 512 GB Storage" - }, - { - "name": "general_i_32c128gb1024ssd_v2", - "value": "general_i_32c128gb1024ssd_v2", - "description": "Intel, 32 vCPU, 128 GB RAM, 1024 GB Storage" - }, - { - "name": "general_i_32c128gb2048ssd_v2", - "value": "general_i_32c128gb2048ssd_v2", - "description": "Intel, 32 vCPU, 128 GB RAM, 2048 GB Storage" - }, - { - "name": "general_a_8c32gb256ssd_v2", - "value": "general_a_8c32gb256ssd_v2", - "description": "AMD, 8 vCPU, 32 GB RAM, 256 GB Storage" - }, - { - "name": "general_a_8c32gb512ssd_v2", - "value": "general_a_8c32gb512ssd_v2", - "description": "AMD, 8 vCPU, 32 GB RAM, 512 GB Storage" - }, - { - "name": "general_a_8c32gb1024ssd_v2", - "value": "general_a_8c32gb1024ssd_v2", - "description": "AMD, 8 vCPU, 32 GB RAM, 1024 GB Storage" - }, - { - "name": "general_a_8c32gb2048ssd_v2", - "value": "general_a_8c32gb2048ssd_v2", - "description": "AMD, 8 vCPU, 32 GB RAM, 2048 GB Storage" - }, - { - "name": "general_a_16c64gb256ssd_v2", - "value": "general_a_16c64gb256ssd_v2", - "description": "AMD, 16 vCPU, 64 GB RAM, 256 GB Storage" - }, - { - "name": "general_a_16c64gb512ssd_v2", - "value": "general_a_16c64gb512ssd_v2", - "description": "AMD, 16 vCPU, 64 GB RAM, 512 GB Storage" - }, - { - "name": "general_a_16c64gb1024ssd_v2", - "value": "general_a_16c64gb1024ssd_v2", - "description": "AMD, 16 vCPU, 64 GB RAM, 1024 GB Storage" - }, - { - "name": "general_a_16c64gb2048ssd_v2", - "value": "general_a_16c64gb2048ssd_v2", - "description": "AMD, 16 vCPU, 64 GB RAM, 2048 GB Storage" - }, - { - "name": "general_a_32c128gb512ssd_v2", - "value": "general_a_32c128gb512ssd_v2", - "description": "AMD, 32 vCPU, 128 GB RAM, 512 GB Storage" - }, - { - "name": "general_a_32c128gb1024ssd_v2", - "value": "general_a_32c128gb1024ssd_v2", - "description": "AMD, 32 vCPU, 128 GB RAM, 1024 GB Storage" - }, - { - "name": "general_a_32c128gb2048ssd_v2", - "value": "general_a_32c128gb2048ssd_v2", - "description": "AMD, 32 vCPU, 128 GB RAM, 2048 GB Storage" - } - ] - } - }, - "StopOnDisconnectConfiguration": { - "type": "object", - "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", - "properties": { - "status": { - "$ref": "#/definitions/StopOnDisconnectEnableStatus", - "description": "Indicates whether the feature to stop the devbox on disconnect once the grace\nperiod has lapsed is enabled." - }, - "gracePeriodMinutes": { - "type": "integer", - "format": "int32", - "description": "The specified time in minutes to wait before stopping a Dev Box once disconnect\nis detected." - } - }, - "required": [ - "status" - ] - }, - "StopOnDisconnectEnableStatus": { - "type": "string", - "description": "Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "StopOnDisconnectEnableStatus", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "Stop on disconnect is enabled on the Dev Box." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "Stop on disconnect is not enabled on the Dev Box." - } - ] - } - }, - "StorageProfile": { - "type": "object", - "description": "Storage settings for the Dev Box's disks", - "properties": { - "osDisk": { - "$ref": "#/definitions/OsDisk", - "description": "Settings for the operating system disk." - } - } - }, - "User": { - "type": "object", - "description": "Project user", - "properties": { - "userId": { - "type": "string", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", - "minLength": 2, - "maxLength": 36, - "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$", - "readOnly": true - } - }, - "required": [ - "userId" - ] - } - }, - "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/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json index be926ad8387c..5e687aaf7fb9 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json @@ -51,6 +51,45 @@ }, "tags": [], "paths": { + "/devboxes": { + "get": { + "operationId": "DevBoxesDevCenter_ListAllDevBoxes", + "description": "Lists Dev Boxes that the caller has access to in the DevCenter.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBox" + } + }, + "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": { + "Lists Dev Boxes that the caller has access to in the DevCenter.": { + "$ref": "./examples/DevBoxesDevCenterOperations_ListAllDevBoxes.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/projects": { "get": { "operationId": "DevCenter_ListProjects", @@ -135,184 +174,3069 @@ } } } - } - }, - "definitions": { - "APIVersions": { - "type": "string", - "description": "DevCenter API versions", - "enum": [ - "2023-04-01" - ], - "x-ms-enum": { - "name": "APIVersions", - "modelAsString": true, - "values": [ + }, + "/projects/{projectName}/catalogs": { + "get": { + "operationId": "Environments_ListCatalogs", + "description": "Lists all of the catalogs available for a project.", + "parameters": [ { - "name": "v2023_04_01", - "value": "2023-04-01", - "description": "The 2023-04-01 service API version" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } - ] - } - }, - "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" + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedCatalog" + } }, - "x-ms-identifiers": [] + "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." + } + } + } }, - "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." + "x-ms-examples": { + "Lists all of the catalogs available for a project.": { + "$ref": "./examples/EnvironmentsOperations_ListCatalogs.json" + } }, - "innererror": { - "$ref": "#/definitions/Azure.Core.Foundations.InnerError", - "description": "Inner error." + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "OperationStatus": { - "type": "object", - "description": "The current status of an async operation", - "properties": { - "id": { - "type": "string", - "description": "Fully qualified ID for the operation status.", - "readOnly": true - }, - "name": { - "type": "string", - "description": "The operation id name" - }, - "status": { - "$ref": "#/definitions/OperationStatusValue", - "description": "Provisioning state of the resource." - }, - "resourceId": { - "type": "string", - "description": "The id of the resource." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the operation" - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the operation" - }, - "percentComplete": { - "type": "number", - "format": "double", - "description": "Percent of the operation that is complete", - "minimum": 0, - "maximum": 100 - }, - "properties": { - "description": "Custom operation properties, populated only for a successful operation." - }, - "error": { - "$ref": "#/definitions/Azure.Core.Foundations.Error", - "description": "Operation Error message" - } - }, - "required": [ - "id", - "status" - ] - }, - "OperationStatusValue": { - "type": "string", - "description": "Indicates whether operation status is running, completed, canceled or failed.", - "enum": [ - "Running", - "Completed", - "Canceled", - "Failed" - ], - "x-ms-enum": { - "name": "OperationStatusValue", - "modelAsString": true, - "values": [ - { - "name": "Running", - "value": "Running", - "description": "Operation is in progress" - }, + "/projects/{projectName}/catalogs/{catalogName}": { + "get": { + "operationId": "Environments_GetCatalog", + "description": "Gets the specified catalog within the project", + "parameters": [ { - "name": "Completed", - "value": "Completed", - "description": "Operation is completed with success" + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" }, { - "name": "Canceled", - "value": "Canceled", - "description": "Operation was canceled" + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "name": "Failed", - "value": "Failed", - "description": "Operation failed" + "name": "catalogName", + "in": "path", + "description": "Name of the catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } - ] - } - }, - "PagedProject": { - "type": "object", - "description": "Paged collection of Project items", - "properties": { - "value": { - "type": "array", - "description": "The Project items on this page", - "items": { - "$ref": "#/definitions/Project" + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Catalog" + } + }, + "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": { + "Gets the specified catalog within the project": { + "$ref": "./examples/EnvironmentsOperations_GetCatalog.json" + } + } + } + }, + "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { + "get": { + "operationId": "Environments_ListEnvironmentDefinitionsByCatalog", + "description": "Lists all environment definitions available within a catalog.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "catalogName", + "in": "path", + "description": "The name of the catalog", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironmentDefinition" + } + }, + "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": { + "Lists all environment definitions available within a catalog.": { + "$ref": "./examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { + "get": { + "operationId": "Environments_GetEnvironmentDefinition", + "description": "Get an environment definition from a catalog.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "catalogName", + "in": "path", + "description": "Name of the catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "definitionName", + "in": "path", + "description": "Name of the environment definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/EnvironmentDefinition" + } + }, + "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": { + "Get an environment definition from a catalog.": { + "$ref": "./examples/EnvironmentsOperations_GetEnvironmentDefinition.json" + } + } + } + }, + "/projects/{projectName}/environmentDefinitions": { + "get": { + "operationId": "Environments_ListEnvironmentDefinitions", + "description": "Lists all environment definitions available for a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironmentDefinition" + } + }, + "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": { + "Lists all environment definitions available for a project.": { + "$ref": "./examples/EnvironmentsOperations_ListEnvironmentDefinitions.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/environmentTypes": { + "get": { + "operationId": "Environments_ListEnvironmentTypes", + "description": "Lists all environment types configured for a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironmentType" + } + }, + "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": { + "Lists all environment types configured for a project.": { + "$ref": "./examples/EnvironmentsOperations_ListEnvironmentTypes.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/environments": { + "get": { + "operationId": "Environments_ListAllEnvironments", + "description": "Lists the environments for a project.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironment" + } + }, + "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": { + "Lists the environments for a project.": { + "$ref": "./examples/EnvironmentsOperations_ListAllEnvironments.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/operationstatuses/{operationId}": { + "get": { + "operationId": "SharedOperations_GetProjectOperationStatus", + "description": "Get the status of an operation.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "operationId", + "in": "path", + "description": "Fully qualified ID for the operation status.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "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": { + "Get the status of an operation.": { + "$ref": "./examples/SharedOperations_GetProjectOperationStatus.json" + } + } + } + }, + "/projects/{projectName}/pools": { + "get": { + "operationId": "DevBoxes_ListPools", + "description": "Lists available pools", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedPool" + } + }, + "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": { + "Lists available pools": { + "$ref": "./examples/DevBoxesOperations_ListPools.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/pools/{poolName}": { + "get": { + "operationId": "DevBoxes_GetPool", + "description": "Gets a pool", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "poolName", + "in": "path", + "description": "Pool name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Pool" + } + }, + "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": { + "Gets a pool": { + "$ref": "./examples/DevBoxesOperations_GetPool.json" + } + } + } + }, + "/projects/{projectName}/pools/{poolName}/schedules": { + "get": { + "operationId": "DevBoxes_ListSchedules", + "description": "Lists available schedules for a pool.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "poolName", + "in": "path", + "description": "Pool name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedSchedule" + } + }, + "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": { + "Lists available schedules for a pool.": { + "$ref": "./examples/DevBoxesOperations_ListSchedules.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { + "get": { + "operationId": "DevBoxes_GetSchedule", + "description": "Gets a schedule.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "poolName", + "in": "path", + "description": "Pool name", + "required": true, + "type": "string" + }, + { + "name": "scheduleName", + "in": "path", + "description": "Display name for the Schedule", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "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": { + "Gets a schedule.": { + "$ref": "./examples/DevBoxesOperations_GetSchedule.json" + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes": { + "get": { + "operationId": "DevBoxes_ListDevBoxes", + "description": "Lists Dev Boxes in the project for a particular user.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBox" + } + }, + "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": { + "Lists Dev Boxes in the project for a particular user.": { + "$ref": "./examples/DevBoxesOperations_ListDevBoxes.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}": { + "get": { + "operationId": "DevBoxes_GetDevBox", + "description": "Gets a Dev Box", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" + }, + { + "name": "devBoxName", + "in": "path", + "description": "Display name for the Dev Box", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBox" + } + }, + "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": { + "Gets a Dev Box": { + "$ref": "./examples/DevBoxesOperations_GetDevBox.json" + } + } + }, + "put": { + "operationId": "DevBoxes_CreateDevBox", + "description": "Creates or replaces a Dev Box.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute the operation.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator", + "required": true, + "schema": { + "$ref": "#/definitions/DevBox" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBox" + } + }, + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", + "schema": { + "$ref": "#/definitions/DevBox" + }, + "headers": { + "Location": { + "type": "string", + "format": "uri", + "description": "The location of an instance of DevBox" + }, + "Operation-Location": { + "type": "string" + } + } + }, + "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": { + "Creates or replaces a Dev Box.": { + "$ref": "./examples/DevBoxesOperations_CreateDevBox.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "DevBoxes_DeleteDevBox", + "description": "Deletes a Dev Box.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "schema": { + "$ref": "#/definitions/OperationStatus" + }, + "headers": { + "Location": { + "type": "string" + }, + "Operation-Location": { + "type": "string" + } + } + }, + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " + }, + "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": { + "Deletes a Dev Box.": { + "$ref": "./examples/DevBoxesOperations_DeleteDevBox.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start": { + "post": { + "operationId": "DevBoxes_StartDevBox", + "description": "Starts a Dev Box", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" + }, + { + "name": "devBoxName", + "in": "path", + "description": "Display name for the Dev Box", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "schema": { + "$ref": "#/definitions/OperationStatus" + }, + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." + } + } + }, + "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": { + "Starts a Dev Box": { + "$ref": "./examples/DevBoxesOperations_StartDevBox.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop": { + "post": { + "operationId": "DevBoxes_StopDevBox", + "description": "Stops a Dev Box", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" + }, + { + "name": "devBoxName", + "in": "path", + "description": "Display name for the Dev Box", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "hibernate", + "in": "query", + "description": "Optional parameter to hibernate the dev box.", + "required": false, + "type": "boolean" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "schema": { + "$ref": "#/definitions/OperationStatus" + }, + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." + } + } + }, + "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": { + "Stops a Dev Box": { + "$ref": "./examples/DevBoxesOperations_StopDevBox.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart": { + "post": { + "operationId": "DevBoxes_RestartDevBox", + "description": "Restarts a Dev Box", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" + }, + { + "name": "devBoxName", + "in": "path", + "description": "Display name for the Dev Box", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "schema": { + "$ref": "#/definitions/OperationStatus" + }, + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." + } + } + }, + "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": { + "Restarts a Dev Box": { + "$ref": "./examples/DevBoxesOperations_RestartDevBox.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions": { + "get": { + "operationId": "DevBoxes_ListDevBoxActions", + "description": "Lists actions on a Dev Box.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" + }, + { + "name": "devBoxName", + "in": "path", + "description": "Display name for the Dev Box", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBoxAction" + } + }, + "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": { + "Lists actions on a Dev Box.": { + "$ref": "./examples/DevBoxesOperations_ListDevBoxActions.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}": { + "get": { + "operationId": "DevBoxes_GetDevBoxAction", + "description": "Gets an action.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" + }, + { + "name": "devBoxName", + "in": "path", + "description": "Display name for the Dev Box", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "actionName", + "in": "path", + "description": "The name of the action.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBoxAction" + } + }, + "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": { + "Gets an action.": { + "$ref": "./examples/DevBoxesOperations_GetDevBoxAction.json" + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip": { + "post": { + "operationId": "DevBoxes_SkipAction", + "description": "Skips an occurrence of an action.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" + }, + { + "name": "devBoxName", + "in": "path", + "description": "Display name for the Dev Box", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "actionName", + "in": "path", + "description": "The name of the action.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " + }, + "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": { + "Skips an occurrence of an action.": { + "$ref": "./examples/DevBoxesOperations_SkipAction.json" + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay": { + "post": { + "operationId": "DevBoxes_DelayAction", + "description": "Delays the occurrence of an action.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" + }, + { + "name": "devBoxName", + "in": "path", + "description": "Display name for the Dev Box", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "actionName", + "in": "path", + "description": "The name of the action.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "until", + "in": "query", + "description": "The time to delay the Dev Box action or actions until.", + "required": true, + "type": "string", + "format": "date-time", + "x-ms-client-name": "delayUntil" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBoxAction" + } + }, + "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": { + "Delays the occurrence of an action.": { + "$ref": "./examples/DevBoxesOperations_DelayAction.json" + } + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay": { + "post": { + "operationId": "DevBoxes_DelayAllActions", + "description": "Delays all actions.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" + }, + { + "name": "devBoxName", + "in": "path", + "description": "Display name for the Dev Box", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "until", + "in": "query", + "description": "The time to delay the Dev Box action or actions until.", + "required": true, + "type": "string", + "format": "date-time", + "x-ms-client-name": "delayUntil" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBoxActionDelayResult" + } + }, + "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": { + "Delays all actions.": { + "$ref": "./examples/DevBoxesOperations_DelayAllActions.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection": { + "get": { + "operationId": "DevBoxes_GetRemoteConnection", + "description": "Gets RDP Connection info", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "devBoxName", + "in": "path", + "description": "The name of a Dev Box.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/RemoteConnection" + } + }, + "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": { + "Gets RDP Connection info": { + "$ref": "./examples/DevBoxesOperations_GetRemoteConnection.json" + } + } + } + }, + "/projects/{projectName}/users/{userId}/environments": { + "get": { + "operationId": "Environments_ListEnvironments", + "description": "Lists the environments for a project and user.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedEnvironment" + } + }, + "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": { + "Lists the environments for a project and user.": { + "$ref": "./examples/EnvironmentsOperations_ListEnvironments.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/projects/{projectName}/users/{userId}/environments/{environmentName}": { + "get": { + "operationId": "Environments_GetEnvironment", + "description": "Gets an environment", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "Name of the project", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 36, + "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" + }, + { + "name": "environmentName", + "in": "path", + "description": "Environment name.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Environment" + } + }, + "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": { + "Gets an environment": { + "$ref": "./examples/EnvironmentsOperations_GetEnvironment.json" + } + } + }, + "put": { + "operationId": "Environments_CreateOrUpdateEnvironment", + "description": "Creates or updates an environment.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "Represents an environment.", + "required": true, + "schema": { + "$ref": "#/definitions/Environment" + } + } + ], + "responses": { + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", + "schema": { + "$ref": "#/definitions/Environment" + }, + "headers": { + "Operation-Location": { + "type": "string" + } + } + }, + "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": { + "Creates or updates an environment.": { + "$ref": "./examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Environments_DeleteEnvironment", + "description": "Deletes an environment and all its associated resources", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The DevCenter Project upon which to execute operations.", + "required": true, + "type": "string" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + }, + { + "name": "environmentName", + "in": "path", + "description": "The name of the environment.", + "required": true, + "type": "string" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "schema": { + "$ref": "#/definitions/OperationStatus" + }, + "headers": { + "Location": { + "type": "string" + }, + "Operation-Location": { + "type": "string" + } + } + }, + "204": { + "description": "There is no content to send for this request, but the headers may be useful. " + }, + "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": { + "Deletes an environment and all its associated resources": { + "$ref": "./examples/EnvironmentsOperations_DeleteEnvironment.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/users/{userId}/devboxes": { + "get": { + "operationId": "DevBoxesDevCenter_ListAllDevBoxesByUser", + "description": "Lists Dev Boxes in the Dev Center for a particular user.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "userId", + "in": "path", + "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDevBox" + } + }, + "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": { + "Lists Dev Boxes in the Dev Center for a particular user.": { + "$ref": "./examples/DevBoxesDevCenterOperations_ListAllDevBoxesByUser.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "APIVersions": { + "type": "string", + "description": "DevCenter API versions", + "enum": [ + "2023-04-01" + ], + "x-ms-enum": { + "name": "APIVersions", + "modelAsString": true, + "values": [ + { + "name": "v2023_04_01", + "value": "2023-04-01", + "description": "The 2023-04-01 service API version" + } + ] + } + }, + "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." + } + } + }, + "Azure.Core.uuid": { + "type": "string", + "format": "uuid", + "description": "Universally Unique Identifier" + }, + "Catalog": { + "type": "object", + "description": "A catalog.", + "properties": { + "name": { + "type": "string", + "description": "Name of the catalog.", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "readOnly": true + } + }, + "required": [ + "name" + ] + }, + "DevBox": { + "type": "object", + "description": "A Dev Box", + "properties": { + "name": { + "type": "string", + "description": "Display name for the Dev Box", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "readOnly": true + }, + "projectName": { + "type": "string", + "description": "Name of the project this Dev Box belongs to", + "readOnly": true + }, + "poolName": { + "type": "string", + "description": "The name of the Dev Box pool this machine belongs to.", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "hibernateSupport": { + "$ref": "#/definitions/HibernateSupport", + "description": "Indicates whether hibernate is enabled/disabled or unknown.", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/DevBoxProvisioningState", + "description": "The current provisioning state of the Dev Box.", + "readOnly": true + }, + "actionState": { + "type": "string", + "description": "The current action state of the Dev Box. This is state is based on previous\naction performed by user.", + "readOnly": true + }, + "powerState": { + "type": "string", + "description": "The current power state of the Dev Box.", + "default": "Unknown", + "enum": [ + "Unknown", + "Running", + "Deallocated", + "PoweredOff", + "Hibernated" + ], + "x-ms-enum": { + "name": "PowerState", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "The Dev Box power state is not known." + }, + { + "name": "Running", + "value": "Running", + "description": "The Dev Box is running." + }, + { + "name": "Deallocated", + "value": "Deallocated", + "description": "The Dev Box is deallocated." + }, + { + "name": "PoweredOff", + "value": "PoweredOff", + "description": "The Dev Box is powered off." + }, + { + "name": "Hibernated", + "value": "Hibernated", + "description": "The Dev Box is hibernated." + } + ] + }, + "readOnly": true + }, + "uniqueId": { + "$ref": "#/definitions/Azure.Core.uuid", + "description": "A unique identifier for the Dev Box. This is a GUID-formatted string (e.g.\n00000000-0000-0000-0000-000000000000).", + "readOnly": true + }, + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "Provisioning or action error details. Populated only for error states.", + "readOnly": true + }, + "location": { + "type": "string", + "description": "Azure region where this Dev Box is located. This will be the same region as the\nVirtual Network it is attached to.", + "readOnly": true + }, + "osType": { + "$ref": "#/definitions/OsType", + "description": "The operating system type of this Dev Box.", + "readOnly": true + }, + "user": { + "$ref": "#/definitions/Azure.Core.uuid", + "description": "The AAD object id of the user this Dev Box is assigned to.", + "readOnly": true + }, + "hardwareProfile": { + "$ref": "#/definitions/HardwareProfile", + "description": "Information about the Dev Box's hardware resources", + "readOnly": true + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage settings for this Dev Box", + "readOnly": true + }, + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Information about the image used for this Dev Box", + "readOnly": true + }, + "createdTime": { + "type": "string", + "format": "date-time", + "description": "Creation time of this Dev Box", + "readOnly": true + }, + "localAdministrator": { + "$ref": "#/definitions/LocalAdminStatus", + "description": "Indicates whether the owner of the Dev Box is a local administrator.", + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "required": [ + "name", + "poolName" + ] + }, + "DevBoxAction": { + "type": "object", + "description": "An action which will take place on a Dev Box.", + "properties": { + "name": { + "type": "string", + "description": "The name of the action.", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "readOnly": true + }, + "actionType": { + "$ref": "#/definitions/DevBoxActionType", + "description": "The action that will be taken." + }, + "sourceId": { + "type": "string", + "description": "The id of the resource which triggered this action" + }, + "suspendedUntil": { + "type": "string", + "format": "date-time", + "description": "The earliest time that the action could occur (UTC)." + }, + "next": { + "$ref": "#/definitions/DevBoxNextAction", + "description": "Details about the next run of this action." + } + }, + "required": [ + "name", + "actionType", + "sourceId" + ] + }, + "DevBoxActionDelayResult": { + "type": "object", + "description": "The action delay result", + "properties": { + "name": { + "type": "string", + "description": "The name of the action." + }, + "result": { + "$ref": "#/definitions/DevBoxActionDelayResultStatus", + "description": "The result of the delay operation on this action." + }, + "action": { + "$ref": "#/definitions/DevBoxAction", + "description": "The delayed action" + }, + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "Information about the error that occurred. Only populated on error." + } + }, + "required": [ + "name", + "result" + ] + }, + "DevBoxActionDelayResultStatus": { + "type": "string", + "description": "The result of the delay operation on this action.", + "enum": [ + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "DevBoxActionDelayResultStatus", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "The delay operation succeeded." + }, + { + "name": "Failed", + "value": "Failed", + "description": "The delay operation failed." + } + ] + } + }, + "DevBoxActionType": { + "type": "string", + "description": "The type of action which will take place on a Dev Box.", + "enum": [ + "Stop" + ], + "x-ms-enum": { + "name": "DevBoxActionType", + "modelAsString": true, + "values": [ + { + "name": "Stop", + "value": "Stop", + "description": "The action will stop the Dev Box." + } + ] + } + }, + "DevBoxNextAction": { + "type": "object", + "description": "Details about the next run of an action.", + "properties": { + "scheduledTime": { + "type": "string", + "format": "date-time", + "description": "The time the action will be triggered (UTC)." + } + }, + "required": [ + "scheduledTime" + ] + }, + "DevBoxProvisioningState": { + "type": "string", + "description": "Indicates the provisioning state of the Dev Box.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Creating", + "Deleting", + "Updating", + "Starting", + "Stopping", + "Provisioning", + "ProvisionedWithWarning", + "InGracePeriod", + "NotProvisioned" + ], + "x-ms-enum": { + "name": "DevBoxProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Dev Box was successfully provisioned" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Dev Box failed to provision" + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Dev Box provision was canceled" + }, + { + "name": "Creating", + "value": "Creating", + "description": "Dev Box is being created" + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "Dev Box is being deleted" + }, + { + "name": "Updating", + "value": "Updating", + "description": "Dev Box is updating" + }, + { + "name": "Starting", + "value": "Starting", + "description": "Dev Box is starting" + }, + { + "name": "Stopping", + "value": "Stopping", + "description": "Dev Box is stopping" + }, + { + "name": "Provisioning", + "value": "Provisioning", + "description": "Dev Box is provisioning" + }, + { + "name": "ProvisionedWithWarning", + "value": "ProvisionedWithWarning", + "description": "Dev Box was provisioned with warning" + }, + { + "name": "InGracePeriod", + "value": "InGracePeriod", + "description": "Dev Box is in grace period" + }, + { + "name": "NotProvisioned", + "value": "NotProvisioned", + "description": "Dev Box is not provisioned" + } + ] + } + }, + "Environment": { + "type": "object", + "description": "Properties of an environment.", + "properties": { + "parameters": { + "type": "object", + "description": "Parameters object for the environment.", + "additionalProperties": {} + }, + "name": { + "type": "string", + "description": "Environment name.", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "readOnly": true + }, + "environmentType": { + "type": "string", + "description": "Environment type.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "user": { + "$ref": "#/definitions/Azure.Core.uuid", + "description": "The AAD object id of the owner of this Environment.", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/EnvironmentProvisioningState", + "description": "The provisioning state of the environment.", + "readOnly": true + }, + "resourceGroupId": { + "type": "string", + "description": "The identifier of the resource group containing the environment's resources.", + "readOnly": true + }, + "catalogName": { + "type": "string", + "description": "Name of the catalog.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "environmentDefinitionName": { + "type": "string", + "description": "Name of the environment definition.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "Provisioning error details. Populated only for error states.", + "readOnly": true + } + }, + "required": [ + "name", + "environmentType", + "catalogName", + "environmentDefinitionName" + ] + }, + "EnvironmentDefinition": { + "type": "object", + "description": "An environment definition.", + "properties": { + "id": { + "type": "string", + "description": "The ID of the environment definition." + }, + "name": { + "type": "string", + "description": "Name of the environment definition.", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", + "readOnly": true + }, + "catalogName": { + "type": "string", + "description": "Name of the catalog." + }, + "description": { + "type": "string", + "description": "A short description of the environment definition." + }, + "parameters": { + "type": "array", + "description": "Input parameters passed to an environment.", + "items": { + "$ref": "#/definitions/EnvironmentDefinitionParameter" + } + }, + "parametersSchema": { + "description": "JSON schema defining the parameters object passed to an environment." + }, + "templatePath": { + "type": "string", + "description": "Path to the Environment Definition entrypoint file." + } + }, + "required": [ + "id", + "name", + "catalogName" + ] + }, + "EnvironmentDefinitionParameter": { + "type": "object", + "description": "Properties of an Environment Definition parameter", + "properties": { + "id": { + "type": "string", + "description": "Unique ID of the parameter" + }, + "name": { + "type": "string", + "description": "Display name of the parameter" + }, + "description": { + "type": "string", + "description": "Description of the parameter" + }, + "default": { + "type": "string", + "description": "Default value of the parameter" + }, + "type": { + "$ref": "#/definitions/ParameterType", + "description": "A string of one of the basic JSON types (number, integer, array, object,\nboolean, string)" + }, + "readOnly": { + "type": "boolean", + "description": "Whether or not this parameter is read-only. If true, default should have a\nvalue." + }, + "required": { + "type": "boolean", + "description": "Whether or not this parameter is required" + }, + "allowed": { + "type": "array", + "description": "An array of allowed values", + "minItems": 1, + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "type", + "required" + ] + }, + "EnvironmentProvisioningState": { + "type": "string", + "description": "The provisioning state of the environment.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Creating", + "Accepted", + "Deleting", + "Updating", + "Preparing", + "Running", + "Syncing", + "MovingResources", + "TransientFailure", + "StorageProvisioningFailed" + ], + "x-ms-enum": { + "name": "EnvironmentProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "The environment was successfully provisioned." + }, + { + "name": "Failed", + "value": "Failed", + "description": "The environment failed to provision." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "The environment provisioning was canceled." + }, + { + "name": "Creating", + "value": "Creating", + "description": "The environment is creating." + }, + { + "name": "Accepted", + "value": "Accepted", + "description": "The environment was accepted." + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "The environment is deleting." + }, + { + "name": "Updating", + "value": "Updating", + "description": "The environment is updating." + }, + { + "name": "Preparing", + "value": "Preparing", + "description": "The environment is preparing." + }, + { + "name": "Running", + "value": "Running", + "description": "The environment is running." + }, + { + "name": "Syncing", + "value": "Syncing", + "description": "The environment is Syncing." + }, + { + "name": "MovingResources", + "value": "MovingResources", + "description": "The environment is moving resources." + }, + { + "name": "TransientFailure", + "value": "TransientFailure", + "description": "The environment has a transient failure." + }, + { + "name": "StorageProvisioningFailed", + "value": "StorageProvisioningFailed", + "description": "The environment storage provisioning failed." + } + ] + } + }, + "EnvironmentType": { + "type": "object", + "description": "Properties of an environment type.", + "properties": { + "name": { + "type": "string", + "description": "Name of the environment type" + }, + "deploymentTargetId": { + "type": "string", + "description": "Id of a subscription or management group that the environment type will be\nmapped to. The environment's resources will be deployed into this subscription\nor management group." + }, + "status": { + "$ref": "#/definitions/EnvironmentTypeEnableStatus", + "description": "Indicates whether this environment type is enabled for use in this project." + } + }, + "required": [ + "name", + "deploymentTargetId", + "status" + ] + }, + "EnvironmentTypeEnableStatus": { + "type": "string", + "description": "Indicates whether an environment type is enabled for use in a project.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnvironmentTypeEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "The environment type is enabled for use in the project." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "The environment type is not enabled for use in the project." + } + ] + } + }, + "EnvironmentUpdateProperties": { + "type": "object", + "description": "Properties of an environment. These properties can be updated after the\nresource has been created.", + "properties": { + "parameters": { + "type": "object", + "description": "Parameters object for the environment.", + "additionalProperties": {} + } + } + }, + "HardwareProfile": { + "type": "object", + "description": "Hardware specifications for the Dev Box.", + "properties": { + "skuName": { + "$ref": "#/definitions/SkuName", + "description": "The name of the SKU", + "readOnly": true + }, + "vCPUs": { + "type": "integer", + "format": "int32", + "description": "The number of vCPUs available for the Dev Box.", + "readOnly": true + }, + "memoryGB": { + "type": "integer", + "format": "int32", + "description": "The amount of memory available for the Dev Box.", + "readOnly": true + } + } + }, + "HibernateSupport": { + "type": "string", + "description": "Indicates whether hibernate is supported and enabled, disabled, or unsupported by the operating system. Unknown hibernate support is represented as null.", + "enum": [ + "Enabled", + "Disabled", + "OsUnsupported" + ], + "x-ms-enum": { + "name": "HibernateSupport", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Hibernate is enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Hibernate is not enabled." + }, + { + "name": "OsUnsupported", + "value": "OsUnsupported", + "description": "Hibernate is not supported by the operating system." + } + ] + } + }, + "ImageReference": { + "type": "object", + "description": "Specifies information about the image used", + "properties": { + "name": { + "type": "string", + "description": "The name of the image used.", + "readOnly": true + }, + "version": { + "type": "string", + "description": "The version of the image.", + "readOnly": true + }, + "operatingSystem": { + "type": "string", + "description": "The operating system of the image.", + "readOnly": true + }, + "osBuildNumber": { + "type": "string", + "description": "The operating system build number of the image.", + "readOnly": true + }, + "publishedDate": { + "type": "string", + "format": "date-time", + "description": "The datetime that the backing image version was published.", + "readOnly": true + } + } + }, + "LocalAdminStatus": { + "type": "string", + "description": "Indicates whether owners of Dev Boxes in a pool are local administrators on the Dev Boxes.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "LocalAdminStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Owners of Dev Boxes in the pool are local administrators on the Dev Boxes." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes." + } + ] + } + }, + "OperationStatus": { + "type": "object", + "description": "The current status of an async operation", + "properties": { + "id": { + "type": "string", + "description": "Fully qualified ID for the operation status.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The operation id name" + }, + "status": { + "$ref": "#/definitions/OperationStatusValue", + "description": "Provisioning state of the resource." + }, + "resourceId": { + "type": "string", + "description": "The id of the resource." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the operation" + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The end time of the operation" + }, + "percentComplete": { + "type": "number", + "format": "double", + "description": "Percent of the operation that is complete", + "minimum": 0, + "maximum": 100 + }, + "properties": { + "description": "Custom operation properties, populated only for a successful operation." + }, + "error": { + "$ref": "#/definitions/Azure.Core.Foundations.Error", + "description": "Operation Error message" + } + }, + "required": [ + "id", + "status" + ] + }, + "OperationStatusValue": { + "type": "string", + "description": "Indicates whether operation status is running, completed, canceled or failed.", + "enum": [ + "Running", + "Completed", + "Canceled", + "Failed" + ], + "x-ms-enum": { + "name": "OperationStatusValue", + "modelAsString": true, + "values": [ + { + "name": "Running", + "value": "Running", + "description": "Operation is in progress" + }, + { + "name": "Completed", + "value": "Completed", + "description": "Operation is completed with success" + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Operation was canceled" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Operation failed" + } + ] + } + }, + "OsDisk": { + "type": "object", + "description": "Settings for the operating system disk.", + "properties": { + "diskSizeGB": { + "type": "integer", + "format": "int32", + "description": "The size of the OS Disk in gigabytes.", + "readOnly": true + } + } + }, + "OsType": { + "type": "string", + "description": "The operating system type.", + "enum": [ + "Windows" + ], + "x-ms-enum": { + "name": "OsType", + "modelAsString": true, + "values": [ + { + "name": "Windows", + "value": "Windows", + "description": "The Windows operating system." + } + ] + } + }, + "PagedCatalog": { + "type": "object", + "description": "Paged collection of Catalog items", + "properties": { + "value": { + "type": "array", + "description": "The Catalog items on this page", + "items": { + "$ref": "#/definitions/Catalog" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedDevBox": { + "type": "object", + "description": "The Dev Box list result", + "properties": { + "value": { + "type": "array", + "description": "The DevBox items on this page", + "items": { + "$ref": "#/definitions/DevBox" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedDevBoxAction": { + "type": "object", + "description": "Paged collection of DevBoxAction items", + "properties": { + "value": { + "type": "array", + "description": "The DevBoxAction items on this page", + "items": { + "$ref": "#/definitions/DevBoxAction" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedDevBoxActionDelayResult": { + "type": "object", + "description": "The actions list result", + "properties": { + "value": { + "type": "array", + "description": "The DevBoxActionDelayResult items on this page", + "items": { + "$ref": "#/definitions/DevBoxActionDelayResult" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironment": { + "type": "object", + "description": "Results of the environment list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Environment items on this page", + "items": { + "$ref": "#/definitions/Environment" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironmentDefinition": { + "type": "object", + "description": "Results of the environment definition list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnvironmentDefinition items on this page", + "items": { + "$ref": "#/definitions/EnvironmentDefinition" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedEnvironmentType": { + "type": "object", + "description": "Result of the environment type list operation.", + "properties": { + "value": { + "type": "array", + "description": "The EnvironmentType items on this page", + "items": { + "$ref": "#/definitions/EnvironmentType" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedPool": { + "type": "object", + "description": "Paged collection of Pool items", + "properties": { + "value": { + "type": "array", + "description": "The Pool items on this page", + "items": { + "$ref": "#/definitions/Pool" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedProject": { + "type": "object", + "description": "Paged collection of Project items", + "properties": { + "value": { + "type": "array", + "description": "The Project items on this page", + "items": { + "$ref": "#/definitions/Project" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedSchedule": { + "type": "object", + "description": "Paged collection of Schedule items", + "properties": { + "value": { + "type": "array", + "description": "The Schedule items on this page", + "items": { + "$ref": "#/definitions/Schedule" }, "x-ms-identifiers": [] }, @@ -326,6 +3250,190 @@ "value" ] }, + "ParameterType": { + "type": "string", + "description": "The type of data a parameter accepts.", + "enum": [ + "array", + "boolean", + "integer", + "number", + "object", + "string" + ], + "x-ms-enum": { + "name": "ParameterType", + "modelAsString": true, + "values": [ + { + "name": "array", + "value": "array", + "description": "The parameter accepts an array of values." + }, + { + "name": "boolean", + "value": "boolean", + "description": "The parameter accepts a boolean value." + }, + { + "name": "integer", + "value": "integer", + "description": "The parameter accepts an integer value." + }, + { + "name": "number", + "value": "number", + "description": "The parameter accepts a number value." + }, + { + "name": "object", + "value": "object", + "description": "The parameter accepts an object value." + }, + { + "name": "string", + "value": "string", + "description": "The parameter accepts a string value." + } + ] + } + }, + "Pool": { + "type": "object", + "description": "A pool of Dev Boxes.", + "properties": { + "name": { + "type": "string", + "description": "Pool name", + "readOnly": true + }, + "location": { + "type": "string", + "description": "Azure region where Dev Boxes in the pool are located" + }, + "osType": { + "$ref": "#/definitions/OsType", + "description": "The operating system type of Dev Boxes in this pool" + }, + "hardwareProfile": { + "$ref": "#/definitions/HardwareProfile", + "description": "Hardware settings for the Dev Boxes created in this pool" + }, + "hibernateSupport": { + "$ref": "#/definitions/HibernateSupport", + "description": "Indicates whether hibernate is enabled/disabled or unknown." + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Storage settings for Dev Box created in this pool" + }, + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Image settings for Dev Boxes create in this pool" + }, + "localAdministrator": { + "$ref": "#/definitions/LocalAdminStatus", + "description": "Indicates whether owners of Dev Boxes in this pool are local administrators on\nthe Dev Boxes." + }, + "stopOnDisconnect": { + "$ref": "#/definitions/StopOnDisconnectConfiguration", + "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool." + }, + "healthStatus": { + "$ref": "#/definitions/PoolHealthStatus", + "description": "Overall health status of the Pool. Indicates whether or not the Pool is\navailable to create Dev Boxes." + } + }, + "required": [ + "name", + "location", + "healthStatus" + ] + }, + "PoolHealthStatus": { + "type": "string", + "description": "Pool status indicating whether a pool is available to create Dev Boxes.", + "enum": [ + "Unknown", + "Pending", + "Healthy", + "Warning", + "Unhealthy" + ], + "x-ms-enum": { + "name": "PoolHealthStatus", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "The pool health status is not known." + }, + { + "name": "Pending", + "value": "Pending", + "description": "The pool health status waiting for health checks to run." + }, + { + "name": "Healthy", + "value": "Healthy", + "description": "The pool health status is healthy." + }, + { + "name": "Warning", + "value": "Warning", + "description": "The pool health status has one or more warnings." + }, + { + "name": "Unhealthy", + "value": "Unhealthy", + "description": "The pool health status is not healthy." + } + ] + } + }, + "PowerState": { + "type": "string", + "description": "The power states of a Dev Box.", + "enum": [ + "Unknown", + "Running", + "Deallocated", + "PoweredOff", + "Hibernated" + ], + "x-ms-enum": { + "name": "PowerState", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "The Dev Box power state is not known." + }, + { + "name": "Running", + "value": "Running", + "description": "The Dev Box is running." + }, + { + "name": "Deallocated", + "value": "Deallocated", + "description": "The Dev Box is deallocated." + }, + { + "name": "PoweredOff", + "value": "PoweredOff", + "description": "The Dev Box is powered off." + }, + { + "name": "Hibernated", + "value": "Hibernated", + "description": "The Dev Box is hibernated." + } + ] + } + }, "Project": { "type": "object", "description": "Project details.", @@ -353,6 +3461,288 @@ "name" ] }, + "RemoteConnection": { + "type": "object", + "description": "Provides remote connection information for a Dev Box.", + "properties": { + "webUrl": { + "type": "string", + "format": "uri", + "description": "URL to open a browser based RDP session." + }, + "rdpConnectionUrl": { + "type": "string", + "format": "uri", + "description": "Link to open a Remote Desktop session." + } + } + }, + "Schedule": { + "type": "object", + "description": "A Schedule to execute action.", + "properties": { + "name": { + "type": "string", + "description": "Display name for the Schedule", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/ScheduledType", + "description": "Supported type this scheduled task represents." + }, + "frequency": { + "$ref": "#/definitions/ScheduledFrequency", + "description": "The frequency of this scheduled task." + }, + "time": { + "type": "string", + "description": "The target time to trigger the action. The format is HH:MM." + }, + "timeZone": { + "type": "string", + "description": "The IANA timezone id at which the schedule should execute." + } + }, + "required": [ + "name", + "type", + "frequency", + "time", + "timeZone" + ] + }, + "ScheduledFrequency": { + "type": "string", + "description": "The frequency of task execution.", + "enum": [ + "Daily" + ], + "x-ms-enum": { + "name": "ScheduledFrequency", + "modelAsString": true, + "values": [ + { + "name": "Daily", + "value": "Daily", + "description": "The scheduled task will run every day." + } + ] + } + }, + "ScheduledType": { + "type": "string", + "description": "The supported types for a scheduled task.", + "enum": [ + "StopDevBox" + ], + "x-ms-enum": { + "name": "ScheduledType", + "modelAsString": true, + "values": [ + { + "name": "StopDevBox", + "value": "StopDevBox", + "description": "The scheduled task will stop impacted Dev Boxes." + } + ] + } + }, + "SkuName": { + "type": "string", + "description": "Indicates the Dev Box compute.", + "enum": [ + "general_i_8c32gb256ssd_v2", + "general_i_8c32gb512ssd_v2", + "general_i_8c32gb1024ssd_v2", + "general_i_8c32gb2048ssd_v2", + "general_i_16c64gb256ssd_v2", + "general_i_16c64gb512ssd_v2", + "general_i_16c64gb1024ssd_v2", + "general_i_16c64gb2048ssd_v2", + "general_i_32c128gb512ssd_v2", + "general_i_32c128gb1024ssd_v2", + "general_i_32c128gb2048ssd_v2", + "general_a_8c32gb256ssd_v2", + "general_a_8c32gb512ssd_v2", + "general_a_8c32gb1024ssd_v2", + "general_a_8c32gb2048ssd_v2", + "general_a_16c64gb256ssd_v2", + "general_a_16c64gb512ssd_v2", + "general_a_16c64gb1024ssd_v2", + "general_a_16c64gb2048ssd_v2", + "general_a_32c128gb512ssd_v2", + "general_a_32c128gb1024ssd_v2", + "general_a_32c128gb2048ssd_v2" + ], + "x-ms-enum": { + "name": "SkuName", + "modelAsString": true, + "values": [ + { + "name": "general_i_8c32gb256ssd_v2", + "value": "general_i_8c32gb256ssd_v2", + "description": "Intel, 8 vCPU, 32 GB RAM, 256 GB Storage" + }, + { + "name": "general_i_8c32gb512ssd_v2", + "value": "general_i_8c32gb512ssd_v2", + "description": "Intel, 8 vCPU, 32 GB RAM, 512 GB Storage" + }, + { + "name": "general_i_8c32gb1024ssd_v2", + "value": "general_i_8c32gb1024ssd_v2", + "description": "Intel, 8 vCPU, 32 GB RAM, 1024 GB Storage" + }, + { + "name": "general_i_8c32gb2048ssd_v2", + "value": "general_i_8c32gb2048ssd_v2", + "description": "Intel, 8 vCPU, 32 GB RAM, 2048 GB Storage" + }, + { + "name": "general_i_16c64gb256ssd_v2", + "value": "general_i_16c64gb256ssd_v2", + "description": "Intel, 16 vCPU, 64 GB RAM, 256 GB Storage" + }, + { + "name": "general_i_16c64gb512ssd_v2", + "value": "general_i_16c64gb512ssd_v2", + "description": "Intel, 16 vCPU, 64 GB RAM, 512 GB Storage" + }, + { + "name": "general_i_16c64gb1024ssd_v2", + "value": "general_i_16c64gb1024ssd_v2", + "description": "Intel, 16 vCPU, 64 GB RAM, 1024 GB Storage" + }, + { + "name": "general_i_16c64gb2048ssd_v2", + "value": "general_i_16c64gb2048ssd_v2", + "description": "Intel, 16 vCPU, 64 GB RAM, 2048 GB Storage" + }, + { + "name": "general_i_32c128gb512ssd_v2", + "value": "general_i_32c128gb512ssd_v2", + "description": "Intel, 32 vCPU, 128 GB RAM, 512 GB Storage" + }, + { + "name": "general_i_32c128gb1024ssd_v2", + "value": "general_i_32c128gb1024ssd_v2", + "description": "Intel, 32 vCPU, 128 GB RAM, 1024 GB Storage" + }, + { + "name": "general_i_32c128gb2048ssd_v2", + "value": "general_i_32c128gb2048ssd_v2", + "description": "Intel, 32 vCPU, 128 GB RAM, 2048 GB Storage" + }, + { + "name": "general_a_8c32gb256ssd_v2", + "value": "general_a_8c32gb256ssd_v2", + "description": "AMD, 8 vCPU, 32 GB RAM, 256 GB Storage" + }, + { + "name": "general_a_8c32gb512ssd_v2", + "value": "general_a_8c32gb512ssd_v2", + "description": "AMD, 8 vCPU, 32 GB RAM, 512 GB Storage" + }, + { + "name": "general_a_8c32gb1024ssd_v2", + "value": "general_a_8c32gb1024ssd_v2", + "description": "AMD, 8 vCPU, 32 GB RAM, 1024 GB Storage" + }, + { + "name": "general_a_8c32gb2048ssd_v2", + "value": "general_a_8c32gb2048ssd_v2", + "description": "AMD, 8 vCPU, 32 GB RAM, 2048 GB Storage" + }, + { + "name": "general_a_16c64gb256ssd_v2", + "value": "general_a_16c64gb256ssd_v2", + "description": "AMD, 16 vCPU, 64 GB RAM, 256 GB Storage" + }, + { + "name": "general_a_16c64gb512ssd_v2", + "value": "general_a_16c64gb512ssd_v2", + "description": "AMD, 16 vCPU, 64 GB RAM, 512 GB Storage" + }, + { + "name": "general_a_16c64gb1024ssd_v2", + "value": "general_a_16c64gb1024ssd_v2", + "description": "AMD, 16 vCPU, 64 GB RAM, 1024 GB Storage" + }, + { + "name": "general_a_16c64gb2048ssd_v2", + "value": "general_a_16c64gb2048ssd_v2", + "description": "AMD, 16 vCPU, 64 GB RAM, 2048 GB Storage" + }, + { + "name": "general_a_32c128gb512ssd_v2", + "value": "general_a_32c128gb512ssd_v2", + "description": "AMD, 32 vCPU, 128 GB RAM, 512 GB Storage" + }, + { + "name": "general_a_32c128gb1024ssd_v2", + "value": "general_a_32c128gb1024ssd_v2", + "description": "AMD, 32 vCPU, 128 GB RAM, 1024 GB Storage" + }, + { + "name": "general_a_32c128gb2048ssd_v2", + "value": "general_a_32c128gb2048ssd_v2", + "description": "AMD, 32 vCPU, 128 GB RAM, 2048 GB Storage" + } + ] + } + }, + "StopOnDisconnectConfiguration": { + "type": "object", + "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", + "properties": { + "status": { + "$ref": "#/definitions/StopOnDisconnectEnableStatus", + "description": "Indicates whether the feature to stop the devbox on disconnect once the grace\nperiod has lapsed is enabled." + }, + "gracePeriodMinutes": { + "type": "integer", + "format": "int32", + "description": "The specified time in minutes to wait before stopping a Dev Box once disconnect\nis detected." + } + }, + "required": [ + "status" + ] + }, + "StopOnDisconnectEnableStatus": { + "type": "string", + "description": "Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "StopOnDisconnectEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Stop on disconnect is enabled on the Dev Box." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Stop on disconnect is not enabled on the Dev Box." + } + ] + } + }, + "StorageProfile": { + "type": "object", + "description": "Storage settings for the Dev Box's disks", + "properties": { + "osDisk": { + "$ref": "#/definitions/OsDisk", + "description": "Settings for the operating system disk." + } + } + }, "User": { "type": "object", "description": "Project user", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json deleted file mode 100644 index afc54a298b89..000000000000 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json +++ /dev/null @@ -1,1416 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "DevCenter", - "version": "2023-04-01", - "description": "DevCenter service", - "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 DevCenter-specific URI to operate on.", - "required": true, - "type": "string" - } - ] - }, - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ], - "security": [ - { - "OAuth2Auth": [ - "https://devcenter.azure.com/.default" - ] - } - ], - "securityDefinitions": { - "OAuth2Auth": { - "type": "oauth2", - "flow": "implicit", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "scopes": { - "https://devcenter.azure.com/.default": "" - } - } - }, - "tags": [], - "paths": { - "/projects/{projectName}/catalogs": { - "get": { - "operationId": "Environments_ListCatalogs", - "description": "Lists all of the catalogs available for a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedCatalog" - } - }, - "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": { - "Lists all of the catalogs available for a project.": { - "$ref": "./examples/EnvironmentsOperations_ListCatalogs.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/catalogs/{catalogName}": { - "get": { - "operationId": "Environments_GetCatalog", - "description": "Gets the specified catalog within the project", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "catalogName", - "in": "path", - "description": "Name of the catalog.", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Catalog" - } - }, - "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": { - "Gets the specified catalog within the project": { - "$ref": "./examples/EnvironmentsOperations_GetCatalog.json" - } - } - } - }, - "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { - "get": { - "operationId": "Environments_ListEnvironmentDefinitionsByCatalog", - "description": "Lists all environment definitions available within a catalog.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "catalogName", - "in": "path", - "description": "The name of the catalog", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironmentDefinition" - } - }, - "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": { - "Lists all environment definitions available within a catalog.": { - "$ref": "./examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { - "get": { - "operationId": "Environments_GetEnvironmentDefinition", - "description": "Get an environment definition from a catalog.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "catalogName", - "in": "path", - "description": "Name of the catalog.", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "definitionName", - "in": "path", - "description": "Name of the environment definition.", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/EnvironmentDefinition" - } - }, - "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": { - "Get an environment definition from a catalog.": { - "$ref": "./examples/EnvironmentsOperations_GetEnvironmentDefinition.json" - } - } - } - }, - "/projects/{projectName}/environmentDefinitions": { - "get": { - "operationId": "Environments_ListEnvironmentDefinitions", - "description": "Lists all environment definitions available for a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironmentDefinition" - } - }, - "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": { - "Lists all environment definitions available for a project.": { - "$ref": "./examples/EnvironmentsOperations_ListEnvironmentDefinitions.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/environmentTypes": { - "get": { - "operationId": "Environments_ListEnvironmentTypes", - "description": "Lists all environment types configured for a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironmentType" - } - }, - "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": { - "Lists all environment types configured for a project.": { - "$ref": "./examples/EnvironmentsOperations_ListEnvironmentTypes.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/environments": { - "get": { - "operationId": "Environments_ListAllEnvironments", - "description": "Lists the environments for a project.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironment" - } - }, - "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": { - "Lists the environments for a project.": { - "$ref": "./examples/EnvironmentsOperations_ListAllEnvironments.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/operationstatuses/{operationId}": { - "get": { - "operationId": "SharedOperations_GetProjectOperationStatus", - "description": "Get the status of an operation.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "operationId", - "in": "path", - "description": "Fully qualified ID for the operation status.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "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": { - "Get the status of an operation.": { - "$ref": "./examples/SharedOperations_GetProjectOperationStatus.json" - } - } - } - }, - "/projects/{projectName}/users/{userId}/environments": { - "get": { - "operationId": "Environments_ListEnvironments", - "description": "Lists the environments for a project and user.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/PagedEnvironment" - } - }, - "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": { - "Lists the environments for a project and user.": { - "$ref": "./examples/EnvironmentsOperations_ListEnvironments.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/projects/{projectName}/users/{userId}/environments/{environmentName}": { - "get": { - "operationId": "Environments_GetEnvironment", - "description": "Gets an environment", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "Name of the project", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", - "required": true, - "type": "string", - "minLength": 2, - "maxLength": 36, - "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$" - }, - { - "name": "environmentName", - "in": "path", - "description": "Environment name.", - "required": true, - "type": "string", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Environment" - } - }, - "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": { - "Gets an environment": { - "$ref": "./examples/EnvironmentsOperations_GetEnvironment.json" - } - } - }, - "put": { - "operationId": "Environments_CreateOrUpdateEnvironment", - "description": "Creates or updates an environment.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "description": "Represents an environment.", - "required": true, - "schema": { - "$ref": "#/definitions/Environment" - } - } - ], - "responses": { - "201": { - "description": "The request has succeeded and a new resource has been created as a result.", - "schema": { - "$ref": "#/definitions/Environment" - }, - "headers": { - "Operation-Location": { - "type": "string" - } - } - }, - "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": { - "Creates or updates an environment.": { - "$ref": "./examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "operationId": "Environments_DeleteEnvironment", - "description": "Deletes an environment and all its associated resources", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "projectName", - "in": "path", - "description": "The DevCenter Project upon which to execute operations.", - "required": true, - "type": "string" - }, - { - "name": "userId", - "in": "path", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", - "required": true, - "type": "string" - }, - { - "name": "environmentName", - "in": "path", - "description": "The name of the environment.", - "required": true, - "type": "string" - } - ], - "responses": { - "202": { - "description": "The request has been accepted for processing, but processing has not yet completed.", - "schema": { - "$ref": "#/definitions/OperationStatus" - }, - "headers": { - "Location": { - "type": "string" - }, - "Operation-Location": { - "type": "string" - } - } - }, - "204": { - "description": "There is no content to send for this request, but the headers may be useful. " - }, - "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": { - "Deletes an environment and all its associated resources": { - "$ref": "./examples/EnvironmentsOperations_DeleteEnvironment.json" - } - }, - "x-ms-long-running-operation": true - } - } - }, - "definitions": { - "APIVersions": { - "type": "string", - "description": "DevCenter API versions", - "enum": [ - "2023-04-01" - ], - "x-ms-enum": { - "name": "APIVersions", - "modelAsString": true, - "values": [ - { - "name": "v2023_04_01", - "value": "2023-04-01", - "description": "The 2023-04-01 service API version" - } - ] - } - }, - "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." - } - } - }, - "Azure.Core.uuid": { - "type": "string", - "format": "uuid", - "description": "Universally Unique Identifier" - }, - "Catalog": { - "type": "object", - "description": "A catalog.", - "properties": { - "name": { - "type": "string", - "description": "Name of the catalog.", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "readOnly": true - } - }, - "required": [ - "name" - ] - }, - "Environment": { - "type": "object", - "description": "Properties of an environment.", - "properties": { - "parameters": { - "type": "object", - "description": "Parameters object for the environment.", - "additionalProperties": {} - }, - "name": { - "type": "string", - "description": "Environment name.", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "readOnly": true - }, - "environmentType": { - "type": "string", - "description": "Environment type.", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "user": { - "$ref": "#/definitions/Azure.Core.uuid", - "description": "The AAD object id of the owner of this Environment.", - "readOnly": true - }, - "provisioningState": { - "$ref": "#/definitions/EnvironmentProvisioningState", - "description": "The provisioning state of the environment.", - "readOnly": true - }, - "resourceGroupId": { - "type": "string", - "description": "The identifier of the resource group containing the environment's resources.", - "readOnly": true - }, - "catalogName": { - "type": "string", - "description": "Name of the catalog.", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "environmentDefinitionName": { - "type": "string", - "description": "Name of the environment definition.", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "error": { - "$ref": "#/definitions/Azure.Core.Foundations.Error", - "description": "Provisioning error details. Populated only for error states.", - "readOnly": true - } - }, - "required": [ - "name", - "environmentType", - "catalogName", - "environmentDefinitionName" - ] - }, - "EnvironmentDefinition": { - "type": "object", - "description": "An environment definition.", - "properties": { - "id": { - "type": "string", - "description": "The ID of the environment definition." - }, - "name": { - "type": "string", - "description": "Name of the environment definition.", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "readOnly": true - }, - "catalogName": { - "type": "string", - "description": "Name of the catalog." - }, - "description": { - "type": "string", - "description": "A short description of the environment definition." - }, - "parameters": { - "type": "array", - "description": "Input parameters passed to an environment.", - "items": { - "$ref": "#/definitions/EnvironmentDefinitionParameter" - } - }, - "parametersSchema": { - "description": "JSON schema defining the parameters object passed to an environment." - }, - "templatePath": { - "type": "string", - "description": "Path to the Environment Definition entrypoint file." - } - }, - "required": [ - "id", - "name", - "catalogName" - ] - }, - "EnvironmentDefinitionParameter": { - "type": "object", - "description": "Properties of an Environment Definition parameter", - "properties": { - "id": { - "type": "string", - "description": "Unique ID of the parameter" - }, - "name": { - "type": "string", - "description": "Display name of the parameter" - }, - "description": { - "type": "string", - "description": "Description of the parameter" - }, - "default": { - "type": "string", - "description": "Default value of the parameter" - }, - "type": { - "$ref": "#/definitions/ParameterType", - "description": "A string of one of the basic JSON types (number, integer, array, object,\nboolean, string)" - }, - "readOnly": { - "type": "boolean", - "description": "Whether or not this parameter is read-only. If true, default should have a\nvalue." - }, - "required": { - "type": "boolean", - "description": "Whether or not this parameter is required" - }, - "allowed": { - "type": "array", - "description": "An array of allowed values", - "minItems": 1, - "items": { - "type": "string" - } - } - }, - "required": [ - "id", - "type", - "required" - ] - }, - "EnvironmentProvisioningState": { - "type": "string", - "description": "The provisioning state of the environment.", - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "Creating", - "Accepted", - "Deleting", - "Updating", - "Preparing", - "Running", - "Syncing", - "MovingResources", - "TransientFailure", - "StorageProvisioningFailed" - ], - "x-ms-enum": { - "name": "EnvironmentProvisioningState", - "modelAsString": true, - "values": [ - { - "name": "Succeeded", - "value": "Succeeded", - "description": "The environment was successfully provisioned." - }, - { - "name": "Failed", - "value": "Failed", - "description": "The environment failed to provision." - }, - { - "name": "Canceled", - "value": "Canceled", - "description": "The environment provisioning was canceled." - }, - { - "name": "Creating", - "value": "Creating", - "description": "The environment is creating." - }, - { - "name": "Accepted", - "value": "Accepted", - "description": "The environment was accepted." - }, - { - "name": "Deleting", - "value": "Deleting", - "description": "The environment is deleting." - }, - { - "name": "Updating", - "value": "Updating", - "description": "The environment is updating." - }, - { - "name": "Preparing", - "value": "Preparing", - "description": "The environment is preparing." - }, - { - "name": "Running", - "value": "Running", - "description": "The environment is running." - }, - { - "name": "Syncing", - "value": "Syncing", - "description": "The environment is Syncing." - }, - { - "name": "MovingResources", - "value": "MovingResources", - "description": "The environment is moving resources." - }, - { - "name": "TransientFailure", - "value": "TransientFailure", - "description": "The environment has a transient failure." - }, - { - "name": "StorageProvisioningFailed", - "value": "StorageProvisioningFailed", - "description": "The environment storage provisioning failed." - } - ] - } - }, - "EnvironmentType": { - "type": "object", - "description": "Properties of an environment type.", - "properties": { - "name": { - "type": "string", - "description": "Name of the environment type" - }, - "deploymentTargetId": { - "type": "string", - "description": "Id of a subscription or management group that the environment type will be\nmapped to. The environment's resources will be deployed into this subscription\nor management group." - }, - "status": { - "$ref": "#/definitions/EnvironmentTypeEnableStatus", - "description": "Indicates whether this environment type is enabled for use in this project." - } - }, - "required": [ - "name", - "deploymentTargetId", - "status" - ] - }, - "EnvironmentTypeEnableStatus": { - "type": "string", - "description": "Indicates whether an environment type is enabled for use in a project.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "EnvironmentTypeEnableStatus", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "The environment type is enabled for use in the project." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "The environment type is not enabled for use in the project." - } - ] - } - }, - "EnvironmentUpdateProperties": { - "type": "object", - "description": "Properties of an environment. These properties can be updated after the\nresource has been created.", - "properties": { - "parameters": { - "type": "object", - "description": "Parameters object for the environment.", - "additionalProperties": {} - } - } - }, - "OperationStatus": { - "type": "object", - "description": "The current status of an async operation", - "properties": { - "id": { - "type": "string", - "description": "Fully qualified ID for the operation status.", - "readOnly": true - }, - "name": { - "type": "string", - "description": "The operation id name" - }, - "status": { - "$ref": "#/definitions/OperationStatusValue", - "description": "Provisioning state of the resource." - }, - "resourceId": { - "type": "string", - "description": "The id of the resource." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the operation" - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the operation" - }, - "percentComplete": { - "type": "number", - "format": "double", - "description": "Percent of the operation that is complete", - "minimum": 0, - "maximum": 100 - }, - "properties": { - "description": "Custom operation properties, populated only for a successful operation." - }, - "error": { - "$ref": "#/definitions/Azure.Core.Foundations.Error", - "description": "Operation Error message" - } - }, - "required": [ - "id", - "status" - ] - }, - "OperationStatusValue": { - "type": "string", - "description": "Indicates whether operation status is running, completed, canceled or failed.", - "enum": [ - "Running", - "Completed", - "Canceled", - "Failed" - ], - "x-ms-enum": { - "name": "OperationStatusValue", - "modelAsString": true, - "values": [ - { - "name": "Running", - "value": "Running", - "description": "Operation is in progress" - }, - { - "name": "Completed", - "value": "Completed", - "description": "Operation is completed with success" - }, - { - "name": "Canceled", - "value": "Canceled", - "description": "Operation was canceled" - }, - { - "name": "Failed", - "value": "Failed", - "description": "Operation failed" - } - ] - } - }, - "PagedCatalog": { - "type": "object", - "description": "Paged collection of Catalog items", - "properties": { - "value": { - "type": "array", - "description": "The Catalog items on this page", - "items": { - "$ref": "#/definitions/Catalog" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedEnvironment": { - "type": "object", - "description": "Results of the environment list operation.", - "properties": { - "value": { - "type": "array", - "description": "The Environment items on this page", - "items": { - "$ref": "#/definitions/Environment" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedEnvironmentDefinition": { - "type": "object", - "description": "Results of the environment definition list operation.", - "properties": { - "value": { - "type": "array", - "description": "The EnvironmentDefinition items on this page", - "items": { - "$ref": "#/definitions/EnvironmentDefinition" - } - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "PagedEnvironmentType": { - "type": "object", - "description": "Result of the environment type list operation.", - "properties": { - "value": { - "type": "array", - "description": "The EnvironmentType items on this page", - "items": { - "$ref": "#/definitions/EnvironmentType" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "format": "uri", - "description": "The link to the next page of items" - } - }, - "required": [ - "value" - ] - }, - "ParameterType": { - "type": "string", - "description": "The type of data a parameter accepts.", - "enum": [ - "array", - "boolean", - "integer", - "number", - "object", - "string" - ], - "x-ms-enum": { - "name": "ParameterType", - "modelAsString": true, - "values": [ - { - "name": "array", - "value": "array", - "description": "The parameter accepts an array of values." - }, - { - "name": "boolean", - "value": "boolean", - "description": "The parameter accepts a boolean value." - }, - { - "name": "integer", - "value": "integer", - "description": "The parameter accepts an integer value." - }, - { - "name": "number", - "value": "number", - "description": "The parameter accepts a number value." - }, - { - "name": "object", - "value": "object", - "description": "The parameter accepts an object value." - }, - { - "name": "string", - "value": "string", - "description": "The parameter accepts a string value." - } - ] - } - }, - "Project": { - "type": "object", - "description": "Project details.", - "properties": { - "name": { - "type": "string", - "description": "Name of the project", - "minLength": 3, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "readOnly": true - }, - "description": { - "type": "string", - "description": "Description of the project." - }, - "maxDevBoxesPerUser": { - "type": "integer", - "format": "int32", - "description": "When specified, indicates the maximum number of Dev Boxes a single user can\ncreate across all pools in the project.", - "minimum": 0 - } - }, - "required": [ - "name" - ] - }, - "User": { - "type": "object", - "description": "Project user", - "properties": { - "userId": { - "type": "string", - "description": "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context", - "minLength": 2, - "maxLength": 36, - "pattern": "^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$", - "readOnly": true - } - }, - "required": [ - "userId" - ] - } - }, - "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/devcenter/data-plane/readme.md b/specification/devcenter/data-plane/readme.md index 7464490abe4c..1a2a95ddb94e 100644 --- a/specification/devcenter/data-plane/readme.md +++ b/specification/devcenter/data-plane/readme.md @@ -96,9 +96,7 @@ These settings apply only when `--tag=package-2023-04-01` is specified on the co ``` yaml $(tag) == 'package-2023-04-01' input-file: - - Microsoft.DevCenter/stable/2023-04-01/devbox.json - Microsoft.DevCenter/stable/2023-04-01/devcenter.json - - Microsoft.DevCenter/stable/2023-04-01/environments.json directive: - suppress: HostParametersValidation From 16201c7b04c855572c7e2ad2281cff556ed0565b Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 28 Feb 2024 17:39:44 -0800 Subject: [PATCH 164/187] rename operationIds --- .../devcenter/DevCenter/DevBox/routes.tsp | 4 +- .../devcenter/DevCenter/DevCenter/routes.tsp | 2 +- .../DevCenter/Environments/routes.tsp | 4 +- specification/devcenter/DevCenter/client.tsp | 60 +++++++++---------- .../DevBoxesOperations_CreateDevBox.json | 2 +- .../DevBoxesOperations_DelayAction.json | 2 +- .../DevBoxesOperations_DelayAllActions.json | 2 +- .../DevBoxesOperations_DeleteDevBox.json | 2 +- .../DevBoxesOperations_GetDevBox.json | 2 +- .../DevBoxesOperations_GetDevBoxAction.json | 2 +- .../DevBoxesOperations_GetPool.json | 2 +- ...evBoxesOperations_GetRemoteConnection.json | 2 +- .../DevBoxesOperations_GetSchedule.json | 2 +- .../DevBoxesOperations_ListDevBoxActions.json | 2 +- .../DevBoxesOperations_ListDevBoxes.json | 2 +- .../DevBoxesOperations_ListPools.json | 2 +- .../DevBoxesOperations_ListSchedules.json | 2 +- .../DevBoxesOperations_RestartDevBox.json | 2 +- .../DevBoxesOperations_SkipAction.json | 2 +- .../DevBoxesOperations_StartDevBox.json | 2 +- .../DevBoxesOperations_StopDevBox.json | 2 +- .../DevCenterOperations_GetProject.json | 2 +- .../DevCenterOperations_ListProjects.json | 2 +- ...sOperations_CreateOrUpdateEnvironment.json | 2 +- ...ironmentsOperations_DeleteEnvironment.json | 2 +- .../EnvironmentsOperations_GetCatalog.json | 2 +- ...EnvironmentsOperations_GetEnvironment.json | 2 +- ...tsOperations_GetEnvironmentDefinition.json | 2 +- ...onmentsOperations_ListAllEnvironments.json | 2 +- .../EnvironmentsOperations_ListCatalogs.json | 2 +- ...Operations_ListEnvironmentDefinitions.json | 2 +- ...s_ListEnvironmentDefinitionsByCatalog.json | 2 +- ...nmentsOperations_ListEnvironmentTypes.json | 2 +- ...vironmentsOperations_ListEnvironments.json | 2 +- .../devcenter/DevCenter/python-client.tsp | 56 ++++++++--------- .../stable/2023-04-01/devcenter.json | 60 +++++++++---------- .../DevBoxesOperations_CreateDevBox.json | 2 +- .../DevBoxesOperations_DelayAction.json | 2 +- .../DevBoxesOperations_DelayAllActions.json | 2 +- .../DevBoxesOperations_DeleteDevBox.json | 2 +- .../DevBoxesOperations_GetDevBox.json | 2 +- .../DevBoxesOperations_GetDevBoxAction.json | 2 +- .../examples/DevBoxesOperations_GetPool.json | 2 +- ...evBoxesOperations_GetRemoteConnection.json | 2 +- .../DevBoxesOperations_GetSchedule.json | 2 +- .../DevBoxesOperations_ListDevBoxActions.json | 2 +- .../DevBoxesOperations_ListDevBoxes.json | 2 +- .../DevBoxesOperations_ListPools.json | 2 +- .../DevBoxesOperations_ListSchedules.json | 2 +- .../DevBoxesOperations_RestartDevBox.json | 2 +- .../DevBoxesOperations_SkipAction.json | 2 +- .../DevBoxesOperations_StartDevBox.json | 2 +- .../DevBoxesOperations_StopDevBox.json | 2 +- .../DevCenterOperations_GetProject.json | 2 +- .../DevCenterOperations_ListProjects.json | 2 +- ...sOperations_CreateOrUpdateEnvironment.json | 2 +- ...ironmentsOperations_DeleteEnvironment.json | 2 +- .../EnvironmentsOperations_GetCatalog.json | 2 +- ...EnvironmentsOperations_GetEnvironment.json | 2 +- ...tsOperations_GetEnvironmentDefinition.json | 2 +- ...onmentsOperations_ListAllEnvironments.json | 2 +- .../EnvironmentsOperations_ListCatalogs.json | 2 +- ...Operations_ListEnvironmentDefinitions.json | 2 +- ...s_ListEnvironmentDefinitionsByCatalog.json | 2 +- ...nmentsOperations_ListEnvironmentTypes.json | 2 +- ...vironmentsOperations_ListEnvironments.json | 2 +- 66 files changed, 153 insertions(+), 153 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/routes.tsp b/specification/devcenter/DevCenter/DevBox/routes.tsp index fec9c7684e1c..6bde7e5c078d 100644 --- a/specification/devcenter/DevCenter/DevBox/routes.tsp +++ b/specification/devcenter/DevCenter/DevBox/routes.tsp @@ -9,7 +9,7 @@ using TypeSpec.Http; namespace DevCenterService; -interface DevBoxes { +interface DevBoxesOperations { @doc("Lists available pools") listPools is StandardResourceOperations.ResourceList; @@ -57,7 +57,7 @@ interface DevBoxes { // "in": "body", // } @doc("Creates or replaces a Dev Box.") - @finalOperation(DevBoxes.getDevBox) + @finalOperation(DevBoxesOperations.getDevBox) @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/devboxes/{devBoxName}") @put diff --git a/specification/devcenter/DevCenter/DevCenter/routes.tsp b/specification/devcenter/DevCenter/DevCenter/routes.tsp index 82c4a9e306fe..61be234c1c9a 100644 --- a/specification/devcenter/DevCenter/DevCenter/routes.tsp +++ b/specification/devcenter/DevCenter/DevCenter/routes.tsp @@ -8,7 +8,7 @@ using TypeSpec.Http; namespace DevCenterService; -interface DevCenter { +interface DevCenterOperations { @doc("Lists all projects.") listProjects is StandardResourceOperations.ResourceList; diff --git a/specification/devcenter/DevCenter/Environments/routes.tsp b/specification/devcenter/DevCenter/Environments/routes.tsp index 60e23e9680a1..f5c6d982b7cf 100644 --- a/specification/devcenter/DevCenter/Environments/routes.tsp +++ b/specification/devcenter/DevCenter/Environments/routes.tsp @@ -10,7 +10,7 @@ using TypeSpec.Http; namespace DevCenterService; -interface Environments { +interface EnvironmentsOperations { #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern since Environment has a different path" @doc("Lists the environments for a project.") @route("/projects/{projectName}/environments") @@ -50,7 +50,7 @@ interface Environments { #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern" //Can not use LongRunningCreateOrReplace because response is 200 or 201, but we only respond with 201" @doc("Creates or updates an environment.") - @finalOperation(Environments.getEnvironment) + @finalOperation(EnvironmentsOperations.getEnvironment) @pollingOperation(SharedOperations.getProjectOperationStatus) @route("/projects/{projectName}/users/{userId}/environments/{environmentName}") @put diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 18391217d5d0..8d358881f273 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -16,8 +16,8 @@ namespace SdkCustomizations; service: DevCenterService, }) interface DevCenterClientOperations { - listProjects is DevCenterService.DevCenter.listProjects; - getProject is DevCenterService.DevCenter.getProject; + listProjects is DevCenterService.DevCenterOperations.listProjects; + getProject is DevCenterService.DevCenterOperations.getProject; } #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "detailed suppress description for each operation can be found in routes.tsp" @@ -26,26 +26,26 @@ interface DevCenterClientOperations { service: DevCenterService, }) interface DevBoxesClientOperations { - listPools is DevCenterService.DevBoxes.listPools; - getPool is DevCenterService.DevBoxes.getPool; - listSchedules is DevCenterService.DevBoxes.listSchedules; - getSchedule is DevCenterService.DevBoxes.getSchedule; + listPools is DevCenterService.DevBoxesOperations.listPools; + getPool is DevCenterService.DevBoxesOperations.getPool; + listSchedules is DevCenterService.DevBoxesOperations.listSchedules; + getSchedule is DevCenterService.DevBoxesOperations.getSchedule; listAllDevBoxes is DevCenterService.DevBoxesDevCenter.listAllDevBoxes; listAllDevBoxesByUser is DevCenterService.DevBoxesDevCenter.listAllDevBoxesByUser; - listDevBoxes is DevCenterService.DevBoxes.listDevBoxes; - getDevBox is DevCenterService.DevBoxes.getDevBox; + listDevBoxes is DevCenterService.DevBoxesOperations.listDevBoxes; + getDevBox is DevCenterService.DevBoxesOperations.getDevBox; @convenientAPI(false) - createDevBox is DevCenterService.DevBoxes.createDevBox; - deleteDevBox is DevCenterService.DevBoxes.deleteDevBox; - startDevBox is DevCenterService.DevBoxes.startDevBox; - stopDevBox is DevCenterService.DevBoxes.stopDevBox; - restartDevBox is DevCenterService.DevBoxes.restartDevBox; - getRemoteConnection is DevCenterService.DevBoxes.getRemoteConnection; - listDevBoxActions is DevCenterService.DevBoxes.listDevBoxActions; - getDevBoxAction is DevCenterService.DevBoxes.getDevBoxAction; - skipAction is DevCenterService.DevBoxes.skipAction; - delayAction is DevCenterService.DevBoxes.delayAction; - delayAllActions is DevCenterService.DevBoxes.delayAllActions; + createDevBox is DevCenterService.DevBoxesOperations.createDevBox; + deleteDevBox is DevCenterService.DevBoxesOperations.deleteDevBox; + startDevBox is DevCenterService.DevBoxesOperations.startDevBox; + stopDevBox is DevCenterService.DevBoxesOperations.stopDevBox; + restartDevBox is DevCenterService.DevBoxesOperations.restartDevBox; + getRemoteConnection is DevCenterService.DevBoxesOperations.getRemoteConnection; + listDevBoxActions is DevCenterService.DevBoxesOperations.listDevBoxActions; + getDevBoxAction is DevCenterService.DevBoxesOperations.getDevBoxAction; + skipAction is DevCenterService.DevBoxesOperations.skipAction; + delayAction is DevCenterService.DevBoxesOperations.delayAction; + delayAllActions is DevCenterService.DevBoxesOperations.delayAllActions; } #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "detailed suppress description for each operation can be found in routes.tsp" @@ -54,17 +54,17 @@ interface DevBoxesClientOperations { service: DevCenterService, }) interface EnvironmentClientOperations { - listAllEnvironments is DevCenterService.Environments.listAllEnvironments; - listEnvironments is DevCenterService.Environments.listEnvironments; - getEnvironment is DevCenterService.Environments.getEnvironment; - createOrUpdateEnvironment is DevCenterService.Environments.createOrUpdateEnvironment; - deleteEnvironment is DevCenterService.Environments.deleteEnvironment; - listCatalogs is DevCenterService.Environments.listCatalogs; - getCatalog is DevCenterService.Environments.getCatalog; - listEnvironmentDefinitions is DevCenterService.Environments.listEnvironmentDefinitions; - listEnvironmentDefinitionsByCatalog is DevCenterService.Environments.listEnvironmentDefinitionsByCatalog; - getEnvironmentDefinition is DevCenterService.Environments.getEnvironmentDefinition; - listEnvironmentTypes is DevCenterService.Environments.listEnvironmentTypes; + listAllEnvironments is DevCenterService.EnvironmentsOperations.listAllEnvironments; + listEnvironments is DevCenterService.EnvironmentsOperations.listEnvironments; + getEnvironment is DevCenterService.EnvironmentsOperations.getEnvironment; + createOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.createOrUpdateEnvironment; + deleteEnvironment is DevCenterService.EnvironmentsOperations.deleteEnvironment; + listCatalogs is DevCenterService.EnvironmentsOperations.listCatalogs; + getCatalog is DevCenterService.EnvironmentsOperations.getCatalog; + listEnvironmentDefinitions is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitions; + listEnvironmentDefinitionsByCatalog is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitionsByCatalog; + getEnvironmentDefinition is DevCenterService.EnvironmentsOperations.getEnvironmentDefinition; + listEnvironmentTypes is DevCenterService.EnvironmentsOperations.listEnvironmentTypes; } @@access(DevCenterService.DevBox, Access.public); diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json index c7e4037d4b1d..f51bad1c0086 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_CreateDevBox.json @@ -1,6 +1,6 @@ { "title": "Creates or replaces a Dev Box.", - "operationId": "DevBoxes_CreateDevBox", + "operationId": "DevBoxesOperations_CreateDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAction.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAction.json index 6a5868c5ec6f..db7107cfc6bc 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAction.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAction.json @@ -1,6 +1,6 @@ { "title": "Delays the occurrence of an action.", - "operationId": "DevBoxes_DelayAction", + "operationId": "DevBoxesOperations_DelayAction", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json index d2118defad1b..6a7ade1eef30 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DelayAllActions.json @@ -1,6 +1,6 @@ { "title": "Delays all actions.", - "operationId": "DevBoxes_DelayAllActions", + "operationId": "DevBoxesOperations_DelayAllActions", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json index bf47f4e2ece2..4843a80ed6c9 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_DeleteDevBox.json @@ -1,6 +1,6 @@ { "title": "Deletes a Dev Box.", - "operationId": "DevBoxes_DeleteDevBox", + "operationId": "DevBoxesOperations_DeleteDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBox.json index 2a9466ad1853..f29193eb0b35 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBox.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBox.json @@ -1,6 +1,6 @@ { "title": "Gets a Dev Box", - "operationId": "DevBoxes_GetDevBox", + "operationId": "DevBoxesOperations_GetDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json index 9dc6907e4778..0d94918c712d 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetDevBoxAction.json @@ -1,6 +1,6 @@ { "title": "Gets an action.", - "operationId": "DevBoxes_GetDevBoxAction", + "operationId": "DevBoxesOperations_GetDevBoxAction", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetPool.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetPool.json index 3bd532947546..7b53a6ac96b4 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetPool.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetPool.json @@ -1,6 +1,6 @@ { "title": "Gets a pool", - "operationId": "DevBoxes_GetPool", + "operationId": "DevBoxesOperations_GetPool", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json index 3ff9f5a30770..a01b7df571fd 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetRemoteConnection.json @@ -1,6 +1,6 @@ { "title": "Gets RDP Connection info", - "operationId": "DevBoxes_GetRemoteConnection", + "operationId": "DevBoxesOperations_GetRemoteConnection", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetSchedule.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetSchedule.json index 0c94f8fd4167..8ba5489b95c6 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetSchedule.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_GetSchedule.json @@ -1,6 +1,6 @@ { "title": "Gets a schedule.", - "operationId": "DevBoxes_GetSchedule", + "operationId": "DevBoxesOperations_GetSchedule", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json index 66ff10604340..db1ae0af7c62 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxActions.json @@ -1,6 +1,6 @@ { "title": "Lists actions on a Dev Box.", - "operationId": "DevBoxes_ListDevBoxActions", + "operationId": "DevBoxesOperations_ListDevBoxActions", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json index d271ba40343f..2140a65cb857 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListDevBoxes.json @@ -1,6 +1,6 @@ { "title": "Lists Dev Boxes in the project for a particular user.", - "operationId": "DevBoxes_ListDevBoxes", + "operationId": "DevBoxesOperations_ListDevBoxes", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListPools.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListPools.json index f31808873991..42c39b484d20 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListPools.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListPools.json @@ -1,6 +1,6 @@ { "title": "Lists available pools", - "operationId": "DevBoxes_ListPools", + "operationId": "DevBoxesOperations_ListPools", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListSchedules.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListSchedules.json index 4bb5de2787fc..0a5afd4f207a 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListSchedules.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_ListSchedules.json @@ -1,6 +1,6 @@ { "title": "Lists available schedules for a pool.", - "operationId": "DevBoxes_ListSchedules", + "operationId": "DevBoxesOperations_ListSchedules", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json index f9abacb1d881..3c0e55515dd6 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_RestartDevBox.json @@ -1,6 +1,6 @@ { "title": "Restarts a Dev Box", - "operationId": "DevBoxes_RestartDevBox", + "operationId": "DevBoxesOperations_RestartDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_SkipAction.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_SkipAction.json index b44cbd7dc65a..1e8552d6bd35 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_SkipAction.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_SkipAction.json @@ -1,6 +1,6 @@ { "title": "Skips an occurrence of an action.", - "operationId": "DevBoxes_SkipAction", + "operationId": "DevBoxesOperations_SkipAction", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StartDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StartDevBox.json index 462358dc151e..292e5e1c947a 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StartDevBox.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StartDevBox.json @@ -1,6 +1,6 @@ { "title": "Starts a Dev Box", - "operationId": "DevBoxes_StartDevBox", + "operationId": "DevBoxesOperations_StartDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StopDevBox.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StopDevBox.json index eb10c60cf0c8..b92d1089e864 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StopDevBox.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevBoxesOperations_StopDevBox.json @@ -1,6 +1,6 @@ { "title": "Stops a Dev Box", - "operationId": "DevBoxes_StopDevBox", + "operationId": "DevBoxesOperations_StopDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json index cc1f988275f0..fe1a721864bc 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_GetProject.json @@ -1,6 +1,6 @@ { "title": "Gets a project.", - "operationId": "DevCenter_GetProject", + "operationId": "DevCenterOperations_GetProject", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json b/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json index 08b5c7d28016..1e7bdde95309 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/DevCenterOperations_ListProjects.json @@ -1,6 +1,6 @@ { "title": "Lists all projects.", - "operationId": "DevCenter_ListProjects", + "operationId": "DevCenterOperations_ListProjects", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com" diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json index 0bc523537a63..40bd8016a490 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_CreateOrUpdateEnvironment.json @@ -1,6 +1,6 @@ { "title": "Creates or updates an environment.", - "operationId": "Environments_CreateOrUpdateEnvironment", + "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json index 2c6dec31e1f3..db378d427835 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_DeleteEnvironment.json @@ -1,6 +1,6 @@ { "title": "Deletes an environment and all its associated resources", - "operationId": "Environments_DeleteEnvironment", + "operationId": "EnvironmentsOperations_DeleteEnvironment", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json index 7a6ccf37974b..7d9de8e13786 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetCatalog.json @@ -1,6 +1,6 @@ { "title": "Gets the specified catalog within the project", - "operationId": "Environments_GetCatalog", + "operationId": "EnvironmentsOperations_GetCatalog", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json index b8962bb6117a..eb89813acaf7 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironment.json @@ -1,6 +1,6 @@ { "title": "Gets an environment", - "operationId": "Environments_GetEnvironment", + "operationId": "EnvironmentsOperations_GetEnvironment", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json index e08ddd9df7f6..e4efa7edea54 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_GetEnvironmentDefinition.json @@ -1,6 +1,6 @@ { "title": "Get an environment definition from a catalog.", - "operationId": "Environments_GetEnvironmentDefinition", + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json index 750fded4c169..ab203c460a33 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListAllEnvironments.json @@ -1,6 +1,6 @@ { "title": "Lists the environments for a project.", - "operationId": "Environments_ListAllEnvironments", + "operationId": "EnvironmentsOperations_ListAllEnvironments", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json index 9aebb61047ca..17c683e6c9b3 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListCatalogs.json @@ -1,6 +1,6 @@ { "title": "Lists all of the catalogs available for a project.", - "operationId": "Environments_ListCatalogs", + "operationId": "EnvironmentsOperations_ListCatalogs", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json index de27ff8c571a..aabe3738602c 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitions.json @@ -1,6 +1,6 @@ { "title": "Lists all environment definitions available for a project.", - "operationId": "Environments_ListEnvironmentDefinitions", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json index 4c021662bf33..d9c411224b8e 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json @@ -1,6 +1,6 @@ { "title": "Lists all environment definitions available within a catalog.", - "operationId": "Environments_ListEnvironmentDefinitionsByCatalog", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json index 364712b931e0..83e22df09846 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironmentTypes.json @@ -1,6 +1,6 @@ { "title": "Lists all environment types configured for a project.", - "operationId": "Environments_ListEnvironmentTypes", + "operationId": "EnvironmentsOperations_ListEnvironmentTypes", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json index 3620693a633e..51f0384a6ffb 100644 --- a/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json +++ b/specification/devcenter/DevCenter/examples/2023-04-01/EnvironmentsOperations_ListEnvironments.json @@ -1,6 +1,6 @@ { "title": "Lists the environments for a project and user.", - "operationId": "Environments_ListEnvironments", + "operationId": "EnvironmentsOperations_ListEnvironments", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/DevCenter/python-client.tsp b/specification/devcenter/DevCenter/python-client.tsp index 287a658cbe72..3d2e693c719f 100644 --- a/specification/devcenter/DevCenter/python-client.tsp +++ b/specification/devcenter/DevCenter/python-client.tsp @@ -21,36 +21,36 @@ interface DevCenterClientOperations { getProject is DevCenterService.DevCenter.getProject; //DevBoxes - listPools is DevCenterService.DevBoxes.listPools; - getPool is DevCenterService.DevBoxes.getPool; - listSchedules is DevCenterService.DevBoxes.listSchedules; - getSchedule is DevCenterService.DevBoxes.getSchedule; + listPools is DevCenterService.DevBoxesOperations.listPools; + getPool is DevCenterService.DevBoxesOperations.getPool; + listSchedules is DevCenterService.DevBoxesOperations.listSchedules; + getSchedule is DevCenterService.DevBoxesOperations.getSchedule; listAllDevBoxes is DevCenterService.DevBoxesDevCenter.listAllDevBoxes; listAllDevBoxesByUser is DevCenterService.DevBoxesDevCenter.listAllDevBoxesByUser; - listDevBoxes is DevCenterService.DevBoxes.listDevBoxes; - getDevBox is DevCenterService.DevBoxes.getDevBox; - createDevBox is DevCenterService.DevBoxes.createDevBox; - deleteDevBox is DevCenterService.DevBoxes.deleteDevBox; - startDevBox is DevCenterService.DevBoxes.startDevBox; - stopDevBox is DevCenterService.DevBoxes.stopDevBox; - restartDevBox is DevCenterService.DevBoxes.restartDevBox; - getRemoteConnection is DevCenterService.DevBoxes.getRemoteConnection; - listDevBoxActions is DevCenterService.DevBoxes.listDevBoxActions; - getDevBoxAction is DevCenterService.DevBoxes.getDevBoxAction; - skipAction is DevCenterService.DevBoxes.skipAction; - delayAction is DevCenterService.DevBoxes.delayAction; - delayAllActions is DevCenterService.DevBoxes.delayAllActions; + listDevBoxes is DevCenterService.DevBoxesOperations.listDevBoxes; + getDevBox is DevCenterService.DevBoxesOperations.getDevBox; + createDevBox is DevCenterService.DevBoxesOperations.createDevBox; + deleteDevBox is DevCenterService.DevBoxesOperations.deleteDevBox; + startDevBox is DevCenterService.DevBoxesOperations.startDevBox; + stopDevBox is DevCenterService.DevBoxesOperations.stopDevBox; + restartDevBox is DevCenterService.DevBoxesOperations.restartDevBox; + getRemoteConnection is DevCenterService.DevBoxesOperations.getRemoteConnection; + listDevBoxActions is DevCenterService.DevBoxesOperations.listDevBoxActions; + getDevBoxAction is DevCenterService.DevBoxesOperations.getDevBoxAction; + skipAction is DevCenterService.DevBoxesOperations.skipAction; + delayAction is DevCenterService.DevBoxesOperations.delayAction; + delayAllActions is DevCenterService.DevBoxesOperations.delayAllActions; //Environments - listAllEnvironments is DevCenterService.Environments.listAllEnvironments; - listEnvironments is DevCenterService.Environments.listEnvironments; - getEnvironment is DevCenterService.Environments.getEnvironment; - createOrUpdateEnvironment is DevCenterService.Environments.createOrUpdateEnvironment; - deleteEnvironment is DevCenterService.Environments.deleteEnvironment; - listCatalogs is DevCenterService.Environments.listCatalogs; - getCatalog is DevCenterService.Environments.getCatalog; - listEnvironmentDefinitions is DevCenterService.Environments.listEnvironmentDefinitions; - listEnvironmentDefinitionsByCatalog is DevCenterService.Environments.listEnvironmentDefinitionsByCatalog; - getEnvironmentDefinition is DevCenterService.Environments.getEnvironmentDefinition; - listEnvironmentTypes is DevCenterService.Environments.listEnvironmentTypes; + listAllEnvironments is DevCenterService.EnvironmentsOperations.listAllEnvironments; + listEnvironments is DevCenterService.EnvironmentsOperations.listEnvironments; + getEnvironment is DevCenterService.EnvironmentsOperations.getEnvironment; + createOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.createOrUpdateEnvironment; + deleteEnvironment is DevCenterService.EnvironmentsOperations.deleteEnvironment; + listCatalogs is DevCenterService.EnvironmentsOperations.listCatalogs; + getCatalog is DevCenterService.EnvironmentsOperations.getCatalog; + listEnvironmentDefinitions is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitions; + listEnvironmentDefinitionsByCatalog is DevCenterService.EnvironmentsOperations.listEnvironmentDefinitionsByCatalog; + getEnvironmentDefinition is DevCenterService.EnvironmentsOperations.getEnvironmentDefinition; + listEnvironmentTypes is DevCenterService.EnvironmentsOperations.listEnvironmentTypes; } diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json index 5e687aaf7fb9..e5a296074828 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json @@ -92,7 +92,7 @@ }, "/projects": { "get": { - "operationId": "DevCenter_ListProjects", + "operationId": "DevCenterOperations_ListProjects", "description": "Lists all projects.", "parameters": [ { @@ -131,7 +131,7 @@ }, "/projects/{projectName}": { "get": { - "operationId": "DevCenter_GetProject", + "operationId": "DevCenterOperations_GetProject", "description": "Gets a project.", "parameters": [ { @@ -177,7 +177,7 @@ }, "/projects/{projectName}/catalogs": { "get": { - "operationId": "Environments_ListCatalogs", + "operationId": "EnvironmentsOperations_ListCatalogs", "description": "Lists all of the catalogs available for a project.", "parameters": [ { @@ -226,7 +226,7 @@ }, "/projects/{projectName}/catalogs/{catalogName}": { "get": { - "operationId": "Environments_GetCatalog", + "operationId": "EnvironmentsOperations_GetCatalog", "description": "Gets the specified catalog within the project", "parameters": [ { @@ -282,7 +282,7 @@ }, "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { "get": { - "operationId": "Environments_ListEnvironmentDefinitionsByCatalog", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", "description": "Lists all environment definitions available within a catalog.", "parameters": [ { @@ -335,7 +335,7 @@ }, "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}": { "get": { - "operationId": "Environments_GetEnvironmentDefinition", + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", "description": "Get an environment definition from a catalog.", "parameters": [ { @@ -401,7 +401,7 @@ }, "/projects/{projectName}/environmentDefinitions": { "get": { - "operationId": "Environments_ListEnvironmentDefinitions", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", "description": "Lists all environment definitions available for a project.", "parameters": [ { @@ -447,7 +447,7 @@ }, "/projects/{projectName}/environmentTypes": { "get": { - "operationId": "Environments_ListEnvironmentTypes", + "operationId": "EnvironmentsOperations_ListEnvironmentTypes", "description": "Lists all environment types configured for a project.", "parameters": [ { @@ -493,7 +493,7 @@ }, "/projects/{projectName}/environments": { "get": { - "operationId": "Environments_ListAllEnvironments", + "operationId": "EnvironmentsOperations_ListAllEnvironments", "description": "Lists the environments for a project.", "parameters": [ { @@ -592,7 +592,7 @@ }, "/projects/{projectName}/pools": { "get": { - "operationId": "DevBoxes_ListPools", + "operationId": "DevBoxesOperations_ListPools", "description": "Lists available pools", "parameters": [ { @@ -641,7 +641,7 @@ }, "/projects/{projectName}/pools/{poolName}": { "get": { - "operationId": "DevBoxes_GetPool", + "operationId": "DevBoxesOperations_GetPool", "description": "Gets a pool", "parameters": [ { @@ -694,7 +694,7 @@ }, "/projects/{projectName}/pools/{poolName}/schedules": { "get": { - "operationId": "DevBoxes_ListSchedules", + "operationId": "DevBoxesOperations_ListSchedules", "description": "Lists available schedules for a pool.", "parameters": [ { @@ -750,7 +750,7 @@ }, "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { "get": { - "operationId": "DevBoxes_GetSchedule", + "operationId": "DevBoxesOperations_GetSchedule", "description": "Gets a schedule.", "parameters": [ { @@ -810,7 +810,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes": { "get": { - "operationId": "DevBoxes_ListDevBoxes", + "operationId": "DevBoxesOperations_ListDevBoxes", "description": "Lists Dev Boxes in the project for a particular user.", "parameters": [ { @@ -863,7 +863,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}": { "get": { - "operationId": "DevBoxes_GetDevBox", + "operationId": "DevBoxesOperations_GetDevBox", "description": "Gets a Dev Box", "parameters": [ { @@ -927,7 +927,7 @@ } }, "put": { - "operationId": "DevBoxes_CreateDevBox", + "operationId": "DevBoxesOperations_CreateDevBox", "description": "Creates or replaces a Dev Box.", "parameters": [ { @@ -1008,7 +1008,7 @@ "x-ms-long-running-operation": true }, "delete": { - "operationId": "DevBoxes_DeleteDevBox", + "operationId": "DevBoxesOperations_DeleteDevBox", "description": "Deletes a Dev Box.", "parameters": [ { @@ -1077,7 +1077,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start": { "post": { - "operationId": "DevBoxes_StartDevBox", + "operationId": "DevBoxesOperations_StartDevBox", "description": "Starts a Dev Box", "parameters": [ { @@ -1151,7 +1151,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop": { "post": { - "operationId": "DevBoxes_StopDevBox", + "operationId": "DevBoxesOperations_StopDevBox", "description": "Stops a Dev Box", "parameters": [ { @@ -1232,7 +1232,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart": { "post": { - "operationId": "DevBoxes_RestartDevBox", + "operationId": "DevBoxesOperations_RestartDevBox", "description": "Restarts a Dev Box", "parameters": [ { @@ -1306,7 +1306,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions": { "get": { - "operationId": "DevBoxes_ListDevBoxActions", + "operationId": "DevBoxesOperations_ListDevBoxActions", "description": "Lists actions on a Dev Box.", "parameters": [ { @@ -1375,7 +1375,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}": { "get": { - "operationId": "DevBoxes_GetDevBoxAction", + "operationId": "DevBoxesOperations_GetDevBoxAction", "description": "Gets an action.", "parameters": [ { @@ -1451,7 +1451,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip": { "post": { - "operationId": "DevBoxes_SkipAction", + "operationId": "DevBoxesOperations_SkipAction", "description": "Skips an occurrence of an action.", "parameters": [ { @@ -1524,7 +1524,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay": { "post": { - "operationId": "DevBoxes_DelayAction", + "operationId": "DevBoxesOperations_DelayAction", "description": "Delays the occurrence of an action.", "parameters": [ { @@ -1609,7 +1609,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay": { "post": { - "operationId": "DevBoxes_DelayAllActions", + "operationId": "DevBoxesOperations_DelayAllActions", "description": "Delays all actions.", "parameters": [ { @@ -1687,7 +1687,7 @@ }, "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection": { "get": { - "operationId": "DevBoxes_GetRemoteConnection", + "operationId": "DevBoxesOperations_GetRemoteConnection", "description": "Gets RDP Connection info", "parameters": [ { @@ -1744,7 +1744,7 @@ }, "/projects/{projectName}/users/{userId}/environments": { "get": { - "operationId": "Environments_ListEnvironments", + "operationId": "EnvironmentsOperations_ListEnvironments", "description": "Lists the environments for a project and user.", "parameters": [ { @@ -1797,7 +1797,7 @@ }, "/projects/{projectName}/users/{userId}/environments/{environmentName}": { "get": { - "operationId": "Environments_GetEnvironment", + "operationId": "EnvironmentsOperations_GetEnvironment", "description": "Gets an environment", "parameters": [ { @@ -1861,7 +1861,7 @@ } }, "put": { - "operationId": "Environments_CreateOrUpdateEnvironment", + "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", "description": "Creates or updates an environment.", "parameters": [ { @@ -1931,7 +1931,7 @@ "x-ms-long-running-operation": true }, "delete": { - "operationId": "Environments_DeleteEnvironment", + "operationId": "EnvironmentsOperations_DeleteEnvironment", "description": "Deletes an environment and all its associated resources", "parameters": [ { diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json index c7e4037d4b1d..f51bad1c0086 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_CreateDevBox.json @@ -1,6 +1,6 @@ { "title": "Creates or replaces a Dev Box.", - "operationId": "DevBoxes_CreateDevBox", + "operationId": "DevBoxesOperations_CreateDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json index 6a5868c5ec6f..db7107cfc6bc 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAction.json @@ -1,6 +1,6 @@ { "title": "Delays the occurrence of an action.", - "operationId": "DevBoxes_DelayAction", + "operationId": "DevBoxesOperations_DelayAction", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json index d2118defad1b..6a7ade1eef30 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DelayAllActions.json @@ -1,6 +1,6 @@ { "title": "Delays all actions.", - "operationId": "DevBoxes_DelayAllActions", + "operationId": "DevBoxesOperations_DelayAllActions", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json index bf47f4e2ece2..4843a80ed6c9 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_DeleteDevBox.json @@ -1,6 +1,6 @@ { "title": "Deletes a Dev Box.", - "operationId": "DevBoxes_DeleteDevBox", + "operationId": "DevBoxesOperations_DeleteDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json index 2a9466ad1853..f29193eb0b35 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBox.json @@ -1,6 +1,6 @@ { "title": "Gets a Dev Box", - "operationId": "DevBoxes_GetDevBox", + "operationId": "DevBoxesOperations_GetDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json index 9dc6907e4778..0d94918c712d 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetDevBoxAction.json @@ -1,6 +1,6 @@ { "title": "Gets an action.", - "operationId": "DevBoxes_GetDevBoxAction", + "operationId": "DevBoxesOperations_GetDevBoxAction", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json index 3bd532947546..7b53a6ac96b4 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetPool.json @@ -1,6 +1,6 @@ { "title": "Gets a pool", - "operationId": "DevBoxes_GetPool", + "operationId": "DevBoxesOperations_GetPool", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json index 3ff9f5a30770..a01b7df571fd 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetRemoteConnection.json @@ -1,6 +1,6 @@ { "title": "Gets RDP Connection info", - "operationId": "DevBoxes_GetRemoteConnection", + "operationId": "DevBoxesOperations_GetRemoteConnection", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json index 0c94f8fd4167..8ba5489b95c6 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_GetSchedule.json @@ -1,6 +1,6 @@ { "title": "Gets a schedule.", - "operationId": "DevBoxes_GetSchedule", + "operationId": "DevBoxesOperations_GetSchedule", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json index 66ff10604340..db1ae0af7c62 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxActions.json @@ -1,6 +1,6 @@ { "title": "Lists actions on a Dev Box.", - "operationId": "DevBoxes_ListDevBoxActions", + "operationId": "DevBoxesOperations_ListDevBoxActions", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json index d271ba40343f..2140a65cb857 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListDevBoxes.json @@ -1,6 +1,6 @@ { "title": "Lists Dev Boxes in the project for a particular user.", - "operationId": "DevBoxes_ListDevBoxes", + "operationId": "DevBoxesOperations_ListDevBoxes", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json index f31808873991..42c39b484d20 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListPools.json @@ -1,6 +1,6 @@ { "title": "Lists available pools", - "operationId": "DevBoxes_ListPools", + "operationId": "DevBoxesOperations_ListPools", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json index 4bb5de2787fc..0a5afd4f207a 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_ListSchedules.json @@ -1,6 +1,6 @@ { "title": "Lists available schedules for a pool.", - "operationId": "DevBoxes_ListSchedules", + "operationId": "DevBoxesOperations_ListSchedules", "parameters": { "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", "projectName": "myProject", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json index f9abacb1d881..3c0e55515dd6 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_RestartDevBox.json @@ -1,6 +1,6 @@ { "title": "Restarts a Dev Box", - "operationId": "DevBoxes_RestartDevBox", + "operationId": "DevBoxesOperations_RestartDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json index b44cbd7dc65a..1e8552d6bd35 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_SkipAction.json @@ -1,6 +1,6 @@ { "title": "Skips an occurrence of an action.", - "operationId": "DevBoxes_SkipAction", + "operationId": "DevBoxesOperations_SkipAction", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json index 462358dc151e..292e5e1c947a 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StartDevBox.json @@ -1,6 +1,6 @@ { "title": "Starts a Dev Box", - "operationId": "DevBoxes_StartDevBox", + "operationId": "DevBoxesOperations_StartDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json index eb10c60cf0c8..b92d1089e864 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevBoxesOperations_StopDevBox.json @@ -1,6 +1,6 @@ { "title": "Stops a Dev Box", - "operationId": "DevBoxes_StopDevBox", + "operationId": "DevBoxesOperations_StopDevBox", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json index cc1f988275f0..fe1a721864bc 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_GetProject.json @@ -1,6 +1,6 @@ { "title": "Gets a project.", - "operationId": "DevCenter_GetProject", + "operationId": "DevCenterOperations_GetProject", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json index 08b5c7d28016..1e7bdde95309 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/DevCenterOperations_ListProjects.json @@ -1,6 +1,6 @@ { "title": "Lists all projects.", - "operationId": "DevCenter_ListProjects", + "operationId": "DevCenterOperations_ListProjects", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com" diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json index 0bc523537a63..40bd8016a490 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_CreateOrUpdateEnvironment.json @@ -1,6 +1,6 @@ { "title": "Creates or updates an environment.", - "operationId": "Environments_CreateOrUpdateEnvironment", + "operationId": "EnvironmentsOperations_CreateOrUpdateEnvironment", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json index 2c6dec31e1f3..db378d427835 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_DeleteEnvironment.json @@ -1,6 +1,6 @@ { "title": "Deletes an environment and all its associated resources", - "operationId": "Environments_DeleteEnvironment", + "operationId": "EnvironmentsOperations_DeleteEnvironment", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json index 7a6ccf37974b..7d9de8e13786 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetCatalog.json @@ -1,6 +1,6 @@ { "title": "Gets the specified catalog within the project", - "operationId": "Environments_GetCatalog", + "operationId": "EnvironmentsOperations_GetCatalog", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json index b8962bb6117a..eb89813acaf7 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironment.json @@ -1,6 +1,6 @@ { "title": "Gets an environment", - "operationId": "Environments_GetEnvironment", + "operationId": "EnvironmentsOperations_GetEnvironment", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json index e08ddd9df7f6..e4efa7edea54 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_GetEnvironmentDefinition.json @@ -1,6 +1,6 @@ { "title": "Get an environment definition from a catalog.", - "operationId": "Environments_GetEnvironmentDefinition", + "operationId": "EnvironmentsOperations_GetEnvironmentDefinition", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json index 750fded4c169..ab203c460a33 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListAllEnvironments.json @@ -1,6 +1,6 @@ { "title": "Lists the environments for a project.", - "operationId": "Environments_ListAllEnvironments", + "operationId": "EnvironmentsOperations_ListAllEnvironments", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json index 9aebb61047ca..17c683e6c9b3 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListCatalogs.json @@ -1,6 +1,6 @@ { "title": "Lists all of the catalogs available for a project.", - "operationId": "Environments_ListCatalogs", + "operationId": "EnvironmentsOperations_ListCatalogs", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json index de27ff8c571a..aabe3738602c 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitions.json @@ -1,6 +1,6 @@ { "title": "Lists all environment definitions available for a project.", - "operationId": "Environments_ListEnvironmentDefinitions", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitions", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json index 4c021662bf33..d9c411224b8e 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog.json @@ -1,6 +1,6 @@ { "title": "Lists all environment definitions available within a catalog.", - "operationId": "Environments_ListEnvironmentDefinitionsByCatalog", + "operationId": "EnvironmentsOperations_ListEnvironmentDefinitionsByCatalog", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json index 364712b931e0..83e22df09846 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironmentTypes.json @@ -1,6 +1,6 @@ { "title": "Lists all environment types configured for a project.", - "operationId": "Environments_ListEnvironmentTypes", + "operationId": "EnvironmentsOperations_ListEnvironmentTypes", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json index 3620693a633e..51f0384a6ffb 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/examples/EnvironmentsOperations_ListEnvironments.json @@ -1,6 +1,6 @@ { "title": "Lists the environments for a project and user.", - "operationId": "Environments_ListEnvironments", + "operationId": "EnvironmentsOperations_ListEnvironments", "parameters": { "api-version": "2023-04-01", "endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", From 2a0211f3f80d2be766e91af8f17f5d99714e9ae4 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 29 Feb 2024 09:43:15 -0800 Subject: [PATCH 165/187] retrigger checks From c27c4d30ef82f46bab55c9ecaae563a09490d353 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 29 Feb 2024 11:53:15 -0800 Subject: [PATCH 166/187] retrigger checks after .net PR From a4a6fd81dfee00df5d5c485b00b0ac17d40ce7a0 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 5 Mar 2024 10:53:06 -0800 Subject: [PATCH 167/187] Fixing PR comments --- .../DevCenter/Environments/models.tsp | 5 +-- specification/devcenter/DevCenter/client.tsp | 20 +--------- .../devcenter/DevCenter/python-client.tsp | 39 ++++++++++++++++--- .../devcenter/DevCenter/tspconfig.yaml | 1 - .../stable/2023-04-01/devcenter.json | 4 +- 5 files changed, 41 insertions(+), 28 deletions(-) diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index 8332a650b796..f9da2fccb68a 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -163,10 +163,9 @@ model EnvironmentDefinition { @doc("Input parameters passed to an environment.") parameters?: EnvironmentDefinitionParameter[]; - #suppress "@azure-tools/typespec-azure-core/no-unknown" "there is no build in type to describe json" - //using unkown here is better than string since it generates BinaryData in the SDK + #suppress "@azure-tools/typespec-azure-core/bad-record-type" "there is no build in type to describe json" @doc("JSON schema defining the parameters object passed to an environment.") - parametersSchema?: unknown; + parametersSchema?: Record; @doc("Path to the Environment Definition entrypoint file.") templatePath?: string; diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 8d358881f273..1dca22b23186 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -1,6 +1,4 @@ -import "./Environments/routes.tsp"; -import "./DevCenter/routes.tsp"; -import "./DevBox/routes.tsp"; +import "./main.tsp"; import "@azure-tools/typespec-client-generator-core"; using Azure.Core; @@ -34,7 +32,7 @@ interface DevBoxesClientOperations { listAllDevBoxesByUser is DevCenterService.DevBoxesDevCenter.listAllDevBoxesByUser; listDevBoxes is DevCenterService.DevBoxesOperations.listDevBoxes; getDevBox is DevCenterService.DevBoxesOperations.getDevBox; - @convenientAPI(false) + @convenientAPI(false) // https://github.com/Azure/azure-rest-api-specs/issues/28083 createDevBox is DevCenterService.DevBoxesOperations.createDevBox; deleteDevBox is DevCenterService.DevBoxesOperations.deleteDevBox; startDevBox is DevCenterService.DevBoxesOperations.startDevBox; @@ -230,17 +228,3 @@ interface EnvironmentClientOperations { "DevCenterOperationDetails" ); @@projectedName(DevCenterService.Project, "java", "DevCenterProject"); - -@@projectedName(DevCenterService.OsType, "python", "OSType"); -@@projectedName(DevCenterService.HardwareProfile.vCPUs, "python", "vcpus"); -@@projectedName(DevCenterService.HardwareProfile.memoryGB, - "python", - "memoryGb" -); -@@projectedName(DevCenterService.OsDisk, "python", "OSDisk"); -@@projectedName(DevCenterService.OsDisk.diskSizeGB, "python", "diskSizeGb"); -@@projectedName(DevCenterService.OperationStatus, "python", "OperationDetails"); -@@projectedName(DevCenterService.OperationStatusValue, - "python", - "OperationStatus" -); diff --git a/specification/devcenter/DevCenter/python-client.tsp b/specification/devcenter/DevCenter/python-client.tsp index 3d2e693c719f..b13197af039a 100644 --- a/specification/devcenter/DevCenter/python-client.tsp +++ b/specification/devcenter/DevCenter/python-client.tsp @@ -1,6 +1,4 @@ -import "./environments/routes.tsp"; -import "./devcenter/routes.tsp"; -import "./devbox/routes.tsp"; +import "./main.tsp"; import "@azure-tools/typespec-client-generator-core"; using Azure.Core; @@ -17,8 +15,8 @@ namespace PythonSdkCustomizations; }) interface DevCenterClientOperations { //DevCenters - listProjects is DevCenterService.DevCenter.listProjects; - getProject is DevCenterService.DevCenter.getProject; + listProjects is DevCenterService.DevCenterOperations.listProjects; + getProject is DevCenterService.DevCenterOperations.getProject; //DevBoxes listPools is DevCenterService.DevBoxesOperations.listPools; @@ -54,3 +52,34 @@ interface DevCenterClientOperations { getEnvironmentDefinition is DevCenterService.EnvironmentsOperations.getEnvironmentDefinition; listEnvironmentTypes is DevCenterService.EnvironmentsOperations.listEnvironmentTypes; } + +@@projectedName(DevCenterService.LocalAdminStatus, + "client", + "LocalAdministratorStatus" +); +@@projectedName(DevCenterService.StopOnDisconnectEnableStatus, + "client", + "StopOnDisconnectStatus" +); +@@projectedName(DevCenterService.EnvironmentTypeEnableStatus, + "client", + "EnvironmentTypeStatus" +); +@@projectedName(DevCenterService.DevBoxActionDelayResultStatus, + "client", + "DevBoxActionDelayStatus" +); + +@@projectedName(DevCenterService.OsType, "python", "OSType"); +@@projectedName(DevCenterService.HardwareProfile.vCPUs, "python", "vcpus"); +@@projectedName(DevCenterService.HardwareProfile.memoryGB, + "python", + "memoryGb" +); +@@projectedName(DevCenterService.OsDisk, "python", "OSDisk"); +@@projectedName(DevCenterService.OsDisk.diskSizeGB, "python", "diskSizeGb"); +@@projectedName(DevCenterService.OperationStatus, "python", "OperationDetails"); +@@projectedName(DevCenterService.OperationStatusValue, + "python", + "OperationStatus" +); diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index 65f395238ea1..bd8b4aa629ed 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -20,7 +20,6 @@ options: "@azure-tools/typespec-python": package-dir: "azure-developer-devcenter" package-name: "{package-dir}" - package-mode: "azure-dataplane" "@azure-tools/typespec-ts": title: "Azure Developer DevCenter" package-dir: "developer-devcenter-rest" diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json index e5a296074828..a21f0806c684 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json @@ -2597,7 +2597,9 @@ } }, "parametersSchema": { - "description": "JSON schema defining the parameters object passed to an environment." + "type": "object", + "description": "JSON schema defining the parameters object passed to an environment.", + "additionalProperties": {} }, "templatePath": { "type": "string", From b8f55f82ebc115f858c34f03bf3cfdffc56af9cc Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 5 Mar 2024 14:07:01 -0800 Subject: [PATCH 168/187] Revert parametersSchema type --- specification/devcenter/DevCenter/Environments/models.tsp | 4 ++-- .../Microsoft.DevCenter/stable/2023-04-01/devcenter.json | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index f9da2fccb68a..3c5b408a3372 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -163,9 +163,9 @@ model EnvironmentDefinition { @doc("Input parameters passed to an environment.") parameters?: EnvironmentDefinitionParameter[]; - #suppress "@azure-tools/typespec-azure-core/bad-record-type" "there is no build in type to describe json" + #suppress "@azure-tools/typespec-azure-core/no-unknown" "there is no build in type to describe json" @doc("JSON schema defining the parameters object passed to an environment.") - parametersSchema?: Record; + parametersSchema?: unknown; @doc("Path to the Environment Definition entrypoint file.") templatePath?: string; diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json index a21f0806c684..e5a296074828 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json @@ -2597,9 +2597,7 @@ } }, "parametersSchema": { - "type": "object", - "description": "JSON schema defining the parameters object passed to an environment.", - "additionalProperties": {} + "description": "JSON schema defining the parameters object passed to an environment." }, "templatePath": { "type": "string", From 2a49d4692fa0f0d0351f6a3db639f59b9c54c97d Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Tue, 5 Mar 2024 16:06:18 -0800 Subject: [PATCH 169/187] Updates for python client --- specification/devcenter/DevCenter/python-client.tsp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/specification/devcenter/DevCenter/python-client.tsp b/specification/devcenter/DevCenter/python-client.tsp index b13197af039a..accddbb1bbf7 100644 --- a/specification/devcenter/DevCenter/python-client.tsp +++ b/specification/devcenter/DevCenter/python-client.tsp @@ -9,6 +9,7 @@ using Azure.ClientGenerator.Core; @useDependency(APIVersions.v2023_04_01) namespace PythonSdkCustomizations; +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "detailed suppress description for each operation can be found in routes.tsp" @client({ name: "DevCenterClient", service: DevCenterService, @@ -35,9 +36,9 @@ interface DevCenterClientOperations { getRemoteConnection is DevCenterService.DevBoxesOperations.getRemoteConnection; listDevBoxActions is DevCenterService.DevBoxesOperations.listDevBoxActions; getDevBoxAction is DevCenterService.DevBoxesOperations.getDevBoxAction; - skipAction is DevCenterService.DevBoxesOperations.skipAction; - delayAction is DevCenterService.DevBoxesOperations.delayAction; - delayAllActions is DevCenterService.DevBoxesOperations.delayAllActions; + skipDevBoxAction is DevCenterService.DevBoxesOperations.skipAction; + delayDevBoxAction is DevCenterService.DevBoxesOperations.delayAction; + delayAllDevBoxActions is DevCenterService.DevBoxesOperations.delayAllActions; //Environments listAllEnvironments is DevCenterService.EnvironmentsOperations.listAllEnvironments; From 51007f5213a76da04a0b8969f0dd29fe50cb0d67 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 6 Mar 2024 15:20:13 -0800 Subject: [PATCH 170/187] Disable covenient api for csharp only --- specification/devcenter/DevCenter/client.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 1dca22b23186..005dfba536f2 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -32,7 +32,7 @@ interface DevBoxesClientOperations { listAllDevBoxesByUser is DevCenterService.DevBoxesDevCenter.listAllDevBoxesByUser; listDevBoxes is DevCenterService.DevBoxesOperations.listDevBoxes; getDevBox is DevCenterService.DevBoxesOperations.getDevBox; - @convenientAPI(false) // https://github.com/Azure/azure-rest-api-specs/issues/28083 + @convenientAPI(false, "csharp") // https://github.com/Azure/azure-rest-api-specs/issues/28083 createDevBox is DevCenterService.DevBoxesOperations.createDevBox; deleteDevBox is DevCenterService.DevBoxesOperations.deleteDevBox; startDevBox is DevCenterService.DevBoxesOperations.startDevBox; From d116696f4ffbdc71a0547da324247538e6ddb879 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 6 Mar 2024 16:02:59 -0800 Subject: [PATCH 171/187] Update projected names --- specification/devcenter/DevCenter/client.tsp | 26 ++++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 005dfba536f2..701196ba3e3d 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -90,6 +90,10 @@ interface EnvironmentClientOperations { "csharp", "ScheduleFrequency" ); +@@projectedName(DevCenterService.ScheduledType, + "csharp", + "ScheduleType" +); @@projectedName(DevCenterService.Pool, "csharp", "DevBoxPool"); @@projectedName(DevCenterService.Pool.osType, "csharp", "OSType"); @@projectedName(DevCenterService.Pool.localAdministrator, @@ -115,7 +119,8 @@ interface EnvironmentClientOperations { "OSBuildNumber" ); @@projectedName(DevCenterService.Schedule, "csharp", "DevBoxSchedule"); -@@projectedName(DevCenterService.Schedule.type, "csharp", "scheduledType"); +@@projectedName(DevCenterService.Schedule.type, "csharp", "scheduleType"); +@@projectedName(DevCenterService.Schedule.frequency, "csharp", "scheduleFrequency"); @@projectedName(DevCenterService.DevBox.osType, "csharp", "OSType"); @@projectedName(DevCenterService.DevBox.user, "csharp", "userId"); @@projectedName(DevCenterService.DevBox.localAdministrator, @@ -157,7 +162,7 @@ interface EnvironmentClientOperations { ); @@projectedName(DevCenterService.OperationStatusValue, "csharp", - "DevCenterStatus" + "DevCenterOperationStatus" ); @@projectedName(DevCenterService.OperationStatus, "csharp", @@ -170,6 +175,10 @@ interface EnvironmentClientOperations { "java", "ScheduleFrequency" ); +@@projectedName(DevCenterService.ScheduledType, + "java", + "ScheduleType" +); @@projectedName(DevCenterService.Pool, "java", "DevBoxPool"); @@projectedName(DevCenterService.Pool.localAdministrator, "java", @@ -183,18 +192,24 @@ interface EnvironmentClientOperations { "java", "DevBoxStorageProfile" ); +@@projectedName(DevCenterService.OsDisk.diskSizeGB, "java", "diskSizeGb"); @@projectedName(DevCenterService.ImageReference, "java", "DevBoxImageReference" ); @@projectedName(DevCenterService.Schedule, "java", "DevBoxSchedule"); -@@projectedName(DevCenterService.Schedule.type, "java", "scheduledType"); +@@projectedName(DevCenterService.Schedule.type, "java", "scheduleType"); +@@projectedName(DevCenterService.Schedule.frequency, "java", "scheduleFrequency"); @@projectedName(DevCenterService.DevBox.user, "java", "userId"); @@projectedName(DevCenterService.DevBox.localAdministrator, "java", "LocalAdministratorStatus" ); @@projectedName(DevCenterService.DevBoxAction.next, "java", "nextAction"); +@@projectedName(DevCenterService.DevBoxActionDelayResult.name, + "java", + "actionName" +); @@projectedName(DevCenterService.ParameterType, "java", "EnvironmentDefinitionParameterType" @@ -218,10 +233,11 @@ interface EnvironmentClientOperations { "java", "DevCenterEnvironmentType" ); -@@projectedName(DevCenterService.HardwareProfile.vCPUs, "java", "vcpus"); +@@projectedName(DevCenterService.HardwareProfile.vCPUs, "java", "vCpus"); +@@projectedName(DevCenterService.HardwareProfile.memoryGB, "java", "memoryGb"); @@projectedName(DevCenterService.OperationStatusValue, "java", - "DevCenterStatus" + "DevCenterOperationStatus" ); @@projectedName(DevCenterService.OperationStatus, "java", From f40ed708ace02c4a1f9b0187e520adc40e493ebb Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 6 Mar 2024 16:29:09 -0800 Subject: [PATCH 172/187] update package version ts --- specification/devcenter/DevCenter/tspconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index bd8b4aa629ed..b284d933139f 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -27,7 +27,7 @@ options: packageDetails: name: "@azure-rest/developer-devcenter" description: "Azure Developer DevCenter Client" - version: "1.0.0-beta.3" + version: "1.0.0" "@azure-tools/typespec-java": package-dir: "azure-developer-devcenter" namespace: com.azure.developer.devcenter \ No newline at end of file From ed9af7e758888f9569cbb1f7818681f2bcd10999 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Wed, 6 Mar 2024 16:32:14 -0800 Subject: [PATCH 173/187] npx tsp format --- specification/devcenter/DevCenter/client.tsp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 701196ba3e3d..179120cb0bc8 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -90,10 +90,7 @@ interface EnvironmentClientOperations { "csharp", "ScheduleFrequency" ); -@@projectedName(DevCenterService.ScheduledType, - "csharp", - "ScheduleType" -); +@@projectedName(DevCenterService.ScheduledType, "csharp", "ScheduleType"); @@projectedName(DevCenterService.Pool, "csharp", "DevBoxPool"); @@projectedName(DevCenterService.Pool.osType, "csharp", "OSType"); @@projectedName(DevCenterService.Pool.localAdministrator, @@ -120,7 +117,10 @@ interface EnvironmentClientOperations { ); @@projectedName(DevCenterService.Schedule, "csharp", "DevBoxSchedule"); @@projectedName(DevCenterService.Schedule.type, "csharp", "scheduleType"); -@@projectedName(DevCenterService.Schedule.frequency, "csharp", "scheduleFrequency"); +@@projectedName(DevCenterService.Schedule.frequency, + "csharp", + "scheduleFrequency" +); @@projectedName(DevCenterService.DevBox.osType, "csharp", "OSType"); @@projectedName(DevCenterService.DevBox.user, "csharp", "userId"); @@projectedName(DevCenterService.DevBox.localAdministrator, @@ -175,10 +175,7 @@ interface EnvironmentClientOperations { "java", "ScheduleFrequency" ); -@@projectedName(DevCenterService.ScheduledType, - "java", - "ScheduleType" -); +@@projectedName(DevCenterService.ScheduledType, "java", "ScheduleType"); @@projectedName(DevCenterService.Pool, "java", "DevBoxPool"); @@projectedName(DevCenterService.Pool.localAdministrator, "java", @@ -199,7 +196,10 @@ interface EnvironmentClientOperations { ); @@projectedName(DevCenterService.Schedule, "java", "DevBoxSchedule"); @@projectedName(DevCenterService.Schedule.type, "java", "scheduleType"); -@@projectedName(DevCenterService.Schedule.frequency, "java", "scheduleFrequency"); +@@projectedName(DevCenterService.Schedule.frequency, + "java", + "scheduleFrequency" +); @@projectedName(DevCenterService.DevBox.user, "java", "userId"); @@projectedName(DevCenterService.DevBox.localAdministrator, "java", From 75ebb127d29a104449332670c112226ba31a7192 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 14 Mar 2024 13:33:18 -0700 Subject: [PATCH 174/187] Add java config --- specification/devcenter/DevCenter/tspconfig.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index b284d933139f..42a3d8f12806 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -30,4 +30,6 @@ options: version: "1.0.0" "@azure-tools/typespec-java": package-dir: "azure-developer-devcenter" - namespace: com.azure.developer.devcenter \ No newline at end of file + namespace: com.azure.developer.devcenter + examples-directory: "examples" + partial-update: true \ No newline at end of file From ac0495beea2668ac7b54d7c1bba44450f0c3bb54 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 14 Mar 2024 13:53:54 -0700 Subject: [PATCH 175/187] Add unique types --- specification/devcenter/DevCenter/Environments/models.tsp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index 3c5b408a3372..9a59621da578 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -1,11 +1,13 @@ import "@typespec/rest"; import "@typespec/http"; +import "@typespec/json-schema"; import "@azure-tools/typespec-azure-core"; import "../shared/models.tsp"; using TypeSpec.Versioning; using TypeSpec.Rest; using TypeSpec.Http; +using TypeSpec.JsonSchema; namespace DevCenterService; @@ -202,6 +204,7 @@ value. @doc("An array of allowed values") @minItems(1) + @uniqueItems allowed?: string[]; } From d5499e49bfc185f85de151ea7bc879af1523fe4a Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 14 Mar 2024 13:54:14 -0700 Subject: [PATCH 176/187] Use azure location type --- specification/devcenter/DevCenter/DevBox/models.tsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index 48cff2f0e7b2..b55b0a773e20 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -169,7 +169,7 @@ model Pool { name: string; @doc("Azure region where Dev Boxes in the pool are located") - location: string; + location: Azure.Core.azureLocation; @doc("The operating system type of Dev Boxes in this pool") osType?: OsType; @@ -355,7 +355,7 @@ Azure region where this Dev Box is located. This will be the same region as the Virtual Network it is attached to. """) @visibility("read") - location?: string; + location?: Azure.Core.azureLocation; @doc("The operating system type of this Dev Box.") @visibility("read") From 34018028c6dfe4e7b65bdec4913c31c6f57500f9 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 14 Mar 2024 13:55:12 -0700 Subject: [PATCH 177/187] Update parametersSchema type --- specification/devcenter/DevCenter/Environments/models.tsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index 9a59621da578..8214c7c8503d 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -165,9 +165,9 @@ model EnvironmentDefinition { @doc("Input parameters passed to an environment.") parameters?: EnvironmentDefinitionParameter[]; - #suppress "@azure-tools/typespec-azure-core/no-unknown" "there is no build in type to describe json" + //typespec does not have a way to represent this. Issue https://github.com/microsoft/typespec/issues/3005 @doc("JSON schema defining the parameters object passed to an environment.") - parametersSchema?: unknown; + parametersSchema?: string; @doc("Path to the Environment Definition entrypoint file.") templatePath?: string; From 5e1fc4f4bf74109992e425fb63461492f2cd033d Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 14 Mar 2024 13:55:40 -0700 Subject: [PATCH 178/187] Add azure flavor --- specification/devcenter/DevCenter/tspconfig.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index 42a3d8f12806..2477ffedd755 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -17,9 +17,11 @@ options: package-dir: "Azure.Developer.DevCenter" namespace: "{package-dir}" clear-output-folder : true + flavor: azure "@azure-tools/typespec-python": package-dir: "azure-developer-devcenter" package-name: "{package-dir}" + flavor: azure "@azure-tools/typespec-ts": title: "Azure Developer DevCenter" package-dir: "developer-devcenter-rest" @@ -28,8 +30,10 @@ options: name: "@azure-rest/developer-devcenter" description: "Azure Developer DevCenter Client" version: "1.0.0" + flavor: azure "@azure-tools/typespec-java": package-dir: "azure-developer-devcenter" namespace: com.azure.developer.devcenter examples-directory: "examples" - partial-update: true \ No newline at end of file + partial-update: true + flavor: azure \ No newline at end of file From b8c720aaac988162047b90917c04f34166ac81b1 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Thu, 14 Mar 2024 15:09:06 -0700 Subject: [PATCH 179/187] Reapply "update enum to union" This reverts commit a13fcda2cf39e941cf4ac804b27d49a062a3b3dc. --- .../devcenter/DevCenter/DevBox/models.tsp | 145 ++++++++++-------- .../DevCenter/Environments/models.tsp | 51 +++--- 2 files changed, 105 insertions(+), 91 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index b55b0a773e20..587835780167 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -9,148 +9,159 @@ using TypeSpec.Http; namespace DevCenterService; @doc("The operating system type.") -enum OsType { - @doc("The Windows operating system.") Windows, +union OsType { + @doc("The Windows operating system.") Windows: "Windows", + string, } @doc("Indicates whether hibernate is supported and enabled, disabled, or unsupported by the operating system. Unknown hibernate support is represented as null.") -enum HibernateSupport { - @doc("Hibernate is enabled.") Enabled, - @doc("Hibernate is not enabled.") Disabled, - @doc("Hibernate is not supported by the operating system.") OsUnsupported, +union HibernateSupport { + @doc("Hibernate is enabled.") Enabled: "Enabled", + @doc("Hibernate is not enabled.") Disabled: "Disabled", + @doc("Hibernate is not supported by the operating system.") OsUnsupported: "OsUnsupported", + string, } @doc("Indicates whether owners of Dev Boxes in a pool are local administrators on the Dev Boxes.") -enum LocalAdminStatus { +union LocalAdminStatus { @doc("Owners of Dev Boxes in the pool are local administrators on the Dev Boxes.") - Enabled, + Enabled: "Enabled", @doc("Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes.") - Disabled, + Disabled: "Disabled", + string, } @doc("Indicates the provisioning state of the Dev Box.") -enum DevBoxProvisioningState { - @doc("Dev Box was successfully provisioned") Succeeded, - @doc("Dev Box failed to provision") Failed, - @doc("Dev Box provision was canceled") Canceled, - @doc("Dev Box is being created") Creating, - @doc("Dev Box is being deleted") Deleting, - @doc("Dev Box is updating") Updating, - @doc("Dev Box is starting") Starting, - @doc("Dev Box is stopping") Stopping, - @doc("Dev Box is provisioning") Provisioning, - @doc("Dev Box was provisioned with warning") ProvisionedWithWarning, - @doc("Dev Box is in grace period") InGracePeriod, - @doc("Dev Box is not provisioned") NotProvisioned, +union DevBoxProvisioningState { + @doc("Dev Box was successfully provisioned") Succeeded: "Succeeded", + @doc("Dev Box failed to provision") Failed: "Failed", + @doc("Dev Box provision was canceled") Canceled: "Canceled", + @doc("Dev Box is being created") Creating: "Creating", + @doc("Dev Box is being deleted") Deleting: "Deleting", + @doc("Dev Box is updating") Updating: "Updating", + @doc("Dev Box is starting") Starting: "Starting", + @doc("Dev Box is stopping") Stopping: "Stopping", + @doc("Dev Box is provisioning") Provisioning: "Provisioning", + @doc("Dev Box was provisioned with warning") ProvisionedWithWarning : "ProvisionedWithWarning", + @doc("Dev Box is in grace period") InGracePeriod: "InGracePeriod" , + @doc("Dev Box is not provisioned") NotProvisioned: "NotProvisioned", + string, } @doc("Indicates the Dev Box compute.") -enum SkuName { +union SkuName { @doc("Intel, 8 vCPU, 32 GB RAM, 256 GB Storage") - general_i_8c32gb256ssd_v2, + general_i_8c32gb256ssd_v2: "general_i_8c32gb256ssd_v2", @doc("Intel, 8 vCPU, 32 GB RAM, 512 GB Storage") - general_i_8c32gb512ssd_v2, + general_i_8c32gb512ssd_v2: "general_i_8c32gb512ssd_v2", @doc("Intel, 8 vCPU, 32 GB RAM, 1024 GB Storage") - general_i_8c32gb1024ssd_v2, + general_i_8c32gb1024ssd_v2: "general_i_8c32gb1024ssd_v2", @doc("Intel, 8 vCPU, 32 GB RAM, 2048 GB Storage") - general_i_8c32gb2048ssd_v2, + general_i_8c32gb2048ssd_v2: "general_i_8c32gb2048ssd_v2", @doc("Intel, 16 vCPU, 64 GB RAM, 256 GB Storage") - general_i_16c64gb256ssd_v2, + general_i_16c64gb256ssd_v2: "general_i_16c64gb256ssd_v2", @doc("Intel, 16 vCPU, 64 GB RAM, 512 GB Storage") - general_i_16c64gb512ssd_v2, + general_i_16c64gb512ssd_v2: "general_i_16c64gb512ssd_v2", @doc("Intel, 16 vCPU, 64 GB RAM, 1024 GB Storage") - general_i_16c64gb1024ssd_v2, + general_i_16c64gb1024ssd_v2: "general_i_16c64gb1024ssd_v2", @doc("Intel, 16 vCPU, 64 GB RAM, 2048 GB Storage") - general_i_16c64gb2048ssd_v2, + general_i_16c64gb2048ssd_v2: "general_i_16c64gb2048ssd_v2", @doc("Intel, 32 vCPU, 128 GB RAM, 512 GB Storage") - general_i_32c128gb512ssd_v2, + general_i_32c128gb512ssd_v2: "general_i_32c128gb512ssd_v2", @doc("Intel, 32 vCPU, 128 GB RAM, 1024 GB Storage") - general_i_32c128gb1024ssd_v2, + general_i_32c128gb1024ssd_v2: "general_i_32c128gb1024ssd_v2", @doc("Intel, 32 vCPU, 128 GB RAM, 2048 GB Storage") - general_i_32c128gb2048ssd_v2, + general_i_32c128gb2048ssd_v2: "general_i_32c128gb2048ssd_v2", @doc("AMD, 8 vCPU, 32 GB RAM, 256 GB Storage") - general_a_8c32gb256ssd_v2, + general_a_8c32gb256ssd_v2: "general_a_8c32gb256ssd_v2", @doc("AMD, 8 vCPU, 32 GB RAM, 512 GB Storage") - general_a_8c32gb512ssd_v2, + general_a_8c32gb512ssd_v2: "general_a_8c32gb512ssd_v2", @doc("AMD, 8 vCPU, 32 GB RAM, 1024 GB Storage") - general_a_8c32gb1024ssd_v2, + general_a_8c32gb1024ssd_v2: "general_a_8c32gb1024ssd_v2", @doc("AMD, 8 vCPU, 32 GB RAM, 2048 GB Storage") - general_a_8c32gb2048ssd_v2, + general_a_8c32gb2048ssd_v2: "general_a_8c32gb2048ssd_v2", @doc("AMD, 16 vCPU, 64 GB RAM, 256 GB Storage") - general_a_16c64gb256ssd_v2, + general_a_16c64gb256ssd_v2: "general_a_16c64gb256ssd_v2", @doc("AMD, 16 vCPU, 64 GB RAM, 512 GB Storage") - general_a_16c64gb512ssd_v2, + general_a_16c64gb512ssd_v2: "general_a_16c64gb512ssd_v2", @doc("AMD, 16 vCPU, 64 GB RAM, 1024 GB Storage") - general_a_16c64gb1024ssd_v2, + general_a_16c64gb1024ssd_v2: "general_a_16c64gb1024ssd_v2", @doc("AMD, 16 vCPU, 64 GB RAM, 2048 GB Storage") - general_a_16c64gb2048ssd_v2, + general_a_16c64gb2048ssd_v2: "general_a_16c64gb2048ssd_v2", @doc("AMD, 32 vCPU, 128 GB RAM, 512 GB Storage") - general_a_32c128gb512ssd_v2, + general_a_32c128gb512ssd_v2: "general_a_32c128gb512ssd_v2", @doc("AMD, 32 vCPU, 128 GB RAM, 1024 GB Storage") - general_a_32c128gb1024ssd_v2, + general_a_32c128gb1024ssd_v2: "general_a_32c128gb1024ssd_v2", @doc("AMD, 32 vCPU, 128 GB RAM, 2048 GB Storage") - general_a_32c128gb2048ssd_v2, + general_a_32c128gb2048ssd_v2: "general_a_32c128gb2048ssd_v2", + string, } @doc("Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.") -enum StopOnDisconnectEnableStatus { - @doc("Stop on disconnect is enabled on the Dev Box.") Enabled, - @doc("Stop on disconnect is not enabled on the Dev Box.") Disabled, +union StopOnDisconnectEnableStatus { + @doc("Stop on disconnect is enabled on the Dev Box.") Enabled: "Enabled", + @doc("Stop on disconnect is not enabled on the Dev Box.") Disabled: "Disabled", + string, } @doc("Pool status indicating whether a pool is available to create Dev Boxes.") -enum PoolHealthStatus { - @doc("The pool health status is not known.") Unknown, - @doc("The pool health status waiting for health checks to run.") Pending, - @doc("The pool health status is healthy.") Healthy, - @doc("The pool health status has one or more warnings.") Warning, - @doc("The pool health status is not healthy.") Unhealthy, +union PoolHealthStatus { + @doc("The pool health status is not known.") Unknown: "Unknown", + @doc("The pool health status waiting for health checks to run.") Pending: "Pending", + @doc("The pool health status is healthy.") Healthy: "Healthy", + @doc("The pool health status has one or more warnings.") Warning: "Warning", + @doc("The pool health status is not healthy.") Unhealthy: "Unhealthy", + string, } @doc("The supported types for a scheduled task.") -enum ScheduledType { - @doc("The scheduled task will stop impacted Dev Boxes.") StopDevBox, +union ScheduledType { + @doc("The scheduled task will stop impacted Dev Boxes.") StopDevBox: "StopDevBox", + string, } @doc("The frequency of task execution.") -enum ScheduledFrequency { - @doc("The scheduled task will run every day.") Daily, +union ScheduledFrequency { + @doc("The scheduled task will run every day.") Daily: "Daily", + string, } @doc("The power states of a Dev Box.") -enum PowerState { - @doc("The Dev Box power state is not known.") Unknown, - @doc("The Dev Box is running.") Running, - @doc("The Dev Box is deallocated.") Deallocated, - @doc("The Dev Box is powered off.") PoweredOff, - @doc("The Dev Box is hibernated.") Hibernated, +union PowerState { + @doc("The Dev Box power state is not known.") Unknown: "Unknown", + @doc("The Dev Box is running.") Running: "Running", + @doc("The Dev Box is deallocated.") Deallocated: "Deallocated", + @doc("The Dev Box is powered off.") PoweredOff: "PoweredOff", + @doc("The Dev Box is hibernated.") Hibernated: "Hibernated", + string, } @doc("The type of action which will take place on a Dev Box.") -enum DevBoxActionType { - @doc("The action will stop the Dev Box.") Stop, +union DevBoxActionType { + @doc("The action will stop the Dev Box.") Stop: "Stop", + string, } @doc("The result of the delay operation on this action.") @@ -337,7 +348,7 @@ action performed by user. @doc("The current power state of the Dev Box.") @visibility("read") - powerState?: PowerState = PowerState.Unknown; + powerState?: PowerState; @doc(""" A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index 8214c7c8503d..a2443a1ed167 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -12,61 +12,64 @@ using TypeSpec.JsonSchema; namespace DevCenterService; @doc("The type of data a parameter accepts.") -enum ParameterType { - @doc("The parameter accepts an array of values.") array, - @doc("The parameter accepts a boolean value.") boolean, - @doc("The parameter accepts an integer value.") integer, - @doc("The parameter accepts a number value.") number, - @doc("The parameter accepts an object value.") object, - @doc("The parameter accepts a string value.") string, +union ParameterType { + @doc("The parameter accepts an array of values.") array: "array", + @doc("The parameter accepts a boolean value.") boolean: "boolean", + @doc("The parameter accepts an integer value.") integer: "integer", + @doc("The parameter accepts a number value.") number: "number", + @doc("The parameter accepts an object value.") object: "object", + @doc("The parameter accepts a string value.") string: "string", + string, } @doc("Indicates whether an environment type is enabled for use in a project.") -enum EnvironmentTypeEnableStatus { - @doc("The environment type is enabled for use in the project.") Enabled, - @doc("The environment type is not enabled for use in the project.") Disabled, +union EnvironmentTypeEnableStatus { + @doc("The environment type is enabled for use in the project.") Enabled: "Enabled", + @doc("The environment type is not enabled for use in the project.") Disabled: "Disabled", + string, } @doc("The provisioning state of the environment.") -enum EnvironmentProvisioningState { +union EnvironmentProvisioningState { @doc("The environment was successfully provisioned.") - Succeeded, + Succeeded: "Succeeded", @doc("The environment failed to provision.") - Failed, + Failed: "Failed", @doc("The environment provisioning was canceled.") - Canceled, + Canceled: "Canceled", @doc("The environment is creating.") - Creating, + Creating: "Creating", @doc("The environment was accepted.") - Accepted, + Accepted: "Accepted", @doc("The environment is deleting.") - Deleting, + Deleting: "Deleting", @doc("The environment is updating.") - Updating, + Updating: "Updating", @doc("The environment is preparing.") - Preparing, + Preparing: "Preparing", @doc("The environment is running.") - Running, + Running: "Running", @doc("The environment is Syncing.") - Syncing, + Syncing: "Syncing", @doc("The environment is moving resources.") - MovingResources, + MovingResources: "MovingResources", @doc("The environment has a transient failure.") - TransientFailure, + TransientFailure: "TransientFailure", @doc("The environment storage provisioning failed.") - StorageProvisioningFailed, + StorageProvisioningFailed: "StorageProvisioningFailed", + string, } @doc("Results of the environment list operation.") From c99e95364a3931b29ff6b9ec75a03f39b1fe2069 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 15 Mar 2024 10:38:37 -0700 Subject: [PATCH 180/187] tsp format --- .../devcenter/DevCenter/DevBox/models.tsp | 19 +++++++++++++------ .../DevCenter/Environments/models.tsp | 7 +++++-- .../devcenter/DevCenter/tspconfig.yaml | 14 ++++++-------- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index 587835780167..47d27f5356a4 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -18,7 +18,8 @@ union OsType { union HibernateSupport { @doc("Hibernate is enabled.") Enabled: "Enabled", @doc("Hibernate is not enabled.") Disabled: "Disabled", - @doc("Hibernate is not supported by the operating system.") OsUnsupported: "OsUnsupported", + @doc("Hibernate is not supported by the operating system.") + OsUnsupported: "OsUnsupported", string, } @@ -29,6 +30,7 @@ union LocalAdminStatus { @doc("Owners of Dev Boxes in the pool are not local administrators on the Dev Boxes.") Disabled: "Disabled", + string, } @@ -43,8 +45,9 @@ union DevBoxProvisioningState { @doc("Dev Box is starting") Starting: "Starting", @doc("Dev Box is stopping") Stopping: "Stopping", @doc("Dev Box is provisioning") Provisioning: "Provisioning", - @doc("Dev Box was provisioned with warning") ProvisionedWithWarning : "ProvisionedWithWarning", - @doc("Dev Box is in grace period") InGracePeriod: "InGracePeriod" , + @doc("Dev Box was provisioned with warning") + ProvisionedWithWarning: "ProvisionedWithWarning", + @doc("Dev Box is in grace period") InGracePeriod: "InGracePeriod", @doc("Dev Box is not provisioned") NotProvisioned: "NotProvisioned", string, } @@ -116,20 +119,23 @@ union SkuName { @doc("AMD, 32 vCPU, 128 GB RAM, 2048 GB Storage") general_a_32c128gb2048ssd_v2: "general_a_32c128gb2048ssd_v2", + string, } @doc("Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.") union StopOnDisconnectEnableStatus { @doc("Stop on disconnect is enabled on the Dev Box.") Enabled: "Enabled", - @doc("Stop on disconnect is not enabled on the Dev Box.") Disabled: "Disabled", + @doc("Stop on disconnect is not enabled on the Dev Box.") + Disabled: "Disabled", string, } @doc("Pool status indicating whether a pool is available to create Dev Boxes.") union PoolHealthStatus { @doc("The pool health status is not known.") Unknown: "Unknown", - @doc("The pool health status waiting for health checks to run.") Pending: "Pending", + @doc("The pool health status waiting for health checks to run.") + Pending: "Pending", @doc("The pool health status is healthy.") Healthy: "Healthy", @doc("The pool health status has one or more warnings.") Warning: "Warning", @doc("The pool health status is not healthy.") Unhealthy: "Unhealthy", @@ -138,7 +144,8 @@ union PoolHealthStatus { @doc("The supported types for a scheduled task.") union ScheduledType { - @doc("The scheduled task will stop impacted Dev Boxes.") StopDevBox: "StopDevBox", + @doc("The scheduled task will stop impacted Dev Boxes.") + StopDevBox: "StopDevBox", string, } diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index a2443a1ed167..2403a336a48d 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -24,8 +24,10 @@ union ParameterType { @doc("Indicates whether an environment type is enabled for use in a project.") union EnvironmentTypeEnableStatus { - @doc("The environment type is enabled for use in the project.") Enabled: "Enabled", - @doc("The environment type is not enabled for use in the project.") Disabled: "Disabled", + @doc("The environment type is enabled for use in the project.") + Enabled: "Enabled", + @doc("The environment type is not enabled for use in the project.") + Disabled: "Disabled", string, } @@ -69,6 +71,7 @@ union EnvironmentProvisioningState { @doc("The environment storage provisioning failed.") StorageProvisioningFailed: "StorageProvisioningFailed", + string, } diff --git a/specification/devcenter/DevCenter/tspconfig.yaml b/specification/devcenter/DevCenter/tspconfig.yaml index 2477ffedd755..479a1e1cbe91 100644 --- a/specification/devcenter/DevCenter/tspconfig.yaml +++ b/specification/devcenter/DevCenter/tspconfig.yaml @@ -1,22 +1,20 @@ parameters: service-dir: default: "sdk/devcenter" -emit: [ - "@azure-tools/typespec-autorest", -] +emit: ["@azure-tools/typespec-autorest"] linter: - extends: - - "@azure-tools/typespec-azure-core/all" + extends: + - "@azure-tools/typespec-azure-core/all" options: "@azure-tools/typespec-autorest": azure-resource-provider-folder: "data-plane" emitter-output-dir: "{project-root}/.." output-file: "{azure-resource-provider-folder}/Microsoft.DevCenter/{version-status}/{version}/devcenter.json" - examples-directory: "examples" + examples-directory: "examples" "@azure-tools/typespec-csharp": package-dir: "Azure.Developer.DevCenter" namespace: "{package-dir}" - clear-output-folder : true + clear-output-folder: true flavor: azure "@azure-tools/typespec-python": package-dir: "azure-developer-devcenter" @@ -36,4 +34,4 @@ options: namespace: com.azure.developer.devcenter examples-directory: "examples" partial-update: true - flavor: azure \ No newline at end of file + flavor: azure From e0c1e293f8c43261ef87c3bafd45977d11917533 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 15 Mar 2024 10:39:00 -0700 Subject: [PATCH 181/187] Update swagger --- .../stable/2023-04-01/devcenter.json | 80 +++++++------------ 1 file changed, 28 insertions(+), 52 deletions(-) diff --git a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json index e5a296074828..acc05839e320 100644 --- a/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json +++ b/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json @@ -2125,6 +2125,10 @@ } } }, + "Azure.Core.azureLocation": { + "type": "string", + "description": "Represents an Azure geography region where supported resource providers live." + }, "Azure.Core.uuid": { "type": "string", "format": "uuid", @@ -2191,47 +2195,8 @@ "readOnly": true }, "powerState": { - "type": "string", + "$ref": "#/definitions/PowerState", "description": "The current power state of the Dev Box.", - "default": "Unknown", - "enum": [ - "Unknown", - "Running", - "Deallocated", - "PoweredOff", - "Hibernated" - ], - "x-ms-enum": { - "name": "PowerState", - "modelAsString": true, - "values": [ - { - "name": "Unknown", - "value": "Unknown", - "description": "The Dev Box power state is not known." - }, - { - "name": "Running", - "value": "Running", - "description": "The Dev Box is running." - }, - { - "name": "Deallocated", - "value": "Deallocated", - "description": "The Dev Box is deallocated." - }, - { - "name": "PoweredOff", - "value": "PoweredOff", - "description": "The Dev Box is powered off." - }, - { - "name": "Hibernated", - "value": "Hibernated", - "description": "The Dev Box is hibernated." - } - ] - }, "readOnly": true }, "uniqueId": { @@ -2245,7 +2210,7 @@ "readOnly": true }, "location": { - "type": "string", + "$ref": "#/definitions/Azure.Core.azureLocation", "description": "Azure region where this Dev Box is located. This will be the same region as the\nVirtual Network it is attached to.", "readOnly": true }, @@ -2597,6 +2562,7 @@ } }, "parametersSchema": { + "type": "string", "description": "JSON schema defining the parameters object passed to an environment." }, "templatePath": { @@ -3046,7 +3012,8 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items" + "description": "The link to the next page of items", + "readOnly": true } }, "required": [ @@ -3068,7 +3035,8 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items" + "description": "The link to the next page of items", + "readOnly": true } }, "required": [ @@ -3090,7 +3058,8 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items" + "description": "The link to the next page of items", + "readOnly": true } }, "required": [ @@ -3112,7 +3081,8 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items" + "description": "The link to the next page of items", + "readOnly": true } }, "required": [ @@ -3134,7 +3104,8 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items" + "description": "The link to the next page of items", + "readOnly": true } }, "required": [ @@ -3155,7 +3126,8 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items" + "description": "The link to the next page of items", + "readOnly": true } }, "required": [ @@ -3177,7 +3149,8 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items" + "description": "The link to the next page of items", + "readOnly": true } }, "required": [ @@ -3199,7 +3172,8 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items" + "description": "The link to the next page of items", + "readOnly": true } }, "required": [ @@ -3221,7 +3195,8 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items" + "description": "The link to the next page of items", + "readOnly": true } }, "required": [ @@ -3243,7 +3218,8 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items" + "description": "The link to the next page of items", + "readOnly": true } }, "required": [ @@ -3308,7 +3284,7 @@ "readOnly": true }, "location": { - "type": "string", + "$ref": "#/definitions/Azure.Core.azureLocation", "description": "Azure region where Dev Boxes in the pool are located" }, "osType": { From 407e7404c474ed103607066bc2d5835dcde13253 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 15 Mar 2024 10:43:52 -0700 Subject: [PATCH 182/187] tsp format --- specification/devcenter/DevCenter/DevBox/models.tsp | 9 +++++++++ .../devcenter/DevCenter/Environments/models.tsp | 2 ++ 2 files changed, 11 insertions(+) diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index 47d27f5356a4..e4adfce24426 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -18,8 +18,10 @@ union OsType { union HibernateSupport { @doc("Hibernate is enabled.") Enabled: "Enabled", @doc("Hibernate is not enabled.") Disabled: "Disabled", + @doc("Hibernate is not supported by the operating system.") OsUnsupported: "OsUnsupported", + string, } @@ -45,8 +47,10 @@ union DevBoxProvisioningState { @doc("Dev Box is starting") Starting: "Starting", @doc("Dev Box is stopping") Stopping: "Stopping", @doc("Dev Box is provisioning") Provisioning: "Provisioning", + @doc("Dev Box was provisioned with warning") ProvisionedWithWarning: "ProvisionedWithWarning", + @doc("Dev Box is in grace period") InGracePeriod: "InGracePeriod", @doc("Dev Box is not provisioned") NotProvisioned: "NotProvisioned", string, @@ -126,16 +130,20 @@ union SkuName { @doc("Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.") union StopOnDisconnectEnableStatus { @doc("Stop on disconnect is enabled on the Dev Box.") Enabled: "Enabled", + @doc("Stop on disconnect is not enabled on the Dev Box.") Disabled: "Disabled", + string, } @doc("Pool status indicating whether a pool is available to create Dev Boxes.") union PoolHealthStatus { @doc("The pool health status is not known.") Unknown: "Unknown", + @doc("The pool health status waiting for health checks to run.") Pending: "Pending", + @doc("The pool health status is healthy.") Healthy: "Healthy", @doc("The pool health status has one or more warnings.") Warning: "Warning", @doc("The pool health status is not healthy.") Unhealthy: "Unhealthy", @@ -146,6 +154,7 @@ union PoolHealthStatus { union ScheduledType { @doc("The scheduled task will stop impacted Dev Boxes.") StopDevBox: "StopDevBox", + string, } diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index 2403a336a48d..00ffb307fa14 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -26,8 +26,10 @@ union ParameterType { union EnvironmentTypeEnableStatus { @doc("The environment type is enabled for use in the project.") Enabled: "Enabled", + @doc("The environment type is not enabled for use in the project.") Disabled: "Disabled", + string, } From b14f2d7f5b63b726eea1096dc70e7c92826ffd13 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 15 Mar 2024 10:45:23 -0700 Subject: [PATCH 183/187] Remove uniqueItems --- specification/devcenter/DevCenter/Environments/models.tsp | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index 00ffb307fa14..4011835ef048 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -212,7 +212,6 @@ value. @doc("An array of allowed values") @minItems(1) - @uniqueItems allowed?: string[]; } From 3d60a4c8f38620bac56888e608c8d8baf993210f Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 15 Mar 2024 10:52:37 -0700 Subject: [PATCH 184/187] remove json schema import --- specification/devcenter/DevCenter/Environments/models.tsp | 2 -- 1 file changed, 2 deletions(-) diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index 4011835ef048..7ec593906be0 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -1,13 +1,11 @@ import "@typespec/rest"; import "@typespec/http"; -import "@typespec/json-schema"; import "@azure-tools/typespec-azure-core"; import "../shared/models.tsp"; using TypeSpec.Versioning; using TypeSpec.Rest; using TypeSpec.Http; -using TypeSpec.JsonSchema; namespace DevCenterService; From 20240e33d03e8bcfb0d05946228e560fd07eb9b5 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 15 Mar 2024 20:58:27 -0700 Subject: [PATCH 185/187] Turn off convinience API for create environment --- specification/devcenter/DevCenter/client.tsp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 179120cb0bc8..588c310ac3f1 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -55,6 +55,7 @@ interface EnvironmentClientOperations { listAllEnvironments is DevCenterService.EnvironmentsOperations.listAllEnvironments; listEnvironments is DevCenterService.EnvironmentsOperations.listEnvironments; getEnvironment is DevCenterService.EnvironmentsOperations.getEnvironment; + @convenientAPI(false, "csharp") // same issue as described in https://github.com/Azure/azure-rest-api-specs/issues/28083 createOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.createOrUpdateEnvironment; deleteEnvironment is DevCenterService.EnvironmentsOperations.deleteEnvironment; listCatalogs is DevCenterService.EnvironmentsOperations.listCatalogs; @@ -67,6 +68,7 @@ interface EnvironmentClientOperations { @@access(DevCenterService.DevBox, Access.public); @@usage(DevCenterService.DevBox, Usage.input | Usage.output); +@@usage(DevCenterService.Environment, Usage.input | Usage.output); @@projectedName(DevCenterService.LocalAdminStatus, "client", From caa614fb23602887711eb3ef248f7eded9ec91d6 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Fri, 15 Mar 2024 21:01:35 -0700 Subject: [PATCH 186/187] Clean up --- specification/devcenter/DevCenter/client.tsp | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index 588c310ac3f1..b2d9ea3670cb 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -66,7 +66,6 @@ interface EnvironmentClientOperations { listEnvironmentTypes is DevCenterService.EnvironmentsOperations.listEnvironmentTypes; } -@@access(DevCenterService.DevBox, Access.public); @@usage(DevCenterService.DevBox, Usage.input | Usage.output); @@usage(DevCenterService.Environment, Usage.input | Usage.output); From 4620555c83d14a41865fb83cde241862ee3726d6 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 18 Mar 2024 11:01:12 -0700 Subject: [PATCH 187/187] Fix DevBoxActionDelayResult --- specification/devcenter/DevCenter/DevBox/models.tsp | 7 ++++--- specification/devcenter/DevCenter/client.tsp | 6 +++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index e4adfce24426..b7cc2837fcc1 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -181,9 +181,10 @@ union DevBoxActionType { } @doc("The result of the delay operation on this action.") -enum DevBoxActionDelayResultStatus { - @doc("The delay operation succeeded.") Succeeded, - @doc("The delay operation failed.") Failed, +union DevBoxActionDelayResultStatus { + @doc("The delay operation succeeded.") Succeeded: "Succeeded", + @doc("The delay operation failed.") Failed: "Failed", + string, } @doc("A pool of Dev Boxes.") diff --git a/specification/devcenter/DevCenter/client.tsp b/specification/devcenter/DevCenter/client.tsp index b2d9ea3670cb..69dc2c0c211f 100644 --- a/specification/devcenter/DevCenter/client.tsp +++ b/specification/devcenter/DevCenter/client.tsp @@ -55,7 +55,7 @@ interface EnvironmentClientOperations { listAllEnvironments is DevCenterService.EnvironmentsOperations.listAllEnvironments; listEnvironments is DevCenterService.EnvironmentsOperations.listEnvironments; getEnvironment is DevCenterService.EnvironmentsOperations.getEnvironment; - @convenientAPI(false, "csharp") // same issue as described in https://github.com/Azure/azure-rest-api-specs/issues/28083 + @convenientAPI(false, "csharp") // same issue as described in https://github.com/Azure/azure-rest-api-specs/issues/28083 createOrUpdateEnvironment is DevCenterService.EnvironmentsOperations.createOrUpdateEnvironment; deleteEnvironment is DevCenterService.EnvironmentsOperations.deleteEnvironment; listCatalogs is DevCenterService.EnvironmentsOperations.listCatalogs; @@ -85,6 +85,10 @@ interface EnvironmentClientOperations { "client", "DevBoxActionDelayStatus" ); +@@projectedName(DevCenterService.DevBoxActionDelayResult.result, + "client", + "delayStatus" +); @@projectedName(DevCenterService.OsType, "csharp", "DevBoxOSType"); @@projectedName(DevCenterService.ScheduledFrequency,