diff --git a/specification/devcenter/DevCenter.Management/AllowedEnvironmentType.tsp b/specification/devcenter/DevCenter.Management/AllowedEnvironmentType.tsp new file mode 100644 index 000000000000..99ff875d5f44 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/AllowedEnvironmentType.tsp @@ -0,0 +1,49 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Project.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Represents an allowed environment type.") +@parentResource(Project) +model AllowedEnvironmentType + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = AllowedEnvironmentType, + KeyName = "environmentTypeName", + SegmentName = "allowedEnvironmentTypes", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + >; +} + +@armResourceOperations +interface AllowedEnvironmentTypes { + @doc("Gets an allowed environment type.") + get is ArmResourceRead; + + @doc("Lists allowed environment types for a project.") + list is ArmResourceListByParent< + AllowedEnvironmentType, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = AllowedEnvironmentTypeListResult + >; +} + +@@maxLength(AllowedEnvironmentType.name, 63); +@@minLength(AllowedEnvironmentType.name, 3); +@@doc(AllowedEnvironmentType.name, "The name of the environment type."); +@@doc(AllowedEnvironmentType.properties, + "Properties of an allowed environment type." +); diff --git a/specification/devcenter/DevCenter.Management/AttachedNetworkConnection.tsp b/specification/devcenter/DevCenter.Management/AttachedNetworkConnection.tsp new file mode 100644 index 000000000000..b122134697c2 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/AttachedNetworkConnection.tsp @@ -0,0 +1,139 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Project.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Represents an attached NetworkConnection.") +@parentResource(Project) +model AttachedNetworkConnection + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = AttachedNetworkConnection, + KeyName = "attachedNetworkConnectionName", + SegmentName = "attachednetworks", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + >; +} + +@armResourceOperations +interface AttachedNetworkConnectionOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + @doc("The name of the project.") + @path + @segment("projects") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + projectName: string, + }, + { + @doc("The name of the attached NetworkConnection.") + @path + @segment("attachednetworks") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + attachedNetworkConnectionName: string, + } + > {} + +@armResourceOperations +interface AttachedNetworkConnections { + @doc("Gets an attached NetworkConnection.") + getByProject is AttachedNetworkConnectionOps.Read; + + @doc("Lists the attached NetworkConnections for a Project.") + listByProject is AttachedNetworkConnectionOps.List< + AttachedNetworkConnection, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = AttachedNetworkListResult + >; +} +@armResourceOperations +interface AttachedNetworkOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + @doc("The name of the devcenter.") + @path + @segment("devcenters") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$") + @minLength(3) + @maxLength(26) + devCenterName: string, + }, + { + @doc("The name of the attached NetworkConnection.") + @path + @segment("attachednetworks") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + attachedNetworkConnectionName: string, + } + > {} + +@armResourceOperations +interface AttachedNetworks { + @doc("Gets an attached NetworkConnection.") + getByDevCenter is AttachedNetworkOps.Read; + + @doc("Creates or updates an attached NetworkConnection.") + createOrUpdate is AttachedNetworkOps.CreateOrUpdateAsync; + + @doc("Un-attach a NetworkConnection.") + delete is AttachedNetworkOps.DeleteWithoutOkAsync< + AttachedNetworkConnection, + LroHeaders = ArmLroLocationHeader + >; + + @doc("Lists the attached NetworkConnections for a DevCenter.") + listByDevCenter is AttachedNetworkOps.List< + AttachedNetworkConnection, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = AttachedNetworkListResult + >; +} + +@@maxLength(AttachedNetworkConnection.name, 63); +@@minLength(AttachedNetworkConnection.name, 3); +@@doc(AttachedNetworkConnection.name, + "The name of the attached NetworkConnection." +); +@@doc(AttachedNetworkConnection.properties, + "Attached NetworkConnection properties." +); +@@doc(AttachedNetworks.createOrUpdate::parameters.resource, + "Represents an attached NetworkConnection." +); diff --git a/specification/devcenter/DevCenter.Management/Catalog.tsp b/specification/devcenter/DevCenter.Management/Catalog.tsp new file mode 100644 index 000000000000..b8a6bd44efd8 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/Catalog.tsp @@ -0,0 +1,220 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Project.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Represents a catalog.") +@parentResource(Project) +model Catalog is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = Catalog, + KeyName = "catalogName", + SegmentName = "catalogs", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + >; +} + +@armResourceOperations +interface CatalogOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + @doc("The name of the project.") + @path + @segment("projects") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + projectName: string, + }, + { + @doc("The name of the Catalog.") + @path + @segment("catalogs") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + catalogName: string, + } + > {} + +@armResourceOperations +interface Catalogs { + @doc("Gets an associated project catalog.") + get is CatalogOps.Read; + + @doc("Creates or updates a project catalog.") + createOrUpdate is CatalogOps.CreateOrUpdateAsync; + + @doc("Partially updates a project catalog.") + @patch(#{ implicitOptionality: false }) + patch is CatalogOps.CustomPatchAsync< + Catalog, + PatchModel = CatalogUpdate, + LroHeaders = ArmLroLocationHeader, + Response = Catalog | ArmAcceptedLroResponse< + "Resource update request accepted.", + ArmLroLocationHeader + > + >; + + @doc("Deletes a project catalog resource.") + delete is CatalogOps.DeleteWithoutOkAsync< + Catalog, + LroHeaders = ArmLroLocationHeader + >; + + @doc("Lists the catalogs associated with a project.") + list is CatalogOps.List< + Catalog, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = CatalogListResult + >; + + @doc("Gets project catalog synchronization error details") + getSyncErrorDetails is CatalogOps.ActionSync< + Catalog, + void, + ArmResponse + >; + + @doc("Syncs templates for a template source.") + sync is CatalogOps.ActionAsync< + Catalog, + void, + void, + Response = ArmAcceptedLroResponse + >; + + @doc("Connects a project catalog to enable syncing.") + connect is CatalogOps.ActionAsync< + Catalog, + void, + void, + Response = ArmAcceptedLroResponse + >; +} +@armResourceOperations +interface CatalogOperationGroupOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + @doc("The name of the devcenter.") + @path + @segment("devcenters") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$") + @minLength(3) + @maxLength(26) + devCenterName: string, + }, + { + @doc("The name of the Catalog.") + @path + @segment("catalogs") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + catalogName: string, + } + > {} + +@armResourceOperations +interface CatalogOperationGroup { + @doc("Gets a catalog.") + get is CatalogOperationGroupOps.Read; + + @doc("Creates or updates a catalog.") + createOrUpdate is CatalogOperationGroupOps.CreateOrUpdateAsync; + + @doc("Partially updates a catalog.") + @patch(#{ implicitOptionality: false }) + update is CatalogOperationGroupOps.CustomPatchAsync< + Catalog, + PatchModel = CatalogUpdate, + LroHeaders = ArmLroLocationHeader, + Response = Catalog | ArmAcceptedLroResponse< + "Resource update request accepted.", + ArmLroLocationHeader + > + >; + + @doc("Deletes a catalog resource.") + delete is CatalogOperationGroupOps.DeleteWithoutOkAsync< + Catalog, + LroHeaders = ArmLroLocationHeader + >; + + @doc("Lists catalogs for a devcenter.") + listByDevCenter is CatalogOperationGroupOps.List< + Catalog, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = CatalogListResult + >; + + @doc("Gets catalog synchronization error details.") + getSyncErrorDetails is CatalogOperationGroupOps.ActionSync< + Catalog, + void, + ArmResponse + >; + + @doc("Syncs templates for a template source.") + sync is CatalogOperationGroupOps.ActionAsync< + Catalog, + void, + void, + Response = ArmAcceptedLroResponse + >; + + @doc("Connects a catalog to enable syncing.") + connect is CatalogOperationGroupOps.ActionAsync< + Catalog, + void, + void, + Response = ArmAcceptedLroResponse + >; +} + +@@maxLength(Catalog.name, 63); +@@minLength(Catalog.name, 3); +@@doc(Catalog.name, "The name of the Catalog."); +@@doc(Catalog.properties, "Catalog properties."); +@@doc(Catalogs.createOrUpdate::parameters.resource, "Represents a catalog."); +@@doc(Catalogs.patch::parameters.properties, + "Updatable project catalog properties." +); +@@doc(CatalogOperationGroup.createOrUpdate::parameters.resource, + "Represents a catalog." +); +@@doc(CatalogOperationGroup.update::parameters.properties, + "Updatable catalog properties." +); diff --git a/specification/devcenter/DevCenter.Management/CustomizationTask.tsp b/specification/devcenter/DevCenter.Management/CustomizationTask.tsp new file mode 100644 index 000000000000..3179ee7f4329 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/CustomizationTask.tsp @@ -0,0 +1,93 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Catalog.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Represents a Task to be used in customizing a Dev Box.") +@parentResource(Catalog) +model CustomizationTask + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = CustomizationTask, + KeyName = "taskName", + SegmentName = "tasks", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + >; +} + +@armResourceOperations +interface CustomizationTaskOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + @doc("The name of the devcenter.") + @path + @segment("devcenters") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$") + @minLength(3) + @maxLength(26) + devCenterName: string, + + @doc("The name of the Catalog.") + @path + @segment("catalogs") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + catalogName: string, + }, + { + @doc("The name of the Customization Task.") + @path + @segment("tasks") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + taskName: string, + } + > {} + +@armResourceOperations +interface CustomizationTasks { + @doc("Gets a Task from the catalog.") + get is CustomizationTaskOps.Read; + + @doc("List Tasks in the catalog.") + listByCatalog is CustomizationTaskOps.List< + CustomizationTask, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = CustomizationTaskListResult + >; + + @doc("Gets Customization Task error details.") + getErrorDetails is CustomizationTaskOps.ActionSync< + CustomizationTask, + void, + ArmResponse + >; +} + +@@maxLength(CustomizationTask.name, 63); +@@minLength(CustomizationTask.name, 3); +@@doc(CustomizationTask.name, "The name of the Task."); +@@doc(CustomizationTask.properties, "Task properties"); diff --git a/specification/devcenter/DevCenter.Management/DevBoxDefinition.tsp b/specification/devcenter/DevCenter.Management/DevBoxDefinition.tsp new file mode 100644 index 000000000000..6fce516244fe --- /dev/null +++ b/specification/devcenter/DevCenter.Management/DevBoxDefinition.tsp @@ -0,0 +1,150 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./DevCenter.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Represents a definition for a Developer Machine.") +@parentResource(DevCenter) +model DevBoxDefinition + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = DevBoxDefinition, + KeyName = "devBoxDefinitionName", + SegmentName = "devboxdefinitions", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + >; +} + +@armResourceOperations +interface DevBoxDefinitionOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + @doc("The name of the devcenter.") + @path + @segment("devcenters") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$") + @minLength(3) + @maxLength(26) + devCenterName: string, + }, + { + @doc("The name of the Dev Box definition.") + @path + @segment("devboxdefinitions") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + devBoxDefinitionName: string, + } + > {} + +@armResourceOperations +interface DevBoxDefinitions { + @doc("Gets a Dev Box definition.") + get is DevBoxDefinitionOps.Read; + + @doc("Creates or updates a Dev Box definition.") + createOrUpdate is DevBoxDefinitionOps.CreateOrUpdateAsync; + + @doc("Partially updates a Dev Box definition.") + @patch(#{ implicitOptionality: false }) + update is DevBoxDefinitionOps.CustomPatchAsync< + DevBoxDefinition, + PatchModel = DevBoxDefinitionUpdate, + LroHeaders = ArmLroLocationHeader, + Response = DevBoxDefinition | ArmAcceptedLroResponse< + "Resource update request accepted.", + ArmLroLocationHeader + > + >; + + @doc("Deletes a Dev Box definition.") + delete is DevBoxDefinitionOps.DeleteWithoutOkAsync< + DevBoxDefinition, + LroHeaders = ArmLroLocationHeader + >; + + @doc("List Dev Box definitions for a devcenter.") + listByDevCenter is DevBoxDefinitionOps.List< + DevBoxDefinition, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = DevBoxDefinitionListResult + >; +} +@armResourceOperations +interface DevBoxDefinitionOperationGroupOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + @doc("The name of the project.") + @path + @segment("projects") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + projectName: string, + }, + { + @doc("The name of the Dev Box definition.") + @path + @segment("devboxdefinitions") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + devBoxDefinitionName: string, + } + > {} + +@armResourceOperations +interface DevBoxDefinitionOperationGroup { + @doc("Gets a Dev Box definition configured for a project.") + getByProject is DevBoxDefinitionOperationGroupOps.Read; + + @doc("List Dev Box definitions configured for a project.") + listByProject is DevBoxDefinitionOperationGroupOps.List< + DevBoxDefinition, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = DevBoxDefinitionListResult + >; +} + +@@maxLength(DevBoxDefinition.name, 63); +@@minLength(DevBoxDefinition.name, 3); +@@doc(DevBoxDefinition.name, "The name of the Dev Box definition."); +@@doc(DevBoxDefinition.properties, "Dev Box definition properties"); +@@doc(DevBoxDefinitions.createOrUpdate::parameters.resource, + "Represents a Dev Box definition." +); +@@doc(DevBoxDefinitions.update::parameters.properties, + "Represents a Dev Box definition." +); diff --git a/specification/devcenter/DevCenter.Management/DevCenter.tsp b/specification/devcenter/DevCenter.Management/DevCenter.tsp new file mode 100644 index 000000000000..6510f704e981 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/DevCenter.tsp @@ -0,0 +1,100 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; +@doc("Represents a devcenter resource.") +model DevCenter is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = DevCenter, + KeyName = "devCenterName", + SegmentName = "devcenters", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" + >; + + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "This is a valid property." + @doc("Managed identity properties.") + identity?: Azure.ResourceManager.CommonTypes.ManagedServiceIdentity; +} + +@armResourceOperations +interface DevCenters { + @doc("Gets a devcenter.") + get is ArmResourceRead; + + @doc("Creates or updates a devcenter resource.") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + @doc("Partially updates a devcenter.") + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchAsync< + DevCenter, + PatchModel = DevCenterUpdate, + LroHeaders = ArmLroLocationHeader, + Response = DevCenter | ArmAcceptedLroResponse< + "Resource update request accepted.", + ArmLroLocationHeader + > + >; + + @doc("Deletes a devcenter.") + delete is ArmResourceDeleteWithoutOkAsync< + DevCenter, + LroHeaders = ArmLroLocationHeader + >; + + @doc("Lists all devcenters in a resource group.") + listByResourceGroup is ArmResourceListByParent< + DevCenter, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = DevCenterListResult + >; + + @doc("Lists all devcenters in a subscription.") + listBySubscription is ArmListBySubscription< + DevCenter, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = DevCenterListResult + >; + + @doc("Lists images for a devcenter.") + @list + @get + @action("images") + listByDevCenter is ArmResourceActionSync< + DevCenter, + void, + Response = ImageListResult, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + } + >; +} + +@@maxLength(DevCenter.name, 26); +@@minLength(DevCenter.name, 3); +@@doc(DevCenter.name, "The name of the devcenter."); +@@doc(DevCenter.properties, "DevCenter properties"); +@@doc(DevCenters.createOrUpdate::parameters.resource, + "Represents a devcenter." +); +@@doc(DevCenters.update::parameters.properties, + "Updatable devcenter properties." +); diff --git a/specification/devcenter/DevCenter.Management/DevCenterEncryptionSet.tsp b/specification/devcenter/DevCenter.Management/DevCenterEncryptionSet.tsp new file mode 100644 index 000000000000..f67f2fb6f37d --- /dev/null +++ b/specification/devcenter/DevCenter.Management/DevCenterEncryptionSet.tsp @@ -0,0 +1,80 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./DevCenter.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Represents a devcenter encryption set resource.") +@parentResource(DevCenter) +model DevCenterEncryptionSet + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = DevCenterEncryptionSet, + KeyName = "encryptionSetName", + SegmentName = "encryptionSets", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" + >; + + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "This is a valid property." + @doc("Managed identity properties.") + identity?: Azure.ResourceManager.CommonTypes.ManagedServiceIdentity; +} + +@armResourceOperations +interface DevCenterEncryptionSets { + @doc("Gets a devcenter encryption set.") + get is ArmResourceRead; + + @doc("Creates or updates a devcenter encryption set resource.") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + @doc("Partially updates a devcenter encryption set.") + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchAsync< + DevCenterEncryptionSet, + PatchModel = EncryptionSetUpdate, + LroHeaders = ArmLroLocationHeader, + Response = DevCenterEncryptionSet | ArmAcceptedLroResponse< + "Resource update request accepted.", + ArmLroLocationHeader + > + >; + + @doc("Deletes a devcenter encryption set.") + delete is ArmResourceDeleteWithoutOkAsync< + DevCenterEncryptionSet, + LroHeaders = ArmLroLocationHeader + >; + + @doc("Lists all encryption sets in the devcenter.") + list is ArmResourceListByParent< + DevCenterEncryptionSet, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = EncryptionSetListResult + >; +} + +@@maxLength(DevCenterEncryptionSet.name, 63); +@@minLength(DevCenterEncryptionSet.name, 3); +@@doc(DevCenterEncryptionSet.name, "The name of the devcenter encryption set."); +@@doc(DevCenterEncryptionSet.properties, + "Properties of a devcenter encryption set." +); +@@doc(DevCenterEncryptionSets.createOrUpdate::parameters.resource, + "Represents a devcenter encryption set." +); +@@doc(DevCenterEncryptionSets.update::parameters.properties, + "Updatable devcenter encryption set properties." +); diff --git a/specification/devcenter/DevCenter.Management/EnvironmentDefinition.tsp b/specification/devcenter/DevCenter.Management/EnvironmentDefinition.tsp new file mode 100644 index 000000000000..20e45226163f --- /dev/null +++ b/specification/devcenter/DevCenter.Management/EnvironmentDefinition.tsp @@ -0,0 +1,150 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Catalog.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Represents an environment definition catalog item.") +@parentResource(Catalog) +model EnvironmentDefinition + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = EnvironmentDefinition, + KeyName = "environmentDefinitionName", + SegmentName = "environmentDefinitions", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + >; +} + +@armResourceOperations +interface EnvironmentDefinitionOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + @doc("The name of the project.") + @path + @segment("projects") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + projectName: string, + + @doc("The name of the Catalog.") + @path + @segment("catalogs") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + catalogName: string, + }, + { + @doc("The name of the Environment Definition.") + @path + @segment("environmentDefinitions") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + environmentDefinitionName: string, + } + > {} + +@armResourceOperations +interface EnvironmentDefinitions { + @doc("Gets an environment definition from the catalog.") + getByProjectCatalog is EnvironmentDefinitionOps.Read; + + @doc("Lists the environment definitions in this project catalog.") + listByProjectCatalog is EnvironmentDefinitionOps.List< + EnvironmentDefinition, + Response = EnvironmentDefinitionListResult + >; + + @doc("Gets Environment Definition error details.") + getErrorDetails is EnvironmentDefinitionOps.ActionSync< + EnvironmentDefinition, + void, + ArmResponse + >; +} +@armResourceOperations +interface EnvironmentDefinitionOperationGroupOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + @doc("The name of the devcenter.") + @path + @segment("devcenters") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$") + @minLength(3) + @maxLength(26) + devCenterName: string, + + @doc("The name of the Catalog.") + @path + @segment("catalogs") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + catalogName: string, + }, + { + @doc("The name of the Environment Definition.") + @path + @segment("environmentDefinitions") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + environmentDefinitionName: string, + } + > {} + +@armResourceOperations +interface EnvironmentDefinitionOperationGroup { + @doc("Gets an environment definition from the catalog.") + get is EnvironmentDefinitionOperationGroupOps.Read; + + @doc("List environment definitions in the catalog.") + listByCatalog is EnvironmentDefinitionOperationGroupOps.List< + EnvironmentDefinition, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = EnvironmentDefinitionListResult + >; + + @doc("Gets Environment Definition error details.") + getErrorDetails is EnvironmentDefinitionOperationGroupOps.ActionSync< + EnvironmentDefinition, + void, + ArmResponse + >; +} + +@@maxLength(EnvironmentDefinition.name, 63); +@@minLength(EnvironmentDefinition.name, 3); +@@doc(EnvironmentDefinition.name, "The name of the Environment Definition."); +@@doc(EnvironmentDefinition.properties, "Environment definition properties."); diff --git a/specification/devcenter/DevCenter.Management/EnvironmentType.tsp b/specification/devcenter/DevCenter.Management/EnvironmentType.tsp new file mode 100644 index 000000000000..649483e8a6b5 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/EnvironmentType.tsp @@ -0,0 +1,72 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./DevCenter.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Represents an environment type.") +@parentResource(DevCenter) +model EnvironmentType + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = EnvironmentType, + KeyName = "environmentTypeName", + SegmentName = "environmentTypes", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + >; + + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "This is a valid property." + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Correct representation for resource tags." + @doc("Resource tags.") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + tags?: Record; +} + +@armResourceOperations +interface EnvironmentTypes { + @doc("Gets an environment type.") + get is ArmResourceRead; + + @doc("Creates or updates an environment type.") + createOrUpdate is ArmResourceCreateOrReplaceSync; + + @doc("Partially updates an environment type.") + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync< + EnvironmentType, + PatchModel = EnvironmentTypeUpdate + >; + + @doc("Deletes an environment type.") + delete is ArmResourceDeleteSync; + + @doc("Lists environment types for the devcenter.") + listByDevCenter is ArmResourceListByParent< + EnvironmentType, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = EnvironmentTypeListResult + >; +} + +@@maxLength(EnvironmentType.name, 63); +@@minLength(EnvironmentType.name, 3); +@@doc(EnvironmentType.name, "The name of the environment type."); +@@doc(EnvironmentType.properties, "Properties of an environment type."); +@@doc(EnvironmentTypes.createOrUpdate::parameters.resource, + "Represents an Environment Type." +); +@@doc(EnvironmentTypes.update::parameters.properties, + "Updatable environment type properties." +); diff --git a/specification/devcenter/DevCenter.Management/Gallery.tsp b/specification/devcenter/DevCenter.Management/Gallery.tsp new file mode 100644 index 000000000000..7b99896f62a0 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/Gallery.tsp @@ -0,0 +1,56 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./DevCenter.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Represents a gallery.") +@parentResource(DevCenter) +model Gallery is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = Gallery, + KeyName = "galleryName", + SegmentName = "galleries", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + >; +} + +@armResourceOperations +interface Galleries { + @doc("Gets a gallery.") + get is ArmResourceRead; + + @doc("Creates or updates a gallery.") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + @doc("Deletes a gallery resource.") + delete is ArmResourceDeleteWithoutOkAsync< + Gallery, + LroHeaders = ArmLroLocationHeader + >; + + @doc("Lists galleries for a devcenter.") + listByDevCenter is ArmResourceListByParent< + Gallery, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = GalleryListResult + >; +} + +@@maxLength(Gallery.name, 63); +@@minLength(Gallery.name, 3); +@@doc(Gallery.name, "The name of the gallery."); +@@doc(Gallery.properties, "Gallery properties."); +@@doc(Galleries.createOrUpdate::parameters.resource, "Represents a gallery."); diff --git a/specification/devcenter/DevCenter.Management/HealthCheckStatusDetails.tsp b/specification/devcenter/DevCenter.Management/HealthCheckStatusDetails.tsp new file mode 100644 index 000000000000..2affd3fef978 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/HealthCheckStatusDetails.tsp @@ -0,0 +1,48 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./NetworkConnection.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Health Check details.") +@singleton("latest") +@parentResource(NetworkConnection) +model HealthCheckStatusDetails + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = HealthCheckStatusDetails, + KeyName = "healthCheck", + SegmentName = "healthChecks", + NamePattern = "" + >; +} + +@armResourceOperations +interface HealthCheckStatusDetailsOperationGroup { + @doc("Gets health check status details.") + getHealthDetails is ArmResourceRead; + + @doc("Lists health check status details.") + listHealthDetails is ArmResourceListByParent< + HealthCheckStatusDetails, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = HealthCheckStatusDetailsListResult + >; +} + +@@doc(HealthCheckStatusDetails.name, ""); +@@doc(HealthCheckStatusDetails.properties, + "Health check status details properties." +); diff --git a/specification/devcenter/DevCenter.Management/Image.tsp b/specification/devcenter/DevCenter.Management/Image.tsp new file mode 100644 index 000000000000..97779366347c --- /dev/null +++ b/specification/devcenter/DevCenter.Management/Image.tsp @@ -0,0 +1,126 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Gallery.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Represents an image.") +@parentResource(Gallery) +model Image is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = Image, + KeyName = "imageName", + SegmentName = "images", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-.]{0,78}[a-zA-Z0-9]$" + >; +} + +@armResourceOperations +interface ImageOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + @doc("The name of the devcenter.") + @path + @segment("devcenters") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$") + @minLength(3) + @maxLength(26) + devCenterName: string, + + @doc("The name of the gallery.") + @path + @segment("galleries") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + galleryName: string, + }, + { + @doc("The name of the image.") + @path + @segment("images") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-.]{0,78}[a-zA-Z0-9]$") + @minLength(3) + @maxLength(80) + imageName: string, + } + > {} + +@armResourceOperations +interface Images { + @doc("Gets a gallery image.") + get is ImageOps.Read; + + @doc("Lists images for a gallery.") + listByGallery is ImageOps.List< + Image, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = ImageListResult + >; +} +@armResourceOperations +interface ImageOperationGroupOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + @doc("The name of the project.") + @path + @segment("projects") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + projectName: string, + }, + { + @doc("The name of the image.") + @path + @segment("images") + @key + @pattern("^[a-zA-Z0-9~][a-zA-Z0-9-.~]{0,151}[a-zA-Z0-9]$") + @minLength(3) + @maxLength(153) + imageName: string, + } + > {} + +@armResourceOperations +interface ImageOperationGroup { + @doc("Gets an image.") + getByProject is ImageOperationGroupOps.Read; + + @doc("Lists images for a project.") + listByProject is ImageOperationGroupOps.List< + Image, + Response = ImageListResult + >; +} + +@@maxLength(Image.name, 80); +@@minLength(Image.name, 3); +@@doc(Image.name, "The name of the image."); +@@doc(Image.properties, "Image properties."); diff --git a/specification/devcenter/DevCenter.Management/ImageDefinition.tsp b/specification/devcenter/DevCenter.Management/ImageDefinition.tsp new file mode 100644 index 000000000000..6987849b65a8 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/ImageDefinition.tsp @@ -0,0 +1,173 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Catalog.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Represents a definition for an Image.") +@parentResource(Catalog) +model ImageDefinition + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = ImageDefinition, + KeyName = "imageDefinitionName", + SegmentName = "imageDefinitions", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + >; +} + +@armResourceOperations +interface ImageDefinitionOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + @doc("The name of the devcenter.") + @path + @segment("devcenters") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$") + @minLength(3) + @maxLength(26) + devCenterName: string, + + @doc("The name of the Catalog.") + @path + @segment("catalogs") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + catalogName: string, + }, + { + @doc("The name of the Image Definition.") + @path + @segment("imageDefinitions") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + imageDefinitionName: string, + } + > {} + +@armResourceOperations +interface ImageDefinitions { + @doc("Gets an Image Definition from the catalog") + getByDevCenterCatalog is ImageDefinitionOps.Read; + + @doc("List Image Definitions in the catalog.") + listByDevCenterCatalog is ImageDefinitionOps.List< + ImageDefinition, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = ImageDefinitionListResult + >; + + @doc("Gets Image Definition error details.") + getErrorDetails is ImageDefinitionOps.ActionSync< + ImageDefinition, + void, + ArmResponse + >; + + @doc("Builds an image for the specified Image Definition.") + buildImage is ImageDefinitionOps.ActionAsync< + ImageDefinition, + void, + void, + Response = ArmAcceptedLroResponse + >; +} +@armResourceOperations +interface ProjectCatalogImageDefinitionOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + @doc("The name of the project.") + @path + @segment("projects") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + projectName: string, + + @doc("The name of the Catalog.") + @path + @segment("catalogs") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + catalogName: string, + }, + { + @doc("The name of the Image Definition.") + @path + @segment("imageDefinitions") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + imageDefinitionName: string, + } + > {} + +@armResourceOperations +interface ProjectCatalogImageDefinitions { + @doc("Gets an Image Definition from the catalog.") + getByProjectCatalog is ProjectCatalogImageDefinitionOps.Read; + + @doc("List Image Definitions in the catalog.") + listByProjectCatalog is ProjectCatalogImageDefinitionOps.List< + ImageDefinition, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = ImageDefinitionListResult + >; + + @doc("Gets Image Definition error details.") + getErrorDetails is ProjectCatalogImageDefinitionOps.ActionSync< + ImageDefinition, + void, + ArmResponse + >; + + @doc("Builds an image for the specified Image Definition.") + buildImage is ProjectCatalogImageDefinitionOps.ActionAsync< + ImageDefinition, + void, + void, + Response = ArmAcceptedLroResponse + >; +} + +@@maxLength(ImageDefinition.name, 63); +@@minLength(ImageDefinition.name, 3); +@@doc(ImageDefinition.name, "The name of the Image Definition."); +@@doc(ImageDefinition.properties, "Image Definition properties"); diff --git a/specification/devcenter/DevCenter.Management/ImageDefinitionBuild.tsp b/specification/devcenter/DevCenter.Management/ImageDefinitionBuild.tsp new file mode 100644 index 000000000000..7ff57c2ff17e --- /dev/null +++ b/specification/devcenter/DevCenter.Management/ImageDefinitionBuild.tsp @@ -0,0 +1,181 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./ImageDefinition.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Represents a specific build of an Image Definition.") +@parentResource(ImageDefinition) +model ImageDefinitionBuild + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = ImageDefinitionBuild, + KeyName = "buildName", + SegmentName = "builds", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + >; +} + +@armResourceOperations +interface ImageDefinitionBuildOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + @doc("The name of the devcenter.") + @path + @segment("devcenters") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$") + @minLength(3) + @maxLength(26) + devCenterName: string, + + @doc("The name of the Catalog.") + @path + @segment("catalogs") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + catalogName: string, + + @doc("The name of the Image Definition.") + @path + @segment("imageDefinitions") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + imageDefinitionName: string, + }, + { + @doc("The ID of the Image Definition Build.") + @path + @segment("builds") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + buildName: string, + } + > {} + +@armResourceOperations +interface ImageDefinitionBuilds { + @doc("Gets a build for a specified image definition.") + get is ImageDefinitionBuildOps.Read; + + @doc("Lists builds for a specified image definition.") + listByImageDefinition is ImageDefinitionBuildOps.List< + ImageDefinitionBuild, + Response = ImageDefinitionBuildListResult + >; + + @doc("Cancels the specified build for an image definition.") + cancel is ImageDefinitionBuildOps.ActionAsync< + ImageDefinitionBuild, + void, + void, + Response = ArmAcceptedLroResponse + >; + + @doc("Gets Build details.") + getBuildDetails is ImageDefinitionBuildOps.ActionSync< + ImageDefinitionBuild, + void, + ArmResponse + >; +} +@armResourceOperations +interface ProjectCatalogImageDefinitionBuildOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + @doc("The name of the project.") + @path + @segment("projects") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + projectName: string, + + @doc("The name of the Catalog.") + @path + @segment("catalogs") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + catalogName: string, + + @doc("The name of the Image Definition.") + @path + @segment("imageDefinitions") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + imageDefinitionName: string, + }, + { + @doc("The ID of the Image Definition Build.") + @path + @segment("builds") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + buildName: string, + } + > {} + +@armResourceOperations +interface ProjectCatalogImageDefinitionBuild { + @doc("Gets a build for a specified image definition.") + get is ProjectCatalogImageDefinitionBuildOps.Read; + + @doc("Lists builds for a specified image definition.") + listByImageDefinition is ProjectCatalogImageDefinitionBuildOps.List< + ImageDefinitionBuild, + Response = ImageDefinitionBuildListResult + >; + + @doc("Cancels the specified build for an image definition.") + cancel is ProjectCatalogImageDefinitionBuildOps.ActionAsync< + ImageDefinitionBuild, + void, + void, + Response = ArmAcceptedLroResponse + >; + + @doc("Gets Build details.") + getBuildDetails is ProjectCatalogImageDefinitionBuildOps.ActionSync< + ImageDefinitionBuild, + void, + ArmResponse + >; +} + +@@maxLength(ImageDefinitionBuild.name, 63); +@@minLength(ImageDefinitionBuild.name, 3); +@@doc(ImageDefinitionBuild.name, "The ID of the Image Definition Build."); +@@doc(ImageDefinitionBuild.properties, "Image Definition Build properties"); diff --git a/specification/devcenter/DevCenter.Management/ImageVersion.tsp b/specification/devcenter/DevCenter.Management/ImageVersion.tsp new file mode 100644 index 000000000000..0c2b1b6f6673 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/ImageVersion.tsp @@ -0,0 +1,140 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Image.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Represents an image version.") +@parentResource(Image) +model ImageVersion + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = ImageVersion, + KeyName = "versionName", + SegmentName = "versions", + NamePattern = "^[0-9]{1,10}[.][0-9]{1,10}[.][0-9]{1,10}$" + >; +} + +@armResourceOperations +interface ImageVersionOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + @doc("The name of the devcenter.") + @path + @segment("devcenters") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$") + @minLength(3) + @maxLength(26) + devCenterName: string, + + @doc("The name of the gallery.") + @path + @segment("galleries") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + galleryName: string, + + @doc("The name of the image.") + @path + @segment("images") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-.]{0,78}[a-zA-Z0-9]$") + @minLength(3) + @maxLength(80) + imageName: string, + }, + { + @doc("The version of the image.") + @path + @segment("versions") + @key + @pattern("^[0-9]{1,10}[.][0-9]{1,10}[.][0-9]{1,10}$") + @minLength(5) + @maxLength(32) + versionName: string, + } + > {} + +@armResourceOperations +interface ImageVersions { + @doc("Gets an image version.") + get is ImageVersionOps.Read; + + @doc("Lists versions for an image.") + listByImage is ImageVersionOps.List< + ImageVersion, + Response = ImageVersionListResult + >; +} +@armResourceOperations +interface ImageVersionOperationGroupOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + @doc("The name of the project.") + @path + @segment("projects") + @key + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") + @minLength(3) + @maxLength(63) + projectName: string, + + @doc("The name of the image.") + @path + @segment("images") + @key + @pattern("^[a-zA-Z0-9~][a-zA-Z0-9-.~]{0,151}[a-zA-Z0-9]$") + @minLength(3) + @maxLength(153) + imageName: string, + }, + { + @doc("The version of the image.") + @path + @segment("versions") + @key + @pattern("^[0-9]{1,10}[.][0-9]{1,10}[.][0-9]{1,10}$") + @minLength(5) + @maxLength(32) + versionName: string, + } + > {} + +@armResourceOperations +interface ImageVersionOperationGroup { + @doc("Gets an image version.") + getByProject is ImageVersionOperationGroupOps.Read; + + @doc("Lists versions for an image.") + listByProject is ImageVersionOperationGroupOps.List< + ImageVersion, + Response = ImageVersionListResult + >; +} + +@@maxLength(ImageVersion.name, 32); +@@minLength(ImageVersion.name, 5); +@@doc(ImageVersion.name, "The version of the image."); +@@doc(ImageVersion.properties, "Image version properties."); diff --git a/specification/devcenter/DevCenter.Management/NetworkConnection.tsp b/specification/devcenter/DevCenter.Management/NetworkConnection.tsp new file mode 100644 index 000000000000..5a38ee906400 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/NetworkConnection.tsp @@ -0,0 +1,108 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Network related settings.") +model NetworkConnection + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = NetworkConnection, + KeyName = "networkConnectionName", + SegmentName = "networkConnections", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + >; +} + +@armResourceOperations +interface NetworkConnections { + @doc("Gets a network connection resource.") + get is ArmResourceRead; + + @doc("Creates or updates a Network Connections resource.") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + @doc("Partially updates a Network Connection.") + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchAsync< + NetworkConnection, + PatchModel = NetworkConnectionUpdate, + LroHeaders = ArmLroLocationHeader, + Response = NetworkConnection | ArmAcceptedLroResponse< + "Resource update request accepted.", + ArmLroLocationHeader + > + >; + + @doc("Deletes a Network Connections resource.") + delete is ArmResourceDeleteWithoutOkAsync< + NetworkConnection, + LroHeaders = ArmLroLocationHeader + >; + + @doc("Lists network connections in a resource group.") + listByResourceGroup is ArmResourceListByParent< + NetworkConnection, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = NetworkConnectionListResult + >; + + @doc("Lists network connections in a subscription.") + listBySubscription is ArmListBySubscription< + NetworkConnection, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = NetworkConnectionListResult + >; + + @doc("Triggers a new health check run. The execution and health check result can be tracked via the network Connection health check details.") + runHealthChecks is ArmResourceActionAsyncBase< + NetworkConnection, + void, + ArmAcceptedLroResponse, + BaseParameters = Azure.ResourceManager.Foundations.DefaultBaseParameters + >; + + @doc("Lists the endpoints that agents may call as part of Dev Box service administration. These FQDNs should be allowed for outbound access in order for the Dev Box service to function.") + @list + @get + @action("outboundNetworkDependenciesEndpoints") + listOutboundNetworkDependenciesEndpoints is ArmResourceActionSync< + NetworkConnection, + void, + ArmResponse, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + } + >; +} + +@@maxLength(NetworkConnection.name, 63); +@@minLength(NetworkConnection.name, 3); +@@doc(NetworkConnection.name, + "Name of the Network Connection that can be applied to a Pool." +); +@@doc(NetworkConnection.properties, "Properties of a Network Connection"); +@@doc(NetworkConnections.createOrUpdate::parameters.resource, + "Represents network connection" +); +@@doc(NetworkConnections.update::parameters.properties, + "Represents network connection" +); diff --git a/specification/devcenter/DevCenter.Management/Pool.tsp b/specification/devcenter/DevCenter.Management/Pool.tsp new file mode 100644 index 000000000000..b1fb27476b8a --- /dev/null +++ b/specification/devcenter/DevCenter.Management/Pool.tsp @@ -0,0 +1,77 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Project.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("A pool of Virtual Machines.") +@parentResource(Project) +model Pool is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = Pool, + KeyName = "poolName", + SegmentName = "pools", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + >; +} + +@armResourceOperations +interface Pools { + @doc("Gets a machine pool.") + get is ArmResourceRead; + + @doc("Creates or updates a machine pool.") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + @doc("Partially updates a machine pool.") + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchAsync< + Pool, + PatchModel = PoolUpdate, + LroHeaders = ArmLroLocationHeader, + Response = Pool | ArmAcceptedLroResponse< + "Resource update request accepted.", + ArmLroLocationHeader + > + >; + + @doc("Deletes a machine pool.") + delete is ArmResourceDeleteWithoutOkAsync< + Pool, + LroHeaders = ArmLroLocationHeader + >; + + @doc("Lists pools for a project.") + listByProject is ArmResourceListByParent< + Pool, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = PoolListResult + >; + + @doc("Triggers a refresh of the pool status.") + runHealthChecks is ArmResourceActionAsyncBase< + Pool, + void, + ArmAcceptedLroResponse, + BaseParameters = Azure.ResourceManager.Foundations.DefaultBaseParameters + >; +} + +@@maxLength(Pool.name, 63); +@@minLength(Pool.name, 3); +@@doc(Pool.name, "Name of the pool."); +@@doc(Pool.properties, "Pool properties"); +@@doc(Pools.createOrUpdate::parameters.resource, "Represents a machine pool"); +@@doc(Pools.update::parameters.properties, "Represents a machine pool"); diff --git a/specification/devcenter/DevCenter.Management/Project.tsp b/specification/devcenter/DevCenter.Management/Project.tsp new file mode 100644 index 000000000000..6f4cbe74ac3b --- /dev/null +++ b/specification/devcenter/DevCenter.Management/Project.tsp @@ -0,0 +1,98 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Represents a project resource.") +model Project is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = Project, + KeyName = "projectName", + SegmentName = "projects", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + >; + + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "This is a valid property." + @doc("Managed identity properties.") + identity?: Azure.ResourceManager.CommonTypes.ManagedServiceIdentity; +} + +@armResourceOperations +interface Projects { + @doc("Gets a specific project.") + get is ArmResourceRead; + + @doc("Creates or updates a project.") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + @doc("Partially updates a project.") + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchAsync< + Project, + PatchModel = ProjectUpdate, + LroHeaders = ArmLroLocationHeader, + Response = Project | ArmAcceptedLroResponse< + "Resource update request accepted.", + ArmLroLocationHeader + > + >; + + @doc("Deletes a project resource.") + delete is ArmResourceDeleteWithoutOkAsync< + Project, + LroHeaders = ArmLroLocationHeader + >; + + @doc("Lists all projects in the resource group.") + listByResourceGroup is ArmResourceListByParent< + Project, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = ProjectListResult + >; + + @doc("Lists all projects in the subscription.") + listBySubscription is ArmListBySubscription< + Project, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = ProjectListResult + >; + + @doc("Gets applicable inherited settings for this project.") + getInheritedSettings is ArmResourceActionSync< + Project, + void, + ArmResponse + >; + + @doc("Lists SKUs available to the project.") + @list + @action("listSkus") + listByProject is ArmResourceActionSync< + Project, + void, + ArmResponse + >; +} + +@@maxLength(Project.name, 63); +@@minLength(Project.name, 3); +@@doc(Project.name, "The name of the project."); +@@doc(Project.properties, "Properties of a project."); +@@doc(Projects.createOrUpdate::parameters.resource, "Represents a project."); +@@doc(Projects.update::parameters.properties, "Updatable project properties."); diff --git a/specification/devcenter/DevCenter.Management/ProjectEnvironmentType.tsp b/specification/devcenter/DevCenter.Management/ProjectEnvironmentType.tsp new file mode 100644 index 000000000000..3597093dc95d --- /dev/null +++ b/specification/devcenter/DevCenter.Management/ProjectEnvironmentType.tsp @@ -0,0 +1,70 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Project.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Represents an environment type.") +@parentResource(Project) +model ProjectEnvironmentType + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = ProjectEnvironmentType, + KeyName = "environmentTypeName", + SegmentName = "environmentTypes", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + >; + + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "This is a valid property." + @doc("Managed identity properties.") + identity?: Azure.ResourceManager.CommonTypes.ManagedServiceIdentity; +} + +@armResourceOperations +interface ProjectEnvironmentTypes { + @doc("Gets a project environment type.") + get is ArmResourceRead; + + @doc("Creates or updates a project environment type.") + createOrUpdate is ArmResourceCreateOrReplaceSync; + + @doc("Partially updates a project environment type.") + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync< + ProjectEnvironmentType, + PatchModel = ProjectEnvironmentTypeUpdate + >; + + @doc("Deletes a project environment type.") + delete is ArmResourceDeleteSync; + + @doc("Lists environment types for a project.") + list is ArmResourceListByParent< + ProjectEnvironmentType, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = ProjectEnvironmentTypeListResult + >; +} + +@@maxLength(ProjectEnvironmentType.name, 63); +@@minLength(ProjectEnvironmentType.name, 3); +@@doc(ProjectEnvironmentType.name, "The name of the environment type."); +@@doc(ProjectEnvironmentType.properties, "Properties of an environment type."); +@@doc(ProjectEnvironmentTypes.createOrUpdate::parameters.resource, + "Represents a Project Environment Type." +); +@@doc(ProjectEnvironmentTypes.update::parameters.properties, + "Updatable project environment type properties." +); diff --git a/specification/devcenter/DevCenter.Management/ProjectPolicy.tsp b/specification/devcenter/DevCenter.Management/ProjectPolicy.tsp new file mode 100644 index 000000000000..a6d6f26f1193 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/ProjectPolicy.tsp @@ -0,0 +1,74 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./DevCenter.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Represents an project policy resource.") +@parentResource(DevCenter) +model ProjectPolicy + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = ProjectPolicy, + KeyName = "projectPolicyName", + SegmentName = "projectPolicies", + NamePattern = "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + >; +} + +@armResourceOperations +interface ProjectPolicies { + @doc("Gets a specific project policy.") + get is ArmResourceRead; + + @doc("Creates or updates an project policy.") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + @doc("Partially updates an project policy.") + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchAsync< + ProjectPolicy, + PatchModel = ProjectPolicyUpdate, + LroHeaders = ArmLroLocationHeader, + Response = ProjectPolicy | ArmAcceptedLroResponse< + "Resource update request accepted.", + ArmLroLocationHeader + > + >; + + @doc("Deletes an project policy.") + delete is ArmResourceDeleteWithoutOkAsync< + ProjectPolicy, + LroHeaders = ArmLroLocationHeader + >; + + @doc("Lists all project policies in the dev center.") + listByDevCenter is ArmResourceListByParent< + ProjectPolicy, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = ProjectPolicyListResult + >; +} + +@@maxLength(ProjectPolicy.name, 63); +@@minLength(ProjectPolicy.name, 3); +@@doc(ProjectPolicy.name, "The name of the project policy."); +@@doc(ProjectPolicy.properties, "Properties of an project policy."); +@@doc(ProjectPolicies.createOrUpdate::parameters.resource, + "Represents an project policy." +); +@@doc(ProjectPolicies.update::parameters.properties, + "Updatable project policy properties." +); diff --git a/specification/devcenter/DevCenter.Management/Schedule.tsp b/specification/devcenter/DevCenter.Management/Schedule.tsp new file mode 100644 index 000000000000..90e038055209 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/Schedule.tsp @@ -0,0 +1,88 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Pool.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +@doc("Represents a Schedule to execute a task.") +@parentResource(Pool) +model Schedule is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = Schedule, + KeyName = "scheduleName", + SegmentName = "schedules", + NamePattern = "^[-\\w]+$" + >; +} + +@armResourceOperations +interface Schedules { + @doc("Gets a schedule resource.") + get is ArmResourceRead; + + @doc("Creates or updates a Schedule.") + createOrUpdate is ArmResourceCreateOrReplaceAsync< + Schedule, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + } + >; + + @doc("Partially updates a Schedule.") + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchAsync< + Schedule, + PatchModel = ScheduleUpdate, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + LroHeaders = ArmLroLocationHeader, + Response = Schedule | ArmAcceptedLroResponse< + "Resource update request accepted.", + ArmLroLocationHeader + > + >; + + @doc("Deletes a Schedule.") + delete is ArmResourceDeleteWithoutOkAsync< + Schedule, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + LroHeaders = ArmLroLocationHeader + >; + + @doc("Lists schedules for a pool.") + listByPool is ArmResourceListByParent< + Schedule, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + }, + Response = ScheduleListResult + >; +} + +@@maxLength(Schedule.name, 100); +@@minLength(Schedule.name, 1); +@@doc(Schedule.name, "The name of the schedule that uniquely identifies it."); +@@doc(Schedule.properties, "Properties of a Schedule resource"); +@@doc(Schedules.createOrUpdate::parameters.resource, + "Represents a scheduled task" +); +@@doc(Schedules.update::parameters.properties, "Represents a scheduled task."); diff --git a/specification/devcenter/DevCenter.Management/back-compatible.tsp b/specification/devcenter/DevCenter.Management/back-compatible.tsp new file mode 100644 index 000000000000..718916f3f2a9 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/back-compatible.tsp @@ -0,0 +1,168 @@ +import "@azure-tools/typespec-client-generator-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using Azure.ClientGenerator.Core; +using Microsoft.DevCenter; + +@@clientName(DevCenters.createOrUpdate::parameters.resource, "body"); +@@clientName(DevCenters.update::parameters.properties, "body"); +@@clientLocation(DevCenters.listByDevCenter, Images); + +@@clientLocation(DevCenterEncryptionSets.get, "EncryptionSets"); +@@clientLocation(DevCenterEncryptionSets.createOrUpdate, "EncryptionSets"); +@@clientName(DevCenterEncryptionSets.createOrUpdate::parameters.resource, + "body" +); +@@clientLocation(DevCenterEncryptionSets.update, "EncryptionSets"); +@@clientName(DevCenterEncryptionSets.update::parameters.properties, "body"); +@@clientLocation(DevCenterEncryptionSets.delete, "EncryptionSets"); +@@clientLocation(DevCenterEncryptionSets.list, "EncryptionSets"); + +@@clientName(ProjectPolicies.createOrUpdate::parameters.resource, "body"); +@@clientName(ProjectPolicies.update::parameters.properties, "body"); + +@@clientName(Projects.createOrUpdate::parameters.resource, "body"); +@@clientName(Projects.update::parameters.properties, "body"); +@@clientLocation(Projects.listByProject, "Skus"); + +@@clientLocation(AttachedNetworkConnections.getByProject, AttachedNetworks); +@@clientLocation(AttachedNetworkConnections.listByProject, AttachedNetworks); +@@clientName(AttachedNetworks.createOrUpdate::parameters.resource, "body"); + +@@clientLocation(Catalogs.get, "ProjectCatalogs"); +@@clientLocation(Catalogs.createOrUpdate, "ProjectCatalogs"); +@@clientName(Catalogs.createOrUpdate::parameters.resource, "body"); +@@clientLocation(Catalogs.patch, "ProjectCatalogs"); +@@clientName(Catalogs.patch::parameters.properties, "body"); +@@clientLocation(Catalogs.delete, "ProjectCatalogs"); +@@clientLocation(Catalogs.list, "ProjectCatalogs"); +@@clientLocation(Catalogs.getSyncErrorDetails, "ProjectCatalogs"); +@@clientLocation(Catalogs.sync, "ProjectCatalogs"); +@@clientLocation(Catalogs.connect, "ProjectCatalogs"); +@@clientLocation(CatalogOperationGroup.get, Catalogs); +@@clientLocation(CatalogOperationGroup.createOrUpdate, Catalogs); +@@clientName(CatalogOperationGroup.createOrUpdate::parameters.resource, "body"); +@@clientLocation(CatalogOperationGroup.update, Catalogs); +@@clientName(CatalogOperationGroup.update::parameters.properties, "body"); +@@clientLocation(CatalogOperationGroup.delete, Catalogs); +@@clientLocation(CatalogOperationGroup.listByDevCenter, Catalogs); +@@clientLocation(CatalogOperationGroup.getSyncErrorDetails, Catalogs); +@@clientLocation(CatalogOperationGroup.sync, Catalogs); +@@clientLocation(CatalogOperationGroup.connect, Catalogs); + +@@clientLocation(EnvironmentDefinitions.getErrorDetails, + "ProjectCatalogEnvironmentDefinitions" +); +@@clientLocation(EnvironmentDefinitionOperationGroup.get, + EnvironmentDefinitions +); +@@clientLocation(EnvironmentDefinitionOperationGroup.listByCatalog, + EnvironmentDefinitions +); +@@clientLocation(EnvironmentDefinitionOperationGroup.getErrorDetails, + EnvironmentDefinitions +); + +@@clientName(Galleries.createOrUpdate::parameters.resource, "body"); + +@@clientLocation(ImageOperationGroup.getByProject, Images); +@@clientLocation(ImageOperationGroup.listByProject, Images); + +@@clientLocation(ImageVersionOperationGroup.getByProject, ImageVersions); +@@clientLocation(ImageVersionOperationGroup.listByProject, ImageVersions); + +@@clientName(EnvironmentTypes.createOrUpdate::parameters.resource, "body"); +@@clientName(EnvironmentTypes.update::parameters.properties, "body"); + +@@clientLocation(AllowedEnvironmentTypes.get, "ProjectAllowedEnvironmentTypes"); +@@clientLocation(AllowedEnvironmentTypes.list, + "ProjectAllowedEnvironmentTypes" +); + +@@clientName(ProjectEnvironmentTypes.createOrUpdate::parameters.resource, + "body" +); +@@clientName(ProjectEnvironmentTypes.update::parameters.properties, "body"); + +@@clientName(DevBoxDefinitions.createOrUpdate::parameters.resource, "body"); +@@clientName(DevBoxDefinitions.update::parameters.properties, "body"); +@@clientLocation(DevBoxDefinitionOperationGroup.getByProject, + DevBoxDefinitions +); +@@clientLocation(DevBoxDefinitionOperationGroup.listByProject, + DevBoxDefinitions +); + +@@clientLocation(ImageDefinitions.getByDevCenterCatalog, + "DevCenterCatalogImageDefinitions" +); +@@clientLocation(ImageDefinitions.listByDevCenterCatalog, + "DevCenterCatalogImageDefinitions" +); +@@clientLocation(ImageDefinitions.getErrorDetails, + "DevCenterCatalogImageDefinitions" +); +@@clientLocation(ImageDefinitions.buildImage, + "DevCenterCatalogImageDefinitions" +); + +@@clientLocation(ImageDefinitionBuilds.get, + "DevCenterCatalogImageDefinitionBuild" +); +@@clientLocation(ImageDefinitionBuilds.listByImageDefinition, + "DevCenterCatalogImageDefinitionBuilds" +); +@@clientLocation(ImageDefinitionBuilds.cancel, + "DevCenterCatalogImageDefinitionBuild" +); +@@clientLocation(ImageDefinitionBuilds.getBuildDetails, + "DevCenterCatalogImageDefinitionBuild" +); +@@clientLocation(ProjectCatalogImageDefinitionBuild.listByImageDefinition, + "ProjectCatalogImageDefinitionBuilds" +); + +@@clientName(Pools.createOrUpdate::parameters.resource, "body"); +@@clientName(Pools.update::parameters.properties, "body"); + +@@clientName(Schedules.createOrUpdate::parameters.resource, "body"); +@@clientName(Schedules.update::parameters.properties, "body"); + +@@clientName(NetworkConnections.createOrUpdate::parameters.resource, "body"); +@@clientName(NetworkConnections.update::parameters.properties, "body"); + +@@clientLocation(HealthCheckStatusDetailsOperationGroup.getHealthDetails, + NetworkConnections +); +@@clientLocation(HealthCheckStatusDetailsOperationGroup.listHealthDetails, + NetworkConnections +); + +@@clientLocation(SkusOperationGroup.listBySubscription, "Skus"); + +@@clientLocation(OperationStatusesOperationGroup.get, "OperationStatuses"); + +@@clientLocation(UsagesOperationGroup.listByLocation, "Usages"); + +@@clientLocation(CheckNameAvailabilityOperationGroup.execute, + "CheckNameAvailability" +); + +@@clientLocation(CheckScopedNameAvailabilityOperationGroup.execute, + "CheckScopedNameAvailability" +); +@@clientName(CheckNameAvailabilityOperationGroup.execute::parameters.body, + "nameAvailabilityRequest" +); +@@clientName(CheckScopedNameAvailabilityOperationGroup.execute::parameters.body, + "nameAvailabilityRequest" +); + +@@clientName(Azure.ResourceManager.CommonTypes.KeyEncryptionKeyIdentity, + "CustomerManagedKeyEncryptionKeyIdentity", + "python,javascript" +); +@@clientName(Azure.ResourceManager.CommonTypes.KeyEncryptionKeyIdentityType, + "IdentityType", + "python,javascript" +); diff --git a/specification/devcenter/DevCenter.Management/client.tsp b/specification/devcenter/DevCenter.Management/client.tsp new file mode 100644 index 000000000000..234554ce2621 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/client.tsp @@ -0,0 +1,15 @@ +import "@azure-tools/typespec-client-generator-core"; +import "./main.tsp"; + +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.DevCenter, "DevCenterMgmtClient", "python"); + +@@clientName(Microsoft.DevCenter.DevCenterProjectCatalogSettings, + "ProjectCatalogSettingsInfo", + "go" +); + +@@clientName(Microsoft.DevCenter.DevCenterSku, "SkuInfo", "go"); + +@@clientName(Microsoft.DevCenter.UserRoleAssignment, "UserRoleAssignmentValue"); diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_Create.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_Create.json new file mode 100644 index 000000000000..8150cd94b8c2 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_Create.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "attachedNetworkConnectionName": "network-uswest3", + "body": { + "properties": { + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3" + } + }, + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "network-uswest3", + "type": "Microsoft.DevCenter/devcenters/attachednetworks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-uswest3", + "properties": { + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", + "provisioningState": "Accepted" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "network-uswest3", + "type": "Microsoft.DevCenter/devcenters/attachednetworks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-uswest3", + "properties": { + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", + "provisioningState": "Accepted" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "AttachedNetworks_CreateOrUpdate", + "title": "AttachedNetworks_Create" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_Delete.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_Delete.json new file mode 100644 index 000000000000..1f6ac2c19e27 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "attachedNetworkConnectionName": "network-uswest3", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + }, + "operationId": "AttachedNetworks_Delete", + "title": "AttachedNetworks_Delete" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_GetByDevCenter.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_GetByDevCenter.json new file mode 100644 index 000000000000..a23266269696 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_GetByDevCenter.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "attachedNetworkConnectionName": "network-uswest3", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "network-uswest3", + "type": "Microsoft.DevCenter/devcenters/attachednetworks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-uswest3", + "properties": { + "healthCheckStatus": "Healthy", + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", + "networkConnectionLocation": "centralus", + "provisioningState": "Created" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "AttachedNetworks_GetByDevCenter", + "title": "AttachedNetworks_GetByDevCenter" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_GetByProject.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_GetByProject.json new file mode 100644 index 000000000000..1e41c60ae2a9 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_GetByProject.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "attachedNetworkConnectionName": "network-uswest3", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "network-uswest3", + "type": "Microsoft.DevCenter/projects/attachednetworks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/attachednetworks/network-uswest3", + "properties": { + "healthCheckStatus": "Healthy", + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", + "networkConnectionLocation": "centralus", + "provisioningState": "Created" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "AttachedNetworks_GetByProject", + "title": "AttachedNetworks_GetByProject" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_ListByDevCenter.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_ListByDevCenter.json new file mode 100644 index 000000000000..06e8c747f5e9 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_ListByDevCenter.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "netmap1", + "type": "Microsoft.DevCenter/devcenters/attachedNetworks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/netmap1", + "properties": { + "healthCheckStatus": "Healthy", + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", + "networkConnectionLocation": "centralus", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "Application", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "Application" + } + }, + { + "name": "netmap2", + "type": "Microsoft.DevCenter/devcenters/attachedNetworks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/netmap2", + "properties": { + "healthCheckStatus": "Healthy", + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/network-uswest3", + "networkConnectionLocation": "centralus", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "AttachedNetworks_ListByDevCenter", + "title": "AttachedNetworks_ListByDevCenter" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_ListByProject.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_ListByProject.json new file mode 100644 index 000000000000..bb74dc8ec7c8 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/AttachedNetworks_ListByProject.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "netmap1", + "type": "Microsoft.DevCenter/projects/attachedNetworks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/attachednetworks/netmap1", + "properties": { + "healthCheckStatus": "Healthy", + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", + "networkConnectionLocation": "centralus", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "Application", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "Application" + } + }, + { + "name": "netmap2", + "type": "Microsoft.DevCenter/projects/attachedNetworks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/attachednetworks/netmap2", + "properties": { + "healthCheckStatus": "Healthy", + "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", + "networkConnectionLocation": "centralus", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "AttachedNetworks_ListByProject", + "title": "AttachedNetworks_ListByProject" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_Connect.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_Connect.json new file mode 100644 index 000000000000..1aab0e1f20e3 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_Connect.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "CentralCatalog", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + }, + "operationId": "Catalogs_Connect", + "title": "Catalogs_Connect" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_CreateAdo.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_CreateAdo.json new file mode 100644 index 000000000000..94b612476264 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_CreateAdo.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "adoGit": { + "path": "/templates", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso" + }, + "syncType": "Scheduled" + } + }, + "catalogName": "CentralCatalog", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/devcenters/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", + "properties": { + "adoGit": { + "path": "/templates", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso" + }, + "connectionState": "Connected", + "lastSyncStats": { + "added": 0, + "removed": 0, + "synchronizationErrors": 0, + "unchanged": 0, + "updated": 0, + "validationErrors": 0 + }, + "provisioningState": "Accepted", + "syncState": "Succeeded", + "syncType": "Scheduled" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/devcenters/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", + "properties": { + "adoGit": { + "path": "/templates", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso" + }, + "connectionState": "Connected", + "lastSyncStats": { + "added": 0, + "removed": 0, + "synchronizationErrors": 0, + "unchanged": 0, + "updated": 0, + "validationErrors": 0 + }, + "provisioningState": "Accepted", + "syncState": "Succeeded", + "syncType": "Scheduled" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "Catalogs_CreateOrUpdate", + "title": "Catalogs_CreateOrUpdateAdo" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_CreateGitHub.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_CreateGitHub.json new file mode 100644 index 000000000000..8fe0edf00b58 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_CreateGitHub.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "gitHub": { + "path": "/templates", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://github.com/Contoso/centralrepo-fake.git" + }, + "syncType": "Manual" + } + }, + "catalogName": "CentralCatalog", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/devcenters/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", + "properties": { + "connectionState": "Connected", + "gitHub": { + "path": "/templates", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://github.com/Contoso/centralrepo-fake.git" + }, + "lastSyncStats": { + "added": 0, + "removed": 0, + "synchronizationErrors": 0, + "unchanged": 0, + "updated": 0, + "validationErrors": 0 + }, + "provisioningState": "Accepted", + "syncState": "Succeeded", + "syncType": "Manual" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/devcenters/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", + "properties": { + "connectionState": "Connected", + "gitHub": { + "path": "/templates", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://github.com/Contoso/centralrepo-fake.git" + }, + "lastSyncStats": { + "added": 0, + "removed": 0, + "synchronizationErrors": 0, + "unchanged": 0, + "updated": 0, + "validationErrors": 0 + }, + "provisioningState": "Accepted", + "syncState": "Succeeded", + "syncType": "Manual" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "Catalogs_CreateOrUpdate", + "title": "Catalogs_CreateOrUpdateGitHub" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_Delete.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_Delete.json new file mode 100644 index 000000000000..35fe08119acf --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "CentralCatalog", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + }, + "operationId": "Catalogs_Delete", + "title": "Catalogs_Delete" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_Get.json new file mode 100644 index 000000000000..dfbc0eadae6d --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_Get.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "CentralCatalog", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/devcenters/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", + "properties": { + "connectionState": "Connected", + "gitHub": { + "path": "/templates", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://github.com/Contoso/centralrepo-fake.git" + }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", + "lastSyncStats": { + "added": 1, + "removed": 1, + "synchronizationErrors": 1, + "unchanged": 1, + "updated": 1, + "validationErrors": 1 + }, + "lastSyncTime": "2020-11-18T18:28:00.314Z", + "provisioningState": "Succeeded", + "syncState": "Succeeded", + "syncType": "Scheduled" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "Catalogs_Get", + "title": "Catalogs_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_GetSyncErrorDetails.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_GetSyncErrorDetails.json new file mode 100644 index 000000000000..02364a443b13 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_GetSyncErrorDetails.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "CentralCatalog", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "conflicts": [ + { + "name": "DuplicateEnvironmentName", + "path": "/Environments/Duplicate/manifest.yaml" + } + ], + "errors": [ + { + "path": "/Environments/Invalid/manifest.yaml", + "errorDetails": [ + { + "code": "ParseError", + "message": "Schema Error Within Catalog Item: Missing Name" + } + ] + } + ], + "operationError": { + "code": "Conflict", + "message": "The source control credentials could not be validated successfully." + } + } + } + }, + "operationId": "Catalogs_GetSyncErrorDetails", + "title": "Catalogs_GetSyncErrorDetails" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_List.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_List.json new file mode 100644 index 000000000000..21c686fbc880 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_List.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/devcenters/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", + "properties": { + "connectionState": "Connected", + "gitHub": { + "path": "/templates", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://github.com/Contoso/centralrepo-fake.git" + }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", + "lastSyncStats": { + "added": 1, + "removed": 1, + "synchronizationErrors": 1, + "unchanged": 1, + "updated": 1, + "validationErrors": 1 + }, + "lastSyncTime": "2020-11-18T18:28:00.314Z", + "provisioningState": "Succeeded", + "syncState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "Catalogs_ListByDevCenter", + "title": "Catalogs_ListByDevCenter" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_Patch.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_Patch.json new file mode 100644 index 000000000000..1587261d665f --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_Patch.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "gitHub": { + "path": "/environments" + }, + "syncType": "Scheduled" + } + }, + "catalogName": "CentralCatalog", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/devcenters/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", + "properties": { + "connectionState": "Connected", + "gitHub": { + "path": "/environments", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://github.com/Contoso/centralrepo-fake.git" + }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", + "lastSyncStats": { + "added": 1, + "removed": 1, + "synchronizationErrors": 1, + "unchanged": 1, + "updated": 1, + "validationErrors": 1 + }, + "lastSyncTime": "2020-11-18T18:28:00.314Z", + "provisioningState": "Succeeded", + "syncState": "Succeeded", + "syncType": "Scheduled" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + }, + "operationId": "Catalogs_Update", + "title": "Catalogs_Update" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_Sync.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_Sync.json new file mode 100644 index 000000000000..09defba447e8 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Catalogs_Sync.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "CentralCatalog", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + }, + "operationId": "Catalogs_Sync", + "title": "Catalogs_Sync" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CheckNameAvailability.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CheckNameAvailability.json new file mode 100644 index 000000000000..f77acac8ffcf --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CheckNameAvailability.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "nameAvailabilityRequest": { + "name": "name1", + "type": "Microsoft.DevCenter/devcenters" + }, + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + }, + "operationId": "CheckNameAvailability_Execute", + "title": "NameAvailability" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CheckScopedNameAvailability_DevCenterCatalog.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CheckScopedNameAvailability_DevCenterCatalog.json new file mode 100644 index 000000000000..3ee3f024c162 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CheckScopedNameAvailability_DevCenterCatalog.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "nameAvailabilityRequest": { + "name": "name1", + "type": "Microsoft.DevCenter/devcenters/catalogs", + "scope": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso" + }, + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + }, + "operationId": "CheckScopedNameAvailability_Execute", + "title": "DevcenterCatalogNameAvailability" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CheckScopedNameAvailability_ProjectCatalog.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CheckScopedNameAvailability_ProjectCatalog.json new file mode 100644 index 000000000000..03c61479d13d --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CheckScopedNameAvailability_ProjectCatalog.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "nameAvailabilityRequest": { + "name": "name1", + "type": "Microsoft.DevCenter/projects/catalogs", + "scope": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" + }, + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + }, + "operationId": "CheckScopedNameAvailability_Execute", + "title": "ProjectCatalogNameAvailability" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CustomizationTasks_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CustomizationTasks_Get.json new file mode 100644 index 000000000000..7c418c3db850 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CustomizationTasks_Get.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "CentralCatalog", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff", + "taskName": "SampleTask" + }, + "responses": { + "200": { + "body": { + "name": "SampleTask", + "type": "Microsoft.DevCenter/devcenters/catalogs/tasks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog/tasks/SampleTask", + "properties": { + "inputs": { + "feed": { + "type": "string" + }, + "package": { + "type": "string", + "required": true + } + }, + "timeout": 30, + "validationStatus": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "CustomizationTasks_Get", + "title": "CustomizationTasks_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CustomizationTasks_GetErrorDetails.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CustomizationTasks_GetErrorDetails.json new file mode 100644 index 000000000000..731121128520 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CustomizationTasks_GetErrorDetails.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "CentralCatalog", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff", + "taskName": "SampleTask" + }, + "responses": { + "200": { + "body": { + "errors": [ + { + "code": "ParameterValueInvalid", + "message": "Expected parameter value for 'InstanceCount' to be integer but found the string 'test'." + } + ] + } + } + }, + "operationId": "CustomizationTasks_GetErrorDetails", + "title": "CustomizationTasks_GetErrorDetails" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CustomizationTasks_ListByCatalog.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CustomizationTasks_ListByCatalog.json new file mode 100644 index 000000000000..3d9dc07f41fe --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/CustomizationTasks_ListByCatalog.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "CentralCatalog", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "SampleTask", + "type": "Microsoft.DevCenter/devcenters/catalogs/tasks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog/tasks/SampleTask", + "properties": { + "inputs": { + "feed": { + "type": "string" + }, + "package": { + "type": "string", + "required": true + } + }, + "timeout": 30 + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "CustomizationTasks_ListByCatalog", + "title": "CustomizationTasks_ListByCatalog" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_Create.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_Create.json new file mode 100644 index 000000000000..8a2386cfe571 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_Create.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "location": "centralus", + "properties": { + "hibernateSupport": "Enabled", + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "sku": { + "name": "Preview" + } + } + }, + "devBoxDefinitionName": "WebDevBox", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "WebDevBox", + "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/devBoxDefinitionName", + "location": "centralus", + "properties": { + "hibernateSupport": "Enabled", + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "provisioningState": "Succeeded", + "sku": { + "name": "Preview" + } + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "WebDevBox", + "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/devBoxDefinitionName", + "location": "centralus", + "properties": { + "hibernateSupport": "Enabled", + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "provisioningState": "Created", + "sku": { + "name": "Preview" + } + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "DevBoxDefinitions_CreateOrUpdate", + "title": "DevBoxDefinitions_Create" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_Delete.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_Delete.json new file mode 100644 index 000000000000..e022c14a36a0 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devBoxDefinitionName": "WebDevBox", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + }, + "operationId": "DevBoxDefinitions_Delete", + "title": "DevBoxDefinitions_Delete" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_Get.json new file mode 100644 index 000000000000..4a5b940433cf --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_Get.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devBoxDefinitionName": "WebDevBox", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "WebDevBox", + "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/WebDevBox", + "location": "centralus", + "properties": { + "hibernateSupport": "Enabled", + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "provisioningState": "Succeeded", + "sku": { + "name": "Preview" + } + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "DevBoxDefinitions_Get", + "title": "DevBoxDefinitions_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_GetByProject.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_GetByProject.json new file mode 100644 index 000000000000..2f7bd7befa60 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_GetByProject.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devBoxDefinitionName": "WebDevBox", + "projectName": "ContosoProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "WebDevBox", + "type": "Microsoft.DevCenter/projects/devboxdefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/devboxdefinitions/WebDevBox", + "location": "centralus", + "properties": { + "hibernateSupport": "Enabled", + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "provisioningState": "Succeeded", + "sku": { + "name": "Preview" + } + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "DevBoxDefinitions_GetByProject", + "title": "DevBoxDefinitions_GetByProject" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_ListByDevCenter.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_ListByDevCenter.json new file mode 100644 index 000000000000..a3648f953b35 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_ListByDevCenter.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devBoxDefinitionName": "WebDevBox", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "WebDevBox", + "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/WebDevBox", + "location": "centralus", + "properties": { + "hibernateSupport": "Enabled", + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "provisioningState": "Succeeded", + "sku": { + "name": "Preview" + } + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "DevBoxDefinitions_ListByDevCenter", + "title": "DevBoxDefinitions_ListByDevCenter" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_ListByProject.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_ListByProject.json new file mode 100644 index 000000000000..787ebb02be44 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_ListByProject.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devBoxDefinitionName": "WebDevBox", + "projectName": "ContosoProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "WebDevBox", + "type": "Microsoft.DevCenter/projects/devboxdefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/devboxdefinitions/WebDevBox", + "location": "centralus", + "properties": { + "hibernateSupport": "Enabled", + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "provisioningState": "Succeeded", + "sku": { + "name": "Preview" + } + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "DevBoxDefinitions_ListByProject", + "title": "DevBoxDefinitions_ListByProject" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_Patch.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_Patch.json new file mode 100644 index 000000000000..1be758fe693b --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevBoxDefinitions_Patch.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/version/2.0.0" + } + } + }, + "devBoxDefinitionName": "WebDevBox", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "WebDevBox", + "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/WebDevBox", + "location": "centralus", + "properties": { + "hibernateSupport": "Enabled", + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/version/2.0.0" + }, + "provisioningState": "Succeeded", + "sku": { + "name": "Preview" + } + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + }, + "operationId": "DevBoxDefinitions_Update", + "title": "DevBoxDefinitions_Patch" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterEncryptionSets_Create.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterEncryptionSets_Create.json new file mode 100644 index 000000000000..a41f0edd7717 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterEncryptionSets_Create.json @@ -0,0 +1,98 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + }, + "location": "westus", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek" + } + }, + "devCenterName": "Contoso", + "encryptionSetName": "EncryptionWestUs", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "EncryptionWestUs", + "type": "Microsoft.DevCenter/devcenters/encryptionSets", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "westus", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "provisioningState": "Accepted" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "EncryptionWestUs", + "type": "Microsoft.DevCenter/devcenters/encryptionSets", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "westus", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "provisioningState": "Accepted" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "EncryptionSets_CreateOrUpdate", + "title": "EncryptionSets_Create" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterEncryptionSets_Delete.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterEncryptionSets_Delete.json new file mode 100644 index 000000000000..1b88c6fe3103 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterEncryptionSets_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "encryptionSetName": "EncryptionWestUs", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-10-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-10-01-preview" + } + }, + "204": {} + }, + "operationId": "EncryptionSets_Delete", + "title": "EncryptionSets_Delete" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterEncryptionSets_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterEncryptionSets_Get.json new file mode 100644 index 000000000000..4a0274130f86 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterEncryptionSets_Get.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "encryptionSetName": "EncryptionWestUs", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "EncryptionWestUs", + "type": "Microsoft.DevCenter/devcenters/encryptionSets", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "westus", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "EncryptionSets_Get", + "title": "EncryptionSets_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterEncryptionSets_List.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterEncryptionSets_List.json new file mode 100644 index 000000000000..5029cfc785db --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterEncryptionSets_List.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "EncryptionWestUs", + "type": "Microsoft.DevCenter/devcenters/encryptionSets", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "westus", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "EncryptionSets_List", + "title": "EncryptionSets_List" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterEncryptionSets_Patch.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterEncryptionSets_Patch.json new file mode 100644 index 000000000000..72fd1696cdf3 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterEncryptionSets_Patch.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled" + } + }, + "devCenterName": "Contoso", + "encryptionSetName": "EncryptionWestUs", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "EncryptionWestUs", + "type": "Microsoft.DevCenter/devcenters/encryptionSets", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "westus", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokekwestus", + "provisioningState": "Accepted" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-10-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-10-01-preview" + } + } + }, + "operationId": "EncryptionSets_Update", + "title": "EncryptionSets_Update" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_BuildImage.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_BuildImage.json new file mode 100644 index 000000000000..a9bb0ca22699 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_BuildImage.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "CentralCatalog", + "devCenterName": "DevDevCenter", + "imageDefinitionName": "DefaultDevImage", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" + } + } + }, + "operationId": "DevCenterCatalogImageDefinitions_BuildImage", + "title": "DevCenterCatalogImageDefinitions_BuildImage" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_CancelImageBuild.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_CancelImageBuild.json new file mode 100644 index 000000000000..3cba0f8dc4f0 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_CancelImageBuild.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "catalogName": "CentralCatalog", + "devCenterName": "DevDevCenter", + "imageDefinitionName": "DefaultDevImage", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" + } + } + }, + "operationId": "DevCenterCatalogImageDefinitionBuild_Cancel", + "title": "DevCenterImageDefinitionBuilds_CancelByImageDefinition" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_GetErrorDetails.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_GetErrorDetails.json new file mode 100644 index 000000000000..833fa5edd230 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_GetErrorDetails.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "TeamCatalog", + "devCenterName": "DevDevCenter", + "imageDefinitionName": "WebDevBox", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "errors": [ + { + "code": "CatalogItemNotExist", + "message": "Task choco doesn't exist in the dev center." + } + ] + } + } + }, + "operationId": "DevCenterCatalogImageDefinitions_GetErrorDetails", + "title": "DevCenterImageDefinitions_GetErrorDetails" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_GetImageBuild.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_GetImageBuild.json new file mode 100644 index 000000000000..cc12e2bcb34a --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_GetImageBuild.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "catalogName": "CentralCatalog", + "devCenterName": "DevDevCenter", + "imageDefinitionName": "DefaultDevImage", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "type": "Microsoft.DevCenter/centers/catalogs/imageDefinitions/builds", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/DevDevCenter/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "status": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "DevCenterCatalogImageDefinitionBuild_Get", + "title": "DevCenterImageDefinitionBuilds_GetByImageDefinition" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_GetImageBuildDetails.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_GetImageBuildDetails.json new file mode 100644 index 000000000000..111663ca5c3e --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_GetImageBuildDetails.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "catalogName": "CentralCatalog", + "devCenterName": "DevDevCenter", + "imageDefinitionName": "DefaultDevImage", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "status": "Succeeded", + "taskGroups": [ + { + "name": "Provisioning", + "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded", + "tasks": [ + { + "name": "Provisioning", + "displayName": "Provisioning", + "endTime": "2020-11-18T18:25:12.952Z", + "id": "e72eb35f-f406-42ec-8b93-7d18a9f7b059", + "logUri": "", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded" + } + ] + }, + { + "name": "Customizations", + "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded", + "tasks": [ + { + "name": "vs2022", + "displayName": "Install Visual Studio 2022", + "endTime": "2020-11-18T18:25:12.952Z", + "id": "e72eb35f-f406-42ec-8b93-7d18a9f7b059", + "logUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7/logs/e72eb35f-f406-42ec-8b93-7d18a9f7b059", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded" + } + ] + }, + { + "name": "Generalization", + "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded", + "tasks": [ + { + "name": "Generalization", + "displayName": "Generalization", + "endTime": "2020-11-18T18:25:12.952Z", + "logUri": "", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded" + } + ] + } + ] + } + } + }, + "operationId": "DevCenterCatalogImageDefinitionBuild_GetBuildDetails", + "title": "DevCenterCatalogImageDefinitionBuild_GetErrorDetails" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json new file mode 100644 index 000000000000..96ee27170017 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "catalogName": "CentralCatalog", + "devCenterName": "DevDevCenter", + "imageDefinitionName": "DefaultDevImage", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "type": "Microsoft.DevCenter/devcenters/catalogs/imageDefinitions/builds", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/DevDevCenter/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "status": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "DevCenterCatalogImageDefinitionBuilds_ListByImageDefinition", + "title": "DevCenterImageDefinitionBuilds_ListByImageDefinition" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_Create.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_Create.json new file mode 100644 index 000000000000..0d4d45c85ca0 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_Create.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "location": "centralus", + "properties": { + "devBoxProvisioningSettings": { + "installAzureMonitorAgentEnableStatus": "Enabled" + }, + "displayName": "ContosoDevCenter", + "projectCatalogSettings": { + "catalogItemSyncEnableStatus": "Enabled" + } + }, + "tags": { + "CostCode": "12345" + } + }, + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "location": "centralus", + "properties": { + "devBoxProvisioningSettings": { + "installAzureMonitorAgentEnableStatus": "Enabled" + }, + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Enabled" + }, + "projectCatalogSettings": { + "catalogItemSyncEnableStatus": "Enabled" + }, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345", + "hidden-title": "ContosoDevCenter" + } + } + }, + "201": { + "body": { + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "location": "centralus", + "properties": { + "devBoxProvisioningSettings": { + "installAzureMonitorAgentEnableStatus": "Enabled" + }, + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Enabled" + }, + "projectCatalogSettings": { + "catalogItemSyncEnableStatus": "Enabled" + }, + "provisioningState": "Accepted" + }, + "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345", + "hidden-title": "ContosoDevCenter" + } + } + } + }, + "operationId": "DevCenters_CreateOrUpdate", + "title": "DevCenters_Create" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_CreateWithDisabledManagedNetworks.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_CreateWithDisabledManagedNetworks.json new file mode 100644 index 000000000000..6ec8b4f4494a --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_CreateWithDisabledManagedNetworks.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + }, + "location": "centralus", + "properties": { + "displayName": "ContosoDevCenter", + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Disabled" + } + }, + "tags": { + "CostCode": "12345" + } + }, + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", + "properties": { + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Disabled" + }, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345" + } + } + }, + "201": { + "body": { + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", + "properties": { + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Disabled" + }, + "provisioningState": "Accepted" + }, + "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345" + } + } + } + }, + "operationId": "DevCenters_CreateOrUpdate", + "title": "DevCenters_CreateWithDisabledManagedNetworks" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_CreateWithEncryption.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_CreateWithEncryption.json new file mode 100644 index 000000000000..f4a6adafb3ed --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_CreateWithEncryption.json @@ -0,0 +1,126 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + }, + "location": "centralus", + "properties": { + "displayName": "ContosoDevCenter", + "encryption": { + "customerManagedKeyEncryption": { + "keyEncryptionKeyIdentity": { + "identityType": "userAssignedIdentity", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokek" + } + } + }, + "tags": { + "CostCode": "12345" + } + }, + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", + "properties": { + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "encryption": { + "customerManagedKeyEncryption": { + "keyEncryptionKeyIdentity": { + "identityType": "userAssignedIdentity", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokek" + } + }, + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Enabled" + }, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345" + } + } + }, + "201": { + "body": { + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", + "properties": { + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "encryption": { + "customerManagedKeyEncryption": { + "keyEncryptionKeyIdentity": { + "identityType": "userAssignedIdentity", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokek" + } + }, + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Enabled" + }, + "provisioningState": "Accepted" + }, + "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345" + } + } + } + }, + "operationId": "DevCenters_CreateOrUpdate", + "title": "DevCenters_CreateWithEncryption" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_CreateWithUserIdentity.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_CreateWithUserIdentity.json new file mode 100644 index 000000000000..a4057b5fbdbd --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_CreateWithUserIdentity.json @@ -0,0 +1,99 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + }, + "location": "centralus", + "properties": { + "displayName": "ContosoDevCenter" + }, + "tags": { + "CostCode": "12345" + } + }, + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", + "properties": { + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Enabled" + }, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345" + } + } + }, + "201": { + "body": { + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", + "properties": { + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Enabled" + }, + "provisioningState": "Accepted" + }, + "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345" + } + } + } + }, + "operationId": "DevCenters_CreateOrUpdate", + "title": "DevCenters_CreateWithUserIdentity" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_Delete.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_Delete.json new file mode 100644 index 000000000000..6f8227941846 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_Delete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + }, + "operationId": "DevCenters_Delete", + "title": "DevCenters_Delete" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_Get.json new file mode 100644 index 000000000000..72428d1ac5ff --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_Get.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "location": "centralus", + "properties": { + "devBoxProvisioningSettings": { + "installAzureMonitorAgentEnableStatus": "Enabled" + }, + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "projectCatalogSettings": { + "catalogItemSyncEnableStatus": "Enabled" + }, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345", + "hidden-title": "ContosoDevCenter" + } + } + } + }, + "operationId": "DevCenters_Get", + "title": "DevCenters_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_ListByResourceGroup.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_ListByResourceGroup.json new file mode 100644 index 000000000000..a4a8702337ae --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_ListByResourceGroup.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/contoso", + "location": "centralus", + "properties": { + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-11-11T22:00:08.896Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345" + } + } + ] + } + } + }, + "operationId": "DevCenters_ListByResourceGroup", + "title": "DevCenters_ListByResourceGroup" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_ListBySubscription.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_ListBySubscription.json new file mode 100644 index 000000000000..23df6a8425d7 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_ListBySubscription.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/contoso", + "location": "centralus", + "properties": { + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", + "createdBy": "string", + "createdByType": "User", + "lastModifiedAt": "2020-11-11T22:00:08.896Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345" + } + } + ] + } + } + }, + "operationId": "DevCenters_ListBySubscription", + "title": "DevCenters_ListBySubscription" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_Patch.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_Patch.json new file mode 100644 index 000000000000..3b17f8101a00 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/DevCenters_Patch.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "tags": { + "CostCode": "12345" + } + }, + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "location": "centralus", + "properties": { + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + }, + "operationId": "DevCenters_Update", + "title": "DevCenters_Update" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentDefinitions_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentDefinitions_Get.json new file mode 100644 index 000000000000..e8a0bae41289 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentDefinitions_Get.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "myCatalog", + "devCenterName": "Contoso", + "environmentDefinitionName": "myEnvironmentDefinition", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "myEnvironmentDefinition", + "type": "Microsoft.DevCenter/devcenters/catalogs/environmentDefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", + "properties": { + "description": "My sample environment definition.", + "parameters": [ + { + "name": "Function App Runtime", + "type": "string", + "id": "functionAppRuntime", + "required": true + }, + { + "name": "Storage Account Type", + "type": "string", + "id": "storageAccountType", + "required": true + }, + { + "name": "HTTPS only", + "type": "boolean", + "id": "httpsOnly", + "readOnly": true, + "required": true + } + ], + "templatePath": "azuredeploy.json", + "validationStatus": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "EnvironmentDefinitions_Get", + "title": "EnvironmentDefinitions_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentDefinitions_GetByProjectCatalog.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentDefinitions_GetByProjectCatalog.json new file mode 100644 index 000000000000..3d41f26f99e0 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentDefinitions_GetByProjectCatalog.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "myCatalog", + "environmentDefinitionName": "myEnvironmentDefinition", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "myEnvironmentDefinition", + "type": "Microsoft.DevCenter/projects/catalogs/environmentDefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", + "properties": { + "description": "My sample environment definition.", + "parameters": [ + { + "name": "Function App Runtime", + "type": "string", + "id": "functionAppRuntime", + "required": true + }, + { + "name": "Storage Account Type", + "type": "string", + "id": "storageAccountType", + "required": true + }, + { + "name": "HTTPS only", + "type": "boolean", + "id": "httpsOnly", + "readOnly": true, + "required": true + } + ], + "templatePath": "azuredeploy.json", + "validationStatus": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "EnvironmentDefinitions_GetByProjectCatalog", + "title": "EnvironmentDefinitions_GetByProjectCatalog" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentDefinitions_GetErrorDetails.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentDefinitions_GetErrorDetails.json new file mode 100644 index 000000000000..cb246bca241c --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentDefinitions_GetErrorDetails.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "myCatalog", + "devCenterName": "Contoso", + "environmentDefinitionName": "myEnvironmentDefinition", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "errors": [ + { + "code": "ParameterValueInvalid", + "message": "Expected parameter value for 'InstanceCount' to be integer but found the string 'test'." + } + ] + } + } + }, + "operationId": "EnvironmentDefinitions_GetErrorDetails", + "title": "EnvironmentDefinitions_GetErrorDetails" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentDefinitions_ListByCatalog.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentDefinitions_ListByCatalog.json new file mode 100644 index 000000000000..190ce8e2b0d8 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentDefinitions_ListByCatalog.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "myCatalog", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myEnvironmentDefinition", + "type": "Microsoft.DevCenter/devcenters/catalogs/environmentDefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", + "properties": { + "description": "My sample environment definition.", + "parameters": [ + { + "name": "Function App Runtime", + "type": "string", + "id": "functionAppRuntime", + "required": true + }, + { + "name": "Storage Account Type", + "type": "string", + "id": "storageAccountType", + "required": true + }, + { + "name": "HTTPS only", + "type": "boolean", + "id": "httpsOnly", + "readOnly": true, + "required": true + } + ], + "templatePath": "azuredeploy.json", + "validationStatus": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "EnvironmentDefinitions_ListByCatalog", + "title": "EnvironmentDefinitions_ListByCatalog" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentDefinitions_ListByProjectCatalog.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentDefinitions_ListByProjectCatalog.json new file mode 100644 index 000000000000..335eedfd6025 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentDefinitions_ListByProjectCatalog.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "myCatalog", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myEnvironmentDefinition", + "type": "Microsoft.DevCenter/projects/catalogs/environmentDefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", + "properties": { + "description": "My sample environment definition.", + "parameters": [ + { + "name": "Function App Runtime", + "type": "string", + "id": "functionAppRuntime", + "required": true + }, + { + "name": "Storage Account Type", + "type": "string", + "id": "storageAccountType", + "required": true + }, + { + "name": "HTTPS only", + "type": "boolean", + "id": "httpsOnly", + "readOnly": true, + "required": true + } + ], + "templatePath": "azuredeploy.json", + "validationStatus": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "EnvironmentDefinitions_ListByProjectCatalog", + "title": "EnvironmentDefinitions_ListByProjectCatalog" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentTypes_Delete.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentTypes_Delete.json new file mode 100644 index 000000000000..e18ac13bd740 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentTypes_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "environmentTypeName": "DevTest", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "EnvironmentTypes_Delete", + "title": "EnvironmentTypes_Delete" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentTypes_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentTypes_Get.json new file mode 100644 index 000000000000..8f23462db840 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentTypes_Get.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "environmentTypeName": "DevTest", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevTest", + "type": "Microsoft.DevCenter/devcenters/environmenttypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", + "properties": { + "displayName": "Dev" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1@contoso.com", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "RnD", + "hidden-title": "Dev" + } + } + } + }, + "operationId": "EnvironmentTypes_Get", + "title": "EnvironmentTypes_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentTypes_List.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentTypes_List.json new file mode 100644 index 000000000000..a801142e1532 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentTypes_List.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "DevTest", + "type": "Microsoft.DevCenter/devcenters/environmenttypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1@contoso.com", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "RnD" + } + } + ] + } + } + }, + "operationId": "EnvironmentTypes_ListByDevCenter", + "title": "EnvironmentTypes_ListByDevCenter" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentTypes_Patch.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentTypes_Patch.json new file mode 100644 index 000000000000..9a2178e2b1b0 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentTypes_Patch.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "displayName": "Dev" + }, + "tags": { + "Owner": "superuser" + } + }, + "devCenterName": "Contoso", + "environmentTypeName": "DevTest", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevTest", + "type": "Microsoft.DevCenter/devcenters/environmenttypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", + "properties": { + "displayName": "Dev" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1@contoso.com", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User" + }, + "tags": { + "Owner": "superuser", + "hidden-title": "Dev" + } + } + } + }, + "operationId": "EnvironmentTypes_Update", + "title": "EnvironmentTypes_Update" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentTypes_Put.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentTypes_Put.json new file mode 100644 index 000000000000..3b0e938d10dc --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/EnvironmentTypes_Put.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "displayName": "Dev" + }, + "tags": { + "Owner": "superuser" + } + }, + "devCenterName": "Contoso", + "environmentTypeName": "DevTest", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevTest", + "type": "Microsoft.DevCenter/devcenters/environmenttypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", + "properties": { + "displayName": "Dev" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1@contoso.com", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User" + }, + "tags": { + "Owner": "superuser", + "hidden-title": "Dev" + } + } + }, + "201": { + "body": { + "name": "DevTest", + "type": "Microsoft.DevCenter/devcenters/environmenttypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", + "properties": { + "displayName": "Dev" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1@contoso.com", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User" + }, + "tags": { + "Owner": "superuser", + "hidden-title": "Dev" + } + } + } + }, + "operationId": "EnvironmentTypes_CreateOrUpdate", + "title": "EnvironmentTypes_CreateOrUpdate" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Galleries_Create.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Galleries_Create.json new file mode 100644 index 000000000000..5158f30d4daa --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Galleries_Create.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/StandardGallery" + } + }, + "devCenterName": "Contoso", + "galleryName": "StandardGallery", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "StandardGallery", + "type": "Microsoft.DevCenter/devcenters/galleries", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/StandardGallery", + "properties": { + "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/StandardGallery", + "provisioningState": "Accepted" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "StandardGallery", + "type": "Microsoft.DevCenter/devcenters/galleries", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/StandardGallery", + "properties": { + "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/StandardGallery", + "provisioningState": "Accepted" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "Galleries_CreateOrUpdate", + "title": "Galleries_CreateOrUpdate" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Galleries_Delete.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Galleries_Delete.json new file mode 100644 index 000000000000..39445b2937e4 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Galleries_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "galleryName": "StandardGallery", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + }, + "operationId": "Galleries_Delete", + "title": "Galleries_Delete" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Galleries_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Galleries_Get.json new file mode 100644 index 000000000000..a1093c885628 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Galleries_Get.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "galleryName": "StandardGallery", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "StandardGallery", + "type": "Microsoft.DevCenter/devcenters/galleries", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/StandardGallery", + "properties": { + "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/StandardGallery", + "provisioningState": "Accepted" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "Galleries_Get", + "title": "Galleries_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Galleries_List.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Galleries_List.json new file mode 100644 index 000000000000..1d0adb8640f5 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Galleries_List.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "StandardGallery", + "type": "Microsoft.DevCenter/devcenters/galleries", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/default", + "properties": { + "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/CentralGallery", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + }, + { + "name": "StandardGallery", + "type": "Microsoft.DevCenter/devcenters/galleries", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/ImageGallery", + "properties": { + "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/SharedGallery", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "Galleries_ListByDevCenter", + "title": "Galleries_ListByDevCenter" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_BuildImage.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_BuildImage.json new file mode 100644 index 000000000000..0a5a37bb3b4a --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_BuildImage.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "CentralCatalog", + "imageDefinitionName": "DefaultDevImage", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" + } + } + }, + "operationId": "ProjectCatalogImageDefinitions_BuildImage", + "title": "ProjectCatalogImageDefinitions_BuildImage" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_CancelImageBuild.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_CancelImageBuild.json new file mode 100644 index 000000000000..f5608e3151d7 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_CancelImageBuild.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "catalogName": "CentralCatalog", + "imageDefinitionName": "DefaultDevImage", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" + } + } + }, + "operationId": "ProjectCatalogImageDefinitionBuild_Cancel", + "title": "ImageDefinitionBuilds_CancelByImageDefinition" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_GetByDevCenterCatalog.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_GetByDevCenterCatalog.json new file mode 100644 index 000000000000..e9481793febd --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_GetByDevCenterCatalog.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "TeamCatalog", + "devCenterName": "ContosoDevCenter", + "imageDefinitionName": "WebDevBox", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "WebDevBox", + "type": "Microsoft.DevCenter/devcenters/catalogs/imagedefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/ContosoDevCenter/catalogs/TeamCatalog/imagedefinitions/WebDevBox", + "properties": { + "activeImageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "autoImageBuild": "Enabled", + "extends": { + "imageDefinition": "it-base", + "parameters": [ + { + "name": "vssku", + "value": "Community" + } + ] + }, + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "imageValidationErrorDetails": { + "code": "400", + "message": "Validation failed" + }, + "imageValidationStatus": "Failed", + "latestBuild": { + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Running" + }, + "tasks": [ + { + "name": "git-clone", + "parameters": [ + { + "name": "cloneUri", + "value": "https://github.com/microsoft/devcenter-catalog" + } + ] + } + ], + "validationStatus": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "DevCenterCatalogImageDefinitions_GetByDevCenterCatalog", + "title": "ImageDefinitions_GetByDevCenterCatalog" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_GetByProjectCatalog.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_GetByProjectCatalog.json new file mode 100644 index 000000000000..2bf46e82974b --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_GetByProjectCatalog.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "TeamCatalog", + "imageDefinitionName": "WebDevBox", + "projectName": "ContosoProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "WebDevBox", + "type": "Microsoft.DevCenter/projects/catalogs/imagedefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/catalogs/TeamCatalog/imagedefinitions/WebDevBox", + "properties": { + "activeImageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "autoImageBuild": "Enabled", + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "imageValidationErrorDetails": { + "code": "400", + "message": "Validation failed" + }, + "imageValidationStatus": "Failed", + "latestBuild": { + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Running" + }, + "validationStatus": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "ProjectCatalogImageDefinitions_GetByProjectCatalog", + "title": "ImageDefinitions_GetByProjectCatalog" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_GetImageBuild.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_GetImageBuild.json new file mode 100644 index 000000000000..671f07e66beb --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_GetImageBuild.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "catalogName": "CentralCatalog", + "imageDefinitionName": "DefaultDevImage", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "type": "Microsoft.DevCenter/projects/catalogs/imageDefinitions/builds", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "status": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "ProjectCatalogImageDefinitionBuild_Get", + "title": "ImageDefinitionBuilds_GetByImageDefinition" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_GetImageBuildDetails.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_GetImageBuildDetails.json new file mode 100644 index 000000000000..0ee3be19dd43 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_GetImageBuildDetails.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "catalogName": "CentralCatalog", + "imageDefinitionName": "DefaultDevImage", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "status": "Succeeded", + "taskGroups": [ + { + "name": "Provisioning", + "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded", + "tasks": [ + { + "name": "Provisioning", + "displayName": "Provisioning", + "endTime": "2020-11-18T18:25:12.952Z", + "id": "e72eb35f-f406-42ec-8b93-7d18a9f7b059", + "logUri": "", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded" + } + ] + }, + { + "name": "Customizations", + "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded", + "tasks": [ + { + "name": "vs2022", + "displayName": "Install Visual Studio 2022", + "endTime": "2020-11-18T18:25:12.952Z", + "id": "e72eb35f-f406-42ec-8b93-7d18a9f7b059", + "logUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7/logs/e72eb35f-f406-42ec-8b93-7d18a9f7b059", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded" + } + ] + }, + { + "name": "Generalization", + "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded", + "tasks": [ + { + "name": "Generalization", + "displayName": "Generalization", + "endTime": "2020-11-18T18:25:12.952Z", + "logUri": "", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded" + } + ] + } + ] + } + } + }, + "operationId": "ProjectCatalogImageDefinitionBuild_GetBuildDetails", + "title": "ProjectCatalogImageDefinitionBuild_GetErrorDetails" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_ListByDevCenterCatalog.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_ListByDevCenterCatalog.json new file mode 100644 index 000000000000..3e502eb13950 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_ListByDevCenterCatalog.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "TeamCatalog", + "devCenterName": "ContosoDevCenter", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "WebDevBox", + "type": "Microsoft.DevCenter/devcenters/catalogs/imagedefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/ContosoDevCenter/catalogs/TeamCatalog/imagedefinitions/WebDevBox", + "properties": { + "activeImageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "autoImageBuild": "Enabled", + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "imageValidationErrorDetails": { + "code": "400", + "message": "Validation failed" + }, + "imageValidationStatus": "Failed", + "latestBuild": { + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Running" + }, + "validationStatus": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "DevCenterCatalogImageDefinitions_ListByDevCenterCatalog", + "title": "ImageDefinitions_ListByDevCenterCatalog" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_ListByProjectCatalog.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_ListByProjectCatalog.json new file mode 100644 index 000000000000..8e4a40b073c8 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_ListByProjectCatalog.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "TeamCatalog", + "projectName": "ContosoProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "WebDevBox", + "type": "Microsoft.DevCenter/projects/catalogs/imagedefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/catalogs/TeamCatalog/imagedefinitions/WebDevBox", + "properties": { + "activeImageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "autoImageBuild": "Enabled", + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "imageValidationErrorDetails": { + "code": "400", + "message": "Validation failed" + }, + "imageValidationStatus": "Failed", + "latestBuild": { + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Running" + }, + "validationStatus": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "ProjectCatalogImageDefinitions_ListByProjectCatalog", + "title": "ImageDefinitions_ListByProjectCatalog" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_ListImageBuildsByImageDefinition.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_ListImageBuildsByImageDefinition.json new file mode 100644 index 000000000000..f25f9c519a45 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageDefinitions_ListImageBuildsByImageDefinition.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "catalogName": "CentralCatalog", + "imageDefinitionName": "DefaultDevImage", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "type": "Microsoft.DevCenter/projects/catalogs/imageDefinitions/builds", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "properties": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "status": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "ProjectCatalogImageDefinitionBuilds_ListByImageDefinition", + "title": "ImageDefinitionBuilds_ListByImageDefinition" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageVersions_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageVersions_Get.json new file mode 100644 index 000000000000..b45f986441e1 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageVersions_Get.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "galleryName": "DefaultDevGallery", + "imageName": "Win11", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff", + "versionName": "1.0.0" + }, + "responses": { + "200": { + "body": { + "name": "1.0.0", + "type": "Microsoft.DevCenter/devcenters/galleries/images/versions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DefaultDevGallery/images/Win11/versions/1.0.0", + "properties": { + "excludeFromLatest": false, + "osDiskImageSizeInGb": 64, + "provisioningState": "Succeeded", + "publishedDate": "2021-12-01T12:45:16.845Z" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "ImageVersions_Get", + "title": "Versions_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageVersions_GetByProject.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageVersions_GetByProject.json new file mode 100644 index 000000000000..3aadb59cbd78 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageVersions_GetByProject.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "imageName": "~gallery~DefaultDevGallery~ContosoImageDefinition", + "projectName": "myProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff", + "versionName": "1.0.0" + }, + "responses": { + "200": { + "body": { + "name": "1.0.0", + "type": "Microsoft.DevCenter/project/images/versions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/project/myProject/images/~gallery~DefaultDevGallery~ContosoImageDefinition/versions/1.0.0", + "properties": { + "excludeFromLatest": false, + "osDiskImageSizeInGb": 64, + "provisioningState": "Succeeded", + "publishedDate": "2021-12-01T12:45:16.845Z" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "ImageVersions_GetByProject", + "title": "ImageVersions_GetByProject" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageVersions_List.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageVersions_List.json new file mode 100644 index 000000000000..a13e997baad5 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageVersions_List.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "galleryName": "DefaultDevGallery", + "imageName": "Win11", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "1.0.0", + "type": "Microsoft.DevCenter/devcenters/galleries/images/versions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DefaultDevGallery/images/Win11/versions/1.0.0", + "properties": { + "excludeFromLatest": false, + "osDiskImageSizeInGb": 64, + "provisioningState": "Succeeded", + "publishedDate": "2021-12-01T12:45:16.845Z" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "ImageVersions_ListByImage", + "title": "ImageVersions_ListByImage" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageVersions_ListByProject.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageVersions_ListByProject.json new file mode 100644 index 000000000000..df7cf8c15405 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ImageVersions_ListByProject.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "imageName": "~gallery~DefaultDevGallery~ContosoImageDefinition", + "projectName": "myProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "1.0.0", + "type": "Microsoft.DevCenter/project/images/versions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/project/myProject/images/~gallery~DefaultDevGallery~ContosoImageDefinition/versions/1.0.0", + "properties": { + "excludeFromLatest": false, + "osDiskImageSizeInGb": 64, + "provisioningState": "Succeeded", + "publishedDate": "2021-12-01T12:45:16.845Z" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "ImageVersions_ListByProject", + "title": "ImageVersions_ListByProject" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Images_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Images_Get.json new file mode 100644 index 000000000000..917cca20e9d7 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Images_Get.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "galleryName": "DefaultDevGallery", + "imageName": "ContosoBaseImage", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "ContosoBaseImage", + "type": "Microsoft.DevCenter/devcenters/galleries/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DefaultDevGallery/images/ContosoBaseImage", + "properties": { + "description": "Standard Windows Dev/Test image.", + "offer": "Finance", + "provisioningState": "Succeeded", + "publisher": "Contoso", + "recommendedMachineConfiguration": { + "memory": { + "max": 512, + "min": 256 + }, + "vCPUs": { + "max": 8, + "min": 4 + } + }, + "sku": "Backend" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "Images_Get", + "title": "Images_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Images_GetByProject.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Images_GetByProject.json new file mode 100644 index 000000000000..dfbb8f57cc05 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Images_GetByProject.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "imageName": "~gallery~DefaultDevGallery~ContosoBaseImage", + "projectName": "myProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "ContosoBaseImage", + "type": "Microsoft.DevCenter/project/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/project/myProject/images/~gallery~DefaultDevGallery~ContosoBaseImage", + "properties": { + "description": "Standard Windows Dev/Test image.", + "offer": "Finance", + "provisioningState": "Succeeded", + "publisher": "Contoso", + "recommendedMachineConfiguration": { + "memory": { + "max": 512, + "min": 256 + }, + "vCPUs": { + "max": 8, + "min": 4 + } + }, + "sku": "Backend" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "Images_GetByProject", + "title": "Images_GetByProject" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Images_ListByDevCenter.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Images_ListByDevCenter.json new file mode 100644 index 000000000000..0d38329e674a --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Images_ListByDevCenter.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "ContosoBaseImage", + "type": "Microsoft.DevCenter/devcenters/galleries/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage", + "properties": { + "description": "Windows 10 Enterprise + OS Optimizations 1909", + "offer": "windows-ent-cpc", + "provisioningState": "Succeeded", + "publisher": "MicrosoftWindowsDesktop", + "recommendedMachineConfiguration": { + "memory": { + "max": 256, + "min": 128 + }, + "vCPUs": { + "max": 4, + "min": 2 + } + }, + "sku": "19h2-ent-cpc-os-g2" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + }, + { + "name": "ContosoBaseImage2", + "type": "Microsoft.DevCenter/devcenters/galleries/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage2", + "properties": { + "description": "Standard Windows Dev/Test image.", + "offer": "Finance", + "publisher": "Contoso", + "recommendedMachineConfiguration": { + "memory": { + "max": 512, + "min": 256 + }, + "vCPUs": { + "max": 8, + "min": 4 + } + }, + "sku": "Backend" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "Images_ListByDevCenter", + "title": "Images_ListByDevCenter" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Images_ListByGallery.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Images_ListByGallery.json new file mode 100644 index 000000000000..36fb5ec99a5f --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Images_ListByGallery.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "galleryName": "DevGallery", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "ContosoBaseImage", + "type": "Microsoft.DevCenter/devcenters/galleries/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage", + "properties": { + "description": "Windows 10 Enterprise + OS Optimizations 1909", + "offer": "windows-ent-cpc", + "provisioningState": "Succeeded", + "publisher": "MicrosoftWindowsDesktop", + "recommendedMachineConfiguration": { + "memory": { + "max": 256, + "min": 128 + }, + "vCPUs": { + "max": 4, + "min": 2 + } + }, + "sku": "19h2-ent-cpc-os-g2" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + }, + { + "name": "ContosoBaseImage2", + "type": "Microsoft.DevCenter/devcenters/galleries/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage2", + "properties": { + "description": "Standard Windows Dev/Test image.", + "offer": "Finance", + "publisher": "Contoso", + "recommendedMachineConfiguration": { + "memory": { + "max": 512, + "min": 256 + }, + "vCPUs": { + "max": 8, + "min": 4 + } + }, + "sku": "Backend" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "Images_ListByGallery", + "title": "Images_ListByGallery" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Images_ListByProject.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Images_ListByProject.json new file mode 100644 index 000000000000..de4a87bb6542 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Images_ListByProject.json @@ -0,0 +1,107 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "projectName": "myProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "~gallery~DefaultDevGallery~ContosoBaseImage", + "type": "Microsoft.DevCenter/project/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myProject/images/~gallery~DefaultDevGallery~ContosoBaseImage", + "properties": { + "description": "Windows 10 Enterprise + OS Optimizations 1909", + "offer": "windows-ent-cpc", + "provisioningState": "Succeeded", + "publisher": "MicrosoftWindowsDesktop", + "recommendedMachineConfiguration": { + "memory": { + "max": 256, + "min": 128 + }, + "vCPUs": { + "max": 4, + "min": 2 + } + }, + "sku": "19h2-ent-cpc-os-g2" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + }, + { + "name": "~catalog~DefaultCatalog~DefaultImage", + "type": "Microsoft.DevCenter/project/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myProject/images/~catalog~DefaultCatalog~DefaultImage", + "properties": { + "description": "Windows 10 Enterprise + OS Optimizations 1909", + "offer": "windows-ent-cpc", + "provisioningState": "Succeeded", + "publisher": "MicrosoftWindowsDesktop", + "recommendedMachineConfiguration": { + "memory": { + "max": 256, + "min": 128 + }, + "vCPUs": { + "max": 4, + "min": 2 + } + }, + "sku": "19h2-ent-cpc-os-g2" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + }, + { + "name": "~gallery~DefaultDevGallery~ContosoImageDefinition", + "type": "Microsoft.DevCenter/project/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myProject/images/~gallery~DefaultDevGallery~ContosoImageDefinition", + "properties": { + "description": "Standard Windows Dev/Test image.", + "offer": "Finance", + "publisher": "Contoso", + "recommendedMachineConfiguration": { + "memory": { + "max": 512, + "min": 256 + }, + "vCPUs": { + "max": 8, + "min": 4 + } + }, + "sku": "Backend" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "Images_ListByProject", + "title": "Images_ListByProject" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_Delete.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_Delete.json new file mode 100644 index 000000000000..e4eedb5151da --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_Delete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "networkConnectionName": "eastusnetwork", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + }, + "operationId": "NetworkConnections_Delete", + "title": "NetworkConnections_Delete" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_Get.json new file mode 100644 index 000000000000..ba6a58968816 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "networkConnectionName": "uswest3network", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "uswest3network", + "type": "Microsoft.DevCenter/networkconnections", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "location": "centralus", + "properties": { + "domainJoinType": "HybridAzureADJoin", + "domainName": "mydomaincontroller.local", + "domainUsername": "testuser@mydomaincontroller.local", + "healthCheckStatus": "Passed", + "networkingResourceGroupName": "NetworkInterfaces", + "provisioningState": "Succeeded", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "NetworkConnections_Get", + "title": "NetworkConnections_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_GetHealthDetails.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_GetHealthDetails.json new file mode 100644 index 000000000000..3198d4052e93 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_GetHealthDetails.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "networkConnectionName": "eastusnetwork", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "latest", + "type": "Microsoft.DevCenter/networkconnections/healthchecks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/eastusnetwork/healthchecks/latest", + "properties": { + "endDateTime": "2021-07-03T12:43:15Z", + "healthChecks": [ + { + "displayName": "Azure AD device sync", + "endDateTime": "2021-07-03T12:43:14Z", + "startDateTime": "2021-07-03T12:43:15Z", + "status": "Passed" + } + ], + "startDateTime": "2021-07-03T12:43:14Z" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "System", + "createdByType": "Application", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "System", + "lastModifiedByType": "Application" + } + } + } + }, + "operationId": "NetworkConnections_GetHealthDetails", + "title": "NetworkConnections_GetHealthDetails" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_ListByResourceGroup.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_ListByResourceGroup.json new file mode 100644 index 000000000000..af1b7cb82c06 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_ListByResourceGroup.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "uswest3network", + "type": "Microsoft.DevCenter/networkconnections", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "location": "centralus", + "properties": { + "domainJoinType": "HybridAzureADJoin", + "domainName": "mydomaincontroller.local", + "domainUsername": "testuser@mydomaincontroller.local", + "networkingResourceGroupName": "NetworkInterfaces", + "provisioningState": "Succeeded", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "NetworkConnections_ListByResourceGroup", + "title": "NetworkConnections_ListByResourceGroup" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_ListBySubscription.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_ListBySubscription.json new file mode 100644 index 000000000000..0ea5cd3896c4 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_ListBySubscription.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "uswest3network", + "type": "Microsoft.DevCenter/networkconnection", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "location": "centralus", + "properties": { + "domainJoinType": "HybridAzureADJoin", + "domainName": "mydomaincontroller.local", + "domainUsername": "testuser@mydomaincontroller.local", + "networkingResourceGroupName": "NetworkInterfaces", + "provisioningState": "Succeeded", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "NetworkConnections_ListBySubscription", + "title": "NetworkConnections_ListBySubscription" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_ListHealthDetails.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_ListHealthDetails.json new file mode 100644 index 000000000000..6370478706f2 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_ListHealthDetails.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "networkConnectionName": "uswest3network", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "latest", + "type": "Microsoft.DevCenter/networkconnections/healthchecks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network/healthchecks/latest", + "properties": { + "endDateTime": "2021-07-03T12:43:15Z", + "healthChecks": [ + { + "displayName": "Azure AD device sync", + "endDateTime": "2021-07-03T12:43:14Z", + "startDateTime": "2021-07-03T12:43:15Z", + "status": "Passed" + } + ], + "startDateTime": "2021-07-03T12:43:14Z" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "System", + "createdByType": "Application", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "System", + "lastModifiedByType": "Application" + } + } + ] + } + } + }, + "operationId": "NetworkConnections_ListHealthDetails", + "title": "NetworkConnections_ListHealthDetails" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json new file mode 100644 index 000000000000..9615f1453694 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "networkConnectionName": "uswest3network", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "category": "Dev Box Service", + "endpoints": [ + { + "domainName": "devbox.azure.com", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + }, + { + "category": "Intune", + "endpoints": [ + { + "domainName": "login.microsoftonline.com", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + }, + { + "category": "Cloud PC", + "endpoints": [ + { + "domainName": "rdweb.wvd.microsoft.com", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + } + ] + } + } + }, + "operationId": "NetworkConnections_ListOutboundNetworkDependenciesEndpoints", + "title": "ListOutboundNetworkDependencies" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_Patch.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_Patch.json new file mode 100644 index 000000000000..6adf43b1b286 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_Patch.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "domainPassword": "New Password value for user" + } + }, + "networkConnectionName": "uswest3network", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "uswest3network", + "type": "Microsoft.DevCenter/networkconnections", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "location": "centralus", + "properties": { + "domainJoinType": "HybridAzureADJoin", + "domainName": "mydomaincontroller.local", + "domainUsername": "testuser@mydomaincontroller.local", + "networkingResourceGroupName": "NetworkInterfaces", + "provisioningState": "Succeeded", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + }, + "operationId": "NetworkConnections_Update", + "title": "NetworkConnections_Update" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_Put.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_Put.json new file mode 100644 index 000000000000..ba402b62103e --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_Put.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "location": "centralus", + "properties": { + "domainJoinType": "HybridAzureADJoin", + "domainName": "mydomaincontroller.local", + "domainPassword": "Password value for user", + "domainUsername": "testuser@mydomaincontroller.local", + "networkingResourceGroupName": "NetworkInterfaces", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default" + } + }, + "networkConnectionName": "uswest3network", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "uswest3network", + "type": "Microsoft.DevCenter/networkconnections", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "location": "centralus", + "properties": { + "domainJoinType": "HybridAzureADJoin", + "domainName": "mydomaincontroller.local", + "domainUsername": "testuser@mydomaincontroller.local", + "networkingResourceGroupName": "NetworkInterfaces", + "provisioningState": "Succeeded", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "uswest3network", + "type": "Microsoft.DevCenter/networkconnections", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "location": "centralus", + "properties": { + "domainJoinType": "HybridAzureADJoin", + "domainName": "mydomaincontroller.local", + "domainUsername": "testuser@mydomaincontroller.local", + "networkingResourceGroupName": "NetworkInterfaces", + "provisioningState": "Created", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "NetworkConnections_CreateOrUpdate", + "title": "NetworkConnections_CreateOrUpdate" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_RunHealthChecks.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_RunHealthChecks.json new file mode 100644 index 000000000000..1e5d3c64a4cc --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/NetworkConnections_RunHealthChecks.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "networkConnectionName": "uswest3network", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + }, + "operationId": "NetworkConnections_RunHealthChecks", + "title": "NetworkConnections_RunHealthChecks" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/OperationStatus_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/OperationStatus_Get.json new file mode 100644 index 000000000000..701bc97b042f --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/OperationStatus_Get.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "operationId": "3fa1a29d-e807-488d-81d1-f1c5456a08cd", + "api-version": "2025-07-01-preview", + "location": "westus3", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "endTime": "2020-12-01T15:16:55.100Z", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4", + "percentComplete": 100, + "startTime": "2020-12-01T15:16:29.500Z", + "status": "Succeeded" + } + }, + "202": { + "body": { + "endTime": "2020-12-01T15:16:55.100Z", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4", + "percentComplete": 99, + "startTime": "2020-12-01T15:16:29.500Z", + "status": "Succeeded" + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "default": { + "body": { + "error": { + "code": "OperationNotFound", + "message": "The requested async operation was not found" + } + } + } + }, + "operationId": "OperationStatuses_Get", + "title": "Get OperationStatus" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Operations_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Operations_Get.json new file mode 100644 index 000000000000..f81fb71ceb03 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Operations_Get.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.DevCenter/devcenters/write", + "display": { + "operation": "write", + "provider": "Microsoft DevTest Center", + "resource": "Microsoft DevTest Center devcenter resource" + } + } + ] + } + } + }, + "operationId": "Operations_List", + "title": "Operations_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_Delete.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_Delete.json new file mode 100644 index 000000000000..9cb3f88ed704 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "poolName": "poolName", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + }, + "operationId": "Pools_Delete", + "title": "Pools_Delete" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_Get.json new file mode 100644 index 000000000000..96fba562b867 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_Get.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "poolName": "DevPool", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", + "properties": { + "activeHoursConfiguration": { + "autoStartEnableStatus": "Enabled", + "daysOfWeekLimit": 5, + "defaultDaysOfWeek": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "defaultEndTimeHour": 17, + "defaultStartTimeHour": 9, + "defaultTimeZone": "America/Los_Angeles", + "keepAwakeEnableStatus": "Enabled" + }, + "devBoxCount": 1, + "devBoxDefinitionName": "WebDevBox", + "displayName": "Developer Pool", + "healthStatus": "Healthy", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [ + "centralus" + ], + "networkConnectionName": "Network1-westus2", + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Managed" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "Pools_Get", + "title": "Pools_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_GetUnhealthyStatus.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_GetUnhealthyStatus.json new file mode 100644 index 000000000000..c9b5e4f7c6e9 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_GetUnhealthyStatus.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "poolName": "DevPool", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", + "properties": { + "devBoxCount": 1, + "devBoxDefinitionName": "WebDevBox", + "displayName": "Developer Pool", + "healthStatus": "Unhealthy", + "healthStatusDetails": [ + { + "code": "NetworkConnectionUnhealthy", + "message": "The Pool's Network Connection is in an unhealthy state. Check the Network Connection's health status for more details." + }, + { + "code": "ImageValidationFailed", + "message": "Image validation has failed. Check the Dev Box Definition's image validation status for more details." + }, + { + "code": "IntuneValidationFailed", + "message": "Intune license validation has failed. The tenant does not have a valid Intune license." + } + ], + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [ + "centralus" + ], + "networkConnectionName": "Network1-westus2", + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Managed" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "Pools_Get", + "title": "Pools_GetUnhealthyStatus" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_List.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_List.json new file mode 100644 index 000000000000..633deccaabee --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_List.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", + "properties": { + "activeHoursConfiguration": { + "autoStartEnableStatus": "Enabled", + "daysOfWeekLimit": 5, + "defaultDaysOfWeek": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "defaultEndTimeHour": 17, + "defaultStartTimeHour": 9, + "defaultTimeZone": "America/Los_Angeles", + "keepAwakeEnableStatus": "Enabled" + }, + "devBoxCount": 1, + "devBoxDefinitionName": "WebDevBox", + "displayName": "Developer Pool", + "healthStatus": "Healthy", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [ + "centralus" + ], + "networkConnectionName": "Network1-westus2", + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Managed" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "Pools_ListByProject", + "title": "Pools_ListByProject" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_Patch.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_Patch.json new file mode 100644 index 000000000000..183e6c0017db --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_Patch.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "devBoxDefinitionName": "WebDevBox2" + } + }, + "poolName": "DevPool", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", + "properties": { + "devBoxCount": 1, + "devBoxDefinitionName": "WebDevBox2", + "displayName": "Developer Pool", + "healthStatus": "Healthy", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [ + "centralus" + ], + "networkConnectionName": "Network1-westus2", + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Managed" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + }, + "operationId": "Pools_Update", + "title": "Pools_Update" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_Put.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_Put.json new file mode 100644 index 000000000000..66e13e10a03f --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_Put.json @@ -0,0 +1,151 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "location": "centralus", + "properties": { + "activeHoursConfiguration": { + "autoStartEnableStatus": "Enabled", + "daysOfWeekLimit": 5, + "defaultDaysOfWeek": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "defaultEndTimeHour": 17, + "defaultStartTimeHour": 9, + "defaultTimeZone": "America/Los_Angeles", + "keepAwakeEnableStatus": "Enabled" + }, + "devBoxDefinitionName": "WebDevBox", + "displayName": "Developer Pool", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "networkConnectionName": "Network1-westus2", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Unmanaged" + } + }, + "poolName": "DevPool", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", + "properties": { + "activeHoursConfiguration": { + "autoStartEnableStatus": "Enabled", + "daysOfWeekLimit": 5, + "defaultDaysOfWeek": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "defaultEndTimeHour": 17, + "defaultStartTimeHour": 9, + "defaultTimeZone": "America/Los_Angeles", + "keepAwakeEnableStatus": "Enabled" + }, + "devBoxCount": 1, + "devBoxDefinitionName": "WebDevBox", + "displayName": "Developer Pool", + "healthStatus": "Healthy", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [], + "networkConnectionName": "Network1-westus2", + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Unmanaged" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", + "properties": { + "activeHoursConfiguration": { + "autoStartEnableStatus": "Enabled", + "daysOfWeekLimit": 5, + "defaultDaysOfWeek": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "defaultEndTimeHour": 17, + "defaultStartTimeHour": 9, + "defaultTimeZone": "America/Los_Angeles", + "keepAwakeEnableStatus": "Enabled" + }, + "devBoxDefinitionName": "WebDevBox", + "displayName": "Developer Pool", + "healthStatus": "Pending", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [], + "networkConnectionName": "Network1-westus2", + "provisioningState": "Created", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Unmanaged" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "Pools_CreateOrUpdate", + "title": "Pools_CreateOrUpdate" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_PutWithManagedNetwork.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_PutWithManagedNetwork.json new file mode 100644 index 000000000000..e45cfa2ac005 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_PutWithManagedNetwork.json @@ -0,0 +1,113 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "location": "centralus", + "properties": { + "devBoxDefinitionName": "WebDevBox", + "displayName": "Developer Pool", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [ + "centralus" + ], + "networkConnectionName": "managedNetwork", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Managed" + } + }, + "poolName": "DevPool", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", + "properties": { + "devBoxCount": 1, + "devBoxDefinitionName": "WebDevBox", + "displayName": "Developer Pool", + "healthStatus": "Healthy", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [ + "centralus" + ], + "networkConnectionName": "managedNetwork", + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Managed" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", + "properties": { + "devBoxDefinitionName": "WebDevBox", + "displayName": "Developer Pool", + "healthStatus": "Pending", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [ + "centralus" + ], + "networkConnectionName": "managedNetwork", + "provisioningState": "Created", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Managed" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "Pools_CreateOrUpdate", + "title": "Pools_CreateOrUpdateWithManagedNetwork" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_PutWithValueDevBoxDefinition.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_PutWithValueDevBoxDefinition.json new file mode 100644 index 000000000000..f4f266b09205 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_PutWithValueDevBoxDefinition.json @@ -0,0 +1,133 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "location": "centralus", + "properties": { + "devBoxDefinition": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/projects/DevProject/images/exampleImage/version/1.0.0" + }, + "sku": { + "name": "Preview" + } + }, + "devBoxDefinitionName": "", + "devBoxDefinitionType": "Value", + "displayName": "Developer Pool", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "networkConnectionName": "Network1-westus2", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Unmanaged" + } + }, + "poolName": "DevPool", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", + "properties": { + "devBoxCount": 1, + "devBoxDefinition": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/projects/DevProject/images/exampleImage/version/1.0.0" + }, + "sku": { + "name": "Preview" + } + }, + "devBoxDefinitionName": "", + "devBoxDefinitionType": "Value", + "displayName": "Developer Pool", + "healthStatus": "Healthy", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [], + "networkConnectionName": "Network1-westus2", + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Unmanaged" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "DevPool", + "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", + "properties": { + "devBoxDefinition": { + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/projects/DevProject/images/exampleImage/version/1.0.0" + }, + "sku": { + "name": "Preview" + } + }, + "devBoxDefinitionName": "", + "devBoxDefinitionType": "Value", + "displayName": "Developer Pool", + "healthStatus": "Pending", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [], + "networkConnectionName": "Network1-westus2", + "provisioningState": "Created", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Unmanaged" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "Pools_CreateOrUpdate", + "title": "Pools_CreateOrUpdateWithValueDevBoxDefinition" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_RunHealthChecks.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_RunHealthChecks.json new file mode 100644 index 000000000000..96844e41cdca --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Pools_RunHealthChecks.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "poolName": "DevPool", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + }, + "operationId": "Pools_RunHealthChecks", + "title": "Pools_RefreshStatus" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectAllowedEnvironmentTypes_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectAllowedEnvironmentTypes_Get.json new file mode 100644 index 000000000000..2c350066567a --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectAllowedEnvironmentTypes_Get.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "environmentTypeName": "DevTest", + "projectName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevTest", + "type": "Microsoft.DevCenter/projects/allowedenvironmenttypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/Contoso/allowedEnvironmentTypes/DevTest", + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1@contoso.com", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "ProjectAllowedEnvironmentTypes_Get", + "title": "ProjectAllowedEnvironmentTypes_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectAllowedEnvironmentTypes_List.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectAllowedEnvironmentTypes_List.json new file mode 100644 index 000000000000..51165032fa83 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectAllowedEnvironmentTypes_List.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "projectName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "DevTest", + "type": "Microsoft.DevCenter/projects/allowedenvironmenttypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/Contoso/allowedEnvironmentTypes/DevTest", + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1@contoso.com", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "ProjectAllowedEnvironmentTypes_List", + "title": "ProjectAllowedEnvironmentTypes_List" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json new file mode 100644 index 000000000000..c4b13bb3f216 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "myCatalog", + "environmentDefinitionName": "myEnvironmentDefinition", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "errors": [ + { + "code": "ParameterValueInvalid", + "message": "Expected parameter value for 'InstanceCount' to be integer but found the string 'test'." + } + ] + } + } + }, + "operationId": "ProjectCatalogEnvironmentDefinitions_GetErrorDetails", + "title": "ProjectCatalogEnvironmentDefinitions_GetErrorDetails" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogImageDefinitions_GetErrorDetails.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogImageDefinitions_GetErrorDetails.json new file mode 100644 index 000000000000..58a44e60c092 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogImageDefinitions_GetErrorDetails.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "TeamCatalog", + "imageDefinitionName": "WebDevBox", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "errors": [ + { + "code": "CatalogItemNotExist", + "message": "Task choco doesn't exist in the dev center." + } + ] + } + } + }, + "operationId": "ProjectCatalogImageDefinitions_GetErrorDetails", + "title": "ProjectCatalogImageDefinitions_GetErrorDetails" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_Connect.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_Connect.json new file mode 100644 index 000000000000..6b19fd8d88e2 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_Connect.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "CentralCatalog", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" + } + } + }, + "operationId": "ProjectCatalogs_Connect", + "title": "ProjectCatalogs_Connect" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_CreateAdo.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_CreateAdo.json new file mode 100644 index 000000000000..bda7aec84978 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_CreateAdo.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "adoGit": { + "path": "/templates", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso" + } + } + }, + "catalogName": "CentralCatalog", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/projects/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", + "properties": { + "adoGit": { + "path": "/templates", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso" + }, + "connectionState": "Connected", + "lastSyncStats": { + "added": 0, + "removed": 0, + "syncedCatalogItemTypes": [ + "EnvironmentDefinition" + ], + "synchronizationErrors": 0, + "unchanged": 0, + "updated": 0, + "validationErrors": 0 + }, + "provisioningState": "Accepted", + "syncState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/projects/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", + "properties": { + "adoGit": { + "path": "/templates", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso" + }, + "connectionState": "Connected", + "lastSyncStats": { + "added": 0, + "removed": 0, + "syncedCatalogItemTypes": [ + "EnvironmentDefinition" + ], + "synchronizationErrors": 0, + "unchanged": 0, + "updated": 0, + "validationErrors": 0 + }, + "provisioningState": "Accepted", + "syncState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "ProjectCatalogs_CreateOrUpdate", + "title": "ProjectCatalogs_CreateOrUpdateAdo" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_CreateGitHub.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_CreateGitHub.json new file mode 100644 index 000000000000..a097465c7726 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_CreateGitHub.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "gitHub": { + "path": "/templates", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://github.com/Contoso/centralrepo-fake.git" + } + } + }, + "catalogName": "CentralCatalog", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/projects/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", + "properties": { + "connectionState": "Connected", + "gitHub": { + "path": "/templates", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://github.com/Contoso/centralrepo-fake.git" + }, + "lastSyncStats": { + "added": 0, + "removed": 0, + "syncedCatalogItemTypes": [ + "EnvironmentDefinition" + ], + "synchronizationErrors": 0, + "unchanged": 0, + "updated": 0, + "validationErrors": 0 + }, + "provisioningState": "Accepted", + "syncState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/projects/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", + "properties": { + "connectionState": "Connected", + "gitHub": { + "path": "/templates", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://github.com/Contoso/centralrepo-fake.git" + }, + "lastSyncStats": { + "added": 0, + "removed": 0, + "syncedCatalogItemTypes": [ + "EnvironmentDefinition" + ], + "synchronizationErrors": 0, + "unchanged": 0, + "updated": 0, + "validationErrors": 0 + }, + "provisioningState": "Accepted", + "syncState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "ProjectCatalogs_CreateOrUpdate", + "title": "ProjectCatalogs_CreateOrUpdateGitHub" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_Delete.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_Delete.json new file mode 100644 index 000000000000..7274459c73b1 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "CentralCatalog", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" + } + }, + "204": {} + }, + "operationId": "ProjectCatalogs_Delete", + "title": "ProjectCatalogs_Delete" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_Get.json new file mode 100644 index 000000000000..88434f6c6aa4 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_Get.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "CentralCatalog", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/projects/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", + "properties": { + "connectionState": "Connected", + "gitHub": { + "path": "/templates", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://github.com/Contoso/centralrepo-fake.git" + }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", + "lastSyncStats": { + "added": 1, + "removed": 1, + "syncedCatalogItemTypes": [ + "EnvironmentDefinition" + ], + "synchronizationErrors": 1, + "unchanged": 1, + "updated": 1, + "validationErrors": 1 + }, + "lastSyncTime": "2020-11-18T18:28:00.314Z", + "provisioningState": "Succeeded", + "syncState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "ProjectCatalogs_Get", + "title": "ProjectCatalogs_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_GetSyncErrorDetails.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_GetSyncErrorDetails.json new file mode 100644 index 000000000000..611c90119ffd --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_GetSyncErrorDetails.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "CentralCatalog", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "conflicts": [ + { + "name": "DuplicateEnvironmentName", + "path": "/Environments/Duplicate/manifest.yaml" + } + ], + "errors": [ + { + "path": "/Environments/Invalid/manifest.yaml", + "errorDetails": [ + { + "code": "ParseError", + "message": "Schema Error Within Catalog Item: Missing Name" + } + ] + } + ], + "operationError": { + "code": "Conflict", + "message": "The source control credentials could not be validated successfully." + } + } + } + }, + "operationId": "ProjectCatalogs_GetSyncErrorDetails", + "title": "ProjectCatalogs_GetSyncErrorDetails" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_List.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_List.json new file mode 100644 index 000000000000..c64775bb1a10 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_List.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/projects/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/Contoso/catalogs", + "properties": { + "connectionState": "Connected", + "gitHub": { + "path": "/templates", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://github.com/Contoso/centralrepo-fake.git" + }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", + "lastSyncStats": { + "added": 1, + "removed": 1, + "synchronizationErrors": 1, + "unchanged": 1, + "updated": 1, + "validationErrors": 1 + }, + "lastSyncTime": "2020-11-18T18:28:00.314Z", + "provisioningState": "Succeeded", + "syncState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "ProjectCatalogs_List", + "title": "ProjectCatalogs_List" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_Patch.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_Patch.json new file mode 100644 index 000000000000..482ec360024b --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_Patch.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "gitHub": { + "path": "/environments" + } + } + }, + "catalogName": "CentralCatalog", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "CentralCatalog", + "type": "Microsoft.DevCenter/projects/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", + "properties": { + "connectionState": "Connected", + "gitHub": { + "path": "/environments", + "branch": "main", + "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", + "uri": "https://github.com/Contoso/centralrepo-fake.git" + }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", + "lastSyncStats": { + "added": 1, + "removed": 1, + "synchronizationErrors": 1, + "unchanged": 1, + "updated": 1, + "validationErrors": 1 + }, + "lastSyncTime": "2020-11-18T18:28:00.314Z", + "provisioningState": "Succeeded", + "syncState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" + } + } + }, + "operationId": "ProjectCatalogs_Patch", + "title": "ProjectCatalogs_Patch" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_Sync.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_Sync.json new file mode 100644 index 000000000000..88b352db39c1 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectCatalogs_Sync.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "catalogName": "CentralCatalog", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" + } + } + }, + "operationId": "ProjectCatalogs_Sync", + "title": "ProjectCatalogs_Sync" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectEnvironmentTypes_Delete.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectEnvironmentTypes_Delete.json new file mode 100644 index 000000000000..f2f28d657646 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectEnvironmentTypes_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "environmentTypeName": "DevTest", + "projectName": "ContosoProj", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "ProjectEnvironmentTypes_Delete", + "title": "ProjectEnvironmentTypes_Delete" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectEnvironmentTypes_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectEnvironmentTypes_Get.json new file mode 100644 index 000000000000..8b3d8c1ca3f6 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectEnvironmentTypes_Get.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "environmentTypeName": "DevTest", + "projectName": "ContosoProj", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevTest", + "type": "Microsoft.DevCenter/projects/environmentTypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", + "properties": { + "creatorRoleAssignment": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" + } + } + }, + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "environmentCount": 1, + "provisioningState": "Succeeded", + "status": "Enabled", + "userRoleAssignments": { + "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" + } + } + } + } + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1@contoso.com", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "RnD" + } + } + } + }, + "operationId": "ProjectEnvironmentTypes_Get", + "title": "ProjectEnvironmentTypes_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectEnvironmentTypes_List.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectEnvironmentTypes_List.json new file mode 100644 index 000000000000..b9e957dd019b --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectEnvironmentTypes_List.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "environmentTypeName": "DevTest", + "projectName": "ContosoProj", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "DevTest", + "type": "Microsoft.DevCenter/projects/environmentTypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", + "properties": { + "creatorRoleAssignment": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" + } + } + }, + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "provisioningState": "Succeeded", + "status": "Enabled", + "userRoleAssignments": { + "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" + } + } + } + } + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1@contoso.com", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "RnD" + } + } + ] + } + } + }, + "operationId": "ProjectEnvironmentTypes_List", + "title": "ProjectEnvironmentTypes_List" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectEnvironmentTypes_Patch.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectEnvironmentTypes_Patch.json new file mode 100644 index 000000000000..90ddc3b6b0d4 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectEnvironmentTypes_Patch.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + }, + "properties": { + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", + "userRoleAssignments": { + "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": {} + } + } + } + }, + "tags": { + "CostCenter": "RnD" + } + }, + "environmentTypeName": "DevTest", + "projectName": "ContosoProj", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevTest", + "type": "Microsoft.DevCenter/projects/environmentTypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", + "properties": { + "creatorRoleAssignment": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" + } + } + }, + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "environmentCount": 1, + "provisioningState": "Succeeded", + "status": "Enabled", + "userRoleAssignments": { + "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" + } + } + } + } + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1@contoso.com", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "RnD" + } + } + } + }, + "operationId": "ProjectEnvironmentTypes_Update", + "title": "ProjectEnvironmentTypes_Update" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectEnvironmentTypes_Put.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectEnvironmentTypes_Put.json new file mode 100644 index 000000000000..a481f14a8da0 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectEnvironmentTypes_Put.json @@ -0,0 +1,149 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "location": "centralus", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + }, + "properties": { + "creatorRoleAssignment": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": {} + } + }, + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", + "userRoleAssignments": { + "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": {} + } + } + } + }, + "tags": { + "CostCenter": "RnD" + } + }, + "environmentTypeName": "DevTest", + "projectName": "ContosoProj", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevTest", + "type": "Microsoft.DevCenter/projects/environmentTypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", + "properties": { + "creatorRoleAssignment": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" + } + } + }, + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "displayName": "DevTest", + "environmentCount": 0, + "provisioningState": "Succeeded", + "status": "Enabled", + "userRoleAssignments": { + "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" + } + } + } + } + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1@contoso.com", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "RnD", + "hidden-title": "Dev" + } + } + }, + "201": { + "body": { + "name": "DevTest", + "type": "Microsoft.DevCenter/projects/environmentTypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", + "properties": { + "creatorRoleAssignment": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" + } + } + }, + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "displayName": "DevTest", + "environmentCount": 0, + "provisioningState": "Succeeded", + "status": "Enabled", + "userRoleAssignments": { + "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { + "roles": { + "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" + } + } + } + } + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1@contoso.com", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1@contoso.com", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "RnD", + "hidden-title": "Dev" + } + } + } + }, + "operationId": "ProjectEnvironmentTypes_CreateOrUpdate", + "title": "ProjectEnvironmentTypes_CreateOrUpdate" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectPolicies_Delete.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectPolicies_Delete.json new file mode 100644 index 000000000000..4630a68c0338 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectPolicies_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "projectPolicyName": "DevOnlyResources", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-02-01", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-02-01" + } + }, + "204": {} + }, + "operationId": "ProjectPolicies_Delete", + "title": "ProjectPolicies_Delete" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectPolicies_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectPolicies_Get.json new file mode 100644 index 000000000000..1591294ae52b --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectPolicies_Get.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "projectPolicyName": "DevOnlyResources", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1" + }, + "responses": { + "200": { + "body": { + "name": "DevOnlyResources", + "type": "Microsoft.DevCenter/devcenters/projectpolicies", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", + "properties": { + "provisioningState": "Succeeded", + "resourcePolicies": [ + { + "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" + } + ], + "scopes": [ + "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" + ] + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "ProjectPolicies_Get", + "title": "ProjectPolicies_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectPolicies_ListByDevCenter.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectPolicies_ListByDevCenter.json new file mode 100644 index 000000000000..4a884ef86118 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectPolicies_ListByDevCenter.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "DevOnlyResources", + "type": "Microsoft.DevCenter/devcenters/projectpolicies", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", + "properties": { + "provisioningState": "Succeeded", + "resourcePolicies": [ + { + "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" + } + ], + "scopes": [ + "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" + ] + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "ProjectPolicies_ListByDevCenter", + "title": "ProjectPolicies_ListByDevCenter" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectPolicies_Patch.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectPolicies_Patch.json new file mode 100644 index 000000000000..fb272c5bf2b2 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectPolicies_Patch.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "resourcePolicies": [ + { + "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" + } + ] + } + }, + "devCenterName": "Contoso", + "projectPolicyName": "DevOnlyResources", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1" + }, + "responses": { + "200": { + "body": { + "name": "DevOnlyResources", + "type": "Microsoft.DevCenter/devcenters/projectpolicies", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", + "properties": { + "provisioningState": "Succeeded", + "resourcePolicies": [ + { + "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" + } + ], + "scopes": [ + "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" + ] + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-02-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-02-01" + } + } + }, + "operationId": "ProjectPolicies_Update", + "title": "ProjectPolicies_Update" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectPolicies_Put.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectPolicies_Put.json new file mode 100644 index 000000000000..5228bd49b6f8 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/ProjectPolicies_Put.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "resourcePolicies": [ + { + "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" + } + ], + "scopes": [ + "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" + ] + } + }, + "devCenterName": "Contoso", + "projectPolicyName": "DevOnlyResources", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1" + }, + "responses": { + "200": { + "body": { + "name": "DevOnlyResources", + "type": "Microsoft.DevCenter/devcenters/projectpolicies", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", + "properties": { + "provisioningState": "Succeeded", + "resourcePolicies": [ + { + "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" + } + ], + "scopes": [ + "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" + ] + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "DevOnlyResources", + "type": "Microsoft.DevCenter/devcenters/projectpolicies", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", + "properties": { + "provisioningState": "Succeeded", + "resourcePolicies": [ + { + "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" + } + ], + "scopes": [ + "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" + ] + }, + "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", + "createdBy": "User1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", + "lastModifiedBy": "User1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "ProjectPolicies_CreateOrUpdate", + "title": "ProjectPolicies_CreateOrUpdate" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_Delete.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_Delete.json new file mode 100644 index 000000000000..a8c24e8c9f6b --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_Delete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + }, + "operationId": "Projects_Delete", + "title": "Projects_Delete" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_Get.json new file mode 100644 index 000000000000..b1f656f9c88e --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_Get.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "location": "centralus", + "properties": { + "description": "This is my first project.", + "catalogSettings": { + "catalogItemSyncTypes": [ + "EnvironmentDefinition" + ] + }, + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "Dev" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "R&D", + "hidden-title": "Dev" + } + } + } + }, + "operationId": "Projects_Get", + "title": "Projects_Get" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_GetInheritedSettings.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_GetInheritedSettings.json new file mode 100644 index 000000000000..92c45eebfea6 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_GetInheritedSettings.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "projectName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Enabled" + }, + "projectCatalogSettings": { + "catalogItemSyncEnableStatus": "Enabled" + } + } + } + }, + "operationId": "Projects_GetInheritedSettings", + "title": "Projects_GetInheritedSettings" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_ListByResourceGroup.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_ListByResourceGroup.json new file mode 100644 index 000000000000..d3b588146fcb --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_ListByResourceGroup.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myproject", + "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myproject", + "location": "centralus", + "properties": { + "description": "This is my first project.", + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "R&D" + } + } + ] + } + } + }, + "operationId": "Projects_ListByResourceGroup", + "title": "Projects_ListByResourceGroup" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_ListBySubscription.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_ListBySubscription.json new file mode 100644 index 000000000000..711abc7af4bc --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_ListBySubscription.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myproject", + "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myproject", + "location": "centralus", + "properties": { + "description": "This is my first project.", + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "R&D" + } + } + ] + } + } + }, + "operationId": "Projects_ListBySubscription", + "title": "Projects_ListBySubscription" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_Patch.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_Patch.json new file mode 100644 index 000000000000..def227584bb6 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_Patch.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "description": "This is my first project.", + "catalogSettings": { + "catalogItemSyncTypes": [ + "EnvironmentDefinition" + ] + }, + "displayName": "Dev" + }, + "tags": { + "CostCenter": "R&D" + } + }, + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "myproject", + "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "location": "centralus", + "properties": { + "description": "This is my first project. Very exciting.", + "catalogSettings": { + "catalogItemSyncTypes": [ + "EnvironmentDefinition" + ] + }, + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "Dev", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "R&D", + "displayName": "Dev" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + }, + "operationId": "Projects_Update", + "title": "Projects_Update" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_Put.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_Put.json new file mode 100644 index 000000000000..d721e74dc80d --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_Put.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "location": "centralus", + "properties": { + "description": "This is my first project.", + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "displayName": "Dev" + }, + "tags": { + "CostCenter": "R&D" + } + }, + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "location": "centralus", + "properties": { + "description": "This is my first project.", + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "R&D", + "hidden-title": "Dev" + } + } + }, + "201": { + "body": { + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "location": "centralus", + "properties": { + "description": "This is my first project.", + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "R&D", + "hidden-title": "Dev" + } + } + } + }, + "operationId": "Projects_CreateOrUpdate", + "title": "Projects_CreateOrUpdate" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_PutWithCustomizationSettings.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_PutWithCustomizationSettings.json new file mode 100644 index 000000000000..562249dc06a2 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_PutWithCustomizationSettings.json @@ -0,0 +1,119 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + }, + "location": "centralus", + "properties": { + "description": "This is my first project.", + "customizationSettings": { + "identities": [ + { + "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1", + "identityType": "userAssignedIdentity" + } + ] + }, + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso" + }, + "tags": { + "CostCenter": "R&D" + } + }, + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", + "properties": { + "description": "This is my first project.", + "customizationSettings": { + "identities": [ + { + "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1", + "identityType": "userAssignedIdentity" + } + ] + }, + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "R&D" + } + } + }, + "201": { + "body": { + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", + "properties": { + "description": "This is my first project.", + "customizationSettings": { + "identities": [ + { + "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1", + "identityType": "userAssignedIdentity" + } + ] + }, + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "maxDevBoxesPerUser": 3 + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "R&D" + } + } + } + }, + "operationId": "Projects_CreateOrUpdate", + "title": "Projects_CreateOrUpdateWithCustomizationSettings" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_PutWithCustomizationSettings_SystemIdentity.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_PutWithCustomizationSettings_SystemIdentity.json new file mode 100644 index 000000000000..3ffcdfda09a8 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_PutWithCustomizationSettings_SystemIdentity.json @@ -0,0 +1,105 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "identity": { + "type": "SystemAssigned" + }, + "location": "centralus", + "properties": { + "description": "This is my first project.", + "customizationSettings": { + "identities": [ + { + "identityType": "systemAssignedIdentity" + } + ] + }, + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso" + }, + "tags": { + "CostCenter": "R&D" + } + }, + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "identity": { + "type": "SystemAssigned", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494", + "tenantId": "e35621a5-f615-4a20-940e-de8a84b15abc" + }, + "location": "centralus", + "properties": { + "description": "This is my first project.", + "customizationSettings": { + "identities": [ + { + "identityType": "systemAssignedIdentity" + } + ] + }, + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "R&D" + } + } + }, + "201": { + "body": { + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "identity": { + "type": "SystemAssigned", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494", + "tenantId": "e35621a5-f615-4a20-940e-de8a84b15abc" + }, + "location": "centralus", + "properties": { + "description": "This is my first project.", + "customizationSettings": { + "identities": [ + { + "identityType": "systemAssignedIdentity" + } + ] + }, + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "maxDevBoxesPerUser": 3 + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "R&D" + } + } + } + }, + "operationId": "Projects_CreateOrUpdate", + "title": "Projects_CreateOrUpdateWithCustomizationSettings_SystemIdentity" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_PutWithMaxDevBoxPerUser.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_PutWithMaxDevBoxPerUser.json new file mode 100644 index 000000000000..2de33791bdd8 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Projects_PutWithMaxDevBoxPerUser.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "location": "centralus", + "properties": { + "description": "This is my first project.", + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "maxDevBoxesPerUser": 3 + }, + "tags": { + "CostCenter": "R&D" + } + }, + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "location": "centralus", + "properties": { + "description": "This is my first project.", + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "maxDevBoxesPerUser": 3, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "R&D" + } + } + }, + "201": { + "body": { + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "location": "centralus", + "properties": { + "description": "This is my first project.", + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "maxDevBoxesPerUser": 3, + "provisioningState": "Succeeded" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "R&D" + } + } + } + }, + "operationId": "Projects_CreateOrUpdate", + "title": "Projects_CreateOrUpdateWithLimitsPerDev" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Schedules_CreateDailyShutdownPoolSchedule.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Schedules_CreateDailyShutdownPoolSchedule.json new file mode 100644 index 000000000000..c0b2e831e8d7 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Schedules_CreateDailyShutdownPoolSchedule.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "type": "StopDevBox", + "frequency": "Daily", + "state": "Enabled", + "time": "17:30", + "timeZone": "America/Los_Angeles" + } + }, + "poolName": "DevPool", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "scheduleName": "autoShutdown", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "autoShutdown", + "type": "Microsoft.DevCenter/pools/schedules", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", + "properties": { + "type": "StopDevBox", + "frequency": "Daily", + "provisioningState": "Succeeded", + "state": "Enabled", + "time": "17:30", + "timeZone": "America/Los_Angeles" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "autoShutdown", + "type": "Microsoft.DevCenter/pools/schedules", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", + "properties": { + "type": "StopDevBox", + "frequency": "Daily", + "provisioningState": "Accepted", + "state": "Enabled", + "time": "17:30", + "timeZone": "America/Los_Angeles" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "Schedules_CreateOrUpdate", + "title": "Schedules_CreateDailyShutdownPoolSchedule" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Schedules_Delete.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Schedules_Delete.json new file mode 100644 index 000000000000..8cf1b499016a --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Schedules_Delete.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "poolName": "DevPool", + "projectName": "TestProject", + "resourceGroupName": "rg1", + "scheduleName": "autoShutdown", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + }, + "204": {} + }, + "operationId": "Schedules_Delete", + "title": "Schedules_Delete" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Schedules_Get.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Schedules_Get.json new file mode 100644 index 000000000000..e388b4f08a06 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Schedules_Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "poolName": "DevPool", + "projectName": "TestProject", + "resourceGroupName": "rg1", + "scheduleName": "autoShutdown", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "autoShutdown", + "type": "Microsoft.DevCenter/pools/schedules", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", + "properties": { + "type": "StopDevBox", + "frequency": "Daily", + "provisioningState": "Succeeded", + "state": "Enabled", + "time": "17:30", + "timeZone": "America/Los_Angeles" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "Schedules_Get", + "title": "Schedules_GetByPool" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Schedules_ListByPool.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Schedules_ListByPool.json new file mode 100644 index 000000000000..361f59bccdbb --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Schedules_ListByPool.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "poolName": "DevPool", + "projectName": "TestProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "autoShutdown", + "type": "Microsoft.DevCenter/pools/schedules", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", + "properties": { + "type": "StopDevBox", + "frequency": "Daily", + "provisioningState": "Succeeded", + "state": "Enabled", + "time": "17:30", + "timeZone": "America/Los_Angeles" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "Schedules_ListByPool", + "title": "Schedules_ListByPool" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Schedules_Patch.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Schedules_Patch.json new file mode 100644 index 000000000000..fcbcda38a842 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Schedules_Patch.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "body": { + "properties": { + "time": "18:00" + } + }, + "poolName": "DevPool", + "projectName": "TestProject", + "resourceGroupName": "rg1", + "scheduleName": "autoShutdown", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "name": "autoShutdown", + "type": "Microsoft.DevCenter/pools/schedules", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", + "properties": { + "type": "StopDevBox", + "frequency": "Daily", + "provisioningState": "Succeeded", + "state": "Enabled", + "time": "17:30", + "timeZone": "America/Los_Angeles" + }, + "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", + "createdBy": "user1", + "createdByType": "User", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", + "lastModifiedBy": "user1", + "lastModifiedByType": "User" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" + } + } + }, + "operationId": "Schedules_Update", + "title": "Schedules_Update" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Skus_ListByProject.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Skus_ListByProject.json new file mode 100644 index 000000000000..c3ab2ae2347d --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Skus_ListByProject.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "projectName": "myProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Large", + "locations": [ + "CentralUS" + ], + "resourceType": "projects/pools", + "tier": "Premium" + }, + { + "name": "Medium", + "locations": [ + "CentralUS" + ], + "resourceType": "projects/pools", + "tier": "Standard" + } + ] + } + } + }, + "operationId": "Skus_ListByProject", + "title": "Skus_ListByProject" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Skus_ListBySubscription.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Skus_ListBySubscription.json new file mode 100644 index 000000000000..51b07f2d1e94 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Skus_ListBySubscription.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Large", + "locations": [ + "CentralUS" + ], + "resourceType": "projects/pools", + "tier": "Premium" + }, + { + "name": "Medium", + "locations": [ + "CentralUS" + ], + "resourceType": "projects/pools", + "tier": "Standard" + } + ] + } + } + }, + "operationId": "Skus_ListBySubscription", + "title": "Skus_ListBySubscription" +} diff --git a/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Usages_ListByLocation.json b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Usages_ListByLocation.json new file mode 100644 index 000000000000..4b7de2e306b0 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/examples/2025-07-01-preview/Usages_ListByLocation.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2025-07-01-preview", + "location": "westus", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": { + "value": "devcenters" + }, + "currentValue": 2, + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/Microsoft.DevCenter/locations/westus/quotas/devcenters", + "limit": 8, + "unit": "Count" + }, + { + "name": { + "value": "projects" + }, + "currentValue": 5, + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/Microsoft.DevCenter/locations/westus/quotas/projects", + "limit": 30, + "unit": "Count" + } + ] + } + } + }, + "operationId": "Usages_ListByLocation", + "title": "listUsages" +} diff --git a/specification/devcenter/DevCenter.Management/main.tsp b/specification/devcenter/DevCenter.Management/main.tsp new file mode 100644 index 000000000000..9eec3722880a --- /dev/null +++ b/specification/devcenter/DevCenter.Management/main.tsp @@ -0,0 +1,61 @@ +/** + * PLEASE DO NOT REMOVE - USED FOR CONVERTER METRICS + * Generated by package: @autorest/openapi-to-typespec + * Parameters used: + * isFullCompatible: true + * guessResourceKey: true + * Version: Not generated in test + * Date: Not generated in test + */ +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "./models.tsp"; +import "./back-compatible.tsp"; +import "./DevCenter.tsp"; +import "./DevCenterEncryptionSet.tsp"; +import "./ProjectPolicy.tsp"; +import "./Project.tsp"; +import "./AttachedNetworkConnection.tsp"; +import "./Catalog.tsp"; +import "./EnvironmentDefinition.tsp"; +import "./Gallery.tsp"; +import "./Image.tsp"; +import "./ImageVersion.tsp"; +import "./EnvironmentType.tsp"; +import "./AllowedEnvironmentType.tsp"; +import "./ProjectEnvironmentType.tsp"; +import "./DevBoxDefinition.tsp"; +import "./CustomizationTask.tsp"; +import "./ImageDefinition.tsp"; +import "./ImageDefinitionBuild.tsp"; +import "./Pool.tsp"; +import "./Schedule.tsp"; +import "./NetworkConnection.tsp"; +import "./HealthCheckStatusDetails.tsp"; +import "./routes.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager.Foundations; +using Azure.Core; +using Azure.ResourceManager; +using TypeSpec.Versioning; + +@doc("DevCenter Management API") +@armProviderNamespace +@service(#{ title: "DevCenter" }) +@versioned(Versions) +@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v4) +namespace Microsoft.DevCenter; + +@doc("The available API versions.") +enum Versions { + @doc("The 2025-07-01-preview API version.") + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @useDependency(Azure.Core.Versions.v1_0_Preview_1) + v2025_07_01_preview: "2025-07-01-preview", +} + +interface Operations extends Azure.ResourceManager.Operations {} diff --git a/specification/devcenter/DevCenter.Management/models.tsp b/specification/devcenter/DevCenter.Management/models.tsp new file mode 100644 index 000000000000..e9fefce4ce93 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/models.tsp @@ -0,0 +1,2150 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; +using Azure.ResourceManager.Foundations; + +namespace Microsoft.DevCenter; + +@doc("Provisioning state of the resource.") +union ProvisioningState { + string, + + @doc("Not specified provisioning state.") + NotSpecified: "NotSpecified", + + @doc("Accepted provisioning state.") + Accepted: "Accepted", + + @doc("Running provisioning state.") + Running: "Running", + + @doc("Creating provisioning state.") + Creating: "Creating", + + @doc("Created provisioning state.") + Created: "Created", + + @doc("Updating provisioning state.") + Updating: "Updating", + + @doc("Updated provisioning state.") + Updated: "Updated", + + @doc("Deleting provisioning state.") + Deleting: "Deleting", + + @doc("Deleted provisioning state.") + Deleted: "Deleted", + + @doc("Succeeded provisioning state.") + Succeeded: "Succeeded", + + @doc("Failed provisioning state.") + Failed: "Failed", + + @doc("Canceled provisioning state.") + Canceled: "Canceled", + + @doc("Moving resources provisioning state.") + MovingResources: "MovingResources", + + @doc("Transient failure provisioning state.") + TransientFailure: "TransientFailure", + + @doc("Rollout in progress provisioning state.") + RolloutInProgress: "RolloutInProgress", + + @doc("Storage provisioning failed provisioning state.") + StorageProvisioningFailed: "StorageProvisioningFailed", +} + +@doc("Catalog item sync types enable or disable status. Indicates whether project catalogs are allowed to sync catalog items under projects associated to this dev center.") +union CatalogItemSyncEnableStatus { + string, + + @doc("Catalog item sync is enabled.") + Enabled: "Enabled", + + @doc("Catalog item sync is disabled.") + Disabled: "Disabled", +} + +@doc("Indicates whether pools in this Dev Center can use Microsoft Hosted Networks. Defaults to Enabled if not set.") +union MicrosoftHostedNetworkEnableStatus { + string, + + @doc("Microsoft Hosted Networks are enabled for this Dev Center.") + Enabled: "Enabled", + + @doc("Microsoft Hosted Networks are disabled for this Dev Center.") + Disabled: "Disabled", +} + +@doc("Setting to be used when determining whether to install the Azure Monitor Agent service on Dev Boxes that belong to this dev center.") +union InstallAzureMonitorAgentEnableStatus { + string, + + @doc("Azure Monitor Agent service is enabled.") + Enabled: "Enabled", + + @doc("Azure Monitor Agent service is disabled.") + Disabled: "Disabled", +} + +@doc("Devbox disk encryption enable or disable status. Indicates if Devbox disks encryption is enabled or not.") +union DevboxDisksEncryptionEnableStatus { + string, + + @doc("Devbox disks encryption is enabled.") + Enabled: "Enabled", + + @doc("Devbox disks encryption is disabled.") + Disabled: "Disabled", +} + +@doc("The type of identity used to access the key vault key.") +union CmkIdentityType { + string, + + @doc("System assigned identity type.") + SystemAssigned: "SystemAssigned", + + @doc("User assigned identity type.") + UserAssigned: "UserAssigned", +} + +@doc("Indicates what action to perform for the policy.") +union PolicyAction { + string, + + @doc("Allow action for the policy.") + Allow: "Allow", + + @doc("Deny action for the policy.") + Deny: "Deny", +} + +@doc("Indicates dev center resource types.") +union DevCenterResourceType { + string, + + @doc("Images resource type.") + Images: "Images", + + @doc("Attached networks resource type.") + AttachedNetworks: "AttachedNetworks", + + @doc("Skus resource type.") + Skus: "Skus", +} + +@doc("Indicates catalog item types.") +union CatalogItemType { + string, + + @doc("Environment definition catalog item type.") + EnvironmentDefinition: "EnvironmentDefinition", + + @doc("Image definition catalog item type.") + ImageDefinition: "ImageDefinition", +} + +@doc("Values can be systemAssignedIdentity or userAssignedIdentity") +union ProjectCustomizationIdentityType { + string, + + @doc("System assigned identity type.") + systemAssignedIdentity: "systemAssignedIdentity", + + @doc("User assigned identity type.") + userAssignedIdentity: "userAssignedIdentity", +} + +@doc("Indicates whether user customizations are enabled.") +union UserCustomizationsEnableStatus { + string, + + @doc("User customizations are disabled.") + Disabled: "Disabled", + + @doc("User customizations are enabled.") + Enabled: "Enabled", +} + +@doc("Indicates possible values for Dev Box delete mode.") +union DevBoxDeleteMode { + string, + + @doc("Dev Boxes will not be deleted automatically, and user must manually delete. This is the default.") + Manual: "Manual", + + @doc("Dev Boxes will be deleted automatically according to configured settings.") + Auto: "Auto", +} + +@doc("Indicates whether Azure AI services are enabled for a project.") +union AzureAiServicesMode { + string, + + @doc("Azure AI services are disabled for this project.") + Disabled: "Disabled", + + @doc("Azure AI services are enabled for this project and necessary resources will be automatically setup.") + AutoDeploy: "AutoDeploy", +} + +@doc("Indicates whether serverless GPU session access is enabled.") +union ServerlessGpuSessionsMode { + string, + + @doc("Serverless GPU session access is disabled.") + Disabled: "Disabled", + + @doc("Serverless GPU session access is enabled and necessary resources will be automatically setup.") + AutoDeploy: "AutoDeploy", +} + +@doc("Indicates whether workspace storage is enabled.") +union WorkspaceStorageMode { + string, + + @doc("Workspace storage is disabled.") + Disabled: "Disabled", + + @doc("Workspace storage is enabled and necessary resources will be automatically setup.") + AutoDeploy: "AutoDeploy", +} + +@doc("Health check status values.") +union HealthCheckStatus { + string, + + @doc("Unknown health check status.") + Unknown: "Unknown", + + @doc("Pending health check status.") + Pending: "Pending", + + @doc("Running health check status.") + Running: "Running", + + @doc("Passed health check status.") + Passed: "Passed", + + @doc("Warning health check status.") + Warning: "Warning", + + @doc("Failed health check status.") + Failed: "Failed", + + @doc("Informational health check status.") + Informational: "Informational", +} + +@doc("Active Directory join type.") +union DomainJoinType { + string, + + @doc("Hybrid Azure AD Join type.") + HybridAzureADJoin: "HybridAzureADJoin", + + @doc("Azure AD Join type.") + AzureADJoin: "AzureADJoin", + + @doc("No Active Directory join type.") + None: "None", +} + +@doc("The synchronization state of the catalog.") +union CatalogSyncState { + string, + + @doc("Succeeded synchronization state.") + Succeeded: "Succeeded", + + @doc("In progress synchronization state.") + InProgress: "InProgress", + + @doc("Failed synchronization state.") + Failed: "Failed", + + @doc("Canceled synchronization state.") + Canceled: "Canceled", +} + +@doc("The connection state of the catalog.") +union CatalogConnectionState { + string, + + @doc("Connected state.") + Connected: "Connected", + + @doc("Disconnected state.") + Disconnected: "Disconnected", +} + +@doc("Indicates the type of sync that is configured for the catalog.") +union CatalogSyncType { + string, + + @doc("Manual sync type.") + Manual: "Manual", + + @doc("Scheduled sync type.") + Scheduled: "Scheduled", +} + +@doc("The type of data a parameter accepts.") +union ParameterType { + string, + + @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", +} + +@doc("Catalog resource validation status.") +union CatalogResourceValidationStatus { + string, + + @doc("Unknown validation status.") + Unknown: "Unknown", + + @doc("Pending validation status.") + Pending: "Pending", + + @doc("Succeeded validation status.") + Succeeded: "Succeeded", + + @doc("Failed validation status.") + Failed: "Failed", +} + +@doc("Indicates whether hibernate is enabled/disabled.") +union HibernateSupport { + string, + + @doc("Hibernate is disabled.") + Disabled: "Disabled", + + @doc("Hibernate is enabled.") + Enabled: "Enabled", +} + +@doc("Indicates whether the environment type is either enabled or disabled.") +union EnvironmentTypeEnableStatus { + string, + + @doc("Environment type is enabled.") + Enabled: "Enabled", + + @doc("Environment type is disabled.") + Disabled: "Disabled", +} + +@doc("Image validation status.") +union ImageValidationStatus { + string, + + @doc("Unknown image validation status.") + Unknown: "Unknown", + + @doc("Pending image validation status.") + Pending: "Pending", + + @doc("Succeeded image validation status.") + Succeeded: "Succeeded", + + @doc("Failed image validation status.") + Failed: "Failed", + + @doc("Timed out image validation status.") + TimedOut: "TimedOut", +} + +@doc("The unit details.") +union UsageUnit { + string, + + @doc("Count.") + Count: "Count", +} + +@doc("Type of the input.") +union CustomizationTaskInputType { + string, + + @doc("The parameter accepts a string value.") + string: "string", + + @doc("The parameter accepts a number value.") + number: "number", + + @doc("The parameter accepts a boolean value.") + boolean: "boolean", +} + +@doc("The state of an Image Definition Build.") +union ImageDefinitionBuildStatus { + string, + + @doc("The image build has succeeded.") + Succeeded: "Succeeded", + + @doc("The image build is running.") + Running: "Running", + + @doc("The built image has failed validation.") + ValidationFailed: "ValidationFailed", + + @doc("The image build has failed.") + Failed: "Failed", + + @doc("The image build has been cancelled.") + Cancelled: "Cancelled", + + @doc("The image build has timed out.") + TimedOut: "TimedOut", +} + +@doc("Indicates whether auto image build is enabled/disabled.") +union AutoImageBuildStatus { + string, + + @doc("Auto image build is disabled.") + Disabled: "Disabled", + + @doc("Auto image build is enabled.") + Enabled: "Enabled", +} + +@doc("Health status indicating whether a pool is available to create Dev Boxes.") +union HealthStatus { + string, + + @doc("Unknown health status.") + Unknown: "Unknown", + + @doc("Pending health status.") + Pending: "Pending", + + @doc("Healthy health status.") + Healthy: "Healthy", + + @doc("Warning health status.") + Warning: "Warning", + + @doc("Unhealthy health status.") + Unhealthy: "Unhealthy", +} + +@doc("Indicates if the pool is created from an existing Dev Box Definition or if one is provided directly.") +union PoolDevBoxDefinitionType { + string, + + @doc("Indicates the pool is created from an existing Dev Box definition.") + Reference: "Reference", + + @doc("Indicates the pool is created from a Dev Box definition that's created from an image reference and a SKU directly. This is used for creating an image definition pool or an image pool.") + Value: "Value", +} + +@doc("License Types") +union LicenseType { + string, + + @doc("Windows Client license type.") + Windows_Client: "Windows_Client", +} + +@doc("Local Administrator enable or disable status. Indicates whether owners of Dev Boxes are added as local administrators on the Dev Box.") +union LocalAdminStatus { + string, + + @doc("Local administrator is disabled.") + Disabled: "Disabled", + + @doc("Local administrator is enabled.") + Enabled: "Enabled", +} + +@doc("Stop on disconnect enable or disable status. Indicates whether stop on disconnect to is either enabled or disabled.") +union StopOnDisconnectEnableStatus { + string, + + @doc("Stop on disconnect is enabled.") + Enabled: "Enabled", + + @doc("Stop on disconnect is disabled.") + Disabled: "Disabled", +} + +@doc("Stop on no connect enable or disable status.") +union StopOnNoConnectEnableStatus { + string, + + @doc("Stop on no connect is enabled.") + Enabled: "Enabled", + + @doc("Stop on no connect is disabled.") + Disabled: "Disabled", +} + +@doc("SingleSignOn (SSO) enable or disable status. Indicates whether Dev Boxes in the Pool will have SSO enabled or disabled.") +union SingleSignOnStatus { + string, + + @doc("Single Sign On is disabled.") + Disabled: "Disabled", + + @doc("Single Sign On is enabled.") + Enabled: "Enabled", +} + +@doc("Indicates a pool uses a Virtual Network managed by Microsoft (Managed), or a customer provided Network (Unmanaged).") +union VirtualNetworkType { + string, + + @doc("Virtual Network is managed by Microsoft.") + Managed: "Managed", + + @doc("Virtual Network is managed by user.") + Unmanaged: "Unmanaged", +} + +@doc("Enables or disables whether Dev Boxes should be kept awake during active hours.") +union KeepAwakeEnableStatus { + string, + + @doc("Keep awake is enabled.") + Enabled: "Enabled", + + @doc("Keep awake is disabled.") + Disabled: "Disabled", +} + +@doc("Enables or disables whether Dev Boxes should be automatically started at commencement of active hours.") +union AutoStartEnableStatus { + string, + + @doc("Auto start is enabled.") + Enabled: "Enabled", + + @doc("Auto start is disabled.") + Disabled: "Disabled", +} + +@doc("Indicates whether Dev Box Tunnel is enabled.") +union DevBoxTunnelEnableStatus { + string, + + @doc("Dev Box Tunnel is enabled.") + Disabled: "Disabled", + + @doc("Dev Box Tunnel is disabled.") + Enabled: "Enabled", +} + +@doc("The supported types for a scheduled task.") +union ScheduledType { + string, + + @doc("Stop Dev Box task type.") + StopDevBox: "StopDevBox", +} + +@doc("The frequency of task execution.") +union ScheduledFrequency { + string, + + @doc("The scheduled task will run daily.") + Daily: "Daily", +} + +@doc("Schedule enable or disable status. Indicates whether the schedule applied to is either enabled or disabled.") +union ScheduleEnableStatus { + string, + + @doc("Schedule is enabled.") + Enabled: "Enabled", + + @doc("Schedule is disabled.") + Disabled: "Disabled", +} + +#suppress "@azure-tools/typespec-azure-core/no-closed-literal-union" "Days of week will never change." +@doc("The days of the week.") +union DayOfWeek { + @doc("Monday") + Monday: "Monday", + + @doc("Tuesday") + Tuesday: "Tuesday", + + @doc("Wednesday") + Wednesday: "Wednesday", + + @doc("Thursday") + Thursday: "Thursday", + + @doc("Friday") + Friday: "Friday", + + @doc("Saturday") + Saturday: "Saturday", + + @doc("Sunday") + Sunday: "Sunday", +} + +model DevCenterListResult is Azure.Core.Page; + +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Legacy. Maintain compatibility with existing models." +@doc("Properties of the devcenter.") +model DevCenterProperties extends DevCenterUpdateProperties { + @doc("The provisioning state of the resource.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @doc("The URI of the Dev Center.") + @visibility(Lifecycle.Read) + devCenterUri?: string; +} + +@doc("Properties of the devcenter. These properties can be updated after the resource has been created.") +model DevCenterUpdateProperties { + @doc("Encryption settings to be used for server-side encryption for proprietary content (such as catalogs, logs, customizations).") + encryption?: Encryption; + + @doc("The display name of the devcenter.") + displayName?: string; + + @doc("Dev Center settings to be used when associating a project with a catalog.") + projectCatalogSettings?: DevCenterProjectCatalogSettings; + + @doc("Network settings that will be enforced on network resources associated with the Dev Center.") + networkSettings?: DevCenterNetworkSettings; + + @doc("Settings to be used in the provisioning of all Dev Boxes that belong to this dev center.") + devBoxProvisioningSettings?: DevBoxProvisioningSettings; +} + +@doc("Encryption properties.") +model Encryption { + @doc("All Customer-managed key encryption properties for the resource.") + customerManagedKeyEncryption?: CustomerManagedKeyEncryption; +} + +@doc("Project catalog settings for project catalogs under a project associated to this dev center.") +model DevCenterProjectCatalogSettings { + @doc("Whether project catalogs associated with projects in this dev center can be configured to sync catalog items.") + catalogItemSyncEnableStatus?: CatalogItemSyncEnableStatus; +} + +@doc("Network settings for the Dev Center.") +model DevCenterNetworkSettings { + @doc("Indicates whether pools in this Dev Center can use Microsoft Hosted Networks. Defaults to Enabled if not set.") + microsoftHostedNetworkEnableStatus?: MicrosoftHostedNetworkEnableStatus; +} + +@doc("Provisioning settings that apply to all Dev Boxes created in this dev center.") +model DevBoxProvisioningSettings { + @doc("Indicates whether to install the Azure Monitor Agent service on Dev Boxes that belong to this dev center") + installAzureMonitorAgentEnableStatus?: InstallAzureMonitorAgentEnableStatus; +} + +@doc("The devcenter resource for partial updates. Properties not provided in the update request will not be changed.") +model DevCenterUpdate is TrackedResourceUpdate { + @doc("Managed identity properties.") + identity?: Azure.ResourceManager.CommonTypes.ManagedServiceIdentity; + + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "Legacy" + @doc("Properties of a Dev Center to be updated.") + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: DevCenterUpdateProperties; +} + +@doc("Base tracked resource type for PATCH updates.") +model TrackedResourceUpdate { + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Correct representation for resource tags." + @doc("Resource tags.") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + tags?: Record; + + @doc("The geo-location where the resource lives.") + @visibility(Lifecycle.Read, Lifecycle.Create) + location?: string; +} + +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Legacy. Maintain compatibility with existing models." +@doc("Properties of the devcenter encryption set.") +model DevCenterEncryptionSetProperties + extends DevCenterEncryptionSetUpdateProperties { + @doc("The provisioning state of the resource.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; +} + +model EncryptionSetListResult is Azure.Core.Page; + +@doc("Properties of the devcenter encryption set. These properties can be updated after the resource has been created.") +model DevCenterEncryptionSetUpdateProperties { + @doc("Devbox disk encryption enable or disable status. Indicates if Devbox disks encryption using DevCenter CMK is enabled or not.") + devboxDisksEncryptionEnableStatus?: DevboxDisksEncryptionEnableStatus; + + @doc("Key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.") + keyEncryptionKeyUrl?: url; + + @doc("The managed identity configuration used for key vault access.") + keyEncryptionKeyIdentity?: KeyEncryptionKeyIdentity; +} + +@doc("The managed identity configuration used for key vault access.") +model KeyEncryptionKeyIdentity { + @doc("The type of managed identity to use for key vault access.") + type?: CmkIdentityType; + + @doc("For system assigned identity, this will be null. For user assigned identity, this should be the resource ID of the identity.") + userAssignedIdentityResourceId?: string; +} + +@doc("The devcenter encryption set resource for partial updates. Properties not provided in the update request will not be changed.") +model EncryptionSetUpdate is TrackedResourceUpdate { + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "Legacy" + @doc("Properties of a Dev Center encryption set to be updated.") + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: DevCenterEncryptionSetUpdateProperties; + + @doc("Managed identity properties") + identity?: Azure.ResourceManager.CommonTypes.ManagedServiceIdentity; +} + +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Legacy. Maintain compatibility with existing models." +@doc("Properties of an project policy.") +model ProjectPolicyProperties extends ProjectPolicyUpdateProperties { + @doc("The provisioning state of the resource.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; +} + +@doc("Properties of an project policy. These properties can be updated after the resource has been created.") +model ProjectPolicyUpdateProperties { + @doc("Resource policies that are a part of this project policy.") + @OpenAPI.extension("x-ms-identifiers", #[]) + resourcePolicies?: ResourcePolicy[]; + + @doc("Resources that have access to the shared resources that are a part of this project policy.") + scopes?: string[]; +} + +@doc("A resource policy.") +model ResourcePolicy { + @doc("Resources that are included and shared as a part of a project policy.") + resources?: string; + + @doc("Optional. When specified, this expression is used to filter the resources.") + filter?: string; + + @doc("Policy action to be taken on the resources. This is optional, and defaults to allow") + action?: PolicyAction; + + @doc("Optional. The resource type being restricted or allowed by a project policy. Used with a given action to restrict or allow access to a resource type.") + resourceType?: DevCenterResourceType; +} + +@doc("The project policy properties for partial update. Properties not provided in the update request will not be changed.") +model ProjectPolicyUpdate { + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "Legacy" + @doc("Properties of an project policy to be updated.") + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: ProjectPolicyUpdateProperties; +} + +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Legacy. Maintain compatibility with existing models." +@doc("Properties of a project.") +model ProjectProperties extends ProjectUpdateProperties { + @doc("The provisioning state of the resource.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @doc("The URI of the Dev Center resource this project is associated with.") + @visibility(Lifecycle.Read) + devCenterUri?: string; +} + +@doc("Properties of a project. These properties can be updated after the resource has been created.") +model ProjectUpdateProperties { + @doc("Resource Id of an associated DevCenter.") + devCenterId?: string; + + @doc("Description of the project.") + description?: string; + + @doc("When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This will have no effect on existing Dev Boxes when reduced.") + @minValue(0) + maxDevBoxesPerUser?: int32; + + @doc("The display name of the project.") + displayName?: string; + + @doc("Settings to be used when associating a project with a catalog.") + catalogSettings?: ProjectCatalogSettings; + + @doc("Settings to be used for customizations.") + customizationSettings?: ProjectCustomizationSettings; + + @doc("Dev Box Auto Delete settings.") + devBoxAutoDeleteSettings?: DevBoxAutoDeleteSettings; + + @doc("Indicates whether Azure AI services are enabled for a project.") + azureAiServicesSettings?: AzureAiServicesSettings; + + @doc("Settings to be used for serverless GPU.") + serverlessGpuSessionsSettings?: ServerlessGpuSessionsSettings; + + @doc("Settings to be used for workspace storage.") + workspaceStorageSettings?: WorkspaceStorageSettings; +} + +@doc("Settings to be used when associating a project with a catalog.") +model ProjectCatalogSettings { + @doc("Indicates catalog item types that can be synced.") + catalogItemSyncTypes?: CatalogItemType[]; +} + +@doc("Settings to be used for customizations.") +model ProjectCustomizationSettings { + @doc("The identities that can to be used in customization scenarios; e.g., to clone a repository.") + @OpenAPI.extension("x-ms-identifiers", #[]) + identities?: ProjectCustomizationManagedIdentity[]; + + @doc("Indicates whether user customizations are enabled.") + userCustomizationsEnableStatus?: UserCustomizationsEnableStatus; +} + +@doc("A reference to a Managed Identity that is attached to the Project.") +model ProjectCustomizationManagedIdentity { + @doc("Values can be systemAssignedIdentity or userAssignedIdentity.") + identityType?: ProjectCustomizationIdentityType; + + @doc("Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity.") + identityResourceId?: Azure.Core.armResourceIdentifier; +} + +@doc("Settings controlling the auto deletion of inactive dev boxes.") +model DevBoxAutoDeleteSettings { + @doc("Indicates the delete mode for Dev Boxes within this project.") + deleteMode?: DevBoxDeleteMode; + + @doc("ISO8601 duration required for the dev box to not be inactive prior to it being scheduled for deletion. ISO8601 format PT[n]H[n]M[n]S.") + inactiveThreshold?: string; + + @doc("ISO8601 duration required for the dev box to be marked for deletion prior to it being deleted. ISO8601 format PT[n]H[n]M[n]S.") + gracePeriod?: string; +} + +@doc("Configures Azure AI related services for the project.") +model AzureAiServicesSettings { + @doc("The property indicates whether Azure AI services is enabled.") + azureAiServicesMode?: AzureAiServicesMode; +} + +@doc("Represents settings for serverless GPU access.") +model ServerlessGpuSessionsSettings { + @doc("The property indicates whether serverless GPU access is enabled on the project.") + serverlessGpuSessionsMode?: ServerlessGpuSessionsMode; + + @doc("When specified, limits the maximum number of concurrent sessions across all pools in the project.") + @minValue(1) + maxConcurrentSessionsPerProject?: int32; +} + +@doc("Settings to be used for workspace storage.") +model WorkspaceStorageSettings { + @doc("Indicates whether workspace storage is enabled.") + workspaceStorageMode?: WorkspaceStorageMode; +} + +@doc("The project properties for partial update. Properties not provided in the update request will not be changed.") +model ProjectUpdate is TrackedResourceUpdate { + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "Legacy" + @doc("Properties of a project to be updated.") + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: ProjectUpdateProperties; + + @doc("Managed identity properties.") + identity?: Azure.ResourceManager.CommonTypes.ManagedServiceIdentity; +} + +@doc("Applicable inherited settings for a project.") +model InheritedSettingsForProject { + @doc("Dev Center settings to be used when associating a project with a catalog.") + @visibility(Lifecycle.Read) + projectCatalogSettings?: DevCenterProjectCatalogSettings; + + @doc("Network settings that will be enforced on this project.") + @visibility(Lifecycle.Read) + networkSettings?: ProjectNetworkSettings; +} + +@doc("Network settings for the project.") +model ProjectNetworkSettings { + @doc("Indicates whether pools in this Dev Center can use Microsoft Hosted Networks. Defaults to Enabled if not set.") + @visibility(Lifecycle.Read) + microsoftHostedNetworkEnableStatus?: MicrosoftHostedNetworkEnableStatus; +} + +@doc("Properties of an attached NetworkConnection.") +model AttachedNetworkConnectionProperties { + @doc("The provisioning state of the resource.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @doc("The resource ID of the NetworkConnection you want to attach.") + @visibility(Lifecycle.Read, Lifecycle.Create) + networkConnectionId?: string; + + @doc("The geo-location where the NetworkConnection resource specified in 'networkConnectionResourceId' property lives.") + @visibility(Lifecycle.Read) + networkConnectionLocation?: string; + + @doc("Health check status values.") + @visibility(Lifecycle.Read) + healthCheckStatus?: HealthCheckStatus; + + @doc("AAD Join type of the network. This is populated based on the referenced Network Connection.") + @visibility(Lifecycle.Read) + domainJoinType?: DomainJoinType; +} + +model AttachedNetworkListResult is Azure.Core.Page; + +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Legacy. Maintain compatibility with existing models." +@doc("Properties of a catalog.") +model CatalogProperties extends CatalogUpdateProperties { + @doc("The provisioning state of the resource.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @doc("The synchronization state of the catalog.") + @visibility(Lifecycle.Read) + syncState?: CatalogSyncState; + + @doc("Stats of the latest synchronization.") + @visibility(Lifecycle.Read) + lastSyncStats?: SyncStats; + + @doc("The connection state of the catalog.") + @visibility(Lifecycle.Read) + connectionState?: CatalogConnectionState; + + @doc("When the catalog was last connected.") + @visibility(Lifecycle.Read) + lastConnectionTime?: utcDateTime; + + @doc("When the catalog was last synced.") + @visibility(Lifecycle.Read) + lastSyncTime?: utcDateTime; +} + +@doc("Stats of the synchronization.") +model SyncStats { + @doc("Count of catalog items added during synchronization.") + @visibility(Lifecycle.Read) + @minValue(0) + added?: int32; + + @doc("Count of catalog items updated during synchronization.") + @visibility(Lifecycle.Read) + @minValue(0) + updated?: int32; + + @doc("Count of catalog items that were unchanged during synchronization.") + @visibility(Lifecycle.Read) + @minValue(0) + unchanged?: int32; + + @doc("Count of catalog items removed during synchronization.") + @visibility(Lifecycle.Read) + @minValue(0) + removed?: int32; + + @doc("Count of catalog items that had validation errors during synchronization.") + @visibility(Lifecycle.Read) + @minValue(0) + validationErrors?: int32; + + @doc("Count of synchronization errors that occured during synchronization.") + @visibility(Lifecycle.Read) + @minValue(0) + synchronizationErrors?: int32; + + @doc("Indicates catalog item types that were synced.") + syncedCatalogItemTypes?: CatalogItemType[]; +} + +@doc("Properties of a catalog. These properties can be updated after the resource has been created.") +model CatalogUpdateProperties { + @doc("Properties for a GitHub catalog type.") + gitHub?: GitCatalog; + + @doc("Properties for an Azure DevOps catalog type.") + adoGit?: GitCatalog; + + @doc("Indicates the type of sync that is configured for the catalog.") + syncType?: CatalogSyncType; + + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Correct representation for resource tags." + @doc("Resource tags.") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + tags?: Record; +} + +@doc("Properties for a Git repository catalog.") +model GitCatalog { + @doc("Git URI.") + uri?: string; + + @doc("Git branch.") + branch?: string; + + @doc("A reference to the Key Vault secret containing a security token to authenticate to a Git repository.") + secretIdentifier?: string; + + @doc("The folder where the catalog items can be found inside the repository.") + path?: string; +} + +@doc("The catalog's properties for partial update. Properties not provided in the update request will not be changed.") +model CatalogUpdate { + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "Legacy" + @doc("Catalog properties for update.") + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: CatalogUpdateProperties; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "Read only proxy resource without a PUT." +@doc("Properties of an environment definition.") +model EnvironmentDefinitionProperties { + @doc("A short description of the environment definition.") + @visibility(Lifecycle.Read) + description?: string; + + @doc("Input parameters passed to an environment.") + @visibility(Lifecycle.Read) + parameters?: EnvironmentDefinitionParameter[]; + + @doc("Path to the Environment Definition entrypoint file.") + @visibility(Lifecycle.Read) + templatePath?: string; + + @doc("Validation status for the environment definition.") + @visibility(Lifecycle.Read) + validationStatus?: CatalogResourceValidationStatus; +} + +@doc("Properties of an Environment Definition parameter.") +model EnvironmentDefinitionParameter { + @doc("Unique ID of the parameter.") + @visibility(Lifecycle.Read) + id?: string; + + @doc("Display name of the parameter.") + @visibility(Lifecycle.Read) + name?: string; + + @doc("Description of the parameter.") + @visibility(Lifecycle.Read) + description?: string; + + @doc("A string of one of the basic JSON types (number, integer, array, object, boolean, string).") + @visibility(Lifecycle.Read) + type?: ParameterType; + + @doc("Whether or not this parameter is read-only. If true, default should have a value.") + @visibility(Lifecycle.Read) + readOnly?: boolean; + + @doc("Whether or not this parameter is required.") + @visibility(Lifecycle.Read) + required?: boolean; +} + +@doc("List of validator error details. Populated when changes are made to the resource or its dependent resources that impact the validity of the Catalog resource.") +model CatalogResourceValidationErrorDetails { + @doc("Errors associated with resources synchronized from the catalog.") + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) + errors?: CatalogErrorDetails[]; +} + +@doc("Catalog error details") +model CatalogErrorDetails { + @doc("An identifier for the error.") + code?: string; + + @doc("A message describing the error.") + message?: string; +} + +@doc("Synchronization error details.") +model SyncErrorDetails { + @doc("Error information for the overall synchronization operation.") + @visibility(Lifecycle.Read) + operationError?: CatalogErrorDetails; + + @doc("Catalog items that have conflicting names.") + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) + conflicts?: CatalogConflictError[]; + + @doc("Errors that occured during synchronization.") + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) + errors?: CatalogSyncError[]; +} + +@doc("An individual conflict error.") +model CatalogConflictError { + @doc("The path of the file that has a conflicting name.") + @visibility(Lifecycle.Read) + path?: string; + + @doc("Name of the conflicting catalog item.") + @visibility(Lifecycle.Read) + name?: string; +} + +@doc("An individual synchronization error.") +model CatalogSyncError { + @doc("The path of the file the error is associated with.") + @visibility(Lifecycle.Read) + path?: string; + + @doc("Errors associated with the file.") + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) + errorDetails?: CatalogErrorDetails[]; +} + +@doc("Properties of a gallery.") +model GalleryProperties { + @doc("The provisioning state of the resource.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @doc("The resource ID of the backing Azure Compute Gallery.") + @visibility(Lifecycle.Read, Lifecycle.Create) + galleryResourceId: string; +} + +@doc("Properties of an image.") +model ImageProperties { + @doc("The description of the image.") + @visibility(Lifecycle.Read) + description?: string; + + @doc("The publisher of the image.") + @visibility(Lifecycle.Read) + publisher?: string; + + @doc("The name of the image offer.") + @visibility(Lifecycle.Read) + offer?: string; + + @doc("The SKU name for the image.") + @visibility(Lifecycle.Read) + sku?: string; + + @doc("The recommended machine configuration to use with the image.") + @visibility(Lifecycle.Read) + recommendedMachineConfiguration?: RecommendedMachineConfiguration; + + @doc("The provisioning state of the resource.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @doc("Indicates whether this image has hibernate enabled. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate") + @visibility(Lifecycle.Read) + hibernateSupport?: HibernateSupport; +} + +@doc("Properties for a recommended machine configuration.") +model RecommendedMachineConfiguration { + @doc("Recommended memory range.") + @visibility(Lifecycle.Read) + memory?: ResourceRange; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "Legacy, cannot change existing name." + @doc("Recommended vCPU range.") + @visibility(Lifecycle.Read) + vCPUs?: ResourceRange; +} + +@doc("Properties for a range of values.") +model ResourceRange { + @doc("Minimum value.") + @visibility(Lifecycle.Read) + min?: int32; + + @doc("Maximum value.") + @visibility(Lifecycle.Read) + max?: int32; +} + +@doc("Properties of an image version.") +model ImageVersionProperties { + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-duplicate-property" "Safe to suppress for an existing API during TypeSpec conversion." + @doc("The semantic version string.") + @visibility(Lifecycle.Read) + name?: string; + + @doc("The datetime that the backing image version was published.") + @visibility(Lifecycle.Read) + publishedDate?: utcDateTime; + + @doc("If the version should be excluded from being treated as the latest version.") + @visibility(Lifecycle.Read) + excludeFromLatest?: boolean; + + @doc("The size of the OS disk image, in GB.") + @visibility(Lifecycle.Read) + osDiskImageSizeInGb?: int32; + + @doc("The provisioning state of the resource.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; +} + +@doc("Results of the Microsoft.DevCenter SKU list operation.") +model SkuListResult is Azure.Core.Page; + +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Legacy. Maintain compatibility with existing models." +@doc("The resource model definition representing SKU for DevCenter resources.") +model DevCenterSku extends Azure.ResourceManager.CommonTypes.Sku { + @doc("The name of the resource type.") + @visibility(Lifecycle.Read) + resourceType?: string; + + @doc("SKU supported locations.") + @visibility(Lifecycle.Read) + locations?: string[]; + + @doc("Collection of name/value pairs to describe the SKU capabilities.") + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) + capabilities?: Capability[]; +} + +@doc("A name/value pair to describe a capability.") +model Capability { + @doc("Name of the capability.") + @visibility(Lifecycle.Read) + name?: string; + + @doc("Value of the capability.") + @visibility(Lifecycle.Read) + value?: string; +} + +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Legacy. Maintain compatibility with existing models." +@doc("Properties of an environment type.") +model EnvironmentTypeProperties extends EnvironmentTypeUpdateProperties { + @doc("The provisioning state of the resource.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; +} + +@doc("Properties of an environment type. These properties can be updated after the resource has been created.") +model EnvironmentTypeUpdateProperties { + @doc("The display name of the environment type.") + displayName?: string; +} + +@doc("The environment type for partial update. Properties not provided in the update request will not be changed.") +model EnvironmentTypeUpdate { + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "Legacy" + @doc("Properties of an environment type to be updated.") + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: EnvironmentTypeUpdateProperties; + + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Correct representation for resource tags." + @doc("Resource tags.") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + tags?: Record; +} + +@doc("Properties of an allowed environment type.") +model AllowedEnvironmentTypeProperties { + @doc("The provisioning state of the resource.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @doc("The display name of the allowed environment type.") + @visibility(Lifecycle.Read) + displayName?: string; +} + +model AllowedEnvironmentTypeListResult + is Azure.Core.Page; + +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Legacy. Maintain compatibility with existing models." +@doc("Properties of a project environment type.") +model ProjectEnvironmentTypeProperties + extends ProjectEnvironmentTypeUpdateProperties { + @doc("The provisioning state of the resource.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @doc("The number of environments of this type.") + @visibility(Lifecycle.Read) + @minValue(0) + environmentCount?: int32; +} + +@doc("Properties of a project environment type. These properties can be updated after the resource has been created.") +model ProjectEnvironmentTypeUpdateProperties { + @doc("Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this subscription.") + deploymentTargetId?: string; + + @doc("The display name of the project environment type.") + displayName?: string; + + @doc("Defines whether this Environment Type can be used in this Project.") + status?: EnvironmentTypeEnableStatus; + + @doc("The role definition assigned to the environment creator on backing resources.") + creatorRoleAssignment?: ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment; + + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Correct representation for resource tags." + @doc("Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role definition IDs.") + userRoleAssignments?: Record; +} + +@doc("The role definition assigned to the environment creator on backing resources.") +model ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment { + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Correct representation for resource tags." + @doc("A map of roles to assign to the environment creator.") + roles?: Record; +} + +@doc("A role that can be assigned to a user.") +model EnvironmentRole { + @doc("The common name of the Role Assignment. This is a descriptive name such as 'AcrPush'.") + @visibility(Lifecycle.Read) + roleName?: string; + + @doc("This is a description of the Role Assignment.") + @visibility(Lifecycle.Read) + description?: string; +} + +@doc("Mapping of user object ID to role assignments.") +model UserRoleAssignment { + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Correct representation for resource tags." + @doc("A map of roles to assign to the parent user.") + roles?: Record; +} + +@doc("The project environment type for partial update. Properties not provided in the update request will not be changed.") +model ProjectEnvironmentTypeUpdate { + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "Legacy" + @doc("Properties to configure an environment type.") + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: ProjectEnvironmentTypeUpdateProperties; + + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Correct representation for resource tags." + @doc("Resource tags.") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + tags?: Record; + + @doc("Managed identity properties.") + identity?: Azure.ResourceManager.CommonTypes.ManagedServiceIdentity; +} + +model DevBoxDefinitionListResult is Azure.Core.Page; + +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Legacy. Maintain compatibility with existing models." +@doc("Properties of a Dev Box definition.") +model DevBoxDefinitionProperties extends DevBoxDefinitionUpdateProperties { + @doc("The provisioning state of the resource.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @doc("Validation status of the configured image.") + @visibility(Lifecycle.Read) + imageValidationStatus?: ImageValidationStatus; + + @doc("Details for image validator error. Populated when the image validation is not successful.") + @visibility(Lifecycle.Read) + imageValidationErrorDetails?: ImageValidationErrorDetails; + + @doc("Validation status for the Dev Box Definition.") + @visibility(Lifecycle.Read) + validationStatus?: CatalogResourceValidationStatus; + + @doc("Image reference information for the currently active image (only populated during updates).") + @visibility(Lifecycle.Read) + activeImageReference?: ImageReference; +} + +@doc("Image validation error details.") +model ImageValidationErrorDetails { + @doc("An identifier for the error.") + code?: string; + + @doc("A message describing the error.") + message?: string; +} + +@doc("Image reference information.") +model ImageReference { + @doc("Image ID, or Image version ID. When Image ID is provided, its latest version will be used.") + id?: string; + + @doc("The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual version in use.") + @visibility(Lifecycle.Read) + exactVersion?: string; +} + +@doc("Properties of a Dev Box definition. These properties can be updated after the resource has been created.") +model DevBoxDefinitionUpdateProperties { + @doc("Image reference information.") + imageReference?: ImageReference; + + @doc("The SKU for Dev Boxes created using this definition.") + sku?: Azure.ResourceManager.CommonTypes.Sku; + + @doc("The storage type used for the Operating System disk of Dev Boxes created using this definition.") + osStorageType?: string; + + @doc("Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate") + hibernateSupport?: HibernateSupport; +} + +@doc("Partial update of a Dev Box definition resource.") +model DevBoxDefinitionUpdate is TrackedResourceUpdate { + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "Legacy" + @doc("Properties of a Dev Box definition to be updated.") + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: DevBoxDefinitionUpdateProperties; +} + +@doc("Localized display information for this particular operation.") +model OperationDisplay { + @doc("The localized friendly form of the resource provider name, e.g. 'Microsoft Monitoring Insights' or 'Microsoft Compute'.") + @visibility(Lifecycle.Read) + provider?: string; + + @doc("The localized friendly name of the resource type related to this operation. E.g. 'Virtual Machines' or 'Job Schedule Collections'.") + @visibility(Lifecycle.Read) + resource?: string; + + @doc("The concise, localized friendly name for the operation; suitable for dropdowns. E.g. 'Create or Update Virtual Machine', 'Restart Virtual Machine'.") + @visibility(Lifecycle.Read) + operation?: string; + + @doc("The short, localized friendly description of the operation; suitable for tool tips and detailed views.") + @visibility(Lifecycle.Read) + description?: string; +} + +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Legacy. Maintain compatibility with existing models." +@doc("The current status of an async operation") +model OperationStatus + extends Azure.ResourceManager.CommonTypes.OperationStatusResult { + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Legacy API. Closest type we can get to describe object." + @doc("Custom operation properties, populated only for a successful operation.") + @visibility(Lifecycle.Read) + properties?: Record; +} + +@doc("List of Core Usages.") +model ListUsagesResult is Azure.Core.Page; + +@doc("The core usage details.") +model Usage { + @doc("The current usage.") + currentValue?: int64; + + @doc("The limit integer.") + limit?: int64; + + @doc("The unit details.") + unit?: UsageUnit; + + @doc("The name.") + name?: UsageName; + + @doc("The fully qualified arm resource id.") + id?: string; +} + +@doc("The Usage Names.") +model UsageName { + @doc("The localized name of the resource.") + localizedValue?: string; + + @doc("The name of the resource.") + value?: string; +} + +@doc("The scoped name check availability request body.") +model CheckScopedNameAvailabilityRequest { + @doc("The name of the resource for which availability needs to be checked.") + name?: string; + + @doc("The resource type.") + type?: string; + + @doc("The resource id to scope the name check.") + scope?: string; +} + +model CustomizationTaskListResult is Azure.Core.Page; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "Read only proxy resource without a PUT." +@doc("Properties of a Task.") +model CustomizationTaskProperties { + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Correct representation for resource tags." + @doc("Inputs to the task.") + @visibility(Lifecycle.Read) + inputs?: Record; + + @doc("The default timeout for the task.") + @visibility(Lifecycle.Read) + timeout?: int32; + + @doc("Validation status for the Task.") + @visibility(Lifecycle.Read) + validationStatus?: CatalogResourceValidationStatus; +} + +@doc("Input for a Task.") +model CustomizationTaskInput { + @doc("Description of the input.") + @visibility(Lifecycle.Read) + description?: string; + + @doc("Type of the input.") + @visibility(Lifecycle.Read) + type?: CustomizationTaskInputType; + + @doc("Whether or not the input is required.") + @visibility(Lifecycle.Read) + required?: boolean; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "Read only proxy resource without a PUT." +@doc("Properties of an Image Definition.") +model ImageDefinitionProperties { + @doc("Image reference information.") + imageReference?: ImageReference; + + @doc("The URL to the repository file containing the image definition.") + @visibility(Lifecycle.Read) + fileUrl?: string; + + @doc("Details about the latest build.") + latestBuild?: LatestImageBuild; + + @doc("Validation status of the configured image.") + @visibility(Lifecycle.Read) + imageValidationStatus?: ImageValidationStatus; + + @doc("Details for image validator error. Populated when the image validation is not successful.") + @visibility(Lifecycle.Read) + imageValidationErrorDetails?: ImageValidationErrorDetails; + + @doc("Validation status for the Image Definition.") + @visibility(Lifecycle.Read) + validationStatus?: CatalogResourceValidationStatus; + + @doc("Image reference information for the currently active image (only populated during updates).") + @visibility(Lifecycle.Read) + activeImageReference?: ImageReference; + + @doc("Indicates if automatic image builds will be triggered for image definition updates") + @visibility(Lifecycle.Read) + autoImageBuild?: AutoImageBuildStatus; + + @doc("Tasks to run at Dev Box provisioning time.") + tasks?: CustomizationTaskInstance[]; + + @doc("Tasks to run when a user first logs into a Dev Box.") + userTasks?: CustomizationTaskInstance[]; + + @doc("Another Image Definition that this one extends.") + `extends`?: ImageDefinitionReference; +} + +@doc("Details about the latest build.") +model LatestImageBuild { + @doc("Identifier of a build.") + @visibility(Lifecycle.Read) + name?: string; + + @doc("Start time of the task group.") + @visibility(Lifecycle.Read) + startTime?: utcDateTime; + + @doc("End time of the task group.") + @visibility(Lifecycle.Read) + endTime?: utcDateTime; + + @doc("The state of an Image Definition Build.") + @visibility(Lifecycle.Read) + status?: ImageDefinitionBuildStatus; +} + +@doc("A customization task to run.") +model CustomizationTaskInstance { + @doc("Name of the task.") + name: string; + + @doc("Parameters for the task.") + parameters?: DefinitionParametersItem[]; + + @doc("Display name to help differentiate multiple instances of the same task.") + displayName?: string; + + @doc("Timeout, in seconds. Overrides any timeout provided on the task definition.") + timeoutInSeconds?: int32; + + @doc("An expression that must evaluate to true in order for the task to run.") + condition?: string; +} + +@doc("Parameters for the task.") +model DefinitionParametersItem { + @doc("Name of the parameter.") + name: string; + + @doc("value of the parameter.") + value: string; +} + +@doc("A reference to an Image Definition.") +model ImageDefinitionReference { + @doc("Name of the referenced Image Definition.") + imageDefinition: string; + + @doc("Parameters for the referenced Image Definition.") + parameters?: DefinitionParametersItem[]; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "Read only proxy resource without a PUT." +@doc("Properties of an Image Definition Build.") +model ImageDefinitionBuildProperties { + @doc("The specific image version used by the build.") + @visibility(Lifecycle.Read) + imageReference?: ImageReference; + + @doc("The status of the build.") + @visibility(Lifecycle.Read) + status?: ImageDefinitionBuildStatus; + + @doc("Start time of the task group.") + @visibility(Lifecycle.Read) + startTime?: utcDateTime; + + @doc("End time of the task group.") + @visibility(Lifecycle.Read) + endTime?: utcDateTime; + + @doc("Details for image creation error. Populated when the image creation is not successful.") + @visibility(Lifecycle.Read) + errorDetails?: ImageCreationErrorDetails; +} + +@doc("Image creation error details.") +model ImageCreationErrorDetails { + @doc("An identifier for the error.") + code?: string; + + @doc("A message describing the error.") + message?: string; +} + +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Legacy. Maintain compatibility with existing models." +@doc("Represents a specific build of an Image Definition.") +model ImageDefinitionBuildDetails + extends Azure.ResourceManager.CommonTypes.ProxyResource { + @doc("The specific image version used by the build.") + @visibility(Lifecycle.Read) + imageReference?: ImageReference; + + @doc("The status of the build.") + @visibility(Lifecycle.Read) + status?: ImageDefinitionBuildStatus; + + @doc("Start time of the task group.") + @visibility(Lifecycle.Read) + startTime?: utcDateTime; + + @doc("End time of the task group.") + @visibility(Lifecycle.Read) + endTime?: utcDateTime; + + @doc("Details for image creation error. Populated when the image creation is not successful.") + @visibility(Lifecycle.Read) + errorDetails?: ImageCreationErrorDetails; + + @doc("The list of task groups executed during the image definition build.") + @visibility(Lifecycle.Read) + taskGroups?: ImageDefinitionBuildTaskGroup[]; +} + +@doc("A task group executed during the image definition build.") +model ImageDefinitionBuildTaskGroup { + @doc("The name of the task group.") + @visibility(Lifecycle.Read) + name?: string; + + @doc("The status of the task group.") + @visibility(Lifecycle.Read) + status?: ImageDefinitionBuildStatus; + + @doc("Start time of the task group.") + @visibility(Lifecycle.Read) + startTime?: utcDateTime; + + @doc("End time of the task group.") + @visibility(Lifecycle.Read) + endTime?: utcDateTime; + + @doc("The list of tasks executed during the task group.") + @visibility(Lifecycle.Read) + tasks?: ImageDefinitionBuildTask[]; +} + +@doc("A task executed during the image definition build.") +model ImageDefinitionBuildTask { + @doc("The name of the task.") + name?: string; + + @doc("Parameters for the task.") + @OpenAPI.extension("x-ms-identifiers", #[]) + parameters?: ImageDefinitionBuildTaskParametersItem[]; + + @doc("Display name to help differentiate multiple instances of the same task.") + displayName?: string; + + @doc("ID of the task instance.") + @visibility(Lifecycle.Read) + id?: string; + + @doc("Start time of the task.") + @visibility(Lifecycle.Read) + startTime?: utcDateTime; + + @doc("End time of the task.") + @visibility(Lifecycle.Read) + endTime?: utcDateTime; + + @doc("The status of the task.") + @visibility(Lifecycle.Read) + status?: ImageDefinitionBuildStatus; + + @doc("The URI for retrieving logs for the task execution.") + @visibility(Lifecycle.Read) + logUri?: string; +} + +@doc("Parameters for an image definition build task.") +model ImageDefinitionBuildTaskParametersItem { + @doc("Key of the parameter.") + key: string; + + @doc("Value of the parameter.") + value: string; +} + +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Legacy. Maintain compatibility with existing models." +@doc("Properties of a Pool.") +model PoolProperties extends PoolUpdateProperties { + @doc("Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes.") + @visibility(Lifecycle.Read) + healthStatus?: HealthStatus; + + @doc("Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool is in a non-healthy state") + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #["code"]) + healthStatusDetails?: HealthStatusDetail[]; + + @doc("Indicates the number of provisioned Dev Boxes in this pool.") + @visibility(Lifecycle.Read) + devBoxCount?: int32; + + @doc("The provisioning state of the resource.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; +} + +@doc("Pool health status detail.") +model HealthStatusDetail { + @doc("An identifier for the issue.") + @visibility(Lifecycle.Read) + code?: string; + + @doc("A message describing the issue, intended to be suitable for display in a user interface") + @visibility(Lifecycle.Read) + message?: string; +} + +@doc("Properties of a Pool. These properties can be updated after the resource has been created.") +model PoolUpdateProperties { + @doc("Indicates if the pool is created from an existing Dev Box Definition or if one is provided directly.") + devBoxDefinitionType?: PoolDevBoxDefinitionType; + + @doc("Name of a Dev Box definition in parent Project of this Pool. Will be ignored if devBoxDefinitionType is Value.") + devBoxDefinitionName?: string; + + @doc("A definition of the machines that are created from this Pool. Will be ignored if devBoxDefinitionType is Reference or not provided.") + devBoxDefinition?: PoolDevBoxDefinition; + + @doc("Name of a Network Connection in parent Project of this Pool.") + networkConnectionName?: string; + + @doc("Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.") + licenseType?: LicenseType; + + @doc("Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.") + localAdministrator?: LocalAdminStatus; + + @doc("Stop on disconnect configuration settings for Dev Boxes created in this pool.") + stopOnDisconnect?: StopOnDisconnectConfiguration; + + @doc("Stop on no connect configuration settings for Dev Boxes created in this pool.") + stopOnNoConnect?: StopOnNoConnectConfiguration; + + @doc("Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on be enabled on the tenant.") + singleSignOnStatus?: SingleSignOnStatus; + + @doc("The display name of the pool.") + displayName?: string; + + @doc("Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network.") + virtualNetworkType?: VirtualNetworkType; + + @doc("The regions of the managed virtual network (required when managedNetworkType is Managed).") + managedVirtualNetworkRegions?: string[]; + + @doc("Active hours configuration settings for Dev Boxes created in this pool.") + activeHoursConfiguration?: ActiveHoursConfiguration; + + @doc("Indicates whether Dev Box Tunnel is enabled for a the pool.") + devBoxTunnelEnableStatus?: DevBoxTunnelEnableStatus; +} + +@doc("Represents a definition for a Developer Machine.") +model PoolDevBoxDefinition { + @doc("Image reference information.") + imageReference?: ImageReference; + + @doc("The SKU for Dev Boxes created from the Pool.") + sku?: Azure.ResourceManager.CommonTypes.Sku; + + @doc("Image reference information for the currently active image (only populated during updates).") + @visibility(Lifecycle.Read) + activeImageReference?: ImageReference; +} + +@doc("Stop on disconnect configuration settings for Dev Boxes created in this pool.") +model StopOnDisconnectConfiguration { + @doc("Whether the feature to stop the Dev Box 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("Stop on no connect configuration settings for Dev Boxes created in this pool.") +model StopOnNoConnectConfiguration { + @doc("Enables the feature to stop a started Dev Box when it has not been connected to, once the grace period has lapsed.") + status?: StopOnNoConnectEnableStatus; + + @doc("The specified time in minutes to wait before stopping a Dev Box if no connection is made.") + gracePeriodMinutes?: int32; +} + +@doc("Active hours configuration.") +model ActiveHoursConfiguration { + @doc("Enables or disables whether the Dev Box should be kept awake during active hours.") + keepAwakeEnableStatus?: KeepAwakeEnableStatus; + + @doc("Enables or disables whether the Dev Box should be automatically started at commencement of active hours.") + autoStartEnableStatus?: AutoStartEnableStatus; + + @doc("The default IANA timezone id of the active hours.") + defaultTimeZone?: string; + + @doc("The default start time of the active hours.") + defaultStartTimeHour?: int32; + + @doc("The default end time of the active hours.") + defaultEndTimeHour?: int32; + + @doc("The days of the week that active hours features will be enabled. This serves as a default that can be updated by each individual user.") + defaultDaysOfWeek?: DayOfWeek[]; + + @doc("The maximum amount of days per week that a user can enable active hours related features.") + daysOfWeekLimit?: int32; +} + +@doc("The pool properties for partial update. Properties not provided in the update request will not be changed.") +model PoolUpdate is TrackedResourceUpdate { + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "Legacy" + @doc("Properties of a pool to be updated.") + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: PoolUpdateProperties; +} + +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Legacy. Maintain compatibility with existing models." +@doc("The Schedule properties defining when and what to execute.") +model ScheduleProperties extends ScheduleUpdateProperties { + @doc("The provisioning state of the resource.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; +} + +@doc("Updatable properties of a Schedule.") +model ScheduleUpdateProperties is TrackedResourceUpdate { + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-duplicate-property" "Safe to suppress for an existing API during TypeSpec conversion." + @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("Indicates whether or not this scheduled task is enabled.") + state?: ScheduleEnableStatus; +} + +@doc("The schedule properties for partial update. Properties not provided in the update request will not be changed.") +model ScheduleUpdate { + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "Legacy" + @doc("Properties of a schedule resource to be updated.") + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: ScheduleUpdateProperties; +} + +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Legacy. Maintain compatibility with existing models." +@doc("Network properties") +model NetworkProperties extends NetworkConnectionUpdateProperties { + @doc("The provisioning state of the resource.") + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + @doc("Overall health status of the network connection. Health checks are run on creation, update, and periodically to validate the network connection.") + @visibility(Lifecycle.Read) + healthCheckStatus?: HealthCheckStatus; + + @doc("The name for resource group where NICs will be placed.") + @visibility(Lifecycle.Read, Lifecycle.Create) + networkingResourceGroupName?: string; + + @doc("AAD Join type.") + @visibility(Lifecycle.Read, Lifecycle.Create) + domainJoinType: DomainJoinType; +} + +@doc("Properties of network connection. These properties can be updated after the resource has been created.") +model NetworkConnectionUpdateProperties { + @doc("The subnet to attach Virtual Machines to.") + subnetId?: string; + + @doc("Active Directory domain name.") + domainName?: string; + + @doc("Active Directory domain Organization Unit (OU).") + organizationUnit?: string; + + @doc("The username of an Active Directory account (user or service account) that has permissions to create computer objects in Active Directory. Required format: admin@contoso.com.") + domainUsername?: string; + + @doc("The password for the account used to join domain.") + @secret + domainPassword?: string; +} + +@doc("The network connection properties for partial update. Properties not provided in the update request will not be changed.") +model NetworkConnectionUpdate is TrackedResourceUpdate { + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "Legacy" + @doc("Properties of a network connection resource to be updated.") + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: NetworkConnectionUpdateProperties; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "Read only proxy resource without a PUT." +@doc("Health Check properties.") +model HealthCheckStatusDetailsProperties { + @doc("Start time of last execution of the health checks.") + @visibility(Lifecycle.Read) + startDateTime?: utcDateTime; + + @doc("End time of last execution of the health checks.") + @visibility(Lifecycle.Read) + endDateTime?: utcDateTime; + + @doc("Details for each health check item.") + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) + healthChecks?: HealthCheck[]; +} + +@doc("An individual health check item.") +model HealthCheck { + @doc("The status of the health check item.") + @visibility(Lifecycle.Read) + status?: HealthCheckStatus; + + @doc("The display name of this health check item.") + @visibility(Lifecycle.Read) + displayName?: string; + + @doc("Start time of health check item.") + @visibility(Lifecycle.Read) + startDateTime?: utcDateTime; + + @doc("End time of the health check item.") + @visibility(Lifecycle.Read) + endDateTime?: utcDateTime; + + @doc("The type of error that occurred during this health check.") + @visibility(Lifecycle.Read) + errorType?: string; + + @doc("The recommended action to fix the corresponding error.") + @visibility(Lifecycle.Read) + recommendedAction?: string; + + @doc("Additional details about the health check or the recommended action.") + @visibility(Lifecycle.Read) + additionalDetails?: string; +} + +@doc("Values returned by the List operation.") +model OutboundEnvironmentEndpointCollection + is Azure.Core.Page; + +@doc("A collection of related endpoints from the same service for which the agent requires outbound access.") +model OutboundEnvironmentEndpoint { + @doc("The type of service that the agent connects to.") + @visibility(Lifecycle.Read) + category?: string; + + @doc("The endpoints for this service for which the agent requires outbound access.") + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #["domainName"]) + endpoints?: EndpointDependency[]; +} + +@doc("A domain name and connection details used to access a dependency.") +model EndpointDependency { + @doc("The domain name of the dependency. Domain names may be fully qualified or may contain a * wildcard.") + @visibility(Lifecycle.Read) + domainName?: string; + + @doc("Human-readable supplemental information about the dependency and when it is applicable.") + @visibility(Lifecycle.Read) + description?: string; + + @doc("The list of connection details for this endpoint.") + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) + endpointDetails?: EndpointDetail[]; +} + +@doc("Details about the connection between the Batch service and the endpoint.") +model EndpointDetail { + @doc("The port an endpoint is connected to.") + @visibility(Lifecycle.Read) + port?: int32; +} + +model EnvironmentDefinitionListResult is Azure.Core.Page; + +model EnvironmentTypeListResult is Azure.Core.Page; + +model GalleryListResult is Azure.Core.Page; + +model HealthCheckStatusDetailsListResult + is Azure.Core.Page; + +model ImageDefinitionBuildListResult is Azure.Core.Page; + +model ImageDefinitionListResult is Azure.Core.Page; + +model ImageListResult is Azure.Core.Page; + +model ImageVersionListResult is Azure.Core.Page; + +model NetworkConnectionListResult is Azure.Core.Page; + +model PoolListResult is Azure.Core.Page; + +model ProjectEnvironmentTypeListResult + is Azure.Core.Page; + +model ProjectListResult is Azure.Core.Page; + +model ProjectPolicyListResult is Azure.Core.Page; + +model ScheduleListResult is Azure.Core.Page; + +model CatalogListResult is Azure.Core.Page; + +@@visibility(AllowedEnvironmentTypeListResult.value, Lifecycle.Read); +@@visibility(AttachedNetworkListResult.value, Lifecycle.Read); +@@visibility(CustomizationTaskListResult.value, Lifecycle.Read); +@@visibility(DevBoxDefinitionListResult.value, Lifecycle.Read); +@@visibility(DevCenterListResult.value, Lifecycle.Read); +@@visibility(EncryptionSetListResult.value, Lifecycle.Read); +@@OpenAPI.extension(OutboundEnvironmentEndpointCollection.value, + "x-ms-identifiers", + #["category"] +); +@@visibility(EnvironmentDefinitionListResult.value, Lifecycle.Read); +@@visibility(EnvironmentTypeListResult.value, Lifecycle.Read); +@@visibility(GalleryListResult.value, Lifecycle.Read); +@@visibility(HealthCheckStatusDetailsListResult.value, Lifecycle.Read); +@@visibility(ImageDefinitionBuildListResult.value, Lifecycle.Read); +@@visibility(ImageDefinitionListResult.value, Lifecycle.Read); +@@visibility(ImageListResult.value, Lifecycle.Read); +@@visibility(ImageVersionListResult.value, Lifecycle.Read); +@@visibility(ListUsagesResult.value, Lifecycle.Read); +@@visibility(NetworkConnectionListResult.value, Lifecycle.Read); +@@visibility(OutboundEnvironmentEndpointCollection.value, Lifecycle.Read); +@@visibility(PoolListResult.value, Lifecycle.Read); +@@visibility(ProjectEnvironmentTypeListResult.value, Lifecycle.Read); +@@visibility(ProjectListResult.value, Lifecycle.Read); +@@visibility(ProjectPolicyListResult.value, Lifecycle.Read); +@@visibility(ScheduleListResult.value, Lifecycle.Read); +@@visibility(SkuListResult.value, Lifecycle.Read); +@@visibility(CatalogListResult.value, Lifecycle.Read); diff --git a/specification/devcenter/DevCenter.Management/routes.tsp b/specification/devcenter/DevCenter.Management/routes.tsp new file mode 100644 index 000000000000..e9d6af91d279 --- /dev/null +++ b/specification/devcenter/DevCenter.Management/routes.tsp @@ -0,0 +1,95 @@ +import "@azure-tools/typespec-azure-core"; +import "@typespec/rest"; +import "./models.tsp"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; +using TypeSpec.OpenAPI; + +namespace Microsoft.DevCenter; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "Non-standard resource operation. SKU model is defined by ARM." +interface SkusOperationGroup { + @doc("Lists the Microsoft.DevCenter SKUs available in a subscription.") + @autoRoute + @get + @list + @action("skus") + listBySubscription is ArmProviderActionSync< + Response = SkuListResult, + Scope = SubscriptionActionScope, + Parameters = { + @doc("The maximum number of resources to return from the operation. Example: '$top=10'.") + @query("$top") + $top?: int32; + } + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "Non-standard resource operation." +interface OperationStatusesOperationGroup { + #suppress "@azure-tools/typespec-azure-resource-manager/no-response-body" "This is a valid response per operation status contract." + @doc("Gets the current status of an async operation.") + @summary("Get Operation Status") + @route("/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/operationStatuses/{operationId}") + @get + get( + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...LocationResourceParameter, + + @doc("The ID of an ongoing async operation.") + @path + operationId: string, + ): ArmResponse | (AcceptedResponse & { + @body + _: OperationStatus; + + @doc("The Location header contains the URL where the status of the long running operation can be checked.") + @header + location?: string; + }) | ErrorResponse; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "Non-standard resource operation." +interface UsagesOperationGroup { + @doc("Lists the current usages and limits in this location for the provided subscription.") + @autoRoute + @list + @get + @action("usages") + listByLocation is ArmProviderActionSync< + Response = ListUsagesResult, + Scope = SubscriptionActionScope, + Parameters = LocationParameter + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "Non-standard resource operation." +interface CheckNameAvailabilityOperationGroup { + @doc("Check the availability of name for resource.") + @autoRoute + @action("checkNameAvailability") + execute is ArmProviderActionSync< + Request = Azure.ResourceManager.CommonTypes.CheckNameAvailabilityRequest, + Response = Azure.ResourceManager.CommonTypes.CheckNameAvailabilityResponse, + Scope = SubscriptionActionScope, + Parameters = {} + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "Non-standard resource operation." +interface CheckScopedNameAvailabilityOperationGroup { + @doc("Check the availability of name for resource.") + @autoRoute + @action("checkScopedNameAvailability") + execute is ArmProviderActionSync< + Request = CheckScopedNameAvailabilityRequest, + Response = Azure.ResourceManager.CommonTypes.CheckNameAvailabilityResponse, + Scope = SubscriptionActionScope, + Parameters = {} + >; +} diff --git a/specification/devcenter/DevCenter.Management/tspconfig.yaml b/specification/devcenter/DevCenter.Management/tspconfig.yaml new file mode 100644 index 000000000000..91416256798e --- /dev/null +++ b/specification/devcenter/DevCenter.Management/tspconfig.yaml @@ -0,0 +1,55 @@ +parameters: + "service-dir": + default: "sdk/devcenter" +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + omit-unreachable-types: true + emitter-output-dir: "{project-root}/.." + azure-resource-provider-folder: "resource-manager" + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/devcenter.json" + emit-lro-options: "all" + examples-dir: "{project-root}/examples" + arm-resource-flattening: true + use-read-only-status-schema: true + "@azure-tools/typespec-csharp": + namespace: "Azure.ResourceManager.DevCenter" + emitter-output-dir: "{output-dir}/{service-dir}/{namespace}" + clear-output-folder: true + flavor: "azure" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-devcenter" + namespace: "azure.mgmt.devcenter" + generate-test: true + generate-sample: true + flavor: "azure" + "@azure-tools/typespec-java": + package-dir: "azure-resourcemanager-devcenter" + namespace: "com.azure.resourcemanager.devcenter" + service-name: "DevCenter" # human-readable service name, whitespace allowed + flavor: azure + resource-collection-associations: + - resource: Catalog + collection: ProjectCatalogs + "@azure-tools/typespec-ts": + package-dir: "arm-devcenter" + is-modular-library: true + flavor: "azure" + experimental-extensible-enums: true + package-details: + name: "@azure/arm-devcenter" + "@azure-tools/typespec-go": + service-dir: "sdk/resourcemanager/devcenter" + package-dir: "armdevcenter" + emitter-output-dir: "{output-dir}/{service-dir}/armdevcenter" + module: "github.com/Azure/azure-sdk-for-go/{service-dir}/armdevcenter" + fix-const-stuttering: true + flavor: "azure" + generate-samples: true + generate-fakes: true + head-as-boolean: true + inject-spans: true +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/devcenter/cspell.yaml b/specification/devcenter/cspell.yaml index 803a283083d8..50340a75562a 100644 --- a/specification/devcenter/cspell.yaml +++ b/specification/devcenter/cspell.yaml @@ -16,4 +16,5 @@ words: - occured - represeted - vcpus + - armdevcenter diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/commonDefinitions.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/commonDefinitions.json deleted file mode 100644 index d1782b91d467..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/commonDefinitions.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2025-07-01-preview", - "title": "DevCenter", - "description": "DevCenter Management API" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": {}, - "definitions": { - "Capability": { - "description": "A name/value pair to describe a capability.", - "type": "object", - "properties": { - "name": { - "description": "Name of the capability.", - "type": "string", - "readOnly": true - }, - "value": { - "description": "Value of the capability.", - "type": "string", - "readOnly": true - } - } - }, - "TrackedResourceUpdate": { - "description": "Base tracked resource type for PATCH updates", - "type": "object", - "properties": { - "tags": { - "$ref": "#/definitions/Tags", - "description": "Resource tags." - }, - "location": { - "type": "string", - "x-ms-mutability": [ - "read", - "create" - ], - "description": "The geo-location where the resource lives" - } - } - }, - "Tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-ms-mutability": [ - "read", - "create", - "update" - ], - "description": "Resource tags." - }, - "DevCenterSku": { - "description": "The resource model definition representing SKU for DevCenter resources", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Sku" - } - ], - "properties": { - "resourceType": { - "type": "string", - "description": "The name of the resource type", - "readOnly": true - }, - "locations": { - "description": "SKU supported locations.", - "type": "array", - "readOnly": true, - "items": { - "type": "string" - } - }, - "capabilities": { - "description": "Collection of name/value pairs to describe the SKU capabilities.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/Capability" - }, - "x-ms-identifiers": [] - } - }, - "required": [ - "name" - ] - }, - "ProvisioningState": { - "type": "string", - "description": "Provisioning state of the resource.", - "enum": [ - "NotSpecified", - "Accepted", - "Running", - "Creating", - "Created", - "Updating", - "Updated", - "Deleting", - "Deleted", - "Succeeded", - "Failed", - "Canceled", - "MovingResources", - "TransientFailure", - "RolloutInProgress", - "StorageProvisioningFailed" - ], - "readOnly": true, - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - } - } - }, - "parameters": { - "ProjectNameParameter": { - "name": "projectName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the project.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "TopParameter": { - "name": "$top", - "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" - } - } -} diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/devcenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/devcenter.json index b8fd5956193e..2c656069080e 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/devcenter.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/devcenter.json @@ -1,18 +1,23 @@ { "swagger": "2.0", "info": { - "version": "2025-07-01-preview", "title": "DevCenter", - "description": "DevCenter Management API" + "version": "2025-07-01-preview", + "description": "DevCenter Management API", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] }, - "host": "management.azure.com", "schemes": [ "https" ], - "consumes": [ + "host": "management.azure.com", + "produces": [ "application/json" ], - "produces": [ + "consumes": [ "application/json" ], "security": [ @@ -25,50 +30,136 @@ "securityDefinitions": { "azure_auth": { "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "description": "Azure Active Directory OAuth2 Flow.", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": { "user_impersonation": "impersonate your user account" } } }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "Images" + }, + { + "name": "DevCenters" + }, + { + "name": "DevCenterEncryptionSets" + }, + { + "name": "ProjectPolicies" + }, + { + "name": "Projects" + }, + { + "name": "AttachedNetworks" + }, + { + "name": "AttachedNetworkConnections" + }, + { + "name": "Catalogs" + }, + { + "name": "CatalogOperationGroup" + }, + { + "name": "EnvironmentDefinitions" + }, + { + "name": "EnvironmentDefinitionOperationGroup" + }, + { + "name": "Galleries" + }, + { + "name": "ImageOperationGroup" + }, + { + "name": "ImageVersions" + }, + { + "name": "ImageVersionOperationGroup" + }, + { + "name": "EnvironmentTypes" + }, + { + "name": "AllowedEnvironmentTypes" + }, + { + "name": "ProjectEnvironmentTypes" + }, + { + "name": "DevBoxDefinitions" + }, + { + "name": "DevBoxDefinitionOperationGroup" + }, + { + "name": "CustomizationTasks" + }, + { + "name": "ImageDefinitions" + }, + { + "name": "ProjectCatalogImageDefinitions" + }, + { + "name": "ImageDefinitionBuilds" + }, + { + "name": "ProjectCatalogImageDefinitionBuild" + }, + { + "name": "Pools" + }, + { + "name": "Schedules" + }, + { + "name": "NetworkConnections" + }, + { + "name": "HealthCheckStatusDetailsOperationGroup" + } + ], "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/devcenters": { + "/providers/Microsoft.DevCenter/operations": { "get": { + "operationId": "Operations_List", "tags": [ - "DevCenters" + "Operations" ], - "description": "Lists all devcenters in a subscription.", + "description": "List the operations for the provider", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" } ], - "operationId": "DevCenters_ListBySubscription", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DevCenterListResult" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/OperationListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "DevCenters_ListBySubscription": { - "$ref": "./examples/DevCenters_ListBySubscription.json" + "Operations_Get": { + "$ref": "./examples/Operations_Get.json" } }, "x-ms-pageable": { @@ -76,312 +167,322 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters": { - "get": { - "tags": [ - "DevCenters" - ], - "description": "Lists all devcenters in a resource group.", + "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/checkNameAvailability": { + "post": { + "operationId": "CheckNameAvailability_Execute", + "description": "Check the availability of name for resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "commonDefinitions.json#/parameters/TopParameter" + "name": "nameAvailabilityRequest", + "in": "body", + "description": "The request body", + "required": true, + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/CheckNameAvailabilityRequest" + } } ], - "operationId": "DevCenters_ListByResourceGroup", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/DevCenterListResult" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/CheckNameAvailabilityResponse" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "DevCenters_ListByResourceGroup": { - "$ref": "./examples/DevCenters_ListByResourceGroup.json" + "NameAvailability": { + "$ref": "./examples/CheckNameAvailability.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}": { - "get": { - "tags": [ - "DevCenters" - ], - "description": "Gets a devcenter.", + "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/checkScopedNameAvailability": { + "post": { + "operationId": "CheckScopedNameAvailability_Execute", + "description": "Check the availability of name for resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "nameAvailabilityRequest", + "in": "body", + "description": "The request body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckScopedNameAvailabilityRequest" + } } ], - "operationId": "DevCenters_Get", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/DevCenter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/CheckNameAvailabilityResponse" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "DevCenters_Get": { - "$ref": "./examples/DevCenters_Get.json" + "DevcenterCatalogNameAvailability": { + "$ref": "./examples/CheckScopedNameAvailability_DevCenterCatalog.json" + }, + "ProjectCatalogNameAvailability": { + "$ref": "./examples/CheckScopedNameAvailability_ProjectCatalog.json" } } - }, - "put": { + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/devcenters": { + "get": { + "operationId": "DevCenters_ListBySubscription", "tags": [ "DevCenters" ], - "description": "Creates or updates a devcenter resource", + "description": "Lists all devcenters in a subscription.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "body", - "in": "body", - "description": "Represents a devcenter.", - "required": true, - "schema": { - "$ref": "#/definitions/DevCenter" - } + "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": "DevCenters_CreateOrUpdate", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "responses": { "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevCenter" - } - }, - "201": { - "description": "Created. The request will complete asynchronously.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/DevCenter" + "$ref": "#/definitions/DevCenterListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "DevCenters_Create": { - "$ref": "./examples/DevCenters_Create.json" - }, - "DevCenters_CreateWithUserIdentity": { - "$ref": "./examples/DevCenters_CreateWithUserIdentity.json" - }, - "DevCenters_CreateWithEncryption": { - "$ref": "./examples/DevCenters_CreateWithEncryption.json" - }, - "DevCenters_CreateWithDisabledManagedNetworks": { - "$ref": "./examples/DevCenters_CreateWithDisabledManagedNetworks.json" + "DevCenters_ListBySubscription": { + "$ref": "./examples/DevCenters_ListBySubscription.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "patch": { - "tags": [ - "DevCenters" - ], - "description": "Partially updates a devcenter.", + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/operationStatuses/{operationId}": { + "get": { + "operationId": "OperationStatuses_Get", + "summary": "Get Operation Status", + "description": "Gets the current status of an async operation.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/LocationParameter" }, { - "name": "body", - "in": "body", - "description": "Updatable devcenter properties.", + "name": "operationId", + "in": "path", + "description": "The ID of an ongoing async operation.", "required": true, - "schema": { - "$ref": "#/definitions/DevCenterUpdate" - } + "type": "string" } ], - "operationId": "DevCenters_Update", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DevCenter" + "$ref": "#/definitions/OperationStatus" } }, "202": { - "description": "Accepted. The request will complete asynchronously.", + "description": "The request has been accepted for processing, but processing has not yet completed.", + "schema": { + "$ref": "#/definitions/OperationStatus" + }, "headers": { - "Location": { - "type": "string" + "location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "DevCenters_Update": { - "$ref": "./examples/DevCenters_Patch.json" + "Get OperationStatus": { + "$ref": "./examples/OperationStatus_Get.json" } } - }, - "delete": { - "tags": [ - "DevCenters" - ], - "description": "Deletes a devcenter", + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/usages": { + "get": { + "operationId": "Usages_ListByLocation", + "description": "Lists the current usages and limits in this location for the provided subscription.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/LocationParameter" } ], - "operationId": "DevCenters_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/ListUsagesResult" } }, - "204": { - "description": "Resource does not exist." - }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "DevCenters_Delete": { - "$ref": "./examples/DevCenters_Delete.json" + "listUsages": { + "$ref": "./examples/Usages_ListByLocation.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/encryptionSets": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/networkConnections": { "get": { + "operationId": "NetworkConnections_ListBySubscription", "tags": [ - "EncryptionSets" + "NetworkConnections" ], - "description": "Lists all encryption sets in the devcenter.", + "description": "Lists network connections in a subscription.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "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/NetworkConnectionListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NetworkConnections_ListBySubscription": { + "$ref": "./examples/NetworkConnections_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/projects": { + "get": { + "operationId": "Projects_ListBySubscription", + "tags": [ + "Projects" + ], + "description": "Lists all projects in the subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "commonDefinitions.json#/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": "EncryptionSets_List", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/EncryptionSetListResult" + "$ref": "#/definitions/ProjectListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "EncryptionSets_List": { - "$ref": "./examples/DevCenterEncryptionSets_List.json" + "Projects_ListBySubscription": { + "$ref": "./examples/Projects_ListBySubscription.json" } }, "x-ms-pageable": { @@ -389,209 +490,339 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/encryptionSets/{encryptionSetName}": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/skus": { + "get": { + "operationId": "Skus_ListBySubscription", + "description": "Lists the Microsoft.DevCenter SKUs available in a subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "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/SkuListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Skus_ListBySubscription": { + "$ref": "./examples/Skus_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters": { "get": { + "operationId": "DevCenters_ListByResourceGroup", "tags": [ - "EncryptionSets" + "DevCenters" ], - "description": "Gets a devcenter encryption set.", + "description": "Lists all devcenters in a resource group.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "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/DevCenterListResult" + } }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevCenters_ListByResourceGroup": { + "$ref": "./examples/DevCenters_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}": { + "get": { + "operationId": "DevCenters_Get", + "tags": [ + "DevCenters" + ], + "description": "Gets a devcenter.", + "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterEncryptionSetNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" } ], - "operationId": "EncryptionSets_Get", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DevCenterEncryptionSet" + "$ref": "#/definitions/DevCenter" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "EncryptionSets_Get": { - "$ref": "./examples/DevCenterEncryptionSets_Get.json" + "DevCenters_Get": { + "$ref": "./examples/DevCenters_Get.json" } } }, "put": { + "operationId": "DevCenters_CreateOrUpdate", "tags": [ - "EncryptionSets" + "DevCenters" ], - "description": "Creates or updates a devcenter encryption set resource", + "description": "Creates or updates a devcenter resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterEncryptionSetNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { "name": "body", "in": "body", - "description": "Represents a devcenter encryption set.", + "description": "Represents a devcenter.", "required": true, "schema": { - "$ref": "#/definitions/DevCenterEncryptionSet" + "$ref": "#/definitions/DevCenter" } } ], - "operationId": "EncryptionSets_CreateOrUpdate", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Resource 'DevCenter' update operation succeeded", "schema": { - "$ref": "#/definitions/DevCenterEncryptionSet" + "$ref": "#/definitions/DevCenter" } }, "201": { - "description": "Created. The request will complete asynchronously.", + "description": "Resource 'DevCenter' create operation succeeded", "schema": { - "$ref": "#/definitions/DevCenterEncryptionSet" + "$ref": "#/definitions/DevCenter" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "EncryptionSets_Create": { - "$ref": "./examples/DevCenterEncryptionSets_Create.json" + "DevCenters_Create": { + "$ref": "./examples/DevCenters_Create.json" + }, + "DevCenters_CreateWithDisabledManagedNetworks": { + "$ref": "./examples/DevCenters_CreateWithDisabledManagedNetworks.json" + }, + "DevCenters_CreateWithEncryption": { + "$ref": "./examples/DevCenters_CreateWithEncryption.json" + }, + "DevCenters_CreateWithUserIdentity": { + "$ref": "./examples/DevCenters_CreateWithUserIdentity.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/DevCenter" + }, + "x-ms-long-running-operation": true }, "patch": { + "operationId": "DevCenters_Update", "tags": [ - "EncryptionSets" + "DevCenters" ], - "description": "Partially updates a devcenter encryption set.", + "description": "Partially updates a devcenter.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterEncryptionSetNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { "name": "body", "in": "body", - "description": "Updatable devcenter encryption set properties.", + "description": "Updatable devcenter properties.", "required": true, "schema": { - "$ref": "#/definitions/EncryptionSetUpdate" + "$ref": "#/definitions/DevCenterUpdate" } } ], - "operationId": "EncryptionSets_Update", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/DevCenterEncryptionSet" + "$ref": "#/definitions/DevCenter" } }, "202": { - "description": "Accepted. The request will complete asynchronously.", + "description": "Resource update request accepted.", "headers": { "Location": { - "type": "string" + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "EncryptionSets_Update": { - "$ref": "./examples/DevCenterEncryptionSets_Patch.json" + "DevCenters_Update": { + "$ref": "./examples/DevCenters_Patch.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/DevCenter" + }, + "x-ms-long-running-operation": true }, "delete": { + "operationId": "DevCenters_Delete", "tags": [ - "EncryptionSets" + "DevCenters" ], - "description": "Deletes a devcenter encryption set", + "description": "Deletes a devcenter.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterEncryptionSetNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" } ], - "operationId": "EncryptionSets_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "responses": { "202": { - "description": "Accepted. Operation will complete asynchronously.", + "description": "Resource deletion accepted.", "headers": { "Location": { - "type": "string" + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -599,60 +830,76 @@ "description": "Resource does not exist." }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "EncryptionSets_Delete": { - "$ref": "./examples/DevCenterEncryptionSets_Delete.json" + "DevCenters_Delete": { + "$ref": "./examples/DevCenters_Delete.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/projectPolicies": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks": { "get": { + "operationId": "AttachedNetworks_ListByDevCenter", "tags": [ - "Project Policies" + "AttachedNetworks" ], - "description": "Lists all project policies in the dev center", + "description": "Lists the attached NetworkConnections for a DevCenter.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "commonDefinitions.json#/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": "ProjectPolicies_ListByDevCenter", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/ProjectPolicyListResult" + "$ref": "#/definitions/AttachedNetworkListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ProjectPolicies_ListByDevCenter": { - "$ref": "./examples/ProjectPolicies_ListByDevCenter.json" + "AttachedNetworks_ListByDevCenter": { + "$ref": "./examples/AttachedNetworks_ListByDevCenter.json" } }, "x-ms-pageable": { @@ -660,209 +907,196 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/projectPolicies/{projectPolicyName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks/{attachedNetworkConnectionName}": { "get": { + "operationId": "AttachedNetworks_GetByDevCenter", "tags": [ - "Project Policies" + "AttachedNetworks" ], - "description": "Gets a specific project policy.", + "description": "Gets an attached NetworkConnection.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/ProjectPolicyNameParameter" + "name": "attachedNetworkConnectionName", + "in": "path", + "description": "The name of the attached NetworkConnection.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "ProjectPolicies_Get", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ProjectPolicy" + "$ref": "#/definitions/AttachedNetworkConnection" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ProjectPolicies_Get": { - "$ref": "./examples/ProjectPolicies_Get.json" + "AttachedNetworks_GetByDevCenter": { + "$ref": "./examples/AttachedNetworks_GetByDevCenter.json" } } }, "put": { + "operationId": "AttachedNetworks_CreateOrUpdate", "tags": [ - "Project Policies" + "AttachedNetworks" ], - "description": "Creates or updates an project policy.", + "description": "Creates or updates an attached NetworkConnection.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/ProjectPolicyNameParameter" + "name": "attachedNetworkConnectionName", + "in": "path", + "description": "The name of the attached NetworkConnection.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "body", "in": "body", - "description": "Represents an project policy.", + "description": "Represents an attached NetworkConnection.", "required": true, "schema": { - "$ref": "#/definitions/ProjectPolicy" + "$ref": "#/definitions/AttachedNetworkConnection" } } ], - "operationId": "ProjectPolicies_CreateOrUpdate", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "responses": { "200": { - "description": "Succeeded", + "description": "Resource 'AttachedNetworkConnection' update operation succeeded", "schema": { - "$ref": "#/definitions/ProjectPolicy" + "$ref": "#/definitions/AttachedNetworkConnection" } }, "201": { - "description": "Accepted. Operation will complete asynchronously.", + "description": "Resource 'AttachedNetworkConnection' create operation succeeded", "schema": { - "$ref": "#/definitions/ProjectPolicy" + "$ref": "#/definitions/AttachedNetworkConnection" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ProjectPolicies_CreateOrUpdate": { - "$ref": "./examples/ProjectPolicies_Put.json" + "AttachedNetworks_Create": { + "$ref": "./examples/AttachedNetworks_Create.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/AttachedNetworkConnection" + }, + "x-ms-long-running-operation": true }, - "patch": { + "delete": { + "operationId": "AttachedNetworks_Delete", "tags": [ - "Project Policies" + "AttachedNetworks" ], - "description": "Partially updates an project policy.", + "description": "Un-attach a NetworkConnection.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectPolicyNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "name": "body", - "in": "body", - "description": "Updatable project policy properties.", + "name": "attachedNetworkConnectionName", + "in": "path", + "description": "The name of the attached NetworkConnection.", "required": true, - "schema": { - "$ref": "#/definitions/ProjectPolicyUpdate" - } - } - ], - "operationId": "ProjectPolicies_Update", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "200": { - "description": "Succeeded", - "schema": { - "$ref": "#/definitions/ProjectPolicy" - } - }, - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ProjectPolicies_Update": { - "$ref": "./examples/ProjectPolicies_Patch.json" - } - } - }, - "delete": { - "tags": [ - "Project Policies" - ], - "description": "Deletes an project policy.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/ProjectPolicyNameParameter" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "ProjectPolicies_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "responses": { "202": { - "description": "Accepted. Operation will complete asynchronously.", + "description": "Resource deletion accepted.", "headers": { "Location": { - "type": "string" + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -870,99 +1104,76 @@ "description": "Resource does not exist." }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ProjectPolicies_Delete": { - "$ref": "./examples/ProjectPolicies_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/projects": { - "get": { - "tags": [ - "Projects" - ], - "description": "Lists all projects in the subscription.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "operationId": "Projects_ListBySubscription", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ProjectListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } + "AttachedNetworks_Delete": { + "$ref": "./examples/AttachedNetworks_Delete.json" } }, - "x-ms-examples": { - "Projects_ListBySubscription": { - "$ref": "./examples/Projects_ListBySubscription.json" - } + "x-ms-long-running-operation-options": { + "final-state-via": "location" }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs": { "get": { + "operationId": "Catalogs_ListByDevCenter", "tags": [ - "Projects" + "CatalogOperationGroup" ], - "description": "Lists all projects in the resource group.", + "description": "Lists catalogs for a devcenter.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "commonDefinitions.json#/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": "Projects_ListByResourceGroup", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/ProjectListResult" + "$ref": "#/definitions/CatalogListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Projects_ListByResourceGroup": { - "$ref": "./examples/Projects_ListByResourceGroup.json" + "Catalogs_ListByDevCenter": { + "$ref": "./examples/Catalogs_List.json" } }, "x-ms-pageable": { @@ -970,206 +1181,279 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}": { "get": { + "operationId": "Catalogs_Get", "tags": [ - "Projects" + "CatalogOperationGroup" ], - "description": "Gets a specific project.", + "description": "Gets a catalog.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" + }, + { + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "Projects_Get", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Project" + "$ref": "#/definitions/Catalog" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Projects_Get": { - "$ref": "./examples/Projects_Get.json" + "Catalogs_Get": { + "$ref": "./examples/Catalogs_Get.json" } } }, "put": { + "operationId": "Catalogs_CreateOrUpdate", "tags": [ - "Projects" + "CatalogOperationGroup" ], - "description": "Creates or updates a project.", + "description": "Creates or updates a catalog.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "body", "in": "body", - "description": "Represents a project.", + "description": "Represents a catalog.", "required": true, "schema": { - "$ref": "#/definitions/Project" + "$ref": "#/definitions/Catalog" } } ], - "operationId": "Projects_CreateOrUpdate", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "responses": { "200": { - "description": "Succeeded", + "description": "Resource 'Catalog' update operation succeeded", "schema": { - "$ref": "#/definitions/Project" + "$ref": "#/definitions/Catalog" } }, "201": { - "description": "Accepted. Operation will complete asynchronously.", + "description": "Resource 'Catalog' create operation succeeded", "schema": { - "$ref": "#/definitions/Project" + "$ref": "#/definitions/Catalog" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Projects_CreateOrUpdate": { - "$ref": "./examples/Projects_Put.json" - }, - "Projects_CreateOrUpdateWithLimitsPerDev": { - "$ref": "./examples/Projects_PutWithMaxDevBoxPerUser.json" - }, - "Projects_CreateOrUpdateWithCustomizationSettings": { - "$ref": "./examples/Projects_PutWithCustomizationSettings.json" + "Catalogs_CreateOrUpdateAdo": { + "$ref": "./examples/Catalogs_CreateAdo.json" }, - "Projects_CreateOrUpdateWithCustomizationSettings_SystemIdentity": { - "$ref": "./examples/Projects_PutWithCustomizationSettings_SystemIdentity.json" + "Catalogs_CreateOrUpdateGitHub": { + "$ref": "./examples/Catalogs_CreateGitHub.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/Catalog" + }, + "x-ms-long-running-operation": true }, "patch": { + "operationId": "Catalogs_Update", "tags": [ - "Projects" + "CatalogOperationGroup" ], - "description": "Partially updates a project.", + "description": "Partially updates a catalog.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "body", "in": "body", - "description": "Updatable project properties.", + "description": "Updatable catalog properties.", "required": true, "schema": { - "$ref": "#/definitions/ProjectUpdate" + "$ref": "#/definitions/CatalogUpdate" } } ], - "operationId": "Projects_Update", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "responses": { "200": { - "description": "Succeeded", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/Project" + "$ref": "#/definitions/Catalog" } }, "202": { - "description": "Accepted. Operation will complete asynchronously.", + "description": "Resource update request accepted.", "headers": { "Location": { - "type": "string" + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Projects_Update": { - "$ref": "./examples/Projects_Patch.json" + "Catalogs_Update": { + "$ref": "./examples/Catalogs_Patch.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/Catalog" + }, + "x-ms-long-running-operation": true }, "delete": { + "operationId": "Catalogs_Delete", "tags": [ - "Projects" + "CatalogOperationGroup" ], - "description": "Deletes a project resource.", + "description": "Deletes a catalog resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "Projects_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "responses": { "202": { - "description": "Accepted. Operation will complete asynchronously.", + "description": "Resource deletion accepted.", "headers": { "Location": { - "type": "string" + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -1177,102 +1461,152 @@ "description": "Resource does not exist." }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Projects_Delete": { - "$ref": "./examples/Projects_Delete.json" + "Catalogs_Delete": { + "$ref": "./examples/Catalogs_Delete.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/getInheritedSettings": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/connect": { "post": { + "operationId": "Catalogs_Connect", "tags": [ - "Projects" + "CatalogOperationGroup" ], - "description": "Gets applicable inherited settings for this project.", + "description": "Connects a catalog to enable syncing.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "Projects_GetInheritedSettings", "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/InheritedSettingsForProject" + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Projects_GetInheritedSettings": { - "$ref": "./examples/Projects_GetInheritedSettings.json" + "Catalogs_Connect": { + "$ref": "./examples/Catalogs_Connect.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions": { "get": { + "operationId": "EnvironmentDefinitions_ListByCatalog", "tags": [ - "Attached NetworkConnections." + "EnvironmentDefinitionOperationGroup" ], - "description": "Lists the attached NetworkConnections for a Project.", + "description": "List environment definitions in the catalog.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" + }, + { + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "commonDefinitions.json#/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": "AttachedNetworks_ListByProject", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/AttachedNetworkListResult" + "$ref": "#/definitions/EnvironmentDefinitionListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "AttachedNetworks_ListByProject": { - "$ref": "./examples/AttachedNetworks_ListByProject.json" + "EnvironmentDefinitions_ListByCatalog": { + "$ref": "./examples/EnvironmentDefinitions_ListByCatalog.json" } }, "x-ms-pageable": { @@ -1280,366 +1614,487 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks/{attachedNetworkConnectionName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}": { "get": { + "operationId": "EnvironmentDefinitions_Get", "tags": [ - "Attached NetworkConnections" + "EnvironmentDefinitionOperationGroup" ], - "description": "Gets an attached NetworkConnection.", + "description": "Gets an environment definition from the catalog.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" + }, + { + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/AttachedNetworkConnectionNameParameter" + "name": "environmentDefinitionName", + "in": "path", + "description": "The name of the Environment Definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "AttachedNetworks_GetByProject", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/AttachedNetworkConnection" + "$ref": "#/definitions/EnvironmentDefinition" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "AttachedNetworks_GetByProject": { - "$ref": "./examples/AttachedNetworks_GetByProject.json" + "EnvironmentDefinitions_Get": { + "$ref": "./examples/EnvironmentDefinitions_Get.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}/getErrorDetails": { + "post": { + "operationId": "EnvironmentDefinitions_GetErrorDetails", "tags": [ - "Project Catalogs" + "EnvironmentDefinitionOperationGroup" ], - "description": "Lists the catalogs associated with a project.", + "description": "Gets Environment Definition error details.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "commonDefinitions.json#/parameters/TopParameter" + "name": "environmentDefinitionName", + "in": "path", + "description": "The name of the Environment Definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "ProjectCatalogs_List", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/CatalogListResult" + "$ref": "#/definitions/CatalogResourceValidationErrorDetails" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ProjectCatalogs_List": { - "$ref": "./examples/ProjectCatalogs_List.json" + "EnvironmentDefinitions_GetErrorDetails": { + "$ref": "./examples/EnvironmentDefinitions_GetErrorDetails.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/getSyncErrorDetails": { + "post": { + "operationId": "Catalogs_GetSyncErrorDetails", "tags": [ - "Project Catalogs" + "CatalogOperationGroup" ], - "description": "Gets an associated project catalog.", + "description": "Gets catalog synchronization error details.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "ProjectCatalogs_Get", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Catalog" + "$ref": "#/definitions/SyncErrorDetails" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ProjectCatalogs_Get": { - "$ref": "./examples/ProjectCatalogs_Get.json" + "Catalogs_GetSyncErrorDetails": { + "$ref": "./examples/Catalogs_GetSyncErrorDetails.json" } } - }, - "put": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions": { + "get": { + "operationId": "DevCenterCatalogImageDefinitions_ListByDevCenterCatalog", "tags": [ - "Project Catalogs" + "ImageDefinitions" ], - "description": "Creates or updates a project catalog.", + "description": "List Image Definitions in the catalog.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "name": "body", - "in": "body", - "description": "Represents a catalog.", - "required": true, - "schema": { - "$ref": "#/definitions/Catalog" - } + "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": "ProjectCatalogs_CreateOrUpdate", "responses": { "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Catalog" - } - }, - "201": { - "description": "Accepted. Operation will complete asynchronously.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/Catalog" + "$ref": "#/definitions/ImageDefinitionListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "x-ms-examples": { - "ProjectCatalogs_CreateOrUpdateGitHub": { - "$ref": "./examples/ProjectCatalogs_CreateGitHub.json" - }, - "ProjectCatalogs_CreateOrUpdateAdo": { - "$ref": "./examples/ProjectCatalogs_CreateAdo.json" + "ImageDefinitions_ListByDevCenterCatalog": { + "$ref": "./examples/ImageDefinitions_ListByDevCenterCatalog.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "patch": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}": { + "get": { + "operationId": "DevCenterCatalogImageDefinitions_GetByDevCenterCatalog", "tags": [ - "Project Catalogs" + "ImageDefinitions" ], - "description": "Partially updates a project catalog.", + "description": "Gets an Image Definition from the catalog", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "name": "body", - "in": "body", - "description": "Updatable project catalog properties.", + "name": "imageDefinitionName", + "in": "path", + "description": "The name of the Image Definition.", "required": true, - "schema": { - "$ref": "#/definitions/CatalogUpdate" - } + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "ProjectCatalogs_Patch", "responses": { "200": { - "description": "The resource was updated.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Catalog" - } - }, - "202": { - "description": "The request will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } + "$ref": "#/definitions/ImageDefinition" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "x-ms-examples": { - "ProjectCatalogs_Patch": { - "$ref": "./examples/ProjectCatalogs_Patch.json" + "ImageDefinitions_GetByDevCenterCatalog": { + "$ref": "./examples/ImageDefinitions_GetByDevCenterCatalog.json" } } - }, - "delete": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/buildImage": { + "post": { + "operationId": "DevCenterCatalogImageDefinitions_BuildImage", "tags": [ - "Project Catalogs" + "ImageDefinitions" ], - "description": "Deletes a project catalog resource.", + "description": "Builds an image for the specified Image Definition.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "imageDefinitionName", + "in": "path", + "description": "The name of the Image Definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "ProjectCatalogs_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "responses": { "202": { - "description": "Accepted. Operation will complete asynchronously.", + "description": "Resource operation accepted.", "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, "Location": { - "type": "string" + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, - "204": { - "description": "Resource does not exist." - }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ProjectCatalogs_Delete": { - "$ref": "./examples/ProjectCatalogs_Delete.json" + "DevCenterCatalogImageDefinitions_BuildImage": { + "$ref": "./examples/DevCenterImageDefinitions_BuildImage.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds": { "get": { + "operationId": "DevCenterCatalogImageDefinitionBuilds_ListByImageDefinition", "tags": [ - "Environment Definitions" + "ImageDefinitionBuilds" ], - "description": "Lists the environment definitions in this project catalog.", + "description": "Lists builds for a specified image definition.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" + }, + { + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "imageDefinitionName", + "in": "path", + "description": "The name of the Image Definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "EnvironmentDefinitions_ListByProjectCatalog", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/EnvironmentDefinitionListResult" + "$ref": "#/definitions/ImageDefinitionBuildListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "EnvironmentDefinitions_ListByProjectCatalog": { - "$ref": "./examples/EnvironmentDefinitions_ListByProjectCatalog.json" + "DevCenterImageDefinitionBuilds_ListByImageDefinition": { + "$ref": "./examples/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json" } }, "x-ms-pageable": { @@ -1647,290 +2102,452 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}": { "get": { + "operationId": "DevCenterCatalogImageDefinitionBuild_Get", "tags": [ - "Environment Definitions" + "ImageDefinitionBuilds" ], + "description": "Gets a build for a specified image definition.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" + }, + { + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "imageDefinitionName", + "in": "path", + "description": "The name of the Image Definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/EnvironmentDefinitionNameParameter" + "name": "buildName", + "in": "path", + "description": "The ID of the Image Definition Build.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "description": "Gets an environment definition from the catalog.", - "operationId": "EnvironmentDefinitions_GetByProjectCatalog", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/EnvironmentDefinition" + "$ref": "#/definitions/ImageDefinitionBuild" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "EnvironmentDefinitions_GetByProjectCatalog": { - "$ref": "./examples/EnvironmentDefinitions_GetByProjectCatalog.json" + "DevCenterImageDefinitionBuilds_GetByImageDefinition": { + "$ref": "./examples/DevCenterImageDefinitions_GetImageBuild.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}/getErrorDetails": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}/cancel": { "post": { + "operationId": "DevCenterCatalogImageDefinitionBuild_Cancel", "tags": [ - "Environment Definitions" + "ImageDefinitionBuilds" ], - "description": "Gets Environment Definition error details", - "operationId": "ProjectCatalogEnvironmentDefinitions_GetErrorDetails", + "description": "Cancels the specified build for an image definition.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "imageDefinitionName", + "in": "path", + "description": "The name of the Image Definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/EnvironmentDefinitionNameParameter" + "name": "buildName", + "in": "path", + "description": "The ID of the Image Definition Build.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "vdi.json#/definitions/CatalogResourceValidationErrorDetails" + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ProjectCatalogEnvironmentDefinitions_GetErrorDetails": { - "$ref": "./examples/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json" + "DevCenterImageDefinitionBuilds_CancelByImageDefinition": { + "$ref": "./examples/DevCenterImageDefinitions_CancelImageBuild.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/getSyncErrorDetails": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}/getBuildDetails": { "post": { + "operationId": "DevCenterCatalogImageDefinitionBuild_GetBuildDetails", "tags": [ - "Project Catalogs" + "ImageDefinitionBuilds" ], - "description": "Gets project catalog synchronization error details", + "description": "Gets Build details.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "imageDefinitionName", + "in": "path", + "description": "The name of the Image Definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "buildName", + "in": "path", + "description": "The ID of the Image Definition Build.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "ProjectCatalogs_GetSyncErrorDetails", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/SyncErrorDetails" + "$ref": "#/definitions/ImageDefinitionBuildDetails" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ProjectCatalogs_GetSyncErrorDetails": { - "$ref": "./examples/ProjectCatalogs_GetSyncErrorDetails.json" + "DevCenterCatalogImageDefinitionBuild_GetErrorDetails": { + "$ref": "./examples/DevCenterImageDefinitions_GetImageBuildDetails.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/sync": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/getErrorDetails": { "post": { + "operationId": "DevCenterCatalogImageDefinitions_GetErrorDetails", "tags": [ - "Project Catalogs" + "ImageDefinitions" ], - "description": "Syncs templates for a template source.", + "description": "Gets Image Definition error details.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" + }, + { + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "imageDefinitionName", + "in": "path", + "description": "The name of the Image Definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "ProjectCatalogs_Sync", "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CatalogResourceValidationErrorDetails" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "x-ms-examples": { - "ProjectCatalogs_Sync": { - "$ref": "./examples/ProjectCatalogs_Sync.json" + "DevCenterImageDefinitions_GetErrorDetails": { + "$ref": "./examples/DevCenterImageDefinitions_GetErrorDetails.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/connect": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/sync": { "post": { + "operationId": "Catalogs_Sync", "tags": [ - "Project Catalogs" + "CatalogOperationGroup" ], - "description": "Connects a project catalog to enable syncing.", + "description": "Syncs templates for a template source.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "ProjectCatalogs_Connect", "responses": { "202": { - "description": "Accepted. Operation will complete asynchronously.", + "description": "Resource operation accepted.", "headers": { "Location": { - "type": "string" + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "x-ms-examples": { - "ProjectCatalogs_Connect": { - "$ref": "./examples/ProjectCatalogs_Connect.json" + "Catalogs_Sync": { + "$ref": "./examples/Catalogs_Sync.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks": { "get": { + "operationId": "CustomizationTasks_ListByCatalog", "tags": [ - "Galleries" + "CustomizationTasks" ], - "description": "Lists galleries for a devcenter.", + "description": "List Tasks in the catalog.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "commonDefinitions.json#/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": "Galleries_ListByDevCenter", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/GalleryListResult" + "$ref": "#/definitions/CustomizationTaskListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Galleries_ListByDevCenter": { - "$ref": "./examples/Galleries_List.json" + "CustomizationTasks_ListByCatalog": { + "$ref": "./examples/CustomizationTasks_ListByCatalog.json" } }, "x-ms-pageable": { @@ -1938,638 +2555,905 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}": { "get": { + "operationId": "CustomizationTasks_Get", "tags": [ - "Galleries" + "CustomizationTasks" ], - "description": "Gets a gallery", + "description": "Gets a Task from the catalog.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/GalleryNameParameter" + "name": "taskName", + "in": "path", + "description": "The name of the Customization Task.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "Galleries_Get", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Gallery" + "$ref": "#/definitions/CustomizationTask" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Galleries_Get": { - "$ref": "./examples/Galleries_Get.json" + "CustomizationTasks_Get": { + "$ref": "./examples/CustomizationTasks_Get.json" } } - }, - "put": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}/getErrorDetails": { + "post": { + "operationId": "CustomizationTasks_GetErrorDetails", "tags": [ - "Galleries" + "CustomizationTasks" ], - "description": "Creates or updates a gallery.", + "description": "Gets Customization Task error details.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/GalleryNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "name": "body", - "in": "body", - "description": "Represents a gallery.", + "name": "taskName", + "in": "path", + "description": "The name of the Customization Task.", "required": true, - "schema": { - "$ref": "#/definitions/Gallery" - } + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "Galleries_CreateOrUpdate", "responses": { "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Gallery" - } - }, - "201": { - "description": "Accepted. Operation will complete asynchronously.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Gallery" + "$ref": "#/definitions/CatalogResourceValidationErrorDetails" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "x-ms-examples": { - "Galleries_CreateOrUpdate": { - "$ref": "./examples/Galleries_Create.json" + "CustomizationTasks_GetErrorDetails": { + "$ref": "./examples/CustomizationTasks_GetErrorDetails.json" } } - }, - "delete": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions": { + "get": { + "operationId": "DevBoxDefinitions_ListByDevCenter", "tags": [ - "Galleries" + "DevBoxDefinitions" ], - "description": "Deletes a gallery resource.", + "description": "List Dev Box definitions for a devcenter.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/GalleryNameParameter" + "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": "Galleries_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DevBoxDefinitionListResult" } }, - "204": { - "description": "Resource does not exist." - }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Galleries_Delete": { - "$ref": "./examples/Galleries_Delete.json" + "DevBoxDefinitions_ListByDevCenter": { + "$ref": "./examples/DevBoxDefinitions_ListByDevCenter.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/images": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}": { "get": { + "operationId": "DevBoxDefinitions_Get", "tags": [ - "Images" + "DevBoxDefinitions" ], - "description": "Lists images for a devcenter.", + "description": "Gets a Dev Box definition.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "commonDefinitions.json#/parameters/TopParameter" + "name": "devBoxDefinitionName", + "in": "path", + "description": "The name of the Dev Box definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "Images_ListByDevCenter", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ImageListResult" + "$ref": "#/definitions/DevBoxDefinition" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Images_ListByDevCenter": { - "$ref": "./examples/Images_ListByDevCenter.json" + "DevBoxDefinitions_Get": { + "$ref": "./examples/DevBoxDefinitions_Get.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images": { - "get": { + }, + "put": { + "operationId": "DevBoxDefinitions_CreateOrUpdate", "tags": [ - "Images" + "DevBoxDefinitions" ], - "description": "Lists images for a gallery.", + "description": "Creates or updates a Dev Box definition.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/GalleryNameParameter" + "name": "devBoxDefinitionName", + "in": "path", + "description": "The name of the Dev Box definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "commonDefinitions.json#/parameters/TopParameter" + "name": "body", + "in": "body", + "description": "Represents a Dev Box definition.", + "required": true, + "schema": { + "$ref": "#/definitions/DevBoxDefinition" + } } ], - "operationId": "Images_ListByGallery", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Resource 'DevBoxDefinition' update operation succeeded", "schema": { - "$ref": "#/definitions/ImageListResult" + "$ref": "#/definitions/DevBoxDefinition" + } + }, + "201": { + "description": "Resource 'DevBoxDefinition' create operation succeeded", + "schema": { + "$ref": "#/definitions/DevBoxDefinition" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Images_ListByGallery": { - "$ref": "./examples/Images_ListByGallery.json" + "DevBoxDefinitions_Create": { + "$ref": "./examples/DevBoxDefinitions_Create.json" } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}": { - "get": { + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/DevBoxDefinition" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "DevBoxDefinitions_Update", "tags": [ - "Images" + "DevBoxDefinitions" ], - "description": "Gets a gallery image.", + "description": "Partially updates a Dev Box definition.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/GalleryNameParameter" + "name": "devBoxDefinitionName", + "in": "path", + "description": "The name of the Dev Box definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/ImageNameParameter" + "name": "body", + "in": "body", + "description": "Represents a Dev Box definition.", + "required": true, + "schema": { + "$ref": "#/definitions/DevBoxDefinitionUpdate" + } } ], - "operationId": "Images_Get", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/Image" + "$ref": "#/definitions/DevBoxDefinition" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Images_Get": { - "$ref": "./examples/Images_Get.json" + "DevBoxDefinitions_Patch": { + "$ref": "./examples/DevBoxDefinitions_Patch.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}/versions": { - "get": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/DevBoxDefinition" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "DevBoxDefinitions_Delete", "tags": [ - "Image Versions" + "DevBoxDefinitions" ], - "description": "Lists versions for an image.", + "description": "Deletes a Dev Box definition.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/GalleryNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/ImageNameParameter" + "name": "devBoxDefinitionName", + "in": "path", + "description": "The name of the Dev Box definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "ImageVersions_ListByImage", "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageVersionListResult" + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } } }, + "204": { + "description": "Resource does not exist." + }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ImageVersions_ListByImage": { - "$ref": "./examples/ImageVersions_List.json" + "DevBoxDefinitions_Delete": { + "$ref": "./examples/DevBoxDefinitions_Delete.json" } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}/versions/{versionName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/encryptionSets": { "get": { + "operationId": "EncryptionSets_List", "tags": [ - "Image Versions" + "DevCenterEncryptionSets" ], - "description": "Gets an image version.", + "description": "Lists all encryption sets in the devcenter.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/GalleryNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ImageNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/VersionNameParameter" + "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": "ImageVersions_Get", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/ImageVersion" + "$ref": "#/definitions/EncryptionSetListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Versions_Get": { - "$ref": "./examples/ImageVersions_Get.json" + "EncryptionSets_List": { + "$ref": "./examples/DevCenterEncryptionSets_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/images": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/encryptionSets/{encryptionSetName}": { "get": { + "operationId": "EncryptionSets_Get", "tags": [ - "Images" + "DevCenterEncryptionSets" ], - "description": "Lists images for a project.", + "description": "Gets a devcenter encryption set.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "commonDefinitions.json#/parameters/ProjectNameParameter" + "name": "encryptionSetName", + "in": "path", + "description": "The name of the devcenter encryption set.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" } ], - "operationId": "Images_ListByProject", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ImageListResult" + "$ref": "#/definitions/DevCenterEncryptionSet" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Images_ListByProject": { - "$ref": "./examples/Images_ListByProject.json" + "EncryptionSets_Get": { + "$ref": "./examples/DevCenterEncryptionSets_Get.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/images/{imageName}": { - "get": { + }, + "put": { + "operationId": "EncryptionSets_CreateOrUpdate", "tags": [ - "Images" + "DevCenterEncryptionSets" ], - "description": "Gets an image.", + "description": "Creates or updates a devcenter encryption set resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "commonDefinitions.json#/parameters/ProjectNameParameter" + "name": "encryptionSetName", + "in": "path", + "description": "The name of the devcenter encryption set.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/ProjectImageNameParameter" + "name": "body", + "in": "body", + "description": "Represents a devcenter encryption set.", + "required": true, + "schema": { + "$ref": "#/definitions/DevCenterEncryptionSet" + } } ], - "operationId": "Images_GetByProject", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Resource 'DevCenterEncryptionSet' update operation succeeded", "schema": { - "$ref": "#/definitions/Image" + "$ref": "#/definitions/DevCenterEncryptionSet" + } + }, + "201": { + "description": "Resource 'DevCenterEncryptionSet' create operation succeeded", + "schema": { + "$ref": "#/definitions/DevCenterEncryptionSet" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Images_GetByProject": { - "$ref": "./examples/Images_GetByProject.json" + "EncryptionSets_Create": { + "$ref": "./examples/DevCenterEncryptionSets_Create.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/images/{imageName}/versions": { - "get": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/DevCenterEncryptionSet" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "EncryptionSets_Update", "tags": [ - "Image Versions" + "DevCenterEncryptionSets" ], - "description": "Lists versions for an image.", + "description": "Partially updates a devcenter encryption set.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "commonDefinitions.json#/parameters/ProjectNameParameter" + "name": "encryptionSetName", + "in": "path", + "description": "The name of the devcenter encryption set.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/ProjectImageNameParameter" + "name": "body", + "in": "body", + "description": "Updatable devcenter encryption set properties.", + "required": true, + "schema": { + "$ref": "#/definitions/EncryptionSetUpdate" + } } ], - "operationId": "ImageVersions_ListByProject", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/ImageVersionListResult" + "$ref": "#/definitions/DevCenterEncryptionSet" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ImageVersions_ListByProject": { - "$ref": "./examples/ImageVersions_ListByProject.json" + "EncryptionSets_Update": { + "$ref": "./examples/DevCenterEncryptionSets_Patch.json" } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/images/{imageName}/versions/{versionName}": { - "get": { + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/DevCenterEncryptionSet" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "EncryptionSets_Delete", "tags": [ - "Image Versions" + "DevCenterEncryptionSets" ], - "description": "Gets an image version.", + "description": "Deletes a devcenter encryption set.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "commonDefinitions.json#/parameters/ProjectNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectImageNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/VersionNameParameter" + "name": "encryptionSetName", + "in": "path", + "description": "The name of the devcenter encryption set.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" } ], - "operationId": "ImageVersions_GetByProject", "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageVersion" + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } } }, + "204": { + "description": "Resource does not exist." + }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ImageVersions_GetByProject": { - "$ref": "./examples/ImageVersions_GetByProject.json" + "EncryptionSets_Delete": { + "$ref": "./examples/DevCenterEncryptionSets_Delete.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/listSkus": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes": { + "get": { + "operationId": "EnvironmentTypes_ListByDevCenter", "tags": [ - "Project SKUs" + "EnvironmentTypes" ], - "description": "Lists SKUs available to the project", + "description": "Lists environment types for the devcenter.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" + }, + { + "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": "Skus_ListByProject", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "vdi.json#/definitions/SkuListResult" + "$ref": "#/definitions/EnvironmentTypeListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Skus_ListByProject": { - "$ref": "./examples/Skus_ListByProject.json" + "EnvironmentTypes_ListByDevCenter": { + "$ref": "./examples/EnvironmentTypes_List.json" } }, "x-ms-pageable": { @@ -2577,254 +3461,313 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}": { "get": { + "operationId": "EnvironmentTypes_Get", "tags": [ - "Attached NetworkConnections." + "EnvironmentTypes" ], - "description": "Lists the attached NetworkConnections for a DevCenter.", + "description": "Gets an environment type.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "commonDefinitions.json#/parameters/TopParameter" + "name": "environmentTypeName", + "in": "path", + "description": "The name of the environment type.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "AttachedNetworks_ListByDevCenter", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/AttachedNetworkListResult" + "$ref": "#/definitions/EnvironmentType" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "AttachedNetworks_ListByDevCenter": { - "$ref": "./examples/AttachedNetworks_ListByDevCenter.json" + "EnvironmentTypes_Get": { + "$ref": "./examples/EnvironmentTypes_Get.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks/{attachedNetworkConnectionName}": { - "get": { + }, + "put": { + "operationId": "EnvironmentTypes_CreateOrUpdate", "tags": [ - "Attached NetworkConnections" + "EnvironmentTypes" ], - "description": "Gets an attached NetworkConnection.", + "description": "Creates or updates an environment type.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "environmentTypeName", + "in": "path", + "description": "The name of the environment type.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/AttachedNetworkConnectionNameParameter" + "name": "body", + "in": "body", + "description": "Represents an Environment Type.", + "required": true, + "schema": { + "$ref": "#/definitions/EnvironmentType" + } } ], - "operationId": "AttachedNetworks_GetByDevCenter", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Resource 'EnvironmentType' update operation succeeded", "schema": { - "$ref": "#/definitions/AttachedNetworkConnection" + "$ref": "#/definitions/EnvironmentType" + } + }, + "201": { + "description": "Resource 'EnvironmentType' create operation succeeded", + "schema": { + "$ref": "#/definitions/EnvironmentType" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "AttachedNetworks_GetByDevCenter": { - "$ref": "./examples/AttachedNetworks_GetByDevCenter.json" + "EnvironmentTypes_CreateOrUpdate": { + "$ref": "./examples/EnvironmentTypes_Put.json" } } }, - "put": { + "patch": { + "operationId": "EnvironmentTypes_Update", "tags": [ - "Attached NetworkConnections" + "EnvironmentTypes" ], - "description": "Creates or updates an attached NetworkConnection.", + "description": "Partially updates an environment type.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/AttachedNetworkConnectionNameParameter" + "name": "environmentTypeName", + "in": "path", + "description": "The name of the environment type.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "body", "in": "body", - "description": "Represents an attached NetworkConnection.", + "description": "Updatable environment type properties.", "required": true, "schema": { - "$ref": "#/definitions/AttachedNetworkConnection" + "$ref": "#/definitions/EnvironmentTypeUpdate" } } ], - "operationId": "AttachedNetworks_CreateOrUpdate", "responses": { "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AttachedNetworkConnection" - } - }, - "201": { - "description": "Accepted. Operation will complete asynchronously.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/AttachedNetworkConnection" + "$ref": "#/definitions/EnvironmentType" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "x-ms-examples": { - "AttachedNetworks_Create": { - "$ref": "./examples/AttachedNetworks_Create.json" + "EnvironmentTypes_Update": { + "$ref": "./examples/EnvironmentTypes_Patch.json" } } }, "delete": { + "operationId": "EnvironmentTypes_Delete", "tags": [ - "Attached NetworkConnections" + "EnvironmentTypes" ], - "description": "Un-attach a NetworkConnection.", + "description": "Deletes an environment type.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/AttachedNetworkConnectionNameParameter" + "name": "environmentTypeName", + "in": "path", + "description": "The name of the environment type.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "AttachedNetworks_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } + "200": { + "description": "Resource deleted successfully." }, "204": { "description": "Resource does not exist." }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "AttachedNetworks_Delete": { - "$ref": "./examples/AttachedNetworks_Delete.json" + "EnvironmentTypes_Delete": { + "$ref": "./examples/EnvironmentTypes_Delete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries": { "get": { + "operationId": "Galleries_ListByDevCenter", "tags": [ - "Catalogs" + "Galleries" ], - "description": "Lists catalogs for a devcenter.", + "description": "Lists galleries for a devcenter.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "commonDefinitions.json#/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": "Catalogs_ListByDevCenter", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/CatalogListResult" + "$ref": "#/definitions/GalleryListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Catalogs_ListByDevCenter": { - "$ref": "./examples/Catalogs_List.json" + "Galleries_ListByDevCenter": { + "$ref": "./examples/Galleries_List.json" } }, "x-ms-pageable": { @@ -2832,421 +3775,563 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}": { "get": { + "operationId": "Galleries_Get", "tags": [ - "Catalogs" + "Galleries" ], - "description": "Gets a catalog", + "description": "Gets a gallery.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "galleryName", + "in": "path", + "description": "The name of the gallery.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "Catalogs_Get", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Catalog" + "$ref": "#/definitions/Gallery" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Catalogs_Get": { - "$ref": "./examples/Catalogs_Get.json" + "Galleries_Get": { + "$ref": "./examples/Galleries_Get.json" } } }, "put": { + "operationId": "Galleries_CreateOrUpdate", "tags": [ - "Catalogs" + "Galleries" ], - "description": "Creates or updates a catalog.", + "description": "Creates or updates a gallery.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "galleryName", + "in": "path", + "description": "The name of the gallery.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "body", "in": "body", - "description": "Represents a catalog.", + "description": "Represents a gallery.", "required": true, "schema": { - "$ref": "#/definitions/Catalog" + "$ref": "#/definitions/Gallery" } } ], - "operationId": "Catalogs_CreateOrUpdate", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Resource 'Gallery' update operation succeeded", "schema": { - "$ref": "#/definitions/Catalog" + "$ref": "#/definitions/Gallery" } }, "201": { - "description": "Accepted. Operation will complete asynchronously.", + "description": "Resource 'Gallery' create operation succeeded", "schema": { - "$ref": "#/definitions/Catalog" + "$ref": "#/definitions/Gallery" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "x-ms-examples": { - "Catalogs_CreateOrUpdateGitHub": { - "$ref": "./examples/Catalogs_CreateGitHub.json" - }, - "Catalogs_CreateOrUpdateAdo": { - "$ref": "./examples/Catalogs_CreateAdo.json" + "Galleries_CreateOrUpdate": { + "$ref": "./examples/Galleries_Create.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/Gallery" + }, + "x-ms-long-running-operation": true }, - "patch": { + "delete": { + "operationId": "Galleries_Delete", "tags": [ - "Catalogs" + "Galleries" ], - "description": "Partially updates a catalog.", + "description": "Deletes a gallery resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "name": "body", - "in": "body", - "description": "Updatable catalog properties.", + "name": "galleryName", + "in": "path", + "description": "The name of the gallery.", "required": true, - "schema": { - "$ref": "#/definitions/CatalogUpdate" - } + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "Catalogs_Update", "responses": { - "200": { - "description": "The resource was updated.", - "schema": { - "$ref": "#/definitions/Catalog" - } - }, "202": { - "description": "The request will complete asynchronously.", + "description": "Resource deletion accepted.", "headers": { "Location": { - "type": "string" + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, + "204": { + "description": "Resource does not exist." + }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "x-ms-examples": { - "Catalogs_Update": { - "$ref": "./examples/Catalogs_Patch.json" + "Galleries_Delete": { + "$ref": "./examples/Galleries_Delete.json" } - } - }, - "delete": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images": { + "get": { + "operationId": "Images_ListByGallery", "tags": [ - "Catalogs" + "Images" ], - "description": "Deletes a catalog resource.", + "description": "Lists images for a gallery.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "galleryName", + "in": "path", + "description": "The name of the gallery.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "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": "Catalogs_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageListResult" } }, - "204": { - "description": "Resource does not exist." - }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Catalogs_Delete": { - "$ref": "./examples/Catalogs_Delete.json" + "Images_ListByGallery": { + "$ref": "./examples/Images_ListByGallery.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/getSyncErrorDetails": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - } - ], - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}": { + "get": { + "operationId": "Images_Get", "tags": [ - "Catalogs" + "Images" + ], + "description": "Gets a gallery image.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" + }, + { + "name": "galleryName", + "in": "path", + "description": "The name of the gallery.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "imageName", + "in": "path", + "description": "The name of the image.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 80, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-.]{0,78}[a-zA-Z0-9]$" + } ], - "description": "Gets catalog synchronization error details", - "operationId": "Catalogs_GetSyncErrorDetails", - "parameters": [], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/SyncErrorDetails" + "$ref": "#/definitions/Image" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Catalogs_GetSyncErrorDetails": { - "$ref": "./examples/Catalogs_GetSyncErrorDetails.json" + "Images_Get": { + "$ref": "./examples/Images_Get.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/sync": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}/versions": { + "get": { + "operationId": "ImageVersions_ListByImage", "tags": [ - "Catalogs" + "ImageVersions" ], - "description": "Syncs templates for a template source.", + "description": "Lists versions for an image.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "galleryName", + "in": "path", + "description": "The name of the gallery.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "imageName", + "in": "path", + "description": "The name of the image.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 80, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-.]{0,78}[a-zA-Z0-9]$" } ], - "operationId": "Catalogs_Sync", "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageVersionListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "x-ms-examples": { - "Catalogs_Sync": { - "$ref": "./examples/Catalogs_Sync.json" + "ImageVersions_ListByImage": { + "$ref": "./examples/ImageVersions_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/connect": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}/versions/{versionName}": { + "get": { + "operationId": "ImageVersions_Get", "tags": [ - "Catalogs" + "ImageVersions" ], - "description": "Connects a catalog to enable syncing.", + "description": "Gets an image version.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "galleryName", + "in": "path", + "description": "The name of the gallery.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "imageName", + "in": "path", + "description": "The name of the image.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 80, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-.]{0,78}[a-zA-Z0-9]$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "versionName", + "in": "path", + "description": "The version of the image.", + "required": true, + "type": "string", + "minLength": 5, + "maxLength": 32, + "pattern": "^[0-9]{1,10}[.][0-9]{1,10}[.][0-9]{1,10}$" } ], - "operationId": "Catalogs_Connect", "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImageVersion" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "x-ms-examples": { - "Catalogs_Connect": { - "$ref": "./examples/Catalogs_Connect.json" + "Versions_Get": { + "$ref": "./examples/ImageVersions_Get.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/images": { "get": { + "operationId": "Images_ListByDevCenter", "tags": [ - "Environment Types" + "DevCenters" ], - "description": "Lists environment types for the devcenter.", + "description": "Lists images for a devcenter.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "commonDefinitions.json#/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": "EnvironmentTypes_ListByDevCenter", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/EnvironmentTypeListResult" + "$ref": "#/definitions/ImageListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "EnvironmentTypes_ListByDevCenter": { - "$ref": "./examples/EnvironmentTypes_List.json" + "Images_ListByDevCenter": { + "$ref": "./examples/Images_ListByDevCenter.json" } }, "x-ms-pageable": { @@ -3254,338 +4339,403 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/projectPolicies": { "get": { + "operationId": "ProjectPolicies_ListByDevCenter", "tags": [ - "Environment Types" + "ProjectPolicies" ], - "description": "Gets an environment type.", + "description": "Lists all project policies in the dev center.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/EnvironmentTypeNameParameter" + "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": "EnvironmentTypes_Get", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/EnvironmentType" + "$ref": "#/definitions/ProjectPolicyListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "EnvironmentTypes_Get": { - "$ref": "./examples/EnvironmentTypes_Get.json" + "ProjectPolicies_ListByDevCenter": { + "$ref": "./examples/ProjectPolicies_ListByDevCenter.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "put": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/projectPolicies/{projectPolicyName}": { + "get": { + "operationId": "ProjectPolicies_Get", "tags": [ - "Environment Types" + "ProjectPolicies" ], - "description": "Creates or updates an environment type.", + "description": "Gets a specific project policy.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/EnvironmentTypeNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "name": "body", - "in": "body", - "description": "Represents an Environment Type.", + "name": "projectPolicyName", + "in": "path", + "description": "The name of the project policy.", "required": true, - "schema": { - "$ref": "#/definitions/EnvironmentType" - } + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "EnvironmentTypes_CreateOrUpdate", "responses": { "200": { - "description": "Succeeded", - "schema": { - "$ref": "#/definitions/EnvironmentType" - } - }, - "201": { - "description": "Created", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/EnvironmentType" + "$ref": "#/definitions/ProjectPolicy" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "EnvironmentTypes_CreateOrUpdate": { - "$ref": "./examples/EnvironmentTypes_Put.json" + "ProjectPolicies_Get": { + "$ref": "./examples/ProjectPolicies_Get.json" } } }, - "patch": { + "put": { + "operationId": "ProjectPolicies_CreateOrUpdate", "tags": [ - "Environment Types" + "ProjectPolicies" ], - "description": "Partially updates an environment type.", + "description": "Creates or updates an project policy.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/EnvironmentTypeNameParameter" + "name": "projectPolicyName", + "in": "path", + "description": "The name of the project policy.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "body", "in": "body", - "description": "Updatable environment type properties.", + "description": "Represents an project policy.", "required": true, "schema": { - "$ref": "#/definitions/EnvironmentTypeUpdate" + "$ref": "#/definitions/ProjectPolicy" } } ], - "operationId": "EnvironmentTypes_Update", "responses": { "200": { - "description": "The resource was updated.", + "description": "Resource 'ProjectPolicy' update operation succeeded", "schema": { - "$ref": "#/definitions/EnvironmentType" + "$ref": "#/definitions/ProjectPolicy" + } + }, + "201": { + "description": "Resource 'ProjectPolicy' create operation succeeded", + "schema": { + "$ref": "#/definitions/ProjectPolicy" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "EnvironmentTypes_Update": { - "$ref": "./examples/EnvironmentTypes_Patch.json" + "ProjectPolicies_CreateOrUpdate": { + "$ref": "./examples/ProjectPolicies_Put.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/ProjectPolicy" + }, + "x-ms-long-running-operation": true }, - "delete": { + "patch": { + "operationId": "ProjectPolicies_Update", "tags": [ - "Environment Types" + "ProjectPolicies" ], - "description": "Deletes an environment type.", + "description": "Partially updates an project policy.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/EnvironmentTypeNameParameter" - } - ], - "operationId": "EnvironmentTypes_Delete", - "responses": { - "200": { - "description": "Resource was deleted." - }, - "204": { - "description": "Resource does not exist." + "name": "projectPolicyName", + "in": "path", + "description": "The name of the project policy.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, - "default": { - "description": "Error response describing why the operation failed.", + { + "name": "body", + "in": "body", + "description": "Updatable project policy properties.", + "required": true, "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ProjectPolicyUpdate" } } - }, - "x-ms-examples": { - "EnvironmentTypes_Delete": { - "$ref": "./examples/EnvironmentTypes_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes": { - "get": { - "tags": [ - "Environment Types" - ], - "description": "Lists allowed environment types for a project.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProjectNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } ], - "operationId": "ProjectAllowedEnvironmentTypes_List", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/AllowedEnvironmentTypeListResult" + "$ref": "#/definitions/ProjectPolicy" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ProjectAllowedEnvironmentTypes_List": { - "$ref": "./examples/ProjectAllowedEnvironmentTypes_List.json" + "ProjectPolicies_Update": { + "$ref": "./examples/ProjectPolicies_Patch.json" } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes/{environmentTypeName}": { - "get": { + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/ProjectPolicy" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "ProjectPolicies_Delete", "tags": [ - "Environment Types" + "ProjectPolicies" ], - "description": "Gets an allowed environment type.", + "description": "Deletes an project policy.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "devCenterName", + "in": "path", + "description": "The name of the devcenter.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 26, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$" }, { - "$ref": "#/parameters/EnvironmentTypeNameParameter" + "name": "projectPolicyName", + "in": "path", + "description": "The name of the project policy.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "ProjectAllowedEnvironmentTypes_Get", "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AllowedEnvironmentType" + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } } }, + "204": { + "description": "Resource does not exist." + }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ProjectAllowedEnvironmentTypes_Get": { - "$ref": "./examples/ProjectAllowedEnvironmentTypes_Get.json" + "ProjectPolicies_Delete": { + "$ref": "./examples/ProjectPolicies_Delete.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections": { "get": { + "operationId": "NetworkConnections_ListByResourceGroup", "tags": [ - "Environment Types" + "NetworkConnections" ], - "description": "Lists environment types for a project.", + "description": "Lists network connections in a resource group.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" - }, - { - "$ref": "commonDefinitions.json#/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": "ProjectEnvironmentTypes_List", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/ProjectEnvironmentTypeListResult" + "$ref": "#/definitions/NetworkConnectionListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ProjectEnvironmentTypes_List": { - "$ref": "./examples/ProjectEnvironmentTypes_List.json" + "NetworkConnections_ListByResourceGroup": { + "$ref": "./examples/NetworkConnections_ListByResourceGroup.json" } }, "x-ms-pageable": { @@ -3593,1719 +4743,1996 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}": { "get": { + "operationId": "NetworkConnections_Get", "tags": [ - "Environment Types" + "NetworkConnections" ], - "description": "Gets a project environment type.", + "description": "Gets a network connection resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentTypeNameParameter" + "name": "networkConnectionName", + "in": "path", + "description": "Name of the Network Connection that can be applied to a Pool.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "ProjectEnvironmentTypes_Get", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ProjectEnvironmentType" + "$ref": "#/definitions/NetworkConnection" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ProjectEnvironmentTypes_Get": { - "$ref": "./examples/ProjectEnvironmentTypes_Get.json" + "NetworkConnections_Get": { + "$ref": "./examples/NetworkConnections_Get.json" } } }, "put": { + "operationId": "NetworkConnections_CreateOrUpdate", "tags": [ - "Environment Types" + "NetworkConnections" ], - "description": "Creates or updates a project environment type.", + "description": "Creates or updates a Network Connections resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentTypeNameParameter" + "name": "networkConnectionName", + "in": "path", + "description": "Name of the Network Connection that can be applied to a Pool.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "body", "in": "body", - "description": "Represents a Project Environment Type.", + "description": "Represents network connection", "required": true, "schema": { - "$ref": "#/definitions/ProjectEnvironmentType" + "$ref": "#/definitions/NetworkConnection" } } ], - "operationId": "ProjectEnvironmentTypes_CreateOrUpdate", "responses": { "200": { - "description": "Succeeded", + "description": "Resource 'NetworkConnection' update operation succeeded", "schema": { - "$ref": "#/definitions/ProjectEnvironmentType" + "$ref": "#/definitions/NetworkConnection" } }, "201": { - "description": "Created", + "description": "Resource 'NetworkConnection' create operation succeeded", "schema": { - "$ref": "#/definitions/ProjectEnvironmentType" + "$ref": "#/definitions/NetworkConnection" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ProjectEnvironmentTypes_CreateOrUpdate": { - "$ref": "./examples/ProjectEnvironmentTypes_Put.json" + "NetworkConnections_CreateOrUpdate": { + "$ref": "./examples/NetworkConnections_Put.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/NetworkConnection" + }, + "x-ms-long-running-operation": true }, "patch": { + "operationId": "NetworkConnections_Update", "tags": [ - "Environment Types" + "NetworkConnections" ], - "description": "Partially updates a project environment type.", + "description": "Partially updates a Network Connection.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentTypeNameParameter" + "name": "networkConnectionName", + "in": "path", + "description": "Name of the Network Connection that can be applied to a Pool.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { "name": "body", "in": "body", - "description": "Updatable project environment type properties.", + "description": "Represents network connection", "required": true, "schema": { - "$ref": "#/definitions/ProjectEnvironmentTypeUpdate" + "$ref": "#/definitions/NetworkConnectionUpdate" } } ], - "operationId": "ProjectEnvironmentTypes_Update", "responses": { "200": { - "description": "The resource was updated.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/ProjectEnvironmentType" + "$ref": "#/definitions/NetworkConnection" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ProjectEnvironmentTypes_Update": { - "$ref": "./examples/ProjectEnvironmentTypes_Patch.json" + "NetworkConnections_Update": { + "$ref": "./examples/NetworkConnections_Patch.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/NetworkConnection" + }, + "x-ms-long-running-operation": true }, "delete": { + "operationId": "NetworkConnections_Delete", "tags": [ - "Environment Types" + "NetworkConnections" ], - "description": "Deletes a project environment type.", + "description": "Deletes a Network Connections resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentTypeNameParameter" + "name": "networkConnectionName", + "in": "path", + "description": "Name of the Network Connection that can be applied to a Pool.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "ProjectEnvironmentTypes_Delete", "responses": { - "200": { - "description": "Resource was deleted." + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } }, "204": { "description": "Resource does not exist." }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ProjectEnvironmentTypes_Delete": { - "$ref": "./examples/ProjectEnvironmentTypes_Delete.json" + "NetworkConnections_Delete": { + "$ref": "./examples/NetworkConnections_Delete.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, - { - "$ref": "#/parameters/DevCenterNameParameter" + "x-ms-long-running-operation-options": { + "final-state-via": "location" }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/healthChecks": { "get": { + "operationId": "NetworkConnections_ListHealthDetails", "tags": [ - "Dev Box Definitions" + "HealthCheckStatusDetailsOperationGroup" + ], + "description": "Lists health check status details.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "networkConnectionName", + "in": "path", + "description": "Name of the Network Connection that can be applied to a Pool.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "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": "List Dev Box definitions for a devcenter.", - "operationId": "DevBoxDefinitions_ListByDevCenter", - "parameters": [], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/DevBoxDefinitionListResult" + "$ref": "#/definitions/HealthCheckStatusDetailsListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "DevBoxDefinitions_ListByDevCenter": { - "$ref": "./examples/DevBoxDefinitions_ListByDevCenter.json" + "NetworkConnections_ListHealthDetails": { + "$ref": "./examples/NetworkConnections_ListHealthDetails.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/DevBoxDefinitionName" - } - ], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/healthChecks/latest": { "get": { + "operationId": "NetworkConnections_GetHealthDetails", "tags": [ - "Dev Box Definitions" + "HealthCheckStatusDetailsOperationGroup" + ], + "description": "Gets health check status details.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "networkConnectionName", + "in": "path", + "description": "Name of the Network Connection that can be applied to a Pool.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } ], - "description": "Gets a Dev Box definition", - "operationId": "DevBoxDefinitions_Get", - "parameters": [], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DevBoxDefinition" + "$ref": "#/definitions/HealthCheckStatusDetails" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "DevBoxDefinitions_Get": { - "$ref": "./examples/DevBoxDefinitions_Get.json" + "NetworkConnections_GetHealthDetails": { + "$ref": "./examples/NetworkConnections_GetHealthDetails.json" } } - }, - "put": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/outboundNetworkDependenciesEndpoints": { + "get": { + "operationId": "NetworkConnections_ListOutboundNetworkDependenciesEndpoints", "tags": [ - "Dev Box Definitions" + "NetworkConnections" ], - "description": "Creates or updates a Dev Box definition.", - "operationId": "DevBoxDefinitions_CreateOrUpdate", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, + "description": "Lists the endpoints that agents may call as part of Dev Box service administration. These FQDNs should be allowed for outbound access in order for the Dev Box service to function.", "parameters": [ { - "in": "body", - "name": "body", - "description": "Represents a Dev Box definition.", + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "networkConnectionName", + "in": "path", + "description": "Name of the Network Connection that can be applied to a Pool.", "required": true, - "schema": { - "$ref": "#/definitions/DevBoxDefinition" - } + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "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": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBoxDefinition" - } - }, - "201": { - "description": "Created. The operation will complete asynchronously.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DevBoxDefinition" + "$ref": "#/definitions/OutboundEnvironmentEndpointCollection" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "DevBoxDefinitions_Create": { - "$ref": "./examples/DevBoxDefinitions_Create.json" + "ListOutboundNetworkDependencies": { + "$ref": "./examples/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "patch": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/runHealthChecks": { + "post": { + "operationId": "NetworkConnections_RunHealthChecks", "tags": [ - "Dev Box Definitions" + "NetworkConnections" ], - "description": "Partially updates a Dev Box definition.", - "operationId": "DevBoxDefinitions_Update", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, + "description": "Triggers a new health check run. The execution and health check result can be tracked via the network Connection health check details.", "parameters": [ { - "in": "body", - "name": "body", - "description": "Represents a Dev Box definition.", + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "networkConnectionName", + "in": "path", + "description": "Name of the Network Connection that can be applied to a Pool.", "required": true, - "schema": { - "$ref": "#/definitions/DevBoxDefinitionUpdate" - } + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBoxDefinition" - } - }, "202": { - "description": "Accepted. The operation will complete asynchronously.", + "description": "Resource operation accepted.", "headers": { "Location": { - "type": "string" + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "DevBoxDefinitions_Patch": { - "$ref": "./examples/DevBoxDefinitions_Patch.json" + "NetworkConnections_RunHealthChecks": { + "$ref": "./examples/NetworkConnections_RunHealthChecks.json" } - } - }, - "delete": { - "tags": [ - "Dev Box Definitions" - ], - "description": "Deletes a Dev Box definition", - "operationId": "DevBoxDefinitions_Delete", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" }, - "parameters": [], - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } + "x-ms-long-running-operation-options": { + "final-state-via": "location" }, - "x-ms-examples": { - "DevBoxDefinitions_Delete": { - "$ref": "./examples/DevBoxDefinitions_Delete.json" - } - } + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProjectNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects": { "get": { + "operationId": "Projects_ListByResourceGroup", "tags": [ - "Dev Box Definitions" + "Projects" ], - "description": "List Dev Box definitions configured for a project.", - "operationId": "DevBoxDefinitions_ListByProject", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DevBoxDefinitionListResult" - } + "description": "Lists all projects in the resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "DevBoxDefinitions_ListByProject": { - "$ref": "./examples/DevBoxDefinitions_ListByProject.json" + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of resources to return from the operation. Example: '$top=10'.", + "required": false, + "type": "integer", + "format": "int32" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions/{devBoxDefinitionName}": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/DevBoxDefinitionName" - } - ], - "get": { - "tags": [ - "Dev Box Definitions" ], - "description": "Gets a Dev Box definition configured for a project", - "operationId": "DevBoxDefinitions_GetByProject", - "parameters": [], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/DevBoxDefinition" + "$ref": "#/definitions/ProjectListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "DevBoxDefinitions_GetByProject": { - "$ref": "./examples/DevBoxDefinitions_GetByProject.json" + "Projects_ListByResourceGroup": { + "$ref": "./examples/Projects_ListByResourceGroup.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/providers/Microsoft.DevCenter/operations": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}": { "get": { + "operationId": "Projects_Get", "tags": [ - "Operations" + "Projects" ], - "description": "Lists all of the available resource provider operations.", - "operationId": "Operations_List", + "description": "Gets a specific project.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + "$ref": "#/definitions/Project" } }, "default": { - "description": "Resource Provider error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Operations_Get": { - "$ref": "./examples/Operations_Get.json" + "Projects_Get": { + "$ref": "./examples/Projects_Get.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/operationStatuses/{operationId}": { - "get": { - "description": "Gets the current status of an async operation.", - "operationId": "OperationStatuses_Get", - "summary": "Get Operation Status", + }, + "put": { + "operationId": "Projects_CreateOrUpdate", "tags": [ - "OperationStatus" + "Projects" ], + "description": "Creates or updates a project.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/LocationParameter" + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/OperationIdParameter" + "name": "body", + "in": "body", + "description": "Represents a project.", + "required": true, + "schema": { + "$ref": "#/definitions/Project" + } } ], "responses": { "200": { - "description": "The requested operation status", + "description": "Resource 'Project' update operation succeeded", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/Project" } }, - "202": { - "description": "The requested operation status", + "201": { + "description": "Resource 'Project' create operation succeeded", + "schema": { + "$ref": "#/definitions/Project" + }, "headers": { - "Location": { - "type": "string" + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." } - }, - "schema": { - "$ref": "#/definitions/OperationStatus" } }, "default": { - "description": "Resource Provider error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Get OperationStatus": { - "$ref": "./examples/OperationStatus_Get.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/usages": { - "get": { - "operationId": "Usages_ListByLocation", - "description": "Lists the current usages and limits in this location for the provided subscription.", - "tags": [ - "Usages" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "Projects_CreateOrUpdate": { + "$ref": "./examples/Projects_Put.json" }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "Projects_CreateOrUpdateWithCustomizationSettings": { + "$ref": "./examples/Projects_PutWithCustomizationSettings.json" }, - { - "$ref": "#/parameters/LocationParameter" - } - ], - "responses": { - "200": { - "description": "The request was successful; a list of usages is returned", - "schema": { - "$ref": "#/definitions/ListUsagesResult" - } + "Projects_CreateOrUpdateWithCustomizationSettings_SystemIdentity": { + "$ref": "./examples/Projects_PutWithCustomizationSettings_SystemIdentity.json" }, - "default": { - "description": "The default error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } + "Projects_CreateOrUpdateWithLimitsPerDev": { + "$ref": "./examples/Projects_PutWithMaxDevBoxPerUser.json" } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/Project" }, - "x-ms-examples": { - "listUsages": { - "$ref": "./examples/Usages_ListByLocation.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/checkNameAvailability": { - "post": { + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Projects_Update", "tags": [ - "CheckNameAvailability" + "Projects" ], - "operationId": "CheckNameAvailability_Execute", - "x-ms-examples": { - "NameAvailability": { - "$ref": "./examples/CheckNameAvailability.json" - } - }, - "description": "Check the availability of name for resource", + "description": "Partially updates a project.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "nameAvailabilityRequest", + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "body", "in": "body", + "description": "Updatable project properties.", "required": true, "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityRequest" - }, - "description": "The required parameters for checking if resource name is available." + "$ref": "#/definitions/ProjectUpdate" + } } ], "responses": { "200": { - "description": "OK", + "description": "The request has succeeded.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityResponse" + "$ref": "#/definitions/Project" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/checkScopedNameAvailability": { - "post": { - "tags": [ - "CheckScopedNameAvailability" - ], - "operationId": "CheckScopedNameAvailability_Execute", + }, "x-ms-examples": { - "DevcenterCatalogNameAvailability": { - "$ref": "./examples/CheckScopedNameAvailability_DevCenterCatalog.json" - }, - "ProjectCatalogNameAvailability": { - "$ref": "./examples/CheckScopedNameAvailability_ProjectCatalog.json" + "Projects_Update": { + "$ref": "./examples/Projects_Patch.json" } }, - "description": "Check the availability of name for resource", + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/Project" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Projects_Delete", + "tags": [ + "Projects" + ], + "description": "Deletes a project resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "nameAvailabilityRequest", - "in": "body", + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The name of the project.", "required": true, - "schema": { - "$ref": "#/definitions/CheckScopedNameAvailabilityRequest" - }, - "description": "The required parameters for checking if resource name is available." + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityResponse" + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } } }, + "204": { + "description": "Resource does not exist." + }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" + "x-ms-examples": { + "Projects_Delete": { + "$ref": "./examples/Projects_Delete.json" + } }, - { - "$ref": "#/parameters/CatalogNameParameter" + "x-ms-long-running-operation-options": { + "final-state-via": "location" }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes": { "get": { + "operationId": "ProjectAllowedEnvironmentTypes_List", "tags": [ - "Customization Tasks" + "AllowedEnvironmentTypes" + ], + "description": "Lists allowed environment types for a project.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "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": "List Tasks in the catalog.", - "operationId": "CustomizationTasks_ListByCatalog", - "parameters": [], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/CustomizationTaskListResult" + "$ref": "#/definitions/AllowedEnvironmentTypeListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "CustomizationTasks_ListByCatalog": { - "$ref": "./examples/CustomizationTasks_ListByCatalog.json" + "ProjectAllowedEnvironmentTypes_List": { + "$ref": "./examples/ProjectAllowedEnvironmentTypes_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/CustomizationTaskNameParameter" - } - ], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes/{environmentTypeName}": { "get": { + "operationId": "ProjectAllowedEnvironmentTypes_Get", "tags": [ - "Customization Tasks" + "AllowedEnvironmentTypes" + ], + "description": "Gets an allowed environment type.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "environmentTypeName", + "in": "path", + "description": "The name of the environment type.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } ], - "description": "Gets a Task from the catalog", - "operationId": "CustomizationTasks_Get", - "parameters": [], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/CustomizationTask" + "$ref": "#/definitions/AllowedEnvironmentType" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "CustomizationTasks_Get": { - "$ref": "./examples/CustomizationTasks_Get.json" + "ProjectAllowedEnvironmentTypes_Get": { + "$ref": "./examples/ProjectAllowedEnvironmentTypes_Get.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}/getErrorDetails": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/CustomizationTaskNameParameter" - } - ], - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks": { + "get": { + "operationId": "AttachedNetworks_ListByProject", "tags": [ - "Customization Tasks" + "AttachedNetworkConnections" + ], + "description": "Lists the attached NetworkConnections for a Project.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "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": "Gets Customization Task error details", - "operationId": "CustomizationTasks_GetErrorDetails", - "parameters": [], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "vdi.json#/definitions/CatalogResourceValidationErrorDetails" + "$ref": "#/definitions/AttachedNetworkListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "CustomizationTasks_GetErrorDetails": { - "$ref": "./examples/CustomizationTasks_GetErrorDetails.json" + "AttachedNetworks_ListByProject": { + "$ref": "./examples/AttachedNetworks_ListByProject.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks/{attachedNetworkConnectionName}": { "get": { + "operationId": "AttachedNetworks_GetByProject", "tags": [ - "Environment Definitions" + "AttachedNetworkConnections" ], - "description": "List environment definitions in the catalog.", + "description": "Gets an attached NetworkConnection.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "commonDefinitions.json#/parameters/TopParameter" + "name": "attachedNetworkConnectionName", + "in": "path", + "description": "The name of the attached NetworkConnection.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], - "operationId": "EnvironmentDefinitions_ListByCatalog", "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/EnvironmentDefinitionListResult" + "$ref": "#/definitions/AttachedNetworkConnection" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "EnvironmentDefinitions_ListByCatalog": { - "$ref": "./examples/EnvironmentDefinitions_ListByCatalog.json" + "AttachedNetworks_GetByProject": { + "$ref": "./examples/AttachedNetworks_GetByProject.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentDefinitionNameParameter" - } - ], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs": { "get": { + "operationId": "ProjectCatalogs_List", "tags": [ - "Environment Definitions" + "Catalogs" + ], + "description": "Lists the catalogs associated with a project.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "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": "Gets an environment definition from the catalog.", - "operationId": "EnvironmentDefinitions_Get", - "parameters": [], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/EnvironmentDefinition" + "$ref": "#/definitions/CatalogListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "EnvironmentDefinitions_Get": { - "$ref": "./examples/EnvironmentDefinitions_Get.json" + "ProjectCatalogs_List": { + "$ref": "./examples/ProjectCatalogs_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}/getErrorDetails": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/EnvironmentDefinitionNameParameter" - } - ], - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}": { + "get": { + "operationId": "ProjectCatalogs_Get", "tags": [ - "Environment Definitions" + "Catalogs" + ], + "description": "Gets an associated project catalog.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } ], - "description": "Gets Environment Definition error details", - "operationId": "EnvironmentDefinitions_GetErrorDetails", - "parameters": [], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "vdi.json#/definitions/CatalogResourceValidationErrorDetails" + "$ref": "#/definitions/Catalog" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "EnvironmentDefinitions_GetErrorDetails": { - "$ref": "./examples/EnvironmentDefinitions_GetErrorDetails.json" + "ProjectCatalogs_Get": { + "$ref": "./examples/ProjectCatalogs_Get.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { + }, + "put": { + "operationId": "ProjectCatalogs_CreateOrUpdate", "tags": [ - "Image Definitions" + "Catalogs" ], - "description": "List Image Definitions in the catalog.", - "operationId": "DevCenterCatalogImageDefinitions_ListByDevCenterCatalog", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageDefinitionListResult" - } + "description": "Creates or updates a project catalog.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, - "default": { - "description": "Error response describing why the operation failed.", + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "body", + "in": "body", + "description": "Represents a catalog.", + "required": true, "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/Catalog" } } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "ImageDefinitions_ListByDevCenterCatalog": { - "$ref": "./examples/ImageDefinitions_ListByDevCenterCatalog.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - } - ], - "get": { - "tags": [ - "Image Definitions" ], - "description": "Gets an Image Definition from the catalog", - "operationId": "DevCenterCatalogImageDefinitions_GetByDevCenterCatalog", - "parameters": [], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Resource 'Catalog' update operation succeeded", "schema": { - "$ref": "#/definitions/ImageDefinition" + "$ref": "#/definitions/Catalog" + } + }, + "201": { + "description": "Resource 'Catalog' create operation succeeded", + "schema": { + "$ref": "#/definitions/Catalog" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ImageDefinitions_GetByDevCenterCatalog": { - "$ref": "./examples/ImageDefinitions_GetByDevCenterCatalog.json" + "ProjectCatalogs_CreateOrUpdateAdo": { + "$ref": "./examples/ProjectCatalogs_CreateAdo.json" + }, + "ProjectCatalogs_CreateOrUpdateGitHub": { + "$ref": "./examples/ProjectCatalogs_CreateGitHub.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/getErrorDetails": { - "post": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/Catalog" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "ProjectCatalogs_Patch", "tags": [ - "Image Definitions" + "Catalogs" ], - "description": "Gets Image Definition error details", - "operationId": "DevCenterCatalogImageDefinitions_GetErrorDetails", + "description": "Partially updates a project catalog.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/ImageDefinitionNameParameter" + "name": "body", + "in": "body", + "description": "Updatable project catalog properties.", + "required": true, + "schema": { + "$ref": "#/definitions/CatalogUpdate" + } } ], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "vdi.json#/definitions/CatalogResourceValidationErrorDetails" + "$ref": "#/definitions/Catalog" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "DevCenterImageDefinitions_GetErrorDetails": { - "$ref": "./examples/DevCenterImageDefinitions_GetErrorDetails.json" + "ProjectCatalogs_Patch": { + "$ref": "./examples/ProjectCatalogs_Patch.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/buildImage": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" }, - { - "$ref": "#/parameters/CatalogNameParameter" + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/Catalog" }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - } - ], - "post": { + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "ProjectCatalogs_Delete", "tags": [ - "Image Definitions" + "Catalogs" + ], + "description": "Deletes a project catalog resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } ], - "description": "Builds an image for the specified Image Definition.", - "operationId": "DevCenterCatalogImageDefinitions_BuildImage", - "parameters": [], "responses": { "202": { - "description": "Accepted. Operation will complete asynchronously.", + "description": "Resource deletion accepted.", "headers": { - "Azure-AsyncOperation": { - "type": "string" - }, "Location": { - "type": "string" + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, + "204": { + "description": "Resource does not exist." + }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "x-ms-examples": { - "DevCenterCatalogImageDefinitions_BuildImage": { - "$ref": "./examples/DevCenterImageDefinitions_BuildImage.json" + "ProjectCatalogs_Delete": { + "$ref": "./examples/ProjectCatalogs_Delete.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - } - ], - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/connect": { + "post": { + "operationId": "ProjectCatalogs_Connect", "tags": [ - "Image Definitions" + "Catalogs" + ], + "description": "Connects a project catalog to enable syncing.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } ], - "description": "Lists builds for a specified image definition.", - "operationId": "DevCenterCatalogImageDefinitionBuilds_ListByImageDefinition", - "parameters": [], "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageDefinitionBuildListResult" + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "DevCenterImageDefinitionBuilds_ListByImageDefinition": { - "$ref": "./examples/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json" + "ProjectCatalogs_Connect": { + "$ref": "./examples/ProjectCatalogs_Connect.json" } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionBuildNameParameter" - } - ], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions": { "get": { + "operationId": "EnvironmentDefinitions_ListByProjectCatalog", "tags": [ - "Image Definitions" + "EnvironmentDefinitions" + ], + "description": "Lists the environment definitions in this project catalog.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } ], - "description": "Gets a build for a specified image definition.", - "operationId": "DevCenterCatalogImageDefinitionBuild_Get", - "parameters": [], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/ImageDefinitionBuild" + "$ref": "#/definitions/EnvironmentDefinitionListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "DevCenterImageDefinitionBuilds_GetByImageDefinition": { - "$ref": "./examples/DevCenterImageDefinitions_GetImageBuild.json" + "EnvironmentDefinitions_ListByProjectCatalog": { + "$ref": "./examples/EnvironmentDefinitions_ListByProjectCatalog.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}/cancel": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DevCenterNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionBuildNameParameter" - } - ], - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}": { + "get": { + "operationId": "EnvironmentDefinitions_GetByProjectCatalog", "tags": [ - "Image Definitions" + "EnvironmentDefinitions" + ], + "description": "Gets an environment definition from the catalog.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "environmentDefinitionName", + "in": "path", + "description": "The name of the Environment Definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } ], - "description": "Cancels the specified build for an image definition.", - "operationId": "DevCenterCatalogImageDefinitionBuild_Cancel", - "parameters": [], "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Azure-AsyncOperation": { - "type": "string" - }, - "Location": { - "type": "string" - } + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/EnvironmentDefinition" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "x-ms-examples": { - "DevCenterImageDefinitionBuilds_CancelByImageDefinition": { - "$ref": "./examples/DevCenterImageDefinitions_CancelImageBuild.json" + "EnvironmentDefinitions_GetByProjectCatalog": { + "$ref": "./examples/EnvironmentDefinitions_GetByProjectCatalog.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}/getBuildDetails": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}/getErrorDetails": { "post": { + "operationId": "ProjectCatalogEnvironmentDefinitions_GetErrorDetails", "tags": [ - "Image Definitions" + "EnvironmentDefinitions" ], - "description": "Gets Build details", - "operationId": "DevCenterCatalogImageDefinitionBuild_GetBuildDetails", + "description": "Gets Environment Definition error details.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/DevCenterNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/ImageDefinitionNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/ImageDefinitionBuildNameParameter" + "name": "environmentDefinitionName", + "in": "path", + "description": "The 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": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ImageDefinitionBuildDetails" + "$ref": "#/definitions/CatalogResourceValidationErrorDetails" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "DevCenterCatalogImageDefinitionBuild_GetErrorDetails": { - "$ref": "./examples/DevCenterImageDefinitions_GetImageBuildDetails.json" + "ProjectCatalogEnvironmentDefinitions_GetErrorDetails": { + "$ref": "./examples/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/getSyncErrorDetails": { + "post": { + "operationId": "ProjectCatalogs_GetSyncErrorDetails", "tags": [ - "Image Definitions" + "Catalogs" ], - "description": "List Image Definitions in the catalog.", - "operationId": "ProjectCatalogImageDefinitions_ListByProjectCatalog", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ImageDefinitionListResult" - } + "description": "Gets project catalog synchronization error details", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "ImageDefinitions_ListByProjectCatalog": { - "$ref": "./examples/ImageDefinitions_ListByProjectCatalog.json" + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - } - ], - "get": { - "tags": [ - "Image Definitions" ], - "description": "Gets an Image Definition from the catalog", - "operationId": "ProjectCatalogImageDefinitions_GetByProjectCatalog", - "parameters": [], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ImageDefinition" + "$ref": "#/definitions/SyncErrorDetails" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ImageDefinitions_GetByProjectCatalog": { - "$ref": "./examples/ImageDefinitions_GetByProjectCatalog.json" + "ProjectCatalogs_GetSyncErrorDetails": { + "$ref": "./examples/ProjectCatalogs_GetSyncErrorDetails.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/getErrorDetails": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions": { + "get": { + "operationId": "ProjectCatalogImageDefinitions_ListByProjectCatalog", "tags": [ - "Image Definitions" + "ProjectCatalogImageDefinitions" ], - "description": "Gets Image Definition error details", - "operationId": "ProjectCatalogImageDefinitions_GetErrorDetails", + "description": "List Image Definitions in the catalog.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/ImageDefinitionNameParameter" + "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": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { - "$ref": "vdi.json#/definitions/CatalogResourceValidationErrorDetails" + "$ref": "#/definitions/ImageDefinitionListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "ProjectCatalogImageDefinitions_GetErrorDetails": { - "$ref": "./examples/ProjectCatalogImageDefinitions_GetErrorDetails.json" + "ImageDefinitions_ListByProjectCatalog": { + "$ref": "./examples/ImageDefinitions_ListByProjectCatalog.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/buildImage": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProjectNameParameter" }, - { - "$ref": "#/parameters/CatalogNameParameter" + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}": { + "get": { + "operationId": "ProjectCatalogImageDefinitions_GetByProjectCatalog", + "tags": [ + "ProjectCatalogImageDefinitions" + ], + "description": "Gets an Image Definition from the catalog.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "imageDefinitionName", + "in": "path", + "description": "The name of the Image Definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImageDefinition" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" + "x-ms-examples": { + "ImageDefinitions_GetByProjectCatalog": { + "$ref": "./examples/ImageDefinitions_GetByProjectCatalog.json" + } } - ], + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/buildImage": { "post": { + "operationId": "ProjectCatalogImageDefinitions_BuildImage", "tags": [ - "Image Definitions" + "ProjectCatalogImageDefinitions" ], "description": "Builds an image for the specified Image Definition.", - "operationId": "ProjectCatalogImageDefinitions_BuildImage", - "parameters": [], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "imageDefinitionName", + "in": "path", + "description": "The name of the Image Definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], "responses": { "202": { - "description": "Accepted. Operation will complete asynchronously.", + "description": "Resource operation accepted.", "headers": { "Azure-AsyncOperation": { - "type": "string" + "type": "string", + "description": "A link to the status monitor" }, "Location": { - "type": "string" + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "x-ms-examples": { "ProjectCatalogImageDefinitions_BuildImage": { "$ref": "./examples/ImageDefinitions_BuildImage.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - } - ], "get": { + "operationId": "ProjectCatalogImageDefinitionBuilds_ListByImageDefinition", "tags": [ - "Image Definitions" + "ProjectCatalogImageDefinitionBuild" ], "description": "Lists builds for a specified image definition.", - "operationId": "ProjectCatalogImageDefinitionBuilds_ListByImageDefinition", - "parameters": [], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "imageDefinitionName", + "in": "path", + "description": "The name of the Image Definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/ImageDefinitionBuildListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -5320,47 +6747,74 @@ } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionBuildNameParameter" - } - ], "get": { + "operationId": "ProjectCatalogImageDefinitionBuild_Get", "tags": [ - "Image Definitions" + "ProjectCatalogImageDefinitionBuild" ], "description": "Gets a build for a specified image definition.", - "operationId": "ProjectCatalogImageDefinitionBuild_Get", - "parameters": [], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "imageDefinitionName", + "in": "path", + "description": "The name of the Image Definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "buildName", + "in": "path", + "description": "The ID of the Image Definition Build.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/ImageDefinitionBuild" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -5372,107 +6826,164 @@ } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}/cancel": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/CatalogNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionNameParameter" - }, - { - "$ref": "#/parameters/ImageDefinitionBuildNameParameter" - } - ], "post": { + "operationId": "ProjectCatalogImageDefinitionBuild_Cancel", "tags": [ - "Image Definitions" + "ProjectCatalogImageDefinitionBuild" ], "description": "Cancels the specified build for an image definition.", - "operationId": "ProjectCatalogImageDefinitionBuild_Cancel", - "parameters": [], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "imageDefinitionName", + "in": "path", + "description": "The name of the Image Definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "buildName", + "in": "path", + "description": "The ID of the Image Definition Build.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], "responses": { "202": { - "description": "Accepted. Operation will complete asynchronously.", + "description": "Resource operation accepted.", "headers": { "Azure-AsyncOperation": { - "type": "string" + "type": "string", + "description": "A link to the status monitor" }, "Location": { - "type": "string" + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "x-ms-examples": { "ImageDefinitionBuilds_CancelByImageDefinition": { "$ref": "./examples/ImageDefinitions_CancelImageBuild.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/builds/{buildName}/getBuildDetails": { "post": { + "operationId": "ProjectCatalogImageDefinitionBuild_GetBuildDetails", "tags": [ - "Image Definitions" + "ProjectCatalogImageDefinitionBuild" ], - "description": "Gets Build details", - "operationId": "ProjectCatalogImageDefinitionBuild_GetBuildDetails", + "description": "Gets Build details.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ProjectNameParameter" + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/CatalogNameParameter" + "name": "catalogName", + "in": "path", + "description": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/ImageDefinitionNameParameter" + "name": "imageDefinitionName", + "in": "path", + "description": "The name of the Image Definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" }, { - "$ref": "#/parameters/ImageDefinitionBuildNameParameter" + "name": "buildName", + "in": "path", + "description": "The ID of the Image Definition Build.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" } ], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/ImageDefinitionBuildDetails" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, @@ -5482,2848 +6993,6343 @@ } } } - } - }, - "definitions": { - "DevCenter": { - "type": "object", - "description": "Represents a devcenter resource.", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "description": "DevCenter properties", - "x-ms-client-flatten": true, - "$ref": "#/definitions/DevCenterProperties" + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/imageDefinitions/{imageDefinitionName}/getErrorDetails": { + "post": { + "operationId": "ProjectCatalogImageDefinitions_GetErrorDetails", + "tags": [ + "ProjectCatalogImageDefinitions" + ], + "description": "Gets Image Definition error details.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "imageDefinitionName", + "in": "path", + "description": "The name of the Image Definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CatalogResourceValidationErrorDetails" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } }, - "identity": { - "description": "Managed identity properties", - "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" + "x-ms-examples": { + "ProjectCatalogImageDefinitions_GetErrorDetails": { + "$ref": "./examples/ProjectCatalogImageDefinitions_GetErrorDetails.json" + } } } }, - "DevCenterProperties": { - "description": "Properties of the devcenter.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/DevCenterUpdateProperties" - } + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}/sync": { + "post": { + "operationId": "ProjectCatalogs_Sync", + "tags": [ + "Catalogs" + ], + "description": "Syncs templates for a template source.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "The name of the Catalog.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectCatalogs_Sync": { + "$ref": "./examples/ProjectCatalogs_Sync.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions": { + "get": { + "operationId": "DevBoxDefinitions_ListByProject", + "tags": [ + "DevBoxDefinitionOperationGroup" + ], + "description": "List Dev Box definitions configured for a project.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "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/DevBoxDefinitionListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevBoxDefinitions_ListByProject": { + "$ref": "./examples/DevBoxDefinitions_ListByProject.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions/{devBoxDefinitionName}": { + "get": { + "operationId": "DevBoxDefinitions_GetByProject", + "tags": [ + "DevBoxDefinitionOperationGroup" + ], + "description": "Gets a Dev Box definition configured for a project.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "devBoxDefinitionName", + "in": "path", + "description": "The name of the Dev Box definition.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DevBoxDefinition" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DevBoxDefinitions_GetByProject": { + "$ref": "./examples/DevBoxDefinitions_GetByProject.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes": { + "get": { + "operationId": "ProjectEnvironmentTypes_List", + "tags": [ + "ProjectEnvironmentTypes" + ], + "description": "Lists environment types for a project.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "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/ProjectEnvironmentTypeListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectEnvironmentTypes_List": { + "$ref": "./examples/ProjectEnvironmentTypes_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}": { + "get": { + "operationId": "ProjectEnvironmentTypes_Get", + "tags": [ + "ProjectEnvironmentTypes" + ], + "description": "Gets a project environment type.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "environmentTypeName", + "in": "path", + "description": "The name of the environment type.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ProjectEnvironmentType" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectEnvironmentTypes_Get": { + "$ref": "./examples/ProjectEnvironmentTypes_Get.json" + } + } + }, + "put": { + "operationId": "ProjectEnvironmentTypes_CreateOrUpdate", + "tags": [ + "ProjectEnvironmentTypes" + ], + "description": "Creates or updates a project environment type.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "environmentTypeName", + "in": "path", + "description": "The name of the environment type.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "body", + "in": "body", + "description": "Represents a Project Environment Type.", + "required": true, + "schema": { + "$ref": "#/definitions/ProjectEnvironmentType" + } + } + ], + "responses": { + "200": { + "description": "Resource 'ProjectEnvironmentType' update operation succeeded", + "schema": { + "$ref": "#/definitions/ProjectEnvironmentType" + } + }, + "201": { + "description": "Resource 'ProjectEnvironmentType' create operation succeeded", + "schema": { + "$ref": "#/definitions/ProjectEnvironmentType" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectEnvironmentTypes_CreateOrUpdate": { + "$ref": "./examples/ProjectEnvironmentTypes_Put.json" + } + } + }, + "patch": { + "operationId": "ProjectEnvironmentTypes_Update", + "tags": [ + "ProjectEnvironmentTypes" + ], + "description": "Partially updates a project environment type.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "environmentTypeName", + "in": "path", + "description": "The name of the environment type.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "body", + "in": "body", + "description": "Updatable project environment type properties.", + "required": true, + "schema": { + "$ref": "#/definitions/ProjectEnvironmentTypeUpdate" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ProjectEnvironmentType" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectEnvironmentTypes_Update": { + "$ref": "./examples/ProjectEnvironmentTypes_Patch.json" + } + } + }, + "delete": { + "operationId": "ProjectEnvironmentTypes_Delete", + "tags": [ + "ProjectEnvironmentTypes" + ], + "description": "Deletes a project environment type.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "environmentTypeName", + "in": "path", + "description": "The name of the environment type.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ProjectEnvironmentTypes_Delete": { + "$ref": "./examples/ProjectEnvironmentTypes_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/getInheritedSettings": { + "post": { + "operationId": "Projects_GetInheritedSettings", + "tags": [ + "Projects" + ], + "description": "Gets applicable inherited settings for this project.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/InheritedSettingsForProject" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Projects_GetInheritedSettings": { + "$ref": "./examples/Projects_GetInheritedSettings.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/images": { + "get": { + "operationId": "Images_ListByProject", + "tags": [ + "ImageOperationGroup" + ], + "description": "Lists images for a project.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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/ImageListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Images_ListByProject": { + "$ref": "./examples/Images_ListByProject.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/images/{imageName}": { + "get": { + "operationId": "Images_GetByProject", + "tags": [ + "ImageOperationGroup" + ], + "description": "Gets an image.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "imageName", + "in": "path", + "description": "The name of the image.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 153, + "pattern": "^[a-zA-Z0-9~][a-zA-Z0-9-.~]{0,151}[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Image" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Images_GetByProject": { + "$ref": "./examples/Images_GetByProject.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/images/{imageName}/versions": { + "get": { + "operationId": "ImageVersions_ListByProject", + "tags": [ + "ImageVersionOperationGroup" + ], + "description": "Lists versions for an image.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "imageName", + "in": "path", + "description": "The name of the image.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 153, + "pattern": "^[a-zA-Z0-9~][a-zA-Z0-9-.~]{0,151}[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/ImageVersionListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ImageVersions_ListByProject": { + "$ref": "./examples/ImageVersions_ListByProject.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/images/{imageName}/versions/{versionName}": { + "get": { + "operationId": "ImageVersions_GetByProject", + "tags": [ + "ImageVersionOperationGroup" + ], + "description": "Gets an image version.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "imageName", + "in": "path", + "description": "The name of the image.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 153, + "pattern": "^[a-zA-Z0-9~][a-zA-Z0-9-.~]{0,151}[a-zA-Z0-9]$" + }, + { + "name": "versionName", + "in": "path", + "description": "The version of the image.", + "required": true, + "type": "string", + "minLength": 5, + "maxLength": 32, + "pattern": "^[0-9]{1,10}[.][0-9]{1,10}[.][0-9]{1,10}$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImageVersion" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ImageVersions_GetByProject": { + "$ref": "./examples/ImageVersions_GetByProject.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/listSkus": { + "post": { + "operationId": "Skus_ListByProject", + "tags": [ + "Projects" + ], + "description": "Lists SKUs available to the project.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/SkuListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Skus_ListByProject": { + "$ref": "./examples/Skus_ListByProject.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools": { + "get": { + "operationId": "Pools_ListByProject", + "tags": [ + "Pools" + ], + "description": "Lists pools for a project.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The name of the project.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "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/PoolListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Pools_ListByProject": { + "$ref": "./examples/Pools_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}": { + "get": { + "operationId": "Pools_Get", + "tags": [ + "Pools" + ], + "description": "Gets a machine pool.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "Name of the pool.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Pool" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Pools_Get": { + "$ref": "./examples/Pools_Get.json" + }, + "Pools_GetUnhealthyStatus": { + "$ref": "./examples/Pools_GetUnhealthyStatus.json" + } + } + }, + "put": { + "operationId": "Pools_CreateOrUpdate", + "tags": [ + "Pools" + ], + "description": "Creates or updates a machine pool.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "Name of the pool.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "body", + "in": "body", + "description": "Represents a machine pool", + "required": true, + "schema": { + "$ref": "#/definitions/Pool" + } + } + ], + "responses": { + "200": { + "description": "Resource 'Pool' update operation succeeded", + "schema": { + "$ref": "#/definitions/Pool" + } + }, + "201": { + "description": "Resource 'Pool' create operation succeeded", + "schema": { + "$ref": "#/definitions/Pool" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Pools_CreateOrUpdate": { + "$ref": "./examples/Pools_Put.json" + }, + "Pools_CreateOrUpdateWithManagedNetwork": { + "$ref": "./examples/Pools_PutWithManagedNetwork.json" + }, + "Pools_CreateOrUpdateWithValueDevBoxDefinition": { + "$ref": "./examples/Pools_PutWithValueDevBoxDefinition.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/Pool" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Pools_Update", + "tags": [ + "Pools" + ], + "description": "Partially updates a machine pool.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "Name of the pool.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "body", + "in": "body", + "description": "Represents a machine pool", + "required": true, + "schema": { + "$ref": "#/definitions/PoolUpdate" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Pool" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Pools_Update": { + "$ref": "./examples/Pools_Patch.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/Pool" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Pools_Delete", + "tags": [ + "Pools" + ], + "description": "Deletes a machine pool.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "Name of the pool.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Pools_Delete": { + "$ref": "./examples/Pools_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/runHealthChecks": { + "post": { + "operationId": "Pools_RunHealthChecks", + "tags": [ + "Pools" + ], + "description": "Triggers a refresh of the pool status.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "Name of the pool.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + } + ], + "responses": { + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Pools_RefreshStatus": { + "$ref": "./examples/Pools_RunHealthChecks.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules": { + "get": { + "operationId": "Schedules_ListByPool", + "tags": [ + "Schedules" + ], + "description": "Lists schedules for a pool.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "Name of the pool.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "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/ScheduleListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Schedules_ListByPool": { + "$ref": "./examples/Schedules_ListByPool.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { + "get": { + "operationId": "Schedules_Get", + "tags": [ + "Schedules" + ], + "description": "Gets a schedule resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "Name of the pool.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "scheduleName", + "in": "path", + "description": "The name of the schedule that uniquely identifies it.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 100, + "pattern": "^[-\\w]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Schedules_GetByPool": { + "$ref": "./examples/Schedules_Get.json" + } + } + }, + "put": { + "operationId": "Schedules_CreateOrUpdate", + "tags": [ + "Schedules" + ], + "description": "Creates or updates a Schedule.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "Name of the pool.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "scheduleName", + "in": "path", + "description": "The name of the schedule that uniquely identifies it.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 100, + "pattern": "^[-\\w]+$" + }, + { + "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": "body", + "in": "body", + "description": "Represents a scheduled task", + "required": true, + "schema": { + "$ref": "#/definitions/Schedule" + } + } + ], + "responses": { + "200": { + "description": "Resource 'Schedule' update operation succeeded", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "201": { + "description": "Resource 'Schedule' create operation succeeded", + "schema": { + "$ref": "#/definitions/Schedule" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Schedules_CreateDailyShutdownPoolSchedule": { + "$ref": "./examples/Schedules_CreateDailyShutdownPoolSchedule.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/Schedule" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Schedules_Update", + "tags": [ + "Schedules" + ], + "description": "Partially updates a Schedule.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "Name of the pool.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "scheduleName", + "in": "path", + "description": "The name of the schedule that uniquely identifies it.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 100, + "pattern": "^[-\\w]+$" + }, + { + "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": "body", + "in": "body", + "description": "Represents a scheduled task.", + "required": true, + "schema": { + "$ref": "#/definitions/ScheduleUpdate" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/Schedule" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Schedules_Update": { + "$ref": "./examples/Schedules_Patch.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/Schedule" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Schedules_Delete", + "tags": [ + "Schedules" + ], + "description": "Deletes a Schedule.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "projectName", + "in": "path", + "description": "The 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": "Name of the pool.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$" + }, + { + "name": "scheduleName", + "in": "path", + "description": "The name of the schedule that uniquely identifies it.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 100, + "pattern": "^[-\\w]+$" + }, + { + "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": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Schedules_Delete": { + "$ref": "./examples/Schedules_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "ActiveHoursConfiguration": { + "type": "object", + "description": "Active hours configuration.", + "properties": { + "keepAwakeEnableStatus": { + "$ref": "#/definitions/KeepAwakeEnableStatus", + "description": "Enables or disables whether the Dev Box should be kept awake during active hours." + }, + "autoStartEnableStatus": { + "$ref": "#/definitions/AutoStartEnableStatus", + "description": "Enables or disables whether the Dev Box should be automatically started at commencement of active hours." + }, + "defaultTimeZone": { + "type": "string", + "description": "The default IANA timezone id of the active hours." + }, + "defaultStartTimeHour": { + "type": "integer", + "format": "int32", + "description": "The default start time of the active hours." + }, + "defaultEndTimeHour": { + "type": "integer", + "format": "int32", + "description": "The default end time of the active hours." + }, + "defaultDaysOfWeek": { + "type": "array", + "description": "The days of the week that active hours features will be enabled. This serves as a default that can be updated by each individual user.", + "items": { + "$ref": "#/definitions/DayOfWeek" + } + }, + "daysOfWeekLimit": { + "type": "integer", + "format": "int32", + "description": "The maximum amount of days per week that a user can enable active hours related features." + } + } + }, + "AllowedEnvironmentType": { + "type": "object", + "description": "Represents an allowed environment type.", + "properties": { + "properties": { + "$ref": "#/definitions/AllowedEnvironmentTypeProperties", + "description": "Properties of an allowed environment type.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ] + }, + "AllowedEnvironmentTypeListResult": { + "type": "object", + "description": "Paged collection of AllowedEnvironmentType items", + "properties": { + "value": { + "type": "array", + "description": "The AllowedEnvironmentType items on this page", + "items": { + "$ref": "#/definitions/AllowedEnvironmentType" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "AllowedEnvironmentTypeProperties": { + "type": "object", + "description": "Properties of an allowed environment type.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the resource.", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "The display name of the allowed environment type.", + "readOnly": true + } + } + }, + "AttachedNetworkConnection": { + "type": "object", + "description": "Represents an attached NetworkConnection.", + "properties": { + "properties": { + "$ref": "#/definitions/AttachedNetworkConnectionProperties", + "description": "Attached NetworkConnection properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ] + }, + "AttachedNetworkConnectionProperties": { + "type": "object", + "description": "Properties of an attached NetworkConnection.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the resource.", + "readOnly": true + }, + "networkConnectionId": { + "type": "string", + "description": "The resource ID of the NetworkConnection you want to attach.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "networkConnectionLocation": { + "type": "string", + "description": "The geo-location where the NetworkConnection resource specified in 'networkConnectionResourceId' property lives.", + "readOnly": true + }, + "healthCheckStatus": { + "$ref": "#/definitions/HealthCheckStatus", + "description": "Health check status values.", + "readOnly": true + }, + "domainJoinType": { + "$ref": "#/definitions/DomainJoinType", + "description": "AAD Join type of the network. This is populated based on the referenced Network Connection.", + "readOnly": true + } + } + }, + "AttachedNetworkListResult": { + "type": "object", + "description": "Paged collection of AttachedNetworkConnection items", + "properties": { + "value": { + "type": "array", + "description": "The AttachedNetworkConnection items on this page", + "items": { + "$ref": "#/definitions/AttachedNetworkConnection" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "AutoImageBuildStatus": { + "type": "string", + "description": "Indicates whether auto image build is enabled/disabled.", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "AutoImageBuildStatus", + "modelAsString": true, + "values": [ + { + "name": "Disabled", + "value": "Disabled", + "description": "Auto image build is disabled." + }, + { + "name": "Enabled", + "value": "Enabled", + "description": "Auto image build is enabled." + } + ] + } + }, + "AutoStartEnableStatus": { + "type": "string", + "description": "Enables or disables whether Dev Boxes should be automatically started at commencement of active hours.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "AutoStartEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Auto start is enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Auto start is disabled." + } + ] + } + }, + "AzureAiServicesMode": { + "type": "string", + "description": "Indicates whether Azure AI services are enabled for a project.", + "enum": [ + "Disabled", + "AutoDeploy" + ], + "x-ms-enum": { + "name": "AzureAiServicesMode", + "modelAsString": true, + "values": [ + { + "name": "Disabled", + "value": "Disabled", + "description": "Azure AI services are disabled for this project." + }, + { + "name": "AutoDeploy", + "value": "AutoDeploy", + "description": "Azure AI services are enabled for this project and necessary resources will be automatically setup." + } + ] + } + }, + "AzureAiServicesSettings": { + "type": "object", + "description": "Configures Azure AI related services for the project.", + "properties": { + "azureAiServicesMode": { + "$ref": "#/definitions/AzureAiServicesMode", + "description": "The property indicates whether Azure AI services is enabled." + } + } + }, + "Capability": { + "type": "object", + "description": "A name/value pair to describe a capability.", + "properties": { + "name": { + "type": "string", + "description": "Name of the capability.", + "readOnly": true + }, + "value": { + "type": "string", + "description": "Value of the capability.", + "readOnly": true + } + } + }, + "Catalog": { + "type": "object", + "description": "Represents a catalog.", + "properties": { + "properties": { + "$ref": "#/definitions/CatalogProperties", + "description": "Catalog properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ] + }, + "CatalogConflictError": { + "type": "object", + "description": "An individual conflict error.", + "properties": { + "path": { + "type": "string", + "description": "The path of the file that has a conflicting name.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "Name of the conflicting catalog item.", + "readOnly": true + } + } + }, + "CatalogConnectionState": { + "type": "string", + "description": "The connection state of the catalog.", + "enum": [ + "Connected", + "Disconnected" + ], + "x-ms-enum": { + "name": "CatalogConnectionState", + "modelAsString": true, + "values": [ + { + "name": "Connected", + "value": "Connected", + "description": "Connected state." + }, + { + "name": "Disconnected", + "value": "Disconnected", + "description": "Disconnected state." + } + ] + } + }, + "CatalogErrorDetails": { + "type": "object", + "description": "Catalog error details", + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error." + }, + "message": { + "type": "string", + "description": "A message describing the error." + } + } + }, + "CatalogItemSyncEnableStatus": { + "type": "string", + "description": "Catalog item sync types enable or disable status. Indicates whether project catalogs are allowed to sync catalog items under projects associated to this dev center.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "CatalogItemSyncEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Catalog item sync is enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Catalog item sync is disabled." + } + ] + } + }, + "CatalogItemType": { + "type": "string", + "description": "Indicates catalog item types.", + "enum": [ + "EnvironmentDefinition", + "ImageDefinition" + ], + "x-ms-enum": { + "name": "CatalogItemType", + "modelAsString": true, + "values": [ + { + "name": "EnvironmentDefinition", + "value": "EnvironmentDefinition", + "description": "Environment definition catalog item type." + }, + { + "name": "ImageDefinition", + "value": "ImageDefinition", + "description": "Image definition catalog item type." + } + ] + } + }, + "CatalogListResult": { + "type": "object", + "description": "Paged collection of Catalog items", + "properties": { + "value": { + "type": "array", + "description": "The Catalog items on this page", + "items": { + "$ref": "#/definitions/Catalog" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "CatalogProperties": { + "type": "object", + "description": "Properties of a catalog.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the resource.", + "readOnly": true + }, + "syncState": { + "$ref": "#/definitions/CatalogSyncState", + "description": "The synchronization state of the catalog.", + "readOnly": true + }, + "lastSyncStats": { + "$ref": "#/definitions/SyncStats", + "description": "Stats of the latest synchronization.", + "readOnly": true + }, + "connectionState": { + "$ref": "#/definitions/CatalogConnectionState", + "description": "The connection state of the catalog.", + "readOnly": true + }, + "lastConnectionTime": { + "type": "string", + "format": "date-time", + "description": "When the catalog was last connected.", + "readOnly": true + }, + "lastSyncTime": { + "type": "string", + "format": "date-time", + "description": "When the catalog was last synced.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/CatalogUpdateProperties" + } + ] + }, + "CatalogResourceValidationErrorDetails": { + "type": "object", + "description": "List of validator error details. Populated when changes are made to the resource or its dependent resources that impact the validity of the Catalog resource.", + "properties": { + "errors": { + "type": "array", + "description": "Errors associated with resources synchronized from the catalog.", + "items": { + "$ref": "#/definitions/CatalogErrorDetails" + }, + "readOnly": true, + "x-ms-identifiers": [] + } + } + }, + "CatalogResourceValidationStatus": { + "type": "string", + "description": "Catalog resource validation status.", + "enum": [ + "Unknown", + "Pending", + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "CatalogResourceValidationStatus", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "Unknown validation status." + }, + { + "name": "Pending", + "value": "Pending", + "description": "Pending validation status." + }, + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Succeeded validation status." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Failed validation status." + } + ] + }, + "readOnly": true + }, + "CatalogSyncError": { + "type": "object", + "description": "An individual synchronization error.", + "properties": { + "path": { + "type": "string", + "description": "The path of the file the error is associated with.", + "readOnly": true + }, + "errorDetails": { + "type": "array", + "description": "Errors associated with the file.", + "items": { + "$ref": "#/definitions/CatalogErrorDetails" + }, + "readOnly": true, + "x-ms-identifiers": [] + } + } + }, + "CatalogSyncState": { + "type": "string", + "description": "The synchronization state of the catalog.", + "enum": [ + "Succeeded", + "InProgress", + "Failed", + "Canceled" + ], + "x-ms-enum": { + "name": "CatalogSyncState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Succeeded synchronization state." + }, + { + "name": "InProgress", + "value": "InProgress", + "description": "In progress synchronization state." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Failed synchronization state." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Canceled synchronization state." + } + ] + }, + "readOnly": true + }, + "CatalogSyncType": { + "type": "string", + "description": "Indicates the type of sync that is configured for the catalog.", + "enum": [ + "Manual", + "Scheduled" + ], + "x-ms-enum": { + "name": "CatalogSyncType", + "modelAsString": true, + "values": [ + { + "name": "Manual", + "value": "Manual", + "description": "Manual sync type." + }, + { + "name": "Scheduled", + "value": "Scheduled", + "description": "Scheduled sync type." + } + ] + } + }, + "CatalogUpdate": { + "type": "object", + "description": "The catalog's properties for partial update. Properties not provided in the update request will not be changed.", + "properties": { + "properties": { + "$ref": "#/definitions/CatalogUpdateProperties", + "description": "Catalog properties for update.", + "x-ms-client-flatten": true + } + } + }, + "CatalogUpdateProperties": { + "type": "object", + "description": "Properties of a catalog. These properties can be updated after the resource has been created.", + "properties": { + "gitHub": { + "$ref": "#/definitions/GitCatalog", + "description": "Properties for a GitHub catalog type." + }, + "adoGit": { + "$ref": "#/definitions/GitCatalog", + "description": "Properties for an Azure DevOps catalog type." + }, + "syncType": { + "$ref": "#/definitions/CatalogSyncType", + "description": "Indicates the type of sync that is configured for the catalog." + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "update", + "create" + ] + } + } + }, + "CheckScopedNameAvailabilityRequest": { + "type": "object", + "description": "The scoped name check availability request body.", + "properties": { + "name": { + "type": "string", + "description": "The name of the resource for which availability needs to be checked." + }, + "type": { + "type": "string", + "description": "The resource type." + }, + "scope": { + "type": "string", + "description": "The resource id to scope the name check." + } + } + }, + "CmkIdentityType": { + "type": "string", + "description": "The type of identity used to access the key vault key.", + "enum": [ + "SystemAssigned", + "UserAssigned" + ], + "x-ms-enum": { + "name": "CmkIdentityType", + "modelAsString": true, + "values": [ + { + "name": "SystemAssigned", + "value": "SystemAssigned", + "description": "System assigned identity type." + }, + { + "name": "UserAssigned", + "value": "UserAssigned", + "description": "User assigned identity type." + } + ] + } + }, + "CustomizationTask": { + "type": "object", + "description": "Represents a Task to be used in customizing a Dev Box.", + "properties": { + "properties": { + "$ref": "#/definitions/CustomizationTaskProperties", + "description": "Task properties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ] + }, + "CustomizationTaskInput": { + "type": "object", + "description": "Input for a Task.", + "properties": { + "description": { + "type": "string", + "description": "Description of the input.", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/CustomizationTaskInputType", + "description": "Type of the input.", + "readOnly": true + }, + "required": { + "type": "boolean", + "description": "Whether or not the input is required.", + "readOnly": true + } + } + }, + "CustomizationTaskInputType": { + "type": "string", + "description": "Type of the input.", + "enum": [ + "string", + "number", + "boolean" + ], + "x-ms-enum": { + "name": "CustomizationTaskInputType", + "modelAsString": true, + "values": [ + { + "name": "string", + "value": "string", + "description": "The parameter accepts a string value." + }, + { + "name": "number", + "value": "number", + "description": "The parameter accepts a number value." + }, + { + "name": "boolean", + "value": "boolean", + "description": "The parameter accepts a boolean value." + } + ] + } + }, + "CustomizationTaskInstance": { + "type": "object", + "description": "A customization task to run.", + "properties": { + "name": { + "type": "string", + "description": "Name of the task." + }, + "parameters": { + "type": "array", + "description": "Parameters for the task.", + "items": { + "$ref": "#/definitions/DefinitionParametersItem" + } + }, + "displayName": { + "type": "string", + "description": "Display name to help differentiate multiple instances of the same task." + }, + "timeoutInSeconds": { + "type": "integer", + "format": "int32", + "description": "Timeout, in seconds. Overrides any timeout provided on the task definition." + }, + "condition": { + "type": "string", + "description": "An expression that must evaluate to true in order for the task to run." + } + }, + "required": [ + "name" + ] + }, + "CustomizationTaskListResult": { + "type": "object", + "description": "Paged collection of CustomizationTask items", + "properties": { + "value": { + "type": "array", + "description": "The CustomizationTask items on this page", + "items": { + "$ref": "#/definitions/CustomizationTask" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "CustomizationTaskProperties": { + "type": "object", + "description": "Properties of a Task.", + "properties": { + "inputs": { + "type": "object", + "description": "Inputs to the task.", + "additionalProperties": { + "$ref": "#/definitions/CustomizationTaskInput" + }, + "readOnly": true + }, + "timeout": { + "type": "integer", + "format": "int32", + "description": "The default timeout for the task.", + "readOnly": true + }, + "validationStatus": { + "$ref": "#/definitions/CatalogResourceValidationStatus", + "description": "Validation status for the Task.", + "readOnly": true + } + } + }, + "DayOfWeek": { + "type": "string", + "description": "The days of the week.", + "enum": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "x-ms-enum": { + "name": "DayOfWeek", + "modelAsString": false, + "values": [ + { + "name": "Monday", + "value": "Monday", + "description": "Monday" + }, + { + "name": "Tuesday", + "value": "Tuesday", + "description": "Tuesday" + }, + { + "name": "Wednesday", + "value": "Wednesday", + "description": "Wednesday" + }, + { + "name": "Thursday", + "value": "Thursday", + "description": "Thursday" + }, + { + "name": "Friday", + "value": "Friday", + "description": "Friday" + }, + { + "name": "Saturday", + "value": "Saturday", + "description": "Saturday" + }, + { + "name": "Sunday", + "value": "Sunday", + "description": "Sunday" + } + ] + } + }, + "DefinitionParametersItem": { + "type": "object", + "description": "Parameters for the task.", + "properties": { + "name": { + "type": "string", + "description": "Name of the parameter." + }, + "value": { + "type": "string", + "description": "value of the parameter." + } + }, + "required": [ + "name", + "value" + ] + }, + "DevBoxAutoDeleteSettings": { + "type": "object", + "description": "Settings controlling the auto deletion of inactive dev boxes.", + "properties": { + "deleteMode": { + "$ref": "#/definitions/DevBoxDeleteMode", + "description": "Indicates the delete mode for Dev Boxes within this project." + }, + "inactiveThreshold": { + "type": "string", + "description": "ISO8601 duration required for the dev box to not be inactive prior to it being scheduled for deletion. ISO8601 format PT[n]H[n]M[n]S." + }, + "gracePeriod": { + "type": "string", + "description": "ISO8601 duration required for the dev box to be marked for deletion prior to it being deleted. ISO8601 format PT[n]H[n]M[n]S." + } + } + }, + "DevBoxDefinition": { + "type": "object", + "description": "Represents a definition for a Developer Machine.", + "properties": { + "properties": { + "$ref": "#/definitions/DevBoxDefinitionProperties", + "description": "Dev Box definition properties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/TrackedResource" + } + ] + }, + "DevBoxDefinitionListResult": { + "type": "object", + "description": "Paged collection of DevBoxDefinition items", + "properties": { + "value": { + "type": "array", + "description": "The DevBoxDefinition items on this page", + "items": { + "$ref": "#/definitions/DevBoxDefinition" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "DevBoxDefinitionProperties": { + "type": "object", + "description": "Properties of a Dev Box definition.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the resource.", + "readOnly": true + }, + "imageValidationStatus": { + "$ref": "#/definitions/ImageValidationStatus", + "description": "Validation status of the configured image.", + "readOnly": true + }, + "imageValidationErrorDetails": { + "$ref": "#/definitions/ImageValidationErrorDetails", + "description": "Details for image validator error. Populated when the image validation is not successful.", + "readOnly": true + }, + "validationStatus": { + "$ref": "#/definitions/CatalogResourceValidationStatus", + "description": "Validation status for the Dev Box Definition.", + "readOnly": true + }, + "activeImageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Image reference information for the currently active image (only populated during updates).", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/DevBoxDefinitionUpdateProperties" + } + ] + }, + "DevBoxDefinitionUpdate": { + "type": "object", + "description": "Partial update of a Dev Box definition resource.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "properties": { + "$ref": "#/definitions/DevBoxDefinitionUpdateProperties", + "description": "Properties of a Dev Box definition to be updated.", + "x-ms-client-flatten": true + } + } + }, + "DevBoxDefinitionUpdateProperties": { + "type": "object", + "description": "Properties of a Dev Box definition. These properties can be updated after the resource has been created.", + "properties": { + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Image reference information." + }, + "sku": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/Sku", + "description": "The SKU for Dev Boxes created using this definition." + }, + "osStorageType": { + "type": "string", + "description": "The storage type used for the Operating System disk of Dev Boxes created using this definition." + }, + "hibernateSupport": { + "$ref": "#/definitions/HibernateSupport", + "description": "Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate" + } + } + }, + "DevBoxDeleteMode": { + "type": "string", + "description": "Indicates possible values for Dev Box delete mode.", + "enum": [ + "Manual", + "Auto" ], + "x-ms-enum": { + "name": "DevBoxDeleteMode", + "modelAsString": true, + "values": [ + { + "name": "Manual", + "value": "Manual", + "description": "Dev Boxes will not be deleted automatically, and user must manually delete. This is the default." + }, + { + "name": "Auto", + "value": "Auto", + "description": "Dev Boxes will be deleted automatically according to configured settings." + } + ] + } + }, + "DevBoxProvisioningSettings": { + "type": "object", + "description": "Provisioning settings that apply to all Dev Boxes created in this dev center.", + "properties": { + "installAzureMonitorAgentEnableStatus": { + "$ref": "#/definitions/InstallAzureMonitorAgentEnableStatus", + "description": "Indicates whether to install the Azure Monitor Agent service on Dev Boxes that belong to this dev center" + } + } + }, + "DevBoxTunnelEnableStatus": { + "type": "string", + "description": "Indicates whether Dev Box Tunnel is enabled.", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "DevBoxTunnelEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Disabled", + "value": "Disabled", + "description": "Dev Box Tunnel is enabled." + }, + { + "name": "Enabled", + "value": "Enabled", + "description": "Dev Box Tunnel is disabled." + } + ] + } + }, + "DevCenter": { + "type": "object", + "description": "Represents a devcenter resource.", + "properties": { + "properties": { + "$ref": "#/definitions/DevCenterProperties", + "description": "DevCenter properties", + "x-ms-client-flatten": true + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "Managed identity properties." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/TrackedResource" + } + ] + }, + "DevCenterEncryptionSet": { + "type": "object", + "description": "Represents a devcenter encryption set resource.", + "properties": { + "properties": { + "$ref": "#/definitions/DevCenterEncryptionSetProperties", + "description": "Properties of a devcenter encryption set.", + "x-ms-client-flatten": true + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "Managed identity properties." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/TrackedResource" + } + ] + }, + "DevCenterEncryptionSetProperties": { + "type": "object", + "description": "Properties of the devcenter encryption set.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the resource.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/DevCenterEncryptionSetUpdateProperties" + } + ] + }, + "DevCenterEncryptionSetUpdateProperties": { + "type": "object", + "description": "Properties of the devcenter encryption set. These properties can be updated after the resource has been created.", + "properties": { + "devboxDisksEncryptionEnableStatus": { + "$ref": "#/definitions/DevboxDisksEncryptionEnableStatus", + "description": "Devbox disk encryption enable or disable status. Indicates if Devbox disks encryption using DevCenter CMK is enabled or not." + }, + "keyEncryptionKeyUrl": { + "type": "string", + "format": "uri", + "description": "Key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek." + }, + "keyEncryptionKeyIdentity": { + "$ref": "#/definitions/KeyEncryptionKeyIdentity", + "description": "The managed identity configuration used for key vault access." + } + } + }, + "DevCenterListResult": { + "type": "object", + "description": "Paged collection of DevCenter items", + "properties": { + "value": { + "type": "array", + "description": "The DevCenter items on this page", + "items": { + "$ref": "#/definitions/DevCenter" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "DevCenterNetworkSettings": { + "type": "object", + "description": "Network settings for the Dev Center.", + "properties": { + "microsoftHostedNetworkEnableStatus": { + "$ref": "#/definitions/MicrosoftHostedNetworkEnableStatus", + "description": "Indicates whether pools in this Dev Center can use Microsoft Hosted Networks. Defaults to Enabled if not set." + } + } + }, + "DevCenterProjectCatalogSettings": { + "type": "object", + "description": "Project catalog settings for project catalogs under a project associated to this dev center.", + "properties": { + "catalogItemSyncEnableStatus": { + "$ref": "#/definitions/CatalogItemSyncEnableStatus", + "description": "Whether project catalogs associated with projects in this dev center can be configured to sync catalog items." + } + } + }, + "DevCenterProperties": { + "type": "object", + "description": "Properties of the devcenter.", "properties": { "provisioningState": { + "$ref": "#/definitions/ProvisioningState", "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", "readOnly": true }, - "devCenterUri": { - "description": "The URI of the Dev Center.", - "$ref": "#/definitions/DevCenterUri", - "readOnly": true + "devCenterUri": { + "type": "string", + "description": "The URI of the Dev Center.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/DevCenterUpdateProperties" + } + ] + }, + "DevCenterResourceType": { + "type": "string", + "description": "Indicates dev center resource types.", + "enum": [ + "Images", + "AttachedNetworks", + "Skus" + ], + "x-ms-enum": { + "name": "DevCenterResourceType", + "modelAsString": true, + "values": [ + { + "name": "Images", + "value": "Images", + "description": "Images resource type." + }, + { + "name": "AttachedNetworks", + "value": "AttachedNetworks", + "description": "Attached networks resource type." + }, + { + "name": "Skus", + "value": "Skus", + "description": "Skus resource type." + } + ] + } + }, + "DevCenterSku": { + "type": "object", + "description": "The resource model definition representing SKU for DevCenter resources.", + "properties": { + "resourceType": { + "type": "string", + "description": "The name of the resource type.", + "readOnly": true + }, + "locations": { + "type": "array", + "description": "SKU supported locations.", + "items": { + "type": "string" + }, + "readOnly": true + }, + "capabilities": { + "type": "array", + "description": "Collection of name/value pairs to describe the SKU capabilities.", + "items": { + "$ref": "#/definitions/Capability" + }, + "readOnly": true, + "x-ms-identifiers": [] + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/Sku" + } + ] + }, + "DevCenterUpdate": { + "type": "object", + "description": "The devcenter resource for partial updates. Properties not provided in the update request will not be changed.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "Managed identity properties." + }, + "properties": { + "$ref": "#/definitions/DevCenterUpdateProperties", + "description": "Properties of a Dev Center to be updated.", + "x-ms-client-flatten": true + } + } + }, + "DevCenterUpdateProperties": { + "type": "object", + "description": "Properties of the devcenter. These properties can be updated after the resource has been created.", + "properties": { + "encryption": { + "$ref": "#/definitions/Encryption", + "description": "Encryption settings to be used for server-side encryption for proprietary content (such as catalogs, logs, customizations)." + }, + "displayName": { + "type": "string", + "description": "The display name of the devcenter." + }, + "projectCatalogSettings": { + "$ref": "#/definitions/DevCenterProjectCatalogSettings", + "description": "Dev Center settings to be used when associating a project with a catalog." + }, + "networkSettings": { + "$ref": "#/definitions/DevCenterNetworkSettings", + "description": "Network settings that will be enforced on network resources associated with the Dev Center." + }, + "devBoxProvisioningSettings": { + "$ref": "#/definitions/DevBoxProvisioningSettings", + "description": "Settings to be used in the provisioning of all Dev Boxes that belong to this dev center." + } + } + }, + "DevboxDisksEncryptionEnableStatus": { + "type": "string", + "description": "Devbox disk encryption enable or disable status. Indicates if Devbox disks encryption is enabled or not.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "DevboxDisksEncryptionEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Devbox disks encryption is enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Devbox disks encryption is disabled." + } + ] + } + }, + "DomainJoinType": { + "type": "string", + "description": "Active Directory join type.", + "enum": [ + "HybridAzureADJoin", + "AzureADJoin", + "None" + ], + "x-ms-enum": { + "name": "DomainJoinType", + "modelAsString": true, + "values": [ + { + "name": "HybridAzureADJoin", + "value": "HybridAzureADJoin", + "description": "Hybrid Azure AD Join type." + }, + { + "name": "AzureADJoin", + "value": "AzureADJoin", + "description": "Azure AD Join type." + }, + { + "name": "None", + "value": "None", + "description": "No Active Directory join type." + } + ] + } + }, + "Encryption": { + "type": "object", + "description": "Encryption properties.", + "properties": { + "customerManagedKeyEncryption": { + "$ref": "../../../../../common-types/resource-management/v4/customermanagedkeys.json#/definitions/customerManagedKeyEncryption", + "description": "All Customer-managed key encryption properties for the resource." + } + } + }, + "EncryptionSetListResult": { + "type": "object", + "description": "Paged collection of DevCenterEncryptionSet items", + "properties": { + "value": { + "type": "array", + "description": "The DevCenterEncryptionSet items on this page", + "items": { + "$ref": "#/definitions/DevCenterEncryptionSet" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "EncryptionSetUpdate": { + "type": "object", + "description": "The devcenter encryption set resource for partial updates. Properties not provided in the update request will not be changed.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "properties": { + "$ref": "#/definitions/DevCenterEncryptionSetUpdateProperties", + "description": "Properties of a Dev Center encryption set to be updated.", + "x-ms-client-flatten": true + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "Managed identity properties" } } }, - "DevCenterUpdateProperties": { - "description": "Properties of the devcenter. These properties can be updated after the resource has been created.", + "EndpointDependency": { "type": "object", + "description": "A domain name and connection details used to access a dependency.", "properties": { - "encryption": { - "$ref": "#/definitions/Encryption", - "description": "Encryption settings to be used for server-side encryption for proprietary content (such as catalogs, logs, customizations)." - }, - "displayName": { + "domainName": { "type": "string", - "description": "The display name of the devcenter." - }, - "projectCatalogSettings": { - "$ref": "#/definitions/DevCenterProjectCatalogSettings", - "description": "Dev Center settings to be used when associating a project with a catalog." + "description": "The domain name of the dependency. Domain names may be fully qualified or may contain a * wildcard.", + "readOnly": true }, - "networkSettings": { - "$ref": "#/definitions/DevCenterNetworkSettings", - "description": "Network settings that will be enforced on network resources associated with the Dev Center." + "description": { + "type": "string", + "description": "Human-readable supplemental information about the dependency and when it is applicable.", + "readOnly": true }, - "devBoxProvisioningSettings": { - "$ref": "#/definitions/DevBoxProvisioningSettings", - "description": "Settings to be used in the provisioning of all Dev Boxes that belong to this dev center." + "endpointDetails": { + "type": "array", + "description": "The list of connection details for this endpoint.", + "items": { + "$ref": "#/definitions/EndpointDetail" + }, + "readOnly": true, + "x-ms-identifiers": [] } } }, - "DevCenterEncryptionSet": { - "description": "Represents a devcenter encryption set resource.", + "EndpointDetail": { "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } - ], + "description": "Details about the connection between the Batch service and the endpoint.", "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DevCenterEncryptionSetProperties", - "description": "Properties of a devcenter encryption set." - }, - "identity": { - "description": "Managed identity properties", - "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" + "port": { + "type": "integer", + "format": "int32", + "description": "The port an endpoint is connected to.", + "readOnly": true } } }, - "DevCenterEncryptionSetProperties": { - "description": "Properties of the devcenter encryption set.", + "EnvironmentDefinition": { "type": "object", + "description": "Represents an environment definition catalog item.", + "properties": { + "properties": { + "$ref": "#/definitions/EnvironmentDefinitionProperties", + "description": "Environment definition properties.", + "x-ms-client-flatten": true + } + }, "allOf": [ { - "$ref": "#/definitions/DevCenterEncryptionSetUpdateProperties" - } - ], - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" } - } + ] }, - "DevCenterEncryptionSetUpdateProperties": { - "description": "Properties of the devcenter encryption set. These properties can be updated after the resource has been created.", + "EnvironmentDefinitionListResult": { "type": "object", + "description": "Paged collection of EnvironmentDefinition items", "properties": { - "devboxDisksEncryptionEnableStatus": { - "description": "Devbox disk encryption enable or disable status. Indicates if Devbox disks encryption using DevCenter CMK is enabled or not.", - "$ref": "#/definitions/DevboxDisksEncryptionEnableStatus" + "value": { + "type": "array", + "description": "The EnvironmentDefinition items on this page", + "items": { + "$ref": "#/definitions/EnvironmentDefinition" + }, + "readOnly": true }, - "keyEncryptionKeyUrl": { + "nextLink": { "type": "string", "format": "uri", - "description": "Key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek." - }, - "keyEncryptionKeyIdentity": { - "type": "object", - "description": "The managed identity configuration used for key vault access.", - "properties": { - "type": { - "$ref": "#/definitions/CmkIdentityType", - "description": "The type of managed identity to use for key vault access." - }, - "userAssignedIdentityResourceId": { - "type": "string", - "description": "For system assigned identity, this will be null. For user assigned identity, this should be the resource ID of the identity." - } - } + "description": "The link to the next page of items" } - } - }, - "CmkIdentityType": { - "description": "The type of identity used to access the key vault key.", - "enum": [ - "SystemAssigned", - "UserAssigned" - ], - "type": "string", - "x-ms-enum": { - "name": "CmkIdentityType", - "modelAsString": true - } - }, - "DevboxDisksEncryptionEnableStatus": { - "description": "Devbox disk encryption enable or disable status. Indicates if Devbox disks encryption is enabled or not.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "DevboxDisksEncryptionEnableStatus", - "modelAsString": true - } + }, + "required": [ + "value" + ] }, - "DevCenterProjectCatalogSettings": { + "EnvironmentDefinitionParameter": { "type": "object", - "description": "Project catalog settings for project catalogs under a project associated to this dev center.", + "description": "Properties of an Environment Definition parameter.", "properties": { - "catalogItemSyncEnableStatus": { - "description": "Whether project catalogs associated with projects in this dev center can be configured to sync catalog items.", - "$ref": "#/definitions/CatalogItemSyncEnableStatus" + "id": { + "type": "string", + "description": "Unique ID of the parameter.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "Display name of the parameter.", + "readOnly": true + }, + "description": { + "type": "string", + "description": "Description of the parameter.", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/ParameterType", + "description": "A string of one of the basic JSON types (number, integer, array, object, boolean, string).", + "readOnly": true + }, + "readOnly": { + "type": "boolean", + "description": "Whether or not this parameter is read-only. If true, default should have a value.", + "readOnly": true + }, + "required": { + "type": "boolean", + "description": "Whether or not this parameter is required.", + "readOnly": true } } }, - "DevCenterResourceType": { - "description": "Indicates dev center resource types.", - "enum": [ - "Images", - "AttachedNetworks", - "Skus" - ], - "type": "string", - "x-ms-enum": { - "name": "DevCenterResourceType", - "modelAsString": true - } - }, - "DevBoxProvisioningSettings": { + "EnvironmentDefinitionProperties": { "type": "object", - "description": "Provisioning settings that apply to all Dev Boxes created in this dev center", + "description": "Properties of an environment definition.", "properties": { - "installAzureMonitorAgentEnableStatus": { - "description": "Whether project catalogs associated with projects in this dev center can be configured to sync catalog items.", - "$ref": "#/definitions/InstallAzureMonitorAgentEnableStatus" + "description": { + "type": "string", + "description": "A short description of the environment definition.", + "readOnly": true + }, + "parameters": { + "type": "array", + "description": "Input parameters passed to an environment.", + "items": { + "$ref": "#/definitions/EnvironmentDefinitionParameter" + }, + "readOnly": true + }, + "templatePath": { + "type": "string", + "description": "Path to the Environment Definition entrypoint file.", + "readOnly": true + }, + "validationStatus": { + "$ref": "#/definitions/CatalogResourceValidationStatus", + "description": "Validation status for the environment definition.", + "readOnly": true } } }, - "CatalogItemSyncEnableStatus": { - "description": "Catalog item sync types enable or disable status. Indicates whether project catalogs are allowed to sync catalog items under projects associated to this dev center.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "CatalogItemSyncEnableStatus", - "modelAsString": true - } - }, - "DevCenterNetworkSettings": { + "EnvironmentRole": { "type": "object", - "description": "Network settings for the Dev Center.", + "description": "A role that can be assigned to a user.", "properties": { - "microsoftHostedNetworkEnableStatus": { - "$ref": "#/definitions/MicrosoftHostedNetworkEnableStatus" + "roleName": { + "type": "string", + "description": "The common name of the Role Assignment. This is a descriptive name such as 'AcrPush'.", + "readOnly": true + }, + "description": { + "type": "string", + "description": "This is a description of the Role Assignment.", + "readOnly": true } } }, - "ProjectNetworkSettings": { + "EnvironmentType": { "type": "object", - "description": "Network settings for the project.", + "description": "Represents an environment type.", "properties": { - "microsoftHostedNetworkEnableStatus": { - "$ref": "#/definitions/MicrosoftHostedNetworkEnableStatus", - "readOnly": true - } - } - }, - "MicrosoftHostedNetworkEnableStatus": { - "description": "Indicates whether pools in this Dev Center can use Microsoft Hosted Networks. Defaults to Enabled if not set.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "MicrosoftHostedNetworkEnableStatus", - "modelAsString": true - } - }, - "UserCustomizationsEnableStatus": { - "description": "Indicates whether user customizations are enabled.", - "enum": [ - "Disabled", - "Enabled" - ], - "type": "string", - "x-ms-enum": { - "name": "UserCustomizationsEnableStatus", - "modelAsString": true - } - }, - "DevBoxDeleteMode": { - "description": "Indicates possible values for Dev Box delete mode.", - "enum": [ - "Manual", - "Auto" - ], - "type": "string", - "x-ms-enum": { - "name": "DevBoxDeleteMode", - "modelAsString": true, - "values": [ - { - "value": "Manual", - "description": "Dev Boxes will not be deleted automatically, and user must manually delete. This is the default." + "properties": { + "$ref": "#/definitions/EnvironmentTypeProperties", + "description": "Properties of an environment type.", + "x-ms-client-flatten": true + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" }, - { - "value": "Auto", - "description": "Dev Boxes will be deleted automatically according to configured settings." - } - ] - } + "x-ms-mutability": [ + "read", + "update", + "create" + ] + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ] }, - "AzureAiServicesMode": { - "description": "Indicates whether Azure AI services are enabled for a project.", + "EnvironmentTypeEnableStatus": { + "type": "string", + "description": "Indicates whether the environment type is either enabled or disabled.", "enum": [ - "Disabled", - "AutoDeploy" + "Enabled", + "Disabled" ], - "type": "string", "x-ms-enum": { - "name": "AzureAiServicesMode", + "name": "EnvironmentTypeEnableStatus", "modelAsString": true, "values": [ { - "value": "Disabled", - "description": "Azure AI services are disabled for this project." + "name": "Enabled", + "value": "Enabled", + "description": "Environment type is enabled." }, { - "value": "AutoDeploy", - "description": "Azure AI services are enabled for this project and necessary resources will be automatically setup." + "name": "Disabled", + "value": "Disabled", + "description": "Environment type is disabled." } ] } }, - "Encryption": { + "EnvironmentTypeListResult": { "type": "object", + "description": "Paged collection of EnvironmentType items", "properties": { - "customerManagedKeyEncryption": { - "$ref": "../../../../../common-types/resource-management/v4/customermanagedkeys.json#/definitions/customerManagedKeyEncryption" + "value": { + "type": "array", + "description": "The EnvironmentType items on this page", + "items": { + "$ref": "#/definitions/EnvironmentType" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } - }, - "InstallAzureMonitorAgentEnableStatus": { - "description": "Setting to be used when determining whether to install the Azure Monitor Agent service on Dev Boxes that belong to this dev center.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "InstallAzureMonitorAgentEnableStatus", - "modelAsString": true - } + }, + "required": [ + "value" + ] }, - "DevCenterUpdate": { - "description": "The devcenter resource for partial updates. Properties not provided in the update request will not be changed.", + "EnvironmentTypeProperties": { "type": "object", - "allOf": [ - { - "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" - } - ], + "description": "Properties of an environment type.", "properties": { - "identity": { - "description": "Managed identity properties", - "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DevCenterUpdateProperties", - "description": "Properties of a Dev Center to be updated." + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the resource.", + "readOnly": true } - } - }, - "EncryptionSetUpdate": { - "description": "The devcenter encryption set resource for partial updates. Properties not provided in the update request will not be changed.", - "type": "object", + }, "allOf": [ { - "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" + "$ref": "#/definitions/EnvironmentTypeUpdateProperties" } - ], + ] + }, + "EnvironmentTypeUpdate": { + "type": "object", + "description": "The environment type for partial update. Properties not provided in the update request will not be changed.", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DevCenterEncryptionSetUpdateProperties", - "description": "Properties of a Dev Center encryption set to be updated." + "$ref": "#/definitions/EnvironmentTypeUpdateProperties", + "description": "Properties of an environment type to be updated.", + "x-ms-client-flatten": true }, - "identity": { - "description": "Managed identity properties", - "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "update", + "create" + ] } } }, - "DevCenterListResult": { - "description": "Result of the list devcenters operation", + "EnvironmentTypeUpdateProperties": { "type": "object", + "description": "Properties of an environment type. These properties can be updated after the resource has been created.", "properties": { - "value": { - "description": "Current page of results.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/DevCenter" - } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", + "displayName": { "type": "string", - "readOnly": true + "description": "The display name of the environment type." } } }, - "EncryptionSetListResult": { - "description": "Result of the list devcenter encryption set operation", + "Gallery": { + "type": "object", + "description": "Represents a gallery.", + "properties": { + "properties": { + "$ref": "#/definitions/GalleryProperties", + "description": "Gallery properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ] + }, + "GalleryListResult": { "type": "object", + "description": "Paged collection of Gallery items", "properties": { "value": { - "description": "Current page of results.", - "readOnly": true, "type": "array", + "description": "The Gallery items on this page", "items": { - "$ref": "#/definitions/DevCenterEncryptionSet" - } + "$ref": "#/definitions/Gallery" + }, + "readOnly": true }, "nextLink": { - "description": "URL to get the next set of results if there are any.", "type": "string", - "readOnly": true + "format": "uri", + "description": "The link to the next page of items" } - } - }, - "DevCenterUri": { - "description": "The URI of the resource.", - "readOnly": true, - "type": "string" + }, + "required": [ + "value" + ] }, - "Project": { - "description": "Represents a project resource.", + "GalleryProperties": { "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } - ], + "description": "Properties of a gallery.", "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ProjectProperties", - "description": "Properties of a project." + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the resource.", + "readOnly": true }, - "identity": { - "description": "Managed identity properties", - "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" + "galleryResourceId": { + "type": "string", + "description": "The resource ID of the backing Azure Compute Gallery.", + "x-ms-mutability": [ + "read", + "create" + ] } - } + }, + "required": [ + "galleryResourceId" + ] }, - "ProjectUpdateProperties": { - "description": "Properties of a project. These properties can be updated after the resource has been created.", + "GitCatalog": { "type": "object", + "description": "Properties for a Git repository catalog.", "properties": { - "devCenterId": { + "uri": { "type": "string", - "description": "Resource Id of an associated DevCenter" + "description": "Git URI." }, - "description": { + "branch": { "type": "string", - "description": "Description of the project." + "description": "Git branch." }, - "maxDevBoxesPerUser": { - "type": "integer", - "format": "int32", - "minimum": 0, - "description": "When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This will have no effect on existing Dev Boxes when reduced." + "secretIdentifier": { + "type": "string", + "description": "A reference to the Key Vault secret containing a security token to authenticate to a Git repository." }, - "displayName": { + "path": { "type": "string", - "description": "The display name of the project." + "description": "The folder where the catalog items can be found inside the repository." + } + } + }, + "HealthCheck": { + "type": "object", + "description": "An individual health check item.", + "properties": { + "status": { + "$ref": "#/definitions/HealthCheckStatus", + "description": "The status of the health check item.", + "readOnly": true }, - "catalogSettings": { - "$ref": "#/definitions/ProjectCatalogSettings", - "description": "Settings to be used when associating a project with a catalog." + "displayName": { + "type": "string", + "description": "The display name of this health check item.", + "readOnly": true }, - "customizationSettings": { - "$ref": "#/definitions/ProjectCustomizationSettings", - "description": "Settings to be used for customizations." + "startDateTime": { + "type": "string", + "format": "date-time", + "description": "Start time of health check item.", + "readOnly": true }, - "devBoxAutoDeleteSettings": { - "description": "Dev Box Auto Delete settings.", - "$ref": "#/definitions/DevBoxAutoDeleteSettings" + "endDateTime": { + "type": "string", + "format": "date-time", + "description": "End time of the health check item.", + "readOnly": true }, - "azureAiServicesSettings": { - "description": "Indicates whether Azure AI services are enabled for a project.", - "$ref": "#/definitions/AzureAiServicesSettings" + "errorType": { + "type": "string", + "description": "The type of error that occurred during this health check.", + "readOnly": true }, - "serverlessGpuSessionsSettings": { - "$ref": "#/definitions/ServerlessGpuSessionsSettings", - "description": "Settings to be used for serverless GPU." + "recommendedAction": { + "type": "string", + "description": "The recommended action to fix the corresponding error.", + "readOnly": true }, - "workspaceStorageSettings": { - "description": "Settings to be used for workspace storage.", - "$ref": "#/definitions/WorkspaceStorageSettings" + "additionalDetails": { + "type": "string", + "description": "Additional details about the health check or the recommended action.", + "readOnly": true } } }, - "ProjectCatalogSettings": { - "description": "Settings to be used when associating a project with a catalog.", - "type": "object", - "properties": { - "catalogItemSyncTypes": { - "description": "Indicates catalog item types that can be synced.", - "type": "array", - "items": { - "$ref": "#/definitions/CatalogItemType" + "HealthCheckStatus": { + "type": "string", + "description": "Health check status values.", + "enum": [ + "Unknown", + "Pending", + "Running", + "Passed", + "Warning", + "Failed", + "Informational" + ], + "x-ms-enum": { + "name": "HealthCheckStatus", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "Unknown health check status." + }, + { + "name": "Pending", + "value": "Pending", + "description": "Pending health check status." + }, + { + "name": "Running", + "value": "Running", + "description": "Running health check status." + }, + { + "name": "Passed", + "value": "Passed", + "description": "Passed health check status." + }, + { + "name": "Warning", + "value": "Warning", + "description": "Warning health check status." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Failed health check status." + }, + { + "name": "Informational", + "value": "Informational", + "description": "Informational health check status." } - } + ] } }, - "ProjectCustomizationManagedIdentity": { - "description": "A reference to a Managed Identity that is attached to the Project.", + "HealthCheckStatusDetails": { "type": "object", + "description": "Health Check details.", "properties": { - "identityType": { - "type": "string", - "enum": [ - "systemAssignedIdentity", - "userAssignedIdentity" - ], - "x-ms-enum": { - "name": "ProjectCustomizationIdentityType", - "modelAsString": true - }, - "description": "Values can be systemAssignedIdentity or userAssignedIdentity" - }, - "identityResourceId": { - "type": "string", - "format": "arm-id", - "description": "Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity." + "properties": { + "$ref": "#/definitions/HealthCheckStatusDetailsProperties", + "description": "Health check status details properties.", + "x-ms-client-flatten": true } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ] }, - "ProjectCustomizationSettings": { - "description": "Settings to be used for customizations.", + "HealthCheckStatusDetailsListResult": { "type": "object", + "description": "Paged collection of HealthCheckStatusDetails items", "properties": { - "identities": { - "description": "The identities that can to be used in customization scenarios; e.g., to clone a repository.", + "value": { "type": "array", + "description": "The HealthCheckStatusDetails items on this page", "items": { - "$ref": "#/definitions/ProjectCustomizationManagedIdentity" - } + "$ref": "#/definitions/HealthCheckStatusDetails" + }, + "readOnly": true }, - "userCustomizationsEnableStatus": { - "description": "Indicates whether user customizations are enabled.", - "$ref": "#/definitions/UserCustomizationsEnableStatus" + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "ServerlessGpuSessionsSettings": { - "description": "Represents settings for serverless GPU access.", + "HealthCheckStatusDetailsProperties": { "type": "object", + "description": "Health Check properties.", "properties": { - "serverlessGpuSessionsMode": { - "description": "The property indicates whether serverless GPU access is enabled on the project.", - "$ref": "#/definitions/ServerlessGpuSessionsMode" + "startDateTime": { + "type": "string", + "format": "date-time", + "description": "Start time of last execution of the health checks.", + "readOnly": true }, - "maxConcurrentSessionsPerProject": { - "type": "integer", - "format": "int32", - "minimum": 1, - "description": "When specified, limits the maximum number of concurrent sessions across all pools in the project." - } - } - }, - "WorkspaceStorageSettings": { - "description": "Settings to be used for workspace storage.", - "type": "object", - "properties": { - "workspaceStorageMode": { - "description": "Indicates whether workspace storage is enabled.", - "$ref": "#/definitions/WorkspaceStorageMode" + "endDateTime": { + "type": "string", + "format": "date-time", + "description": "End time of last execution of the health checks.", + "readOnly": true + }, + "healthChecks": { + "type": "array", + "description": "Details for each health check item.", + "items": { + "$ref": "#/definitions/HealthCheck" + }, + "readOnly": true, + "x-ms-identifiers": [] } } }, - "ServerlessGpuSessionsMode": { - "description": "Indicates whether serverless GPU session access is enabled.", + "HealthStatus": { + "type": "string", + "description": "Health status indicating whether a pool is available to create Dev Boxes.", "enum": [ - "Disabled", - "AutoDeploy" + "Unknown", + "Pending", + "Healthy", + "Warning", + "Unhealthy" ], - "type": "string", "x-ms-enum": { - "name": "ServerlessGpuSessionsMode", + "name": "HealthStatus", "modelAsString": true, "values": [ { - "value": "Disabled", - "description": "Serverless GPU session access is disabled." + "name": "Unknown", + "value": "Unknown", + "description": "Unknown health status." }, { - "value": "AutoDeploy", - "description": "Serverless GPU session access is enabled and necessary resources will be automatically setup." + "name": "Pending", + "value": "Pending", + "description": "Pending health status." + }, + { + "name": "Healthy", + "value": "Healthy", + "description": "Healthy health status." + }, + { + "name": "Warning", + "value": "Warning", + "description": "Warning health status." + }, + { + "name": "Unhealthy", + "value": "Unhealthy", + "description": "Unhealthy health status." } ] } }, - "WorkspaceStorageMode": { - "description": "Indicates whether workspace storage is enabled.", + "HealthStatusDetail": { + "type": "object", + "description": "Pool health status detail.", + "properties": { + "code": { + "type": "string", + "description": "An identifier for the issue.", + "readOnly": true + }, + "message": { + "type": "string", + "description": "A message describing the issue, intended to be suitable for display in a user interface", + "readOnly": true + } + } + }, + "HibernateSupport": { + "type": "string", + "description": "Indicates whether hibernate is enabled/disabled.", "enum": [ "Disabled", - "AutoDeploy" + "Enabled" ], - "type": "string", "x-ms-enum": { - "name": "WorkspaceStorageMode", + "name": "HibernateSupport", "modelAsString": true, "values": [ { + "name": "Disabled", "value": "Disabled", - "description": "Workspace storage is disabled." + "description": "Hibernate is disabled." }, { - "value": "AutoDeploy", - "description": "Workspace storage is enabled and necessary resources will be automatically setup." + "name": "Enabled", + "value": "Enabled", + "description": "Hibernate is enabled." } ] } }, - "ProjectProperties": { - "description": "Properties of a project.", + "Image": { "type": "object", + "description": "Represents an image.", + "properties": { + "properties": { + "$ref": "#/definitions/ImageProperties", + "description": "Image properties.", + "x-ms-client-flatten": true + } + }, "allOf": [ { - "$ref": "#/definitions/ProjectUpdateProperties" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" } - ], + ] + }, + "ImageCreationErrorDetails": { + "type": "object", + "description": "Image creation error details.", "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true + "code": { + "type": "string", + "description": "An identifier for the error." }, - "devCenterUri": { - "description": "The URI of the Dev Center resource this project is associated with.", - "$ref": "#/definitions/DevCenterUri", - "readOnly": true + "message": { + "type": "string", + "description": "A message describing the error." } } }, - "ProjectUpdate": { - "description": "The project properties for partial update. Properties not provided in the update request will not be changed.", + "ImageDefinition": { "type": "object", - "allOf": [ - { - "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" - } - ], + "description": "Represents a definition for an Image.", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ProjectUpdateProperties", - "description": "Properties of a project to be updated." - }, - "identity": { - "description": "Managed identity properties", - "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" + "$ref": "#/definitions/ImageDefinitionProperties", + "description": "Image Definition properties", + "x-ms-client-flatten": true } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ] }, - "ProjectListResult": { - "description": "Results of the project list operation.", + "ImageDefinitionBuild": { "type": "object", + "description": "Represents a specific build of an Image Definition.", "properties": { - "value": { - "description": "Current page of results.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/Project" - } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true + "properties": { + "$ref": "#/definitions/ImageDefinitionBuildProperties", + "description": "Image Definition Build properties", + "x-ms-client-flatten": true } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ] }, - "InheritedSettingsForProject": { - "description": "Applicable inherited settings for a project.", + "ImageDefinitionBuildDetails": { "type": "object", + "description": "Represents a specific build of an Image Definition.", "properties": { - "projectCatalogSettings": { - "$ref": "#/definitions/DevCenterProjectCatalogSettings", - "description": "Dev Center settings to be used when associating a project with a catalog.", + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "The specific image version used by the build.", "readOnly": true }, - "networkSettings": { - "$ref": "#/definitions/ProjectNetworkSettings", - "description": "Network settings that will be enforced on this project.", + "status": { + "$ref": "#/definitions/ImageDefinitionBuildStatus", + "description": "The status of the build.", "readOnly": true - } - } - }, - "ResourcePolicy": { - "description": "A resource policy.", - "type": "object", - "properties": { - "resources": { - "description": "Resources that are included and shared as a part of a project policy.", - "type": "string" }, - "filter": { - "description": "Optional. When specified, this expression is used to filter the resources.", - "type": "string" + "startTime": { + "type": "string", + "format": "date-time", + "description": "Start time of the task group.", + "readOnly": true }, - "action": { - "description": "Policy action to be taken on the resources. This is optional, and defaults to allow", - "$ref": "#/definitions/PolicyAction" + "endTime": { + "type": "string", + "format": "date-time", + "description": "End time of the task group.", + "readOnly": true }, - "resourceType": { - "description": "Optional. The resource type being restricted or allowed by a project policy. Used with a given action to restrict or allow access to a resource type.", - "$ref": "#/definitions/DevCenterResourceType" - } - } - }, - "PolicyAction": { - "description": "Indicates what action to perform for the policy.", - "enum": [ - "Allow", - "Deny" - ], - "type": "string", - "x-ms-enum": { - "name": "PolicyAction", - "modelAsString": true - } - }, - "ProjectPolicyListResult": { - "description": "Results of the project policy list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "readOnly": true, + "errorDetails": { + "$ref": "#/definitions/ImageCreationErrorDetails", + "description": "Details for image creation error. Populated when the image creation is not successful.", + "readOnly": true + }, + "taskGroups": { "type": "array", + "description": "The list of task groups executed during the image definition build.", "items": { - "$ref": "#/definitions/ProjectPolicy" - } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "ProjectPolicy": { - "description": "Represents an project policy resource.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ProjectPolicyProperties", - "description": "Properties of an project policy." - } - } - }, - "ProjectPolicyProperties": { - "description": "Properties of an project policy.", - "type": "object", + "$ref": "#/definitions/ImageDefinitionBuildTaskGroup" + }, + "readOnly": true + } + }, "allOf": [ { - "$ref": "#/definitions/ProjectPolicyUpdateProperties" - } - ], - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" } - } + ] }, - "ProjectPolicyUpdateProperties": { - "description": "Properties of an project policy. These properties can be updated after the resource has been created.", + "ImageDefinitionBuildListResult": { "type": "object", + "description": "Paged collection of ImageDefinitionBuild items", "properties": { - "resourcePolicies": { - "description": "Resource policies that are a part of this project policy.", + "value": { "type": "array", + "description": "The ImageDefinitionBuild items on this page", "items": { - "$ref": "#/definitions/ResourcePolicy" - } + "$ref": "#/definitions/ImageDefinitionBuild" + }, + "readOnly": true }, - "scopes": { - "description": "Resources that have access to the shared resources that are a part of this project policy.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ProjectPolicyUpdate": { - "description": "The project policy properties for partial update. Properties not provided in the update request will not be changed.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ProjectPolicyUpdateProperties", - "description": "Properties of an project policy to be updated." + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "DevBoxAutoDeleteSettings": { - "description": "Settings controlling the auto deletion of inactive dev boxes.", + "ImageDefinitionBuildProperties": { "type": "object", + "description": "Properties of an Image Definition Build.", "properties": { - "deleteMode": { - "description": "Indicates the delete mode for Dev Boxes within this project.", - "$ref": "#/definitions/DevBoxDeleteMode" + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "The specific image version used by the build.", + "readOnly": true }, - "inactiveThreshold": { - "description": "ISO8601 duration required for the dev box to not be inactive prior to it being scheduled for deletion. ISO8601 format PT[n]H[n]M[n]S.", - "type": "string" + "status": { + "$ref": "#/definitions/ImageDefinitionBuildStatus", + "description": "The status of the build.", + "readOnly": true }, - "gracePeriod": { - "description": "ISO8601 duration required for the dev box to be marked for deletion prior to it being deleted. ISO8601 format PT[n]H[n]M[n]S.", - "type": "string" - } - } - }, - "AzureAiServicesSettings": { - "description": "Configures Azure AI related services for the project.", - "type": "object", - "properties": { - "azureAiServicesMode": { - "description": "The property indicates whether Azure AI services is enabled.", - "$ref": "#/definitions/AzureAiServicesMode" + "startTime": { + "type": "string", + "format": "date-time", + "description": "Start time of the task group.", + "readOnly": true + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "End time of the task group.", + "readOnly": true + }, + "errorDetails": { + "$ref": "#/definitions/ImageCreationErrorDetails", + "description": "Details for image creation error. Populated when the image creation is not successful.", + "readOnly": true } } }, - "Catalog": { - "description": "Represents a catalog.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" - } + "ImageDefinitionBuildStatus": { + "type": "string", + "description": "The state of an Image Definition Build.", + "enum": [ + "Succeeded", + "Running", + "ValidationFailed", + "Failed", + "Cancelled", + "TimedOut" ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/CatalogProperties", - "description": "Catalog properties." - } - } + "x-ms-enum": { + "name": "ImageDefinitionBuildStatus", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "The image build has succeeded." + }, + { + "name": "Running", + "value": "Running", + "description": "The image build is running." + }, + { + "name": "ValidationFailed", + "value": "ValidationFailed", + "description": "The built image has failed validation." + }, + { + "name": "Failed", + "value": "Failed", + "description": "The image build has failed." + }, + { + "name": "Cancelled", + "value": "Cancelled", + "description": "The image build has been cancelled." + }, + { + "name": "TimedOut", + "value": "TimedOut", + "description": "The image build has timed out." + } + ] + }, + "readOnly": true }, - "CatalogUpdateProperties": { - "description": "Properties of a catalog. These properties can be updated after the resource has been created.", + "ImageDefinitionBuildTask": { "type": "object", + "description": "A task executed during the image definition build.", "properties": { - "gitHub": { - "description": "Properties for a GitHub catalog type.", - "$ref": "#/definitions/GitCatalog" + "name": { + "type": "string", + "description": "The name of the task." }, - "adoGit": { - "description": "Properties for an Azure DevOps catalog type.", - "$ref": "#/definitions/GitCatalog" + "parameters": { + "type": "array", + "description": "Parameters for the task.", + "items": { + "$ref": "#/definitions/ImageDefinitionBuildTaskParametersItem" + }, + "x-ms-identifiers": [] }, - "syncType": { - "enum": [ - "Manual", - "Scheduled" - ], - "description": "Indicates the type of sync that is configured for the catalog.", + "displayName": { "type": "string", - "x-ms-enum": { - "name": "CatalogSyncType", - "modelAsString": true - } + "description": "Display name to help differentiate multiple instances of the same task." }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-ms-mutability": [ - "read", - "create", - "update" - ], - "description": "Resource tags." + "id": { + "type": "string", + "description": "ID of the task instance.", + "readOnly": true + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "Start time of the task.", + "readOnly": true + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "End time of the task.", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/ImageDefinitionBuildStatus", + "description": "The status of the task.", + "readOnly": true + }, + "logUri": { + "type": "string", + "description": "The URI for retrieving logs for the task execution.", + "readOnly": true } } }, - "CatalogProperties": { - "description": "Properties of a catalog.", + "ImageDefinitionBuildTaskGroup": { "type": "object", - "allOf": [ - { - "$ref": "#/definitions/CatalogUpdateProperties" - } - ], + "description": "A task group executed during the image definition build.", "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "name": { + "type": "string", + "description": "The name of the task group.", "readOnly": true }, - "syncState": { - "enum": [ - "Succeeded", - "InProgress", - "Failed", - "Canceled" - ], - "description": "The synchronization state of the catalog.", - "readOnly": true, - "type": "string", - "x-ms-enum": { - "name": "CatalogSyncState", - "modelAsString": true - } + "status": { + "$ref": "#/definitions/ImageDefinitionBuildStatus", + "description": "The status of the task group.", + "readOnly": true }, - "lastSyncStats": { - "description": "Stats of the latest synchronization.", - "$ref": "#/definitions/SyncStats", + "startTime": { + "type": "string", + "format": "date-time", + "description": "Start time of the task group.", "readOnly": true }, - "connectionState": { - "enum": [ - "Connected", - "Disconnected" - ], - "description": "The connection state of the catalog.", - "readOnly": true, + "endTime": { "type": "string", - "x-ms-enum": { - "name": "CatalogConnectionState", - "modelAsString": true - } + "format": "date-time", + "description": "End time of the task group.", + "readOnly": true }, - "lastConnectionTime": { - "description": "When the catalog was last connected.", + "tasks": { + "type": "array", + "description": "The list of tasks executed during the task group.", + "items": { + "$ref": "#/definitions/ImageDefinitionBuildTask" + }, + "readOnly": true + } + } + }, + "ImageDefinitionBuildTaskParametersItem": { + "type": "object", + "description": "Parameters for an image definition build task.", + "properties": { + "key": { "type": "string", - "readOnly": true, - "format": "date-time" + "description": "Key of the parameter." }, - "lastSyncTime": { - "description": "When the catalog was last synced.", + "value": { + "type": "string", + "description": "Value of the parameter." + } + }, + "required": [ + "key", + "value" + ] + }, + "ImageDefinitionListResult": { + "type": "object", + "description": "Paged collection of ImageDefinition items", + "properties": { + "value": { + "type": "array", + "description": "The ImageDefinition items on this page", + "items": { + "$ref": "#/definitions/ImageDefinition" + }, + "readOnly": true + }, + "nextLink": { "type": "string", - "readOnly": true, - "format": "date-time" + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "SyncStats": { - "description": "Stats of the synchronization.", + "ImageDefinitionProperties": { "type": "object", + "description": "Properties of an Image Definition.", "properties": { - "added": { - "description": "Count of catalog items added during synchronization.", - "type": "integer", - "format": "int32", - "readOnly": true, - "minimum": 0 + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Image reference information." }, - "updated": { - "description": "Count of catalog items updated during synchronization.", - "type": "integer", - "format": "int32", - "readOnly": true, - "minimum": 0 + "fileUrl": { + "type": "string", + "description": "The URL to the repository file containing the image definition.", + "readOnly": true }, - "unchanged": { - "description": "Count of catalog items that were unchanged during synchronization.", - "type": "integer", - "format": "int32", - "readOnly": true, - "minimum": 0 + "latestBuild": { + "$ref": "#/definitions/LatestImageBuild", + "description": "Details about the latest build." }, - "removed": { - "description": "Count of catalog items removed during synchronization.", - "type": "integer", - "format": "int32", - "readOnly": true, - "minimum": 0 + "imageValidationStatus": { + "$ref": "#/definitions/ImageValidationStatus", + "description": "Validation status of the configured image.", + "readOnly": true }, - "validationErrors": { - "description": "Count of catalog items that had validation errors during synchronization.", - "type": "integer", - "format": "int32", - "readOnly": true, - "minimum": 0 + "imageValidationErrorDetails": { + "$ref": "#/definitions/ImageValidationErrorDetails", + "description": "Details for image validator error. Populated when the image validation is not successful.", + "readOnly": true }, - "synchronizationErrors": { - "description": "Count of synchronization errors that occured during synchronization.", - "type": "integer", - "format": "int32", - "readOnly": true, - "minimum": 0 + "validationStatus": { + "$ref": "#/definitions/CatalogResourceValidationStatus", + "description": "Validation status for the Image Definition.", + "readOnly": true }, - "syncedCatalogItemTypes": { - "description": "Indicates catalog item types that were synced.", + "activeImageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Image reference information for the currently active image (only populated during updates).", + "readOnly": true + }, + "autoImageBuild": { + "$ref": "#/definitions/AutoImageBuildStatus", + "description": "Indicates if automatic image builds will be triggered for image definition updates", + "readOnly": true + }, + "tasks": { "type": "array", + "description": "Tasks to run at Dev Box provisioning time.", "items": { - "$ref": "#/definitions/CatalogItemType" + "$ref": "#/definitions/CustomizationTaskInstance" } - } - } - }, - "GitCatalog": { - "description": "Properties for a Git repository catalog.", - "type": "object", - "properties": { - "uri": { - "description": "Git URI.", - "type": "string" - }, - "branch": { - "description": "Git branch.", - "type": "string" }, - "secretIdentifier": { - "description": "A reference to the Key Vault secret containing a security token to authenticate to a Git repository.", - "type": "string" + "userTasks": { + "type": "array", + "description": "Tasks to run when a user first logs into a Dev Box.", + "items": { + "$ref": "#/definitions/CustomizationTaskInstance" + } }, - "path": { - "description": "The folder where the catalog items can be found inside the repository.", - "type": "string" + "extends": { + "$ref": "#/definitions/ImageDefinitionReference", + "description": "Another Image Definition that this one extends." } } }, - "CatalogUpdate": { - "description": "The catalog's properties for partial update. Properties not provided in the update request will not be changed.", + "ImageDefinitionReference": { "type": "object", + "description": "A reference to an Image Definition.", "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/CatalogUpdateProperties", - "description": "Catalog properties for update." + "imageDefinition": { + "type": "string", + "description": "Name of the referenced Image Definition." + }, + "parameters": { + "type": "array", + "description": "Parameters for the referenced Image Definition.", + "items": { + "$ref": "#/definitions/DefinitionParametersItem" + } } - } + }, + "required": [ + "imageDefinition" + ] }, - "CatalogListResult": { - "description": "Results of the catalog list operation.", + "ImageListResult": { "type": "object", + "description": "Paged collection of Image items", "properties": { "value": { - "description": "Current page of results.", - "readOnly": true, "type": "array", + "description": "The Image items on this page", "items": { - "$ref": "#/definitions/Catalog" - } + "$ref": "#/definitions/Image" + }, + "readOnly": true }, "nextLink": { - "description": "URL to get the next set of results if there are any.", "type": "string", - "readOnly": true + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "SyncErrorDetails": { - "description": "Synchronization error details.", + "ImageProperties": { "type": "object", + "description": "Properties of an image.", "properties": { - "operationError": { - "description": "Error information for the overall synchronization operation.", - "readOnly": true, - "$ref": "vdi.json#/definitions/CatalogErrorDetails" + "description": { + "type": "string", + "description": "The description of the image.", + "readOnly": true }, - "conflicts": { - "description": "Catalog items that have conflicting names.", - "type": "array", - "items": { - "$ref": "#/definitions/CatalogConflictError" - }, - "x-ms-identifiers": [], + "publisher": { + "type": "string", + "description": "The publisher of the image.", "readOnly": true }, - "errors": { - "description": "Errors that occured during synchronization.", - "type": "array", - "items": { - "$ref": "#/definitions/CatalogSyncError" - }, - "x-ms-identifiers": [], + "offer": { + "type": "string", + "description": "The name of the image offer.", + "readOnly": true + }, + "sku": { + "type": "string", + "description": "The SKU name for the image.", + "readOnly": true + }, + "recommendedMachineConfiguration": { + "$ref": "#/definitions/RecommendedMachineConfiguration", + "description": "The recommended machine configuration to use with the image.", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the resource.", + "readOnly": true + }, + "hibernateSupport": { + "$ref": "#/definitions/HibernateSupport", + "description": "Indicates whether this image has hibernate enabled. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate", "readOnly": true } } }, - "CatalogSyncError": { - "description": "An individual synchronization error.", + "ImageReference": { "type": "object", + "description": "Image reference information.", "properties": { - "path": { - "description": "The path of the file the error is associated with.", + "id": { "type": "string", - "readOnly": true + "description": "Image ID, or Image version ID. When Image ID is provided, its latest version will be used." }, - "errorDetails": { - "description": "Errors associated with the file.", - "type": "array", - "items": { - "$ref": "vdi.json#/definitions/CatalogErrorDetails" - }, - "x-ms-identifiers": [], + "exactVersion": { + "type": "string", + "description": "The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual version in use.", "readOnly": true } } }, - "CatalogConflictError": { - "description": "An individual conflict error.", + "ImageValidationErrorDetails": { "type": "object", + "description": "Image validation error details.", "properties": { - "path": { - "description": "The path of the file that has a conflicting name.", + "code": { "type": "string", - "readOnly": true + "description": "An identifier for the error." }, - "name": { - "description": "Name of the conflicting catalog item.", + "message": { "type": "string", - "readOnly": true + "description": "A message describing the error." } } }, - "Gallery": { - "description": "Represents a gallery.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" - } + "ImageValidationStatus": { + "type": "string", + "description": "Image validation status.", + "enum": [ + "Unknown", + "Pending", + "Succeeded", + "Failed", + "TimedOut" ], + "x-ms-enum": { + "name": "ImageValidationStatus", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "Unknown image validation status." + }, + { + "name": "Pending", + "value": "Pending", + "description": "Pending image validation status." + }, + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Succeeded image validation status." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Failed image validation status." + }, + { + "name": "TimedOut", + "value": "TimedOut", + "description": "Timed out image validation status." + } + ] + }, + "readOnly": true + }, + "ImageVersion": { + "type": "object", + "description": "Represents an image version.", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/GalleryProperties", - "description": "Gallery properties." + "$ref": "#/definitions/ImageVersionProperties", + "description": "Image version properties.", + "x-ms-client-flatten": true } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ] }, - "GalleryProperties": { - "description": "Properties of a gallery.", + "ImageVersionListResult": { "type": "object", + "description": "Paged collection of ImageVersion items", "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "value": { + "type": "array", + "description": "The ImageVersion items on this page", + "items": { + "$ref": "#/definitions/ImageVersion" + }, "readOnly": true }, - "galleryResourceId": { - "description": "The resource ID of the backing Azure Compute Gallery.", + "nextLink": { "type": "string", - "x-ms-mutability": [ - "read", - "create" - ] + "format": "uri", + "description": "The link to the next page of items" } }, "required": [ - "galleryResourceId" + "value" ] }, - "Image": { - "description": "Represents an image.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ImageProperties", - "description": "Image properties." - } - } - }, - "ImageProperties": { - "description": "Properties of an image.", + "ImageVersionProperties": { "type": "object", + "description": "Properties of an image version.", "properties": { - "description": { - "description": "The description of the image.", - "type": "string", - "readOnly": true - }, - "publisher": { - "description": "The publisher of the image.", + "name": { "type": "string", + "description": "The semantic version string.", "readOnly": true }, - "offer": { - "description": "The name of the image offer.", + "publishedDate": { "type": "string", + "format": "date-time", + "description": "The datetime that the backing image version was published.", "readOnly": true }, - "sku": { - "description": "The SKU name for the image.", - "type": "string", + "excludeFromLatest": { + "type": "boolean", + "description": "If the version should be excluded from being treated as the latest version.", "readOnly": true }, - "recommendedMachineConfiguration": { - "description": "The recommended machine configuration to use with the image.", - "$ref": "#/definitions/RecommendedMachineConfiguration", + "osDiskImageSizeInGb": { + "type": "integer", + "format": "int32", + "description": "The size of the OS disk image, in GB.", "readOnly": true }, "provisioningState": { + "$ref": "#/definitions/ProvisioningState", "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", "readOnly": true - }, - "hibernateSupport": { - "description": "Indicates whether this image has hibernate enabled. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate", - "readOnly": true, - "$ref": "#/definitions/HibernateSupport" } } }, - "RecommendedMachineConfiguration": { - "description": "Properties for a recommended machine configuration.", + "InheritedSettingsForProject": { "type": "object", + "description": "Applicable inherited settings for a project.", "properties": { - "memory": { - "description": "Recommended memory range.", - "$ref": "#/definitions/ResourceRange", + "projectCatalogSettings": { + "$ref": "#/definitions/DevCenterProjectCatalogSettings", + "description": "Dev Center settings to be used when associating a project with a catalog.", "readOnly": true }, - "vCPUs": { - "description": "Recommended vCPU range.", - "$ref": "#/definitions/ResourceRange", + "networkSettings": { + "$ref": "#/definitions/ProjectNetworkSettings", + "description": "Network settings that will be enforced on this project.", "readOnly": true } } }, - "ResourceRange": { - "description": "Properties for a range of values.", - "type": "object", - "properties": { - "min": { - "description": "Minimum value.", - "type": "integer", - "format": "int32", - "readOnly": true - }, - "max": { - "description": "Maximum value.", - "type": "integer", - "format": "int32", - "readOnly": true - } + "InstallAzureMonitorAgentEnableStatus": { + "type": "string", + "description": "Setting to be used when determining whether to install the Azure Monitor Agent service on Dev Boxes that belong to this dev center.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "InstallAzureMonitorAgentEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Azure Monitor Agent service is enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Azure Monitor Agent service is disabled." + } + ] } }, - "ImageVersion": { - "description": "Represents an image version.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } + "KeepAwakeEnableStatus": { + "type": "string", + "description": "Enables or disables whether Dev Boxes should be kept awake during active hours.", + "enum": [ + "Enabled", + "Disabled" ], + "x-ms-enum": { + "name": "KeepAwakeEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Keep awake is enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Keep awake is disabled." + } + ] + } + }, + "KeyEncryptionKeyIdentity": { + "type": "object", + "description": "The managed identity configuration used for key vault access.", "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ImageVersionProperties", - "description": "Image version properties." + "type": { + "$ref": "#/definitions/CmkIdentityType", + "description": "The type of managed identity to use for key vault access." + }, + "userAssignedIdentityResourceId": { + "type": "string", + "description": "For system assigned identity, this will be null. For user assigned identity, this should be the resource ID of the identity." } } }, - "ImageVersionProperties": { - "description": "Properties of an image version.", + "LatestImageBuild": { "type": "object", + "description": "Details about the latest build.", "properties": { "name": { - "description": "The semantic version string.", "type": "string", + "description": "Identifier of a build.", "readOnly": true }, - "publishedDate": { - "description": "The datetime that the backing image version was published.", + "startTime": { "type": "string", - "readOnly": true, - "format": "date-time" - }, - "excludeFromLatest": { - "description": "If the version should be excluded from being treated as the latest version.", - "type": "boolean", + "format": "date-time", + "description": "Start time of the task group.", "readOnly": true }, - "osDiskImageSizeInGb": { - "description": "The size of the OS disk image, in GB.", - "type": "integer", - "format": "int32", + "endTime": { + "type": "string", + "format": "date-time", + "description": "End time of the task group.", "readOnly": true }, - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", + "status": { + "$ref": "#/definitions/ImageDefinitionBuildStatus", + "description": "The state of an Image Definition Build.", "readOnly": true } } }, - "GalleryListResult": { - "description": "Results of the gallery list operation.", + "LicenseType": { + "type": "string", + "description": "License Types", + "enum": [ + "Windows_Client" + ], + "x-ms-enum": { + "name": "LicenseType", + "modelAsString": true, + "values": [ + { + "name": "Windows_Client", + "value": "Windows_Client", + "description": "Windows Client license type." + } + ] + } + }, + "ListUsagesResult": { "type": "object", + "description": "List of Core Usages.", "properties": { "value": { - "description": "Current page of results.", - "readOnly": true, "type": "array", + "description": "The Usage items on this page", "items": { - "$ref": "#/definitions/Gallery" + "$ref": "#/definitions/Usage" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "LocalAdminStatus": { + "type": "string", + "description": "Local Administrator enable or disable status. Indicates whether owners of Dev Boxes are added as local administrators on the Dev Box.", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "LocalAdminStatus", + "modelAsString": true, + "values": [ + { + "name": "Disabled", + "value": "Disabled", + "description": "Local administrator is disabled." + }, + { + "name": "Enabled", + "value": "Enabled", + "description": "Local administrator is enabled." + } + ] + } + }, + "MicrosoftHostedNetworkEnableStatus": { + "type": "string", + "description": "Indicates whether pools in this Dev Center can use Microsoft Hosted Networks. Defaults to Enabled if not set.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "MicrosoftHostedNetworkEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Microsoft Hosted Networks are enabled for this Dev Center." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Microsoft Hosted Networks are disabled for this Dev Center." } + ] + } + }, + "NetworkConnection": { + "type": "object", + "description": "Network related settings.", + "properties": { + "properties": { + "$ref": "#/definitions/NetworkProperties", + "description": "Properties of a Network Connection", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/TrackedResource" + } + ] + }, + "NetworkConnectionListResult": { + "type": "object", + "description": "Paged collection of NetworkConnection items", + "properties": { + "value": { + "type": "array", + "description": "The NetworkConnection items on this page", + "items": { + "$ref": "#/definitions/NetworkConnection" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "NetworkConnectionUpdate": { + "type": "object", + "description": "The network connection properties for partial update. Properties not provided in the update request will not be changed.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "update", + "create" + ] }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", + "location": { "type": "string", - "readOnly": true + "description": "The geo-location where the resource lives.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "properties": { + "$ref": "#/definitions/NetworkConnectionUpdateProperties", + "description": "Properties of a network connection resource to be updated.", + "x-ms-client-flatten": true } } }, - "ImageListResult": { - "description": "Results of the image list operation.", + "NetworkConnectionUpdateProperties": { "type": "object", + "description": "Properties of network connection. These properties can be updated after the resource has been created.", "properties": { - "value": { - "description": "Current page of results.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/Image" - } + "subnetId": { + "type": "string", + "description": "The subnet to attach Virtual Machines to." }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", + "domainName": { "type": "string", - "readOnly": true + "description": "Active Directory domain name." + }, + "organizationUnit": { + "type": "string", + "description": "Active Directory domain Organization Unit (OU)." + }, + "domainUsername": { + "type": "string", + "description": "The username of an Active Directory account (user or service account) that has permissions to create computer objects in Active Directory. Required format: admin@contoso.com." + }, + "domainPassword": { + "type": "string", + "format": "password", + "description": "The password for the account used to join domain.", + "x-ms-secret": true } } }, - "ImageVersionListResult": { - "description": "Results of the image version list operation.", + "NetworkProperties": { "type": "object", + "description": "Network properties", "properties": { - "value": { - "description": "Current page of results.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/ImageVersion" - } + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the resource.", + "readOnly": true }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", + "healthCheckStatus": { + "$ref": "#/definitions/HealthCheckStatus", + "description": "Overall health status of the network connection. Health checks are run on creation, update, and periodically to validate the network connection.", "readOnly": true + }, + "networkingResourceGroupName": { + "type": "string", + "description": "The name for resource group where NICs will be placed.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "domainJoinType": { + "$ref": "#/definitions/DomainJoinType", + "description": "AAD Join type.", + "x-ms-mutability": [ + "read", + "create" + ] } - } - }, - "AllowedEnvironmentType": { - "description": "Represents an allowed environment type.", - "type": "object", + }, + "required": [ + "domainJoinType" + ], "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" + "$ref": "#/definitions/NetworkConnectionUpdateProperties" } - ], + ] + }, + "OperationStatus": { + "type": "object", + "description": "The current status of an async operation", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/AllowedEnvironmentTypeProperties", - "description": "Properties of an allowed environment type." + "type": "object", + "description": "Custom operation properties, populated only for a successful operation.", + "additionalProperties": {}, + "readOnly": true } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/OperationStatusResult" + } + ] }, - "AllowedEnvironmentTypeProperties": { - "description": "Properties of an allowed environment type.", + "OutboundEnvironmentEndpoint": { "type": "object", + "description": "A collection of related endpoints from the same service for which the agent requires outbound access.", "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - }, - "displayName": { - "description": "The display name of the allowed environment type.", + "category": { "type": "string", + "description": "The type of service that the agent connects to.", "readOnly": true + }, + "endpoints": { + "type": "array", + "description": "The endpoints for this service for which the agent requires outbound access.", + "items": { + "$ref": "#/definitions/EndpointDependency" + }, + "readOnly": true, + "x-ms-identifiers": [ + "domainName" + ] } } }, - "AllowedEnvironmentTypeListResult": { - "description": "Result of the allowed environment type list operation.", + "OutboundEnvironmentEndpointCollection": { "type": "object", + "description": "Values returned by the List operation.", "properties": { "value": { - "description": "Current page of results.", - "readOnly": true, "type": "array", + "description": "The OutboundEnvironmentEndpoint items on this page", "items": { - "$ref": "#/definitions/AllowedEnvironmentType" - } + "$ref": "#/definitions/OutboundEnvironmentEndpoint" + }, + "readOnly": true, + "x-ms-identifiers": [ + "category" + ] }, "nextLink": { - "description": "URL to get the next set of results if there are any.", "type": "string", - "readOnly": true + "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." + } + ] } }, - "EnvironmentType": { - "description": "Represents an environment type.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" - } + "PolicyAction": { + "type": "string", + "description": "Indicates what action to perform for the policy.", + "enum": [ + "Allow", + "Deny" ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/EnvironmentTypeProperties", - "description": "Properties of an environment type." - }, - "tags": { - "$ref": "commonDefinitions.json#/definitions/Tags", - "description": "Resource tags." - } + "x-ms-enum": { + "name": "PolicyAction", + "modelAsString": true, + "values": [ + { + "name": "Allow", + "value": "Allow", + "description": "Allow action for the policy." + }, + { + "name": "Deny", + "value": "Deny", + "description": "Deny action for the policy." + } + ] } }, - "EnvironmentTypeProperties": { - "description": "Properties of an environment type.", + "Pool": { "type": "object", + "description": "A pool of Virtual Machines.", + "properties": { + "properties": { + "$ref": "#/definitions/PoolProperties", + "description": "Pool properties", + "x-ms-client-flatten": true + } + }, "allOf": [ { - "$ref": "#/definitions/EnvironmentTypeUpdateProperties" - } - ], - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/TrackedResource" } - } + ] }, - "EnvironmentTypeUpdate": { - "description": "The environment type for partial update. Properties not provided in the update request will not be changed.", + "PoolDevBoxDefinition": { "type": "object", + "description": "Represents a definition for a Developer Machine.", "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/EnvironmentTypeUpdateProperties", - "description": "Properties of an environment type to be updated." + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Image reference information." }, - "tags": { - "$ref": "commonDefinitions.json#/definitions/Tags", - "description": "Resource tags." + "sku": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/Sku", + "description": "The SKU for Dev Boxes created from the Pool." + }, + "activeImageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Image reference information for the currently active image (only populated during updates).", + "readOnly": true } } }, - "EnvironmentTypeUpdateProperties": { - "description": "Properties of an environment type. These properties can be updated after the resource has been created.", - "type": "object", - "properties": { - "displayName": { - "type": "string", - "description": "The display name of the environment type." - } + "PoolDevBoxDefinitionType": { + "type": "string", + "description": "Indicates if the pool is created from an existing Dev Box Definition or if one is provided directly.", + "enum": [ + "Reference", + "Value" + ], + "x-ms-enum": { + "name": "PoolDevBoxDefinitionType", + "modelAsString": true, + "values": [ + { + "name": "Reference", + "value": "Reference", + "description": "Indicates the pool is created from an existing Dev Box definition." + }, + { + "name": "Value", + "value": "Value", + "description": "Indicates the pool is created from a Dev Box definition that's created from an image reference and a SKU directly. This is used for creating an image definition pool or an image pool." + } + ] } }, - "EnvironmentTypeListResult": { - "description": "Result of the environment type list operation.", + "PoolListResult": { "type": "object", + "description": "Paged collection of Pool items", "properties": { "value": { - "description": "Current page of results.", - "readOnly": true, "type": "array", + "description": "The Pool items on this page", "items": { - "$ref": "#/definitions/EnvironmentType" - } + "$ref": "#/definitions/Pool" + }, + "readOnly": true }, "nextLink": { - "description": "URL to get the next set of results if there are any.", "type": "string", - "readOnly": true + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "ProjectEnvironmentType": { - "description": "Represents an environment type.", + "PoolProperties": { "type": "object", + "description": "Properties of a Pool.", + "properties": { + "healthStatus": { + "$ref": "#/definitions/HealthStatus", + "description": "Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes.", + "readOnly": true + }, + "healthStatusDetails": { + "type": "array", + "description": "Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool is in a non-healthy state", + "items": { + "$ref": "#/definitions/HealthStatusDetail" + }, + "readOnly": true, + "x-ms-identifiers": [ + "code" + ] + }, + "devBoxCount": { + "type": "integer", + "format": "int32", + "description": "Indicates the number of provisioned Dev Boxes in this pool.", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the resource.", + "readOnly": true + } + }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" + "$ref": "#/definitions/PoolUpdateProperties" } - ], + ] + }, + "PoolUpdate": { + "type": "object", + "description": "The pool properties for partial update. Properties not provided in the update request will not be changed.", "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ProjectEnvironmentTypeProperties", - "description": "Properties of an environment type." - }, "tags": { - "$ref": "commonDefinitions.json#/definitions/Tags", - "description": "Resource tags." - }, - "identity": { - "description": "Managed identity properties", - "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "update", + "create" + ] }, "location": { "type": "string", - "description": "The geo-location for the environment type" + "description": "The geo-location where the resource lives.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "properties": { + "$ref": "#/definitions/PoolUpdateProperties", + "description": "Properties of a pool to be updated.", + "x-ms-client-flatten": true } } }, - "ProjectEnvironmentTypeUpdateProperties": { - "description": "Properties of a project environment type. These properties can be updated after the resource has been created.", + "PoolUpdateProperties": { "type": "object", + "description": "Properties of a Pool. These properties can be updated after the resource has been created.", "properties": { - "deploymentTargetId": { - "description": "Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this subscription.", - "type": "string" + "devBoxDefinitionType": { + "$ref": "#/definitions/PoolDevBoxDefinitionType", + "description": "Indicates if the pool is created from an existing Dev Box Definition or if one is provided directly." + }, + "devBoxDefinitionName": { + "type": "string", + "description": "Name of a Dev Box definition in parent Project of this Pool. Will be ignored if devBoxDefinitionType is Value." + }, + "devBoxDefinition": { + "$ref": "#/definitions/PoolDevBoxDefinition", + "description": "A definition of the machines that are created from this Pool. Will be ignored if devBoxDefinitionType is Reference or not provided." + }, + "networkConnectionName": { + "type": "string", + "description": "Name of a Network Connection in parent Project of this Pool." + }, + "licenseType": { + "$ref": "#/definitions/LicenseType", + "description": "Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created." + }, + "localAdministrator": { + "$ref": "#/definitions/LocalAdminStatus", + "description": "Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box." + }, + "stopOnDisconnect": { + "$ref": "#/definitions/StopOnDisconnectConfiguration", + "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool." + }, + "stopOnNoConnect": { + "$ref": "#/definitions/StopOnNoConnectConfiguration", + "description": "Stop on no connect configuration settings for Dev Boxes created in this pool." + }, + "singleSignOnStatus": { + "$ref": "#/definitions/SingleSignOnStatus", + "description": "Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on be enabled on the tenant." }, "displayName": { - "description": "The display name of the project environment type.", - "type": "string" + "type": "string", + "description": "The display name of the pool." }, - "status": { - "description": "Defines whether this Environment Type can be used in this Project.", - "$ref": "#/definitions/EnvironmentTypeEnableStatus" + "virtualNetworkType": { + "$ref": "#/definitions/VirtualNetworkType", + "description": "Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network." }, - "creatorRoleAssignment": { - "description": "The role definition assigned to the environment creator on backing resources.", - "type": "object", - "properties": { - "roles": { - "type": "object", - "description": "A map of roles to assign to the environment creator.", - "additionalProperties": { - "$ref": "#/definitions/EnvironmentRole" - } - } + "managedVirtualNetworkRegions": { + "type": "array", + "description": "The regions of the managed virtual network (required when managedNetworkType is Managed).", + "items": { + "type": "string" } }, - "userRoleAssignments": { - "description": "Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role definition IDs.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/UserRoleAssignment" - } - } - } - }, - "ProjectEnvironmentTypeProperties": { - "description": "Properties of a project environment type.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ProjectEnvironmentTypeUpdateProperties" - } - ], - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true + "activeHoursConfiguration": { + "$ref": "#/definitions/ActiveHoursConfiguration", + "description": "Active hours configuration settings for Dev Boxes created in this pool." }, - "environmentCount": { - "description": "The number of environments of this type.", - "type": "integer", - "format": "int32", - "minimum": 0, - "readOnly": true + "devBoxTunnelEnableStatus": { + "$ref": "#/definitions/DevBoxTunnelEnableStatus", + "description": "Indicates whether Dev Box Tunnel is enabled for a the pool." } } }, - "ProjectEnvironmentTypeUpdate": { - "description": "The project environment type for partial update. Properties not provided in the update request will not be changed.", + "Project": { "type": "object", + "description": "Represents a project resource.", "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ProjectEnvironmentTypeUpdateProperties", - "description": "Properties to configure an environment type." - }, - "tags": { - "$ref": "commonDefinitions.json#/definitions/Tags", - "description": "Resource tags." + "$ref": "#/definitions/ProjectProperties", + "description": "Properties of a project.", + "x-ms-client-flatten": true }, "identity": { - "description": "Managed identity properties", - "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity" + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "Managed identity properties." } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/TrackedResource" + } + ] }, - "ProjectEnvironmentTypeListResult": { - "description": "Result of the project environment type list operation.", + "ProjectCatalogSettings": { "type": "object", + "description": "Settings to be used when associating a project with a catalog.", "properties": { - "value": { - "description": "Current page of results.", - "readOnly": true, + "catalogItemSyncTypes": { "type": "array", + "description": "Indicates catalog item types that can be synced.", "items": { - "$ref": "#/definitions/ProjectEnvironmentType" + "$ref": "#/definitions/CatalogItemType" } - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true } } }, - "DevBoxDefinitionListResult": { - "description": "Results of the Dev Box definition list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/DevBoxDefinition" + "ProjectCustomizationIdentityType": { + "type": "string", + "description": "Values can be systemAssignedIdentity or userAssignedIdentity", + "enum": [ + "systemAssignedIdentity", + "userAssignedIdentity" + ], + "x-ms-enum": { + "name": "ProjectCustomizationIdentityType", + "modelAsString": true, + "values": [ + { + "name": "systemAssignedIdentity", + "value": "systemAssignedIdentity", + "description": "System assigned identity type." }, - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } + { + "name": "userAssignedIdentity", + "value": "userAssignedIdentity", + "description": "User assigned identity type." + } + ] } }, - "DevBoxDefinitionUpdate": { - "description": "Partial update of a Dev Box definition resource.", + "ProjectCustomizationManagedIdentity": { "type": "object", - "allOf": [ - { - "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" - } - ], + "description": "A reference to a Managed Identity that is attached to the Project.", "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DevBoxDefinitionUpdateProperties", - "description": "Properties of a Dev Box definition to be updated." + "identityType": { + "$ref": "#/definitions/ProjectCustomizationIdentityType", + "description": "Values can be systemAssignedIdentity or userAssignedIdentity." + }, + "identityResourceId": { + "type": "string", + "format": "arm-id", + "description": "Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity." } } }, - "DevBoxDefinition": { - "description": "Represents a definition for a Developer Machine.", + "ProjectCustomizationSettings": { "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } - ], + "description": "Settings to be used for customizations.", "properties": { - "properties": { - "description": "Dev Box definition properties", - "x-ms-client-flatten": true, - "$ref": "#/definitions/DevBoxDefinitionProperties" + "identities": { + "type": "array", + "description": "The identities that can to be used in customization scenarios; e.g., to clone a repository.", + "items": { + "$ref": "#/definitions/ProjectCustomizationManagedIdentity" + }, + "x-ms-identifiers": [] + }, + "userCustomizationsEnableStatus": { + "$ref": "#/definitions/UserCustomizationsEnableStatus", + "description": "Indicates whether user customizations are enabled." } } }, - "DevBoxDefinitionUpdateProperties": { - "description": "Properties of a Dev Box definition. These properties can be updated after the resource has been created.", + "ProjectEnvironmentType": { "type": "object", + "description": "Represents an environment type.", "properties": { - "imageReference": { - "$ref": "vdi.json#/definitions/ImageReference", - "description": "Image reference information." - }, - "sku": { - "description": "The SKU for Dev Boxes created using this definition.", - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Sku" - }, - "osStorageType": { - "description": "The storage type used for the Operating System disk of Dev Boxes created using this definition.", - "type": "string" + "properties": { + "$ref": "#/definitions/ProjectEnvironmentTypeProperties", + "description": "Properties of an environment type.", + "x-ms-client-flatten": true }, - "hibernateSupport": { - "description": "Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate", - "$ref": "#/definitions/HibernateSupport" + "identity": { + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "Managed identity properties." } - } - }, - "DevBoxDefinitionProperties": { - "description": "Properties of a Dev Box definition.", - "type": "object", + }, "allOf": [ { - "$ref": "#/definitions/DevBoxDefinitionUpdateProperties" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/TrackedResource" } - ], + ] + }, + "ProjectEnvironmentTypeListResult": { + "type": "object", + "description": "Paged collection of ProjectEnvironmentType items", "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - }, - "imageValidationStatus": { - "description": "Validation status of the configured image.", - "$ref": "vdi.json#/definitions/ImageValidationStatus", - "readOnly": true - }, - "imageValidationErrorDetails": { - "description": "Details for image validator error. Populated when the image validation is not successful.", - "$ref": "vdi.json#/definitions/ImageValidationErrorDetails", - "readOnly": true - }, - "validationStatus": { - "description": "Validation status for the Dev Box Definition.", - "$ref": "vdi.json#/definitions/CatalogResourceValidationStatus", + "value": { + "type": "array", + "description": "The ProjectEnvironmentType items on this page", + "items": { + "$ref": "#/definitions/ProjectEnvironmentType" + }, "readOnly": true }, - "activeImageReference": { - "$ref": "vdi.json#/definitions/ImageReference", - "description": "Image reference information for the currently active image (only populated during updates).", - "readOnly": true + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } }, "required": [ - "imageReference", - "sku" + "value" ] }, - "AttachedNetworkConnection": { - "description": "Represents an attached NetworkConnection.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/AttachedNetworkConnectionProperties", - "description": "Attached NetworkConnection properties." - } - } - }, - "AttachedNetworkConnectionProperties": { - "description": "Properties of an attached NetworkConnection.", + "ProjectEnvironmentTypeProperties": { "type": "object", + "description": "Properties of a project environment type.", "properties": { "provisioningState": { + "$ref": "#/definitions/ProvisioningState", "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - }, - "networkConnectionId": { - "description": "The resource ID of the NetworkConnection you want to attach.", - "type": "string", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "networkConnectionLocation": { - "description": "The geo-location where the NetworkConnection resource specified in 'networkConnectionResourceId' property lives.", - "type": "string", - "readOnly": true - }, - "healthCheckStatus": { - "$ref": "vdi.json#/definitions/HealthCheckStatus", "readOnly": true }, - "domainJoinType": { - "description": "AAD Join type of the network. This is populated based on the referenced Network Connection.", - "$ref": "vdi.json#/definitions/DomainJoinType", + "environmentCount": { + "type": "integer", + "format": "int32", + "description": "The number of environments of this type.", + "minimum": 0, "readOnly": true } }, - "required": [ - "networkConnectionId" + "allOf": [ + { + "$ref": "#/definitions/ProjectEnvironmentTypeUpdateProperties" + } ] }, - "AttachedNetworkListResult": { - "description": "Results of the Attached Networks list operation.", + "ProjectEnvironmentTypeUpdate": { "type": "object", + "description": "The project environment type for partial update. Properties not provided in the update request will not be changed.", "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/AttachedNetworkConnection" + "properties": { + "$ref": "#/definitions/ProjectEnvironmentTypeUpdateProperties", + "description": "Properties to configure an environment type.", + "x-ms-client-flatten": true + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" }, - "readOnly": true + "x-ms-mutability": [ + "read", + "update", + "create" + ] }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true + "identity": { + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "Managed identity properties." } } }, - "EnvironmentRole": { + "ProjectEnvironmentTypeUpdateProperties": { "type": "object", - "description": "A role that can be assigned to a user.", + "description": "Properties of a project environment type. These properties can be updated after the resource has been created.", "properties": { - "roleName": { - "description": "The common name of the Role Assignment. This is a descriptive name such as 'AcrPush'.", + "deploymentTargetId": { "type": "string", - "readOnly": true + "description": "Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this subscription." }, - "description": { - "description": "This is a description of the Role Assignment.", + "displayName": { "type": "string", - "readOnly": true + "description": "The display name of the project environment type." + }, + "status": { + "$ref": "#/definitions/EnvironmentTypeEnableStatus", + "description": "Defines whether this Environment Type can be used in this Project." + }, + "creatorRoleAssignment": { + "$ref": "#/definitions/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment", + "description": "The role definition assigned to the environment creator on backing resources." + }, + "userRoleAssignments": { + "type": "object", + "description": "Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role definition IDs.", + "additionalProperties": { + "$ref": "#/definitions/UserRoleAssignment" + } } } }, - "UserRoleAssignment": { + "ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment": { "type": "object", - "description": "Mapping of user object ID to role assignments.", - "x-ms-client-name": "userRoleAssignmentValue", + "description": "The role definition assigned to the environment creator on backing resources.", "properties": { "roles": { "type": "object", - "description": "A map of roles to assign to the parent user.", + "description": "A map of roles to assign to the environment creator.", "additionalProperties": { "$ref": "#/definitions/EnvironmentRole" } } } }, - "OperationStatus": { - "description": "The current status of an async operation", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationStatusResult" - } - ], - "properties": { - "properties": { - "description": "Custom operation properties, populated only for a successful operation.", - "type": "object", - "readOnly": true - } - } - }, - "CatalogItemType": { - "description": "Indicates catalog item types.", - "enum": [ - "EnvironmentDefinition", - "ImageDefinition" - ], - "type": "string", - "x-ms-enum": { - "name": "CatalogItemType", - "modelAsString": true - } - }, - "EnvironmentTypeEnableStatus": { - "description": "Indicates whether the environment type is either enabled or disabled.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "EnvironmentTypeEnableStatus", - "modelAsString": true - } - }, - "HibernateSupport": { - "description": "Indicates whether hibernate is enabled/disabled.", - "enum": [ - "Disabled", - "Enabled" - ], - "type": "string", - "x-ms-enum": { - "name": "HibernateSupport", - "modelAsString": true - } - }, - "AutoImageBuildStatus": { - "description": "Indicates whether auto image build is enabled/disabled.", - "enum": [ - "Disabled", - "Enabled" - ], - "type": "string", - "x-ms-enum": { - "name": "AutoImageBuildStatus", - "modelAsString": true - } - }, - "ListUsagesResult": { - "description": "List of Core Usages.", + "ProjectListResult": { "type": "object", + "description": "Paged collection of Project items", "properties": { "value": { - "description": "The array page of Usages.", "type": "array", + "description": "The Project items on this page", "items": { - "$ref": "#/definitions/Usage" + "$ref": "#/definitions/Project" }, - "x-ms-identifiers": [], "readOnly": true }, "nextLink": { - "description": "The link to get the next page of Usage result.", "type": "string", - "readOnly": true + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "Usage": { - "description": "The core usage details.", + "ProjectNetworkSettings": { "type": "object", + "description": "Network settings for the project.", "properties": { - "currentValue": { - "description": "The current usage.", - "type": "integer", - "format": "int64" - }, - "limit": { - "description": "The limit integer.", - "type": "integer", - "format": "int64" - }, - "unit": { - "description": "The unit details.", - "type": "string", - "enum": [ - "Count" - ], - "x-ms-enum": { - "name": "UsageUnit", - "modelAsString": true - } - }, - "name": { - "description": "The name.", - "$ref": "#/definitions/UsageName" - }, - "id": { - "description": "The fully qualified arm resource id.", - "type": "string" + "microsoftHostedNetworkEnableStatus": { + "$ref": "#/definitions/MicrosoftHostedNetworkEnableStatus", + "description": "Indicates whether pools in this Dev Center can use Microsoft Hosted Networks. Defaults to Enabled if not set.", + "readOnly": true } } }, - "UsageName": { - "description": "The Usage Names.", + "ProjectPolicy": { "type": "object", + "description": "Represents an project policy resource.", "properties": { - "localizedValue": { - "description": "The localized name of the resource.", - "type": "string" - }, - "value": { - "description": "The name of the resource.", - "type": "string" + "properties": { + "$ref": "#/definitions/ProjectPolicyProperties", + "description": "Properties of an project policy.", + "x-ms-client-flatten": true } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" + } + ] }, - "CustomizationTaskListResult": { - "description": "Results of the Task list operation.", + "ProjectPolicyListResult": { "type": "object", + "description": "Paged collection of ProjectPolicy items", "properties": { "value": { - "description": "Current page of results.", "type": "array", + "description": "The ProjectPolicy items on this page", "items": { - "$ref": "#/definitions/CustomizationTask" + "$ref": "#/definitions/ProjectPolicy" }, "readOnly": true }, "nextLink": { - "description": "URL to get the next set of results if there are any.", "type": "string", - "readOnly": true + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "CustomizationTask": { - "description": "Represents a Task to be used in customizing a Dev Box.", + "ProjectPolicyProperties": { "type": "object", + "description": "Properties of an project policy.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the resource.", + "readOnly": true + } + }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "description": "Task properties", - "x-ms-client-flatten": true, - "$ref": "#/definitions/CustomizationTaskProperties" + "$ref": "#/definitions/ProjectPolicyUpdateProperties" } - } + ] }, - "CustomizationTaskProperties": { - "description": "Properties of a Task.", + "ProjectPolicyUpdate": { "type": "object", + "description": "The project policy properties for partial update. Properties not provided in the update request will not be changed.", "properties": { - "inputs": { - "description": "Inputs to the task.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/CustomizationTaskInput" - }, - "readOnly": true - }, - "timeout": { - "description": "The default timeout for the task.", - "type": "integer", - "format": "int32", - "readOnly": true - }, - "validationStatus": { - "description": "Validation status for the Task.", - "$ref": "vdi.json#/definitions/CatalogResourceValidationStatus", - "readOnly": true + "properties": { + "$ref": "#/definitions/ProjectPolicyUpdateProperties", + "description": "Properties of an project policy to be updated.", + "x-ms-client-flatten": true } } }, - "CustomizationTaskInput": { - "description": "Input for a Task.", + "ProjectPolicyUpdateProperties": { "type": "object", + "description": "Properties of an project policy. These properties can be updated after the resource has been created.", "properties": { - "description": { - "description": "Description of the input.", - "type": "string", - "readOnly": true - }, - "type": { - "description": "Type of the input.", - "type": "string", - "enum": [ - "string", - "number", - "boolean" - ], - "x-ms-enum": { - "name": "CustomizationTaskInputType", - "modelAsString": true + "resourcePolicies": { + "type": "array", + "description": "Resource policies that are a part of this project policy.", + "items": { + "$ref": "#/definitions/ResourcePolicy" }, - "readOnly": true + "x-ms-identifiers": [] }, - "required": { - "description": "Whether or not the input is required.", - "type": "boolean", - "readOnly": true + "scopes": { + "type": "array", + "description": "Resources that have access to the shared resources that are a part of this project policy.", + "items": { + "type": "string" + } } } }, - "EnvironmentDefinitionListResult": { - "description": "Results of the environment definition list operation.", + "ProjectProperties": { "type": "object", + "description": "Properties of a project.", "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentDefinition" - }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the resource.", "readOnly": true }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", + "devCenterUri": { "type": "string", + "description": "The URI of the Dev Center resource this project is associated with.", "readOnly": true } - } - }, - "EnvironmentDefinition": { - "description": "Represents an environment definition catalog item.", - "type": "object", + }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "description": "Environment definition properties.", - "x-ms-client-flatten": true, - "$ref": "#/definitions/EnvironmentDefinitionProperties" + "$ref": "#/definitions/ProjectUpdateProperties" } - } + ] }, - "EnvironmentDefinitionProperties": { - "description": "Properties of an environment definition.", + "ProjectUpdate": { "type": "object", + "description": "The project properties for partial update. Properties not provided in the update request will not be changed.", "properties": { - "description": { - "description": "A short description of the environment definition.", - "type": "string", - "readOnly": true - }, - "parameters": { - "type": "array", - "items": { - "$ref": "#/definitions/EnvironmentDefinitionParameter" + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" }, - "description": "Input parameters passed to an environment.", - "readOnly": true + "x-ms-mutability": [ + "read", + "update", + "create" + ] }, - "templatePath": { - "description": "Path to the Environment Definition entrypoint file.", + "location": { "type": "string", - "readOnly": true + "description": "The geo-location where the resource lives.", + "x-ms-mutability": [ + "read", + "create" + ] }, - "validationStatus": { - "description": "Validation status for the environment definition.", - "$ref": "vdi.json#/definitions/CatalogResourceValidationStatus", - "readOnly": true + "properties": { + "$ref": "#/definitions/ProjectUpdateProperties", + "description": "Properties of a project to be updated.", + "x-ms-client-flatten": true + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "Managed identity properties." } } }, - "EnvironmentDefinitionParameter": { + "ProjectUpdateProperties": { "type": "object", - "description": "Properties of an Environment Definition parameter", + "description": "Properties of a project. These properties can be updated after the resource has been created.", "properties": { - "id": { + "devCenterId": { "type": "string", - "description": "Unique ID of the parameter", - "readOnly": true + "description": "Resource Id of an associated DevCenter." }, - "name": { + "description": { "type": "string", - "description": "Display name of the parameter", - "readOnly": true + "description": "Description of the project." }, - "description": { + "maxDevBoxesPerUser": { + "type": "integer", + "format": "int32", + "description": "When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This will have no effect on existing Dev Boxes when reduced.", + "minimum": 0 + }, + "displayName": { "type": "string", - "description": "Description of the parameter", - "readOnly": true + "description": "The display name of the project." }, - "type": { - "description": "A string of one of the basic JSON types (number, integer, array, object, boolean, string)", - "$ref": "#/definitions/ParameterType", - "readOnly": true + "catalogSettings": { + "$ref": "#/definitions/ProjectCatalogSettings", + "description": "Settings to be used when associating a project with a catalog." }, - "readOnly": { - "type": "boolean", - "description": "Whether or not this parameter is read-only. If true, default should have a value.", - "readOnly": true + "customizationSettings": { + "$ref": "#/definitions/ProjectCustomizationSettings", + "description": "Settings to be used for customizations." }, - "required": { - "type": "boolean", - "description": "Whether or not this parameter is required", - "readOnly": true + "devBoxAutoDeleteSettings": { + "$ref": "#/definitions/DevBoxAutoDeleteSettings", + "description": "Dev Box Auto Delete settings." + }, + "azureAiServicesSettings": { + "$ref": "#/definitions/AzureAiServicesSettings", + "description": "Indicates whether Azure AI services are enabled for a project." + }, + "serverlessGpuSessionsSettings": { + "$ref": "#/definitions/ServerlessGpuSessionsSettings", + "description": "Settings to be used for serverless GPU." + }, + "workspaceStorageSettings": { + "$ref": "#/definitions/WorkspaceStorageSettings", + "description": "Settings to be used for workspace storage." } } }, - "ParameterType": { + "ProvisioningState": { "type": "string", + "description": "Provisioning state of the resource.", "enum": [ - "array", - "boolean", - "integer", - "number", - "object", - "string" + "NotSpecified", + "Accepted", + "Running", + "Creating", + "Created", + "Updating", + "Updated", + "Deleting", + "Deleted", + "Succeeded", + "Failed", + "Canceled", + "MovingResources", + "TransientFailure", + "RolloutInProgress", + "StorageProvisioningFailed" ], - "description": "The type of data a parameter accepts.", - "readOnly": true, "x-ms-enum": { - "name": "ParameterType", + "name": "ProvisioningState", "modelAsString": true, "values": [ { - "value": "array", - "description": "The parameter accepts an array of values." + "name": "NotSpecified", + "value": "NotSpecified", + "description": "Not specified provisioning state." }, { - "value": "boolean", - "description": "The parameter accepts a boolean value." + "name": "Accepted", + "value": "Accepted", + "description": "Accepted provisioning state." }, { - "value": "integer", - "description": "The parameter accepts an integer value." + "name": "Running", + "value": "Running", + "description": "Running provisioning state." }, { - "value": "number", - "description": "The parameter accepts a number value." + "name": "Creating", + "value": "Creating", + "description": "Creating provisioning state." }, { - "value": "object", - "description": "The parameter accepts an object value." + "name": "Created", + "value": "Created", + "description": "Created provisioning state." }, { - "value": "string", - "description": "The parameter accepts a string value." + "name": "Updating", + "value": "Updating", + "description": "Updating provisioning state." + }, + { + "name": "Updated", + "value": "Updated", + "description": "Updated provisioning state." + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "Deleting provisioning state." + }, + { + "name": "Deleted", + "value": "Deleted", + "description": "Deleted provisioning state." + }, + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Succeeded provisioning state." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Failed provisioning state." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Canceled provisioning state." + }, + { + "name": "MovingResources", + "value": "MovingResources", + "description": "Moving resources provisioning state." + }, + { + "name": "TransientFailure", + "value": "TransientFailure", + "description": "Transient failure provisioning state." + }, + { + "name": "RolloutInProgress", + "value": "RolloutInProgress", + "description": "Rollout in progress provisioning state." + }, + { + "name": "StorageProvisioningFailed", + "value": "StorageProvisioningFailed", + "description": "Storage provisioning failed provisioning state." } ] + }, + "readOnly": true + }, + "RecommendedMachineConfiguration": { + "type": "object", + "description": "Properties for a recommended machine configuration.", + "properties": { + "memory": { + "$ref": "#/definitions/ResourceRange", + "description": "Recommended memory range.", + "readOnly": true + }, + "vCPUs": { + "$ref": "#/definitions/ResourceRange", + "description": "Recommended vCPU range.", + "readOnly": true + } } }, - "CheckScopedNameAvailabilityRequest": { - "description": "The scoped name check availability request body.", + "ResourcePolicy": { "type": "object", + "description": "A resource policy.", "properties": { - "name": { - "description": "The name of the resource for which availability needs to be checked.", - "type": "string" + "resources": { + "type": "string", + "description": "Resources that are included and shared as a part of a project policy." }, - "type": { - "description": "The resource type.", - "type": "string" + "filter": { + "type": "string", + "description": "Optional. When specified, this expression is used to filter the resources." }, - "scope": { - "description": "The resource id to scope the name check.", - "type": "string" + "action": { + "$ref": "#/definitions/PolicyAction", + "description": "Policy action to be taken on the resources. This is optional, and defaults to allow" + }, + "resourceType": { + "$ref": "#/definitions/DevCenterResourceType", + "description": "Optional. The resource type being restricted or allowed by a project policy. Used with a given action to restrict or allow access to a resource type." } } }, - "ImageDefinitionListResult": { - "description": "Results of the Image Definition list operation.", + "ResourceRange": { "type": "object", + "description": "Properties for a range of values.", "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/ImageDefinition" - }, + "min": { + "type": "integer", + "format": "int32", + "description": "Minimum value.", "readOnly": true }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", + "max": { + "type": "integer", + "format": "int32", + "description": "Maximum value.", "readOnly": true } } }, - "ImageDefinition": { - "description": "Represents a definition for an Image.", + "Schedule": { "type": "object", + "description": "Represents a Schedule to execute a task.", + "properties": { + "properties": { + "$ref": "#/definitions/ScheduleProperties", + "description": "Properties of a Schedule resource", + "x-ms-client-flatten": true + } + }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource" } + ] + }, + "ScheduleEnableStatus": { + "type": "string", + "description": "Schedule enable or disable status. Indicates whether the schedule applied to is either enabled or disabled.", + "enum": [ + "Enabled", + "Disabled" ], - "properties": { - "properties": { - "description": "Image Definition properties", - "x-ms-client-flatten": true, - "$ref": "#/definitions/ImageDefinitionProperties" - } + "x-ms-enum": { + "name": "ScheduleEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Schedule is enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Schedule is disabled." + } + ] } }, - "ImageDefinitionProperties": { - "description": "Properties of an Image Definition.", + "ScheduleListResult": { "type": "object", + "description": "Paged collection of Schedule items", "properties": { - "imageReference": { - "$ref": "vdi.json#/definitions/ImageReference", - "description": "Image reference information." - }, - "fileUrl": { - "description": "The URL to the repository file containing the image definition.", - "type": "string", - "readOnly": true - }, - "latestBuild": { - "$ref": "#/definitions/LatestImageBuild", - "description": "Details about the latest build." - }, - "imageValidationStatus": { - "description": "Validation status of the configured image.", - "$ref": "vdi.json#/definitions/ImageValidationStatus", - "readOnly": true - }, - "imageValidationErrorDetails": { - "description": "Details for image validator error. Populated when the image validation is not successful.", - "$ref": "vdi.json#/definitions/ImageValidationErrorDetails", - "readOnly": true - }, - "validationStatus": { - "description": "Validation status for the Image Definition.", - "$ref": "vdi.json#/definitions/CatalogResourceValidationStatus", - "readOnly": true - }, - "activeImageReference": { - "$ref": "vdi.json#/definitions/ImageReference", - "description": "Image reference information for the currently active image (only populated during updates).", - "readOnly": true - }, - "autoImageBuild": { - "description": "Indicates if automatic image builds will be triggered for image definition updates", - "$ref": "#/definitions/AutoImageBuildStatus", - "readOnly": true - }, - "tasks": { - "description": "Tasks to run at Dev Box provisioning time.", - "type": "array", - "items": { - "$ref": "#/definitions/CustomizationTaskInstance" - } - }, - "userTasks": { - "description": "Tasks to run when a user first logs into a Dev Box.", + "value": { "type": "array", + "description": "The Schedule items on this page", "items": { - "$ref": "#/definitions/CustomizationTaskInstance" - } + "$ref": "#/definitions/Schedule" + }, + "readOnly": true }, - "extends": { - "description": "Another Image Definition that this one extends.", - "$ref": "#/definitions/ImageDefinitionReference" + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "ScheduleProperties": { + "type": "object", + "description": "The Schedule properties defining when and what to execute.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the resource.", + "readOnly": true } - } + }, + "allOf": [ + { + "$ref": "#/definitions/ScheduleUpdateProperties" + } + ] }, - "ImageDefinitionReference": { + "ScheduleUpdate": { "type": "object", - "description": "A reference to an Image Definition.", - "required": [ - "imageDefinition" - ], + "description": "The schedule properties for partial update. Properties not provided in the update request will not be changed.", "properties": { - "imageDefinition": { - "type": "string", - "description": "Name of the referenced Image Definition." - }, - "parameters": { - "description": "Parameters for the referenced Image Definition.", - "$ref": "#/definitions/DefinitionParameters" + "properties": { + "$ref": "#/definitions/ScheduleUpdateProperties", + "description": "Properties of a schedule resource to be updated.", + "x-ms-client-flatten": true } } }, - "CustomizationTaskInstance": { + "ScheduleUpdateProperties": { "type": "object", - "description": "A customization task to run.", - "required": [ - "name" - ], + "description": "Updatable properties of a Schedule.", "properties": { - "name": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "location": { "type": "string", - "description": "Name of the task." + "description": "The geo-location where the resource lives.", + "x-ms-mutability": [ + "read", + "create" + ] }, - "parameters": { - "description": "Parameters for the task.", - "$ref": "#/definitions/DefinitionParameters" + "type": { + "$ref": "#/definitions/ScheduledType", + "description": "Supported type this scheduled task represents." }, - "displayName": { - "type": "string", - "description": "Display name to help differentiate multiple instances of the same task." + "frequency": { + "$ref": "#/definitions/ScheduledFrequency", + "description": "The frequency of this scheduled task." }, - "timeoutInSeconds": { - "type": "integer", - "format": "int32", - "description": "Timeout, in seconds. Overrides any timeout provided on the task definition." + "time": { + "type": "string", + "description": "The target time to trigger the action. The format is HH:MM." }, - "condition": { + "timeZone": { "type": "string", - "description": "An expression that must evaluate to true in order for the task to run." + "description": "The IANA timezone id at which the schedule should execute." + }, + "state": { + "$ref": "#/definitions/ScheduleEnableStatus", + "description": "Indicates whether or not this scheduled task is enabled." } } }, - "DefinitionParameters": { - "description": "Parameters for the definition task.", - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" + "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 daily." + } + ] + } + }, + "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": "Stop Dev Box task type." + } + ] + } + }, + "ServerlessGpuSessionsMode": { + "type": "string", + "description": "Indicates whether serverless GPU session access is enabled.", + "enum": [ + "Disabled", + "AutoDeploy" + ], + "x-ms-enum": { + "name": "ServerlessGpuSessionsMode", + "modelAsString": true, + "values": [ + { + "name": "Disabled", + "value": "Disabled", + "description": "Serverless GPU session access is disabled." }, - "value": { - "type": "string" + { + "name": "AutoDeploy", + "value": "AutoDeploy", + "description": "Serverless GPU session access is enabled and necessary resources will be automatically setup." } - }, - "required": [ - "name", - "value" ] } }, - "LatestImageBuild": { + "ServerlessGpuSessionsSettings": { "type": "object", - "description": "Details about the latest build.", + "description": "Represents settings for serverless GPU access.", "properties": { - "name": { - "description": "Identifier of a build.", - "type": "string", - "readOnly": true - }, - "startTime": { - "description": "Start time of the task group.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "endTime": { - "description": "End time of the task group.", - "type": "string", - "format": "date-time", - "readOnly": true + "serverlessGpuSessionsMode": { + "$ref": "#/definitions/ServerlessGpuSessionsMode", + "description": "The property indicates whether serverless GPU access is enabled on the project." }, - "status": { - "description": "The state of an Image Definition Build.", - "$ref": "#/definitions/ImageDefinitionBuildStatus", - "readOnly": true + "maxConcurrentSessionsPerProject": { + "type": "integer", + "format": "int32", + "description": "When specified, limits the maximum number of concurrent sessions across all pools in the project.", + "minimum": 1 } } }, - "ImageDefinitionBuildStatus": { + "SingleSignOnStatus": { "type": "string", + "description": "SingleSignOn (SSO) enable or disable status. Indicates whether Dev Boxes in the Pool will have SSO enabled or disabled.", "enum": [ - "Succeeded", - "Running", - "ValidationFailed", - "Failed", - "Cancelled", - "TimedOut" + "Disabled", + "Enabled" ], - "description": "The state of an Image Definition Build.", - "readOnly": true, "x-ms-enum": { - "name": "ImageDefinitionBuildStatus", + "name": "SingleSignOnStatus", "modelAsString": true, "values": [ { - "value": "Succeeded", - "description": "The image build has succeeded." - }, - { - "value": "Running", - "description": "The image build is running." - }, - { - "value": "ValidationFailed", - "description": "The built image has failed validation." - }, - { - "value": "Failed", - "description": "The image build has failed." - }, - { - "value": "Cancelled", - "description": "The image build has been cancelled." + "name": "Disabled", + "value": "Disabled", + "description": "Single Sign On is disabled." }, { - "value": "TimedOut", - "description": "The image build has timed out." + "name": "Enabled", + "value": "Enabled", + "description": "Single Sign On is enabled." } ] } }, - "ImageDefinitionBuildListResult": { - "description": "Results of the Image Definition Build list operation.", + "SkuListResult": { "type": "object", + "description": "Results of the Microsoft.DevCenter SKU list operation.", "properties": { "value": { - "description": "Current page of results.", "type": "array", + "description": "The DevCenterSku items on this page", "items": { - "$ref": "#/definitions/ImageDefinitionBuild" + "$ref": "#/definitions/DevCenterSku" }, "readOnly": true }, "nextLink": { - "description": "URL to get the next set of results if there are any.", "type": "string", - "readOnly": true + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "ImageDefinitionBuild": { - "description": "Represents a specific build of an Image Definition.", + "StopOnDisconnectConfiguration": { "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ], + "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", "properties": { - "properties": { - "description": "Image Definition Build properties", - "x-ms-client-flatten": true, - "$ref": "#/definitions/ImageDefinitionBuildProperties" + "status": { + "$ref": "#/definitions/StopOnDisconnectEnableStatus", + "description": "Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled." + }, + "gracePeriodMinutes": { + "type": "integer", + "format": "int32", + "description": "The specified time in minutes to wait before stopping a Dev Box once disconnect is detected." } } }, - "ImageDefinitionBuildProperties": { - "description": "Properties of an Image Definition Build.", + "StopOnDisconnectEnableStatus": { + "type": "string", + "description": "Stop on disconnect enable or disable status. Indicates whether stop on disconnect to is either enabled or disabled.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "StopOnDisconnectEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Stop on disconnect is enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Stop on disconnect is disabled." + } + ] + } + }, + "StopOnNoConnectConfiguration": { "type": "object", + "description": "Stop on no connect configuration settings for Dev Boxes created in this pool.", "properties": { - "imageReference": { - "$ref": "vdi.json#/definitions/ImageReference", - "description": "The specific image version used by the build.", - "readOnly": true - }, "status": { - "description": "The status of the build.", - "$ref": "#/definitions/ImageDefinitionBuildStatus", - "readOnly": true + "$ref": "#/definitions/StopOnNoConnectEnableStatus", + "description": "Enables the feature to stop a started Dev Box when it has not been connected to, once the grace period has lapsed." }, - "startTime": { - "description": "Start time of the task group.", - "type": "string", - "format": "date-time", + "gracePeriodMinutes": { + "type": "integer", + "format": "int32", + "description": "The specified time in minutes to wait before stopping a Dev Box if no connection is made." + } + } + }, + "StopOnNoConnectEnableStatus": { + "type": "string", + "description": "Stop on no connect enable or disable status.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "StopOnNoConnectEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Stop on no connect is enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Stop on no connect is disabled." + } + ] + } + }, + "SyncErrorDetails": { + "type": "object", + "description": "Synchronization error details.", + "properties": { + "operationError": { + "$ref": "#/definitions/CatalogErrorDetails", + "description": "Error information for the overall synchronization operation.", "readOnly": true }, - "endTime": { - "description": "End time of the task group.", - "type": "string", - "format": "date-time", - "readOnly": true + "conflicts": { + "type": "array", + "description": "Catalog items that have conflicting names.", + "items": { + "$ref": "#/definitions/CatalogConflictError" + }, + "readOnly": true, + "x-ms-identifiers": [] }, - "errorDetails": { - "description": "Details for image creation error. Populated when the image creation is not successful.", - "$ref": "#/definitions/ImageCreationErrorDetails", - "readOnly": true + "errors": { + "type": "array", + "description": "Errors that occured during synchronization.", + "items": { + "$ref": "#/definitions/CatalogSyncError" + }, + "readOnly": true, + "x-ms-identifiers": [] } } }, - "ImageDefinitionBuildDetails": { - "description": "Represents a specific build of an Image Definition.", + "SyncStats": { "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ], + "description": "Stats of the synchronization.", "properties": { - "imageReference": { - "$ref": "vdi.json#/definitions/ImageReference", - "description": "The specific image version used by the build.", + "added": { + "type": "integer", + "format": "int32", + "description": "Count of catalog items added during synchronization.", + "minimum": 0, "readOnly": true }, - "status": { - "description": "The status of the build.", - "$ref": "#/definitions/ImageDefinitionBuildStatus", + "updated": { + "type": "integer", + "format": "int32", + "description": "Count of catalog items updated during synchronization.", + "minimum": 0, "readOnly": true }, - "startTime": { - "description": "Start time of the task group.", - "type": "string", - "format": "date-time", + "unchanged": { + "type": "integer", + "format": "int32", + "description": "Count of catalog items that were unchanged during synchronization.", + "minimum": 0, "readOnly": true }, - "endTime": { - "description": "End time of the task group.", - "type": "string", - "format": "date-time", + "removed": { + "type": "integer", + "format": "int32", + "description": "Count of catalog items removed during synchronization.", + "minimum": 0, "readOnly": true }, - "errorDetails": { - "description": "Details for image creation error. Populated when the image creation is not successful.", - "$ref": "#/definitions/ImageCreationErrorDetails", + "validationErrors": { + "type": "integer", + "format": "int32", + "description": "Count of catalog items that had validation errors during synchronization.", + "minimum": 0, "readOnly": true }, - "taskGroups": { - "description": "The list of task groups executed during the image definition build.", + "synchronizationErrors": { + "type": "integer", + "format": "int32", + "description": "Count of synchronization errors that occured during synchronization.", + "minimum": 0, + "readOnly": true + }, + "syncedCatalogItemTypes": { "type": "array", + "description": "Indicates catalog item types that were synced.", "items": { - "$ref": "#/definitions/ImageDefinitionBuildTaskGroup" - }, - "readOnly": true + "$ref": "#/definitions/CatalogItemType" + } } } }, - "ImageCreationErrorDetails": { + "Usage": { "type": "object", - "description": "Image creation error details", + "description": "The core usage details.", "properties": { - "code": { - "type": "string", - "description": "An identifier for the error." + "currentValue": { + "type": "integer", + "format": "int64", + "description": "The current usage." }, - "message": { + "limit": { + "type": "integer", + "format": "int64", + "description": "The limit integer." + }, + "unit": { + "$ref": "#/definitions/UsageUnit", + "description": "The unit details." + }, + "name": { + "$ref": "#/definitions/UsageName", + "description": "The name." + }, + "id": { "type": "string", - "description": "A message describing the error." + "description": "The fully qualified arm resource id." } } }, - "ImageDefinitionBuildTaskGroup": { - "description": "A task group executed during the image definition build.", + "UsageName": { "type": "object", + "description": "The Usage Names.", "properties": { - "name": { - "description": "The name of the task group.", - "type": "string", - "readOnly": true - }, - "status": { - "description": "The status of the task group.", - "$ref": "#/definitions/ImageDefinitionBuildStatus", - "readOnly": true - }, - "startTime": { - "description": "Start time of the task group.", + "localizedValue": { "type": "string", - "format": "date-time", - "readOnly": true + "description": "The localized name of the resource." }, - "endTime": { - "description": "End time of the task group.", + "value": { "type": "string", - "format": "date-time", - "readOnly": true - }, - "tasks": { - "description": "The list of tasks executed during the task group.", - "type": "array", - "items": { - "$ref": "#/definitions/ImageDefinitionBuildTask" - }, - "readOnly": true + "description": "The name of the resource." } } }, - "ImageDefinitionBuildTask": { - "description": "A task executed during the image definition build.", + "UsageUnit": { + "type": "string", + "description": "The unit details.", + "enum": [ + "Count" + ], + "x-ms-enum": { + "name": "UsageUnit", + "modelAsString": true, + "values": [ + { + "name": "Count", + "value": "Count", + "description": "Count." + } + ] + } + }, + "UserCustomizationsEnableStatus": { + "type": "string", + "description": "Indicates whether user customizations are enabled.", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "UserCustomizationsEnableStatus", + "modelAsString": true, + "values": [ + { + "name": "Disabled", + "value": "Disabled", + "description": "User customizations are disabled." + }, + { + "name": "Enabled", + "value": "Enabled", + "description": "User customizations are enabled." + } + ] + } + }, + "UserRoleAssignment": { "type": "object", + "description": "Mapping of user object ID to role assignments.", "properties": { - "name": { - "description": "The name of the task.", - "type": "string" - }, - "parameters": { - "description": "Parameters for the task.", - "type": "array", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": [ - "key", - "value" - ] + "roles": { + "type": "object", + "description": "A map of roles to assign to the parent user.", + "additionalProperties": { + "$ref": "#/definitions/EnvironmentRole" } - }, - "displayName": { - "description": "Display name to help differentiate multiple instances of the same task.", - "type": "string" - }, - "id": { - "description": "ID of the task instance.", - "type": "string", - "readOnly": true - }, - "startTime": { - "description": "Start time of the task.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "endTime": { - "description": "End time of the task.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "status": { - "description": "The status of the task.", - "$ref": "#/definitions/ImageDefinitionBuildStatus", - "readOnly": true - }, - "logUri": { - "description": "The URI for retrieving logs for the task execution.", - "type": "string", - "readOnly": true } } - } - }, - "parameters": { - "DevCenterNameParameter": { - "name": "devCenterName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the devcenter.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$", - "minLength": 3, - "maxLength": 26 - }, - "DevCenterEncryptionSetNameParameter": { - "name": "encryptionSetName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the devcenter encryption set.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$", - "minLength": 3, - "maxLength": 63 - }, - "ProjectPolicyNameParameter": { - "name": "projectPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the project policy.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "ProjectNameParameter": { - "name": "projectName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the project.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "CatalogNameParameter": { - "name": "catalogName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Catalog.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "GalleryNameParameter": { - "name": "galleryName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the gallery.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "ImageNameParameter": { - "name": "imageName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the image.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-.]{0,78}[a-zA-Z0-9]$", - "minLength": 3, - "maxLength": 80 - }, - "ProjectImageNameParameter": { - "name": "imageName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the image.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9~][a-zA-Z0-9-.~]{0,151}[a-zA-Z0-9]$", - "minLength": 3, - "maxLength": 153 - }, - "VersionNameParameter": { - "name": "versionName", - "in": "path", - "required": true, - "type": "string", - "description": "The version of the image.", - "x-ms-parameter-location": "method", - "pattern": "^[0-9]{1,10}[.][0-9]{1,10}[.][0-9]{1,10}$", - "minLength": 5, - "maxLength": 32 - }, - "EnvironmentTypeNameParameter": { - "name": "environmentTypeName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the environment type.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "AttachedNetworkConnectionNameParameter": { - "name": "attachedNetworkConnectionName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the attached NetworkConnection.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "DevBoxDefinitionName": { - "name": "devBoxDefinitionName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Dev Box definition.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "FilterParameter": { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName').", - "type": "string", - "required": false, - "x-ms-parameter-location": "method" - }, - "LocationParameter": { - "name": "location", - "in": "path", - "description": "The Azure region", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" }, - "OperationIdParameter": { - "name": "operationId", - "in": "path", - "description": "The ID of an ongoing async operation", - "required": true, + "VirtualNetworkType": { "type": "string", - "x-ms-parameter-location": "method" + "description": "Indicates a pool uses a Virtual Network managed by Microsoft (Managed), or a customer provided Network (Unmanaged).", + "enum": [ + "Managed", + "Unmanaged" + ], + "x-ms-enum": { + "name": "VirtualNetworkType", + "modelAsString": true, + "values": [ + { + "name": "Managed", + "value": "Managed", + "description": "Virtual Network is managed by Microsoft." + }, + { + "name": "Unmanaged", + "value": "Unmanaged", + "description": "Virtual Network is managed by user." + } + ] + } }, - "CustomizationTaskNameParameter": { - "name": "taskName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Task.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "EnvironmentDefinitionNameParameter": { - "name": "environmentDefinitionName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Environment Definition.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "ImageDefinitionNameParameter": { - "name": "imageDefinitionName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Image Definition.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "ImageDefinitionBuildNameParameter": { - "name": "buildName", - "in": "path", - "required": true, + "WorkspaceStorageMode": { "type": "string", - "description": "The ID of the Image Definition Build.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 + "description": "Indicates whether workspace storage is enabled.", + "enum": [ + "Disabled", + "AutoDeploy" + ], + "x-ms-enum": { + "name": "WorkspaceStorageMode", + "modelAsString": true, + "values": [ + { + "name": "Disabled", + "value": "Disabled", + "description": "Workspace storage is disabled." + }, + { + "name": "AutoDeploy", + "value": "AutoDeploy", + "description": "Workspace storage is enabled and necessary resources will be automatically setup." + } + ] + } + }, + "WorkspaceStorageSettings": { + "type": "object", + "description": "Settings to be used for workspace storage.", + "properties": { + "workspaceStorageMode": { + "$ref": "#/definitions/WorkspaceStorageMode", + "description": "Indicates whether workspace storage is enabled." + } + } } - } + }, + "parameters": {} } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Create.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Create.json index f7e1bd3c365f..8150cd94b8c2 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Create.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Create.json @@ -1,54 +1,56 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", "attachedNetworkConnectionName": "network-uswest3", "body": { "properties": { "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3" } - } + }, + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-uswest3", "name": "network-uswest3", "type": "Microsoft.DevCenter/devcenters/attachednetworks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-uswest3", "properties": { "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", "provisioningState": "Accepted" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-uswest3", "name": "network-uswest3", "type": "Microsoft.DevCenter/devcenters/attachednetworks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-uswest3", "properties": { "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", "provisioningState": "Accepted" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "AttachedNetworks_CreateOrUpdate", + "title": "AttachedNetworks_Create" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Delete.json index 4825cae6d7ad..1f6ac2c19e27 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Delete.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_Delete.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "attachedNetworkConnectionName": "network-uswest3", "devCenterName": "Contoso", - "attachedNetworkConnectionName": "network-uswest3" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -14,5 +14,7 @@ } }, "204": {} - } + }, + "operationId": "AttachedNetworks_Delete", + "title": "AttachedNetworks_Delete" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByDevCenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByDevCenter.json index 952eec70bed3..a23266269696 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByDevCenter.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByDevCenter.json @@ -1,32 +1,34 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "attachedNetworkConnectionName": "network-uswest3", "devCenterName": "Contoso", - "attachedNetworkConnectionName": "network-uswest3" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-uswest3", "name": "network-uswest3", "type": "Microsoft.DevCenter/devcenters/attachednetworks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-uswest3", "properties": { + "healthCheckStatus": "Healthy", "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", "networkConnectionLocation": "centralus", - "healthCheckStatus": "Healthy", "provisioningState": "Created" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "AttachedNetworks_GetByDevCenter", + "title": "AttachedNetworks_GetByDevCenter" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByProject.json index 1b004c4afa6d..1e41c60ae2a9 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByProject.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_GetByProject.json @@ -1,32 +1,34 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "attachedNetworkConnectionName": "network-uswest3", "projectName": "DevProject", - "attachedNetworkConnectionName": "network-uswest3" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/attachednetworks/network-uswest3", "name": "network-uswest3", "type": "Microsoft.DevCenter/projects/attachednetworks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/attachednetworks/network-uswest3", "properties": { + "healthCheckStatus": "Healthy", "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", "networkConnectionLocation": "centralus", - "healthCheckStatus": "Healthy", "provisioningState": "Created" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "AttachedNetworks_GetByProject", + "title": "AttachedNetworks_GetByProject" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByDevCenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByDevCenter.json index a691fcf0e57d..06e8c747f5e9 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByDevCenter.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByDevCenter.json @@ -1,54 +1,56 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "devCenterName": "Contoso", "resourceGroupName": "rg1", - "devCenterName": "Contoso" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/netmap1", "name": "netmap1", "type": "Microsoft.DevCenter/devcenters/attachedNetworks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/netmap1", "properties": { + "healthCheckStatus": "Healthy", "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", "networkConnectionLocation": "centralus", - "healthCheckStatus": "Healthy", "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "Application", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "Application", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "Application" } }, { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/netmap2", "name": "netmap2", "type": "Microsoft.DevCenter/devcenters/attachedNetworks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/netmap2", "properties": { + "healthCheckStatus": "Healthy", "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/network-uswest3", "networkConnectionLocation": "centralus", - "healthCheckStatus": "Healthy", "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "AttachedNetworks_ListByDevCenter", + "title": "AttachedNetworks_ListByDevCenter" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByProject.json index 06ab2a09066f..bb74dc8ec7c8 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByProject.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/AttachedNetworks_ListByProject.json @@ -1,54 +1,56 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "projectName": "DevProject", "resourceGroupName": "rg1", - "projectName": "DevProject" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/attachednetworks/netmap1", "name": "netmap1", "type": "Microsoft.DevCenter/projects/attachedNetworks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/attachednetworks/netmap1", "properties": { + "healthCheckStatus": "Healthy", "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", "networkConnectionLocation": "centralus", - "healthCheckStatus": "Healthy", "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "Application", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "Application", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "Application" } }, { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/attachednetworks/netmap2", "name": "netmap2", "type": "Microsoft.DevCenter/projects/attachedNetworks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/attachednetworks/netmap2", "properties": { + "healthCheckStatus": "Healthy", "networkConnectionId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3", "networkConnectionLocation": "centralus", - "healthCheckStatus": "Healthy", "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "AttachedNetworks_ListByProject", + "title": "AttachedNetworks_ListByProject" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Connect.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Connect.json index 66fd2c4c7605..1aab0e1f20e3 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Connect.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Connect.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "catalogName": "CentralCatalog", "devCenterName": "Contoso", - "catalogName": "CentralCatalog" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -13,5 +13,7 @@ "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" } } - } + }, + "operationId": "Catalogs_Connect", + "title": "Catalogs_Connect" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateAdo.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateAdo.json index 6bff100712b1..94b612476264 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateAdo.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateAdo.json @@ -1,92 +1,94 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "catalogName": "CentralCatalog", "body": { "properties": { "adoGit": { - "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", + "path": "/templates", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso" }, "syncType": "Scheduled" } - } + }, + "catalogName": "CentralCatalog", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", "name": "CentralCatalog", "type": "Microsoft.DevCenter/devcenters/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", "properties": { "adoGit": { - "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", + "path": "/templates", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso" }, + "connectionState": "Connected", "lastSyncStats": { "added": 0, - "updated": 0, - "unchanged": 0, "removed": 0, - "validationErrors": 0, - "synchronizationErrors": 0 + "synchronizationErrors": 0, + "unchanged": 0, + "updated": 0, + "validationErrors": 0 }, "provisioningState": "Accepted", - "connectionState": "Connected", "syncState": "Succeeded", "syncType": "Scheduled" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", "name": "CentralCatalog", "type": "Microsoft.DevCenter/devcenters/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", "properties": { "adoGit": { - "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", + "path": "/templates", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso" }, + "connectionState": "Connected", "lastSyncStats": { "added": 0, - "updated": 0, - "unchanged": 0, "removed": 0, - "validationErrors": 0, - "synchronizationErrors": 0 + "synchronizationErrors": 0, + "unchanged": 0, + "updated": 0, + "validationErrors": 0 }, "provisioningState": "Accepted", - "connectionState": "Connected", "syncState": "Succeeded", "syncType": "Scheduled" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "Catalogs_CreateOrUpdate", + "title": "Catalogs_CreateOrUpdateAdo" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateGitHub.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateGitHub.json index 959a819546d0..8fe0edf00b58 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateGitHub.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_CreateGitHub.json @@ -1,92 +1,94 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "catalogName": "CentralCatalog", "body": { "properties": { "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", + "path": "/templates", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" + "uri": "https://github.com/Contoso/centralrepo-fake.git" }, "syncType": "Manual" } - } + }, + "catalogName": "CentralCatalog", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", "name": "CentralCatalog", "type": "Microsoft.DevCenter/devcenters/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", "properties": { + "connectionState": "Connected", "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", + "path": "/templates", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" + "uri": "https://github.com/Contoso/centralrepo-fake.git" }, "lastSyncStats": { "added": 0, - "updated": 0, - "unchanged": 0, "removed": 0, - "validationErrors": 0, - "synchronizationErrors": 0 + "synchronizationErrors": 0, + "unchanged": 0, + "updated": 0, + "validationErrors": 0 }, "provisioningState": "Accepted", - "connectionState": "Connected", "syncState": "Succeeded", "syncType": "Manual" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", "name": "CentralCatalog", "type": "Microsoft.DevCenter/devcenters/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", "properties": { + "connectionState": "Connected", "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", + "path": "/templates", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" + "uri": "https://github.com/Contoso/centralrepo-fake.git" }, "lastSyncStats": { "added": 0, - "updated": 0, - "unchanged": 0, "removed": 0, - "validationErrors": 0, - "synchronizationErrors": 0 + "synchronizationErrors": 0, + "unchanged": 0, + "updated": 0, + "validationErrors": 0 }, "provisioningState": "Accepted", - "connectionState": "Connected", "syncState": "Succeeded", "syncType": "Manual" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "Catalogs_CreateOrUpdate", + "title": "Catalogs_CreateOrUpdateGitHub" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Delete.json index ab062fc7770d..35fe08119acf 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Delete.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Delete.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "catalogName": "CentralCatalog", "devCenterName": "Contoso", - "catalogName": "CentralCatalog" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -14,5 +14,7 @@ } }, "204": {} - } + }, + "operationId": "Catalogs_Delete", + "title": "Catalogs_Delete" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Get.json index 96174ad16194..dfbc0eadae6d 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Get.json @@ -1,48 +1,50 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "catalogName": "CentralCatalog", "devCenterName": "Contoso", - "catalogName": "CentralCatalog" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", "name": "CentralCatalog", "type": "Microsoft.DevCenter/devcenters/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", "properties": { + "connectionState": "Connected", "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", + "path": "/templates", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" + "uri": "https://github.com/Contoso/centralrepo-fake.git" }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", "lastSyncStats": { "added": 1, - "updated": 1, - "unchanged": 1, "removed": 1, - "validationErrors": 1, - "synchronizationErrors": 1 + "synchronizationErrors": 1, + "unchanged": 1, + "updated": 1, + "validationErrors": 1 }, - "lastConnectionTime": "2020-11-18T18:28:00.314Z", "lastSyncTime": "2020-11-18T18:28:00.314Z", "provisioningState": "Succeeded", - "connectionState": "Connected", "syncState": "Succeeded", "syncType": "Scheduled" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "Catalogs_Get", + "title": "Catalogs_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_GetSyncErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_GetSyncErrorDetails.json index 27995254fe1b..02364a443b13 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_GetSyncErrorDetails.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_GetSyncErrorDetails.json @@ -1,22 +1,18 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "catalogName": "CentralCatalog", "devCenterName": "Contoso", - "catalogName": "CentralCatalog" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "operationError": { - "code": "Conflict", - "message": "The source control credentials could not be validated successfully." - }, "conflicts": [ { - "path": "/Environments/Duplicate/manifest.yaml", - "name": "DuplicateEnvironmentName" + "name": "DuplicateEnvironmentName", + "path": "/Environments/Duplicate/manifest.yaml" } ], "errors": [ @@ -29,8 +25,14 @@ } ] } - ] + ], + "operationError": { + "code": "Conflict", + "message": "The source control credentials could not be validated successfully." + } } } - } + }, + "operationId": "Catalogs_GetSyncErrorDetails", + "title": "Catalogs_GetSyncErrorDetails" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_List.json index 224b20a6aafb..21c686fbc880 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_List.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_List.json @@ -1,50 +1,52 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "devCenterName": "Contoso", "resourceGroupName": "rg1", - "devCenterName": "Contoso" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", "name": "CentralCatalog", "type": "Microsoft.DevCenter/devcenters/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", "properties": { + "connectionState": "Connected", "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", + "path": "/templates", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" + "uri": "https://github.com/Contoso/centralrepo-fake.git" }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", "lastSyncStats": { "added": 1, - "updated": 1, - "unchanged": 1, "removed": 1, - "validationErrors": 1, - "synchronizationErrors": 1 + "synchronizationErrors": 1, + "unchanged": 1, + "updated": 1, + "validationErrors": 1 }, - "lastConnectionTime": "2020-11-18T18:28:00.314Z", "lastSyncTime": "2020-11-18T18:28:00.314Z", "provisioningState": "Succeeded", - "connectionState": "Connected", "syncState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "Catalogs_ListByDevCenter", + "title": "Catalogs_ListByDevCenter" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Patch.json index 35f1832e027c..1587261d665f 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Patch.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Patch.json @@ -1,10 +1,6 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "catalogName": "CentralCatalog", "body": { "properties": { "gitHub": { @@ -12,43 +8,47 @@ }, "syncType": "Scheduled" } - } + }, + "catalogName": "CentralCatalog", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", "name": "CentralCatalog", "type": "Microsoft.DevCenter/devcenters/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog", "properties": { + "connectionState": "Connected", "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", + "path": "/environments", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/environments" + "uri": "https://github.com/Contoso/centralrepo-fake.git" }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", "lastSyncStats": { "added": 1, - "updated": 1, - "unchanged": 1, "removed": 1, - "validationErrors": 1, - "synchronizationErrors": 1 + "synchronizationErrors": 1, + "unchanged": 1, + "updated": 1, + "validationErrors": 1 }, - "lastConnectionTime": "2020-11-18T18:28:00.314Z", "lastSyncTime": "2020-11-18T18:28:00.314Z", "provisioningState": "Succeeded", - "connectionState": "Connected", "syncState": "Succeeded", "syncType": "Scheduled" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } }, @@ -58,5 +58,7 @@ "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" } } - } + }, + "operationId": "Catalogs_Update", + "title": "Catalogs_Update" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Sync.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Sync.json index 66fd2c4c7605..09defba447e8 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Sync.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Catalogs_Sync.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "catalogName": "CentralCatalog", "devCenterName": "Contoso", - "catalogName": "CentralCatalog" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -13,5 +13,7 @@ "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" } } - } + }, + "operationId": "Catalogs_Sync", + "title": "Catalogs_Sync" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckNameAvailability.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckNameAvailability.json index cdd1ee388f95..f77acac8ffcf 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckNameAvailability.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckNameAvailability.json @@ -1,11 +1,11 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", "nameAvailabilityRequest": { "name": "name1", "type": "Microsoft.DevCenter/devcenters" - } + }, + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { @@ -13,5 +13,7 @@ "nameAvailable": true } } - } + }, + "operationId": "CheckNameAvailability_Execute", + "title": "NameAvailability" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_DevCenterCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_DevCenterCatalog.json index f1d99091cfdd..3ee3f024c162 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_DevCenterCatalog.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_DevCenterCatalog.json @@ -1,12 +1,12 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", "nameAvailabilityRequest": { "name": "name1", "type": "Microsoft.DevCenter/devcenters/catalogs", "scope": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso" - } + }, + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { @@ -14,5 +14,7 @@ "nameAvailable": true } } - } + }, + "operationId": "CheckScopedNameAvailability_Execute", + "title": "DevcenterCatalogNameAvailability" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_ProjectCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_ProjectCatalog.json index 0364ed7480d0..03c61479d13d 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_ProjectCatalog.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CheckScopedNameAvailability_ProjectCatalog.json @@ -1,12 +1,12 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", "nameAvailabilityRequest": { "name": "name1", "type": "Microsoft.DevCenter/projects/catalogs", "scope": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" - } + }, + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { @@ -14,5 +14,7 @@ "nameAvailable": true } } - } + }, + "operationId": "CheckScopedNameAvailability_Execute", + "title": "ProjectCatalogNameAvailability" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_Get.json index 06d73f198ff2..7c418c3db850 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_Get.json @@ -1,40 +1,42 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", "catalogName": "CentralCatalog", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff", "taskName": "SampleTask" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog/tasks/SampleTask", "name": "SampleTask", "type": "Microsoft.DevCenter/devcenters/catalogs/tasks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog/tasks/SampleTask", "properties": { "inputs": { + "feed": { + "type": "string" + }, "package": { "type": "string", "required": true - }, - "feed": { - "type": "string" } }, "timeout": 30, "validationStatus": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "CustomizationTasks_Get", + "title": "CustomizationTasks_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_GetErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_GetErrorDetails.json index 69a4976c0e01..731121128520 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_GetErrorDetails.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_GetErrorDetails.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", "catalogName": "CentralCatalog", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff", "taskName": "SampleTask" }, "responses": { @@ -18,5 +18,7 @@ ] } } - } + }, + "operationId": "CustomizationTasks_GetErrorDetails", + "title": "CustomizationTasks_GetErrorDetails" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_ListByCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_ListByCatalog.json index a6972810bd5d..3d9dc07f41fe 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_ListByCatalog.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/CustomizationTasks_ListByCatalog.json @@ -1,42 +1,44 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "catalogName": "CentralCatalog", "devCenterName": "Contoso", - "catalogName": "CentralCatalog" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog/tasks/SampleTask", "name": "SampleTask", "type": "Microsoft.DevCenter/devcenters/catalogs/tasks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog/tasks/SampleTask", "properties": { "inputs": { + "feed": { + "type": "string" + }, "package": { "type": "string", "required": true - }, - "feed": { - "type": "string" } }, "timeout": 30 }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "CustomizationTasks_ListByCatalog", + "title": "CustomizationTasks_ListByCatalog" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Create.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Create.json index 23a84596c49b..8a2386cfe571 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Create.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Create.json @@ -1,75 +1,77 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "devBoxDefinitionName": "WebDevBox", "body": { + "location": "centralus", "properties": { + "hibernateSupport": "Enabled", "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" }, "sku": { "name": "Preview" - }, - "hibernateSupport": "Enabled" - }, - "location": "centralus" - } + } + } + }, + "devBoxDefinitionName": "WebDevBox", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/devBoxDefinitionName", "name": "WebDevBox", "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/devBoxDefinitionName", + "location": "centralus", "properties": { + "hibernateSupport": "Enabled", "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" }, + "provisioningState": "Succeeded", "sku": { "name": "Preview" - }, - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded" + } }, - "location": "centralus", "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/devBoxDefinitionName", "name": "WebDevBox", "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/devBoxDefinitionName", + "location": "centralus", "properties": { + "hibernateSupport": "Enabled", "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" }, + "provisioningState": "Created", "sku": { "name": "Preview" - }, - "hibernateSupport": "Enabled", - "provisioningState": "Created" + } }, - "location": "centralus", "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "DevBoxDefinitions_CreateOrUpdate", + "title": "DevBoxDefinitions_Create" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Delete.json index f217b4155801..e022c14a36a0 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Delete.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Delete.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "devBoxDefinitionName": "WebDevBox", "devCenterName": "Contoso", - "devBoxDefinitionName": "WebDevBox" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -14,5 +14,7 @@ } }, "204": {} - } + }, + "operationId": "DevBoxDefinitions_Delete", + "title": "DevBoxDefinitions_Delete" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Get.json index e85a289701d1..4a5b940433cf 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Get.json @@ -1,37 +1,39 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "devBoxDefinitionName": "WebDevBox", "devCenterName": "Contoso", - "devBoxDefinitionName": "WebDevBox" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/WebDevBox", "name": "WebDevBox", "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/WebDevBox", + "location": "centralus", "properties": { + "hibernateSupport": "Enabled", "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" }, + "provisioningState": "Succeeded", "sku": { "name": "Preview" - }, - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded" + } }, - "location": "centralus", "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "DevBoxDefinitions_Get", + "title": "DevBoxDefinitions_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_GetByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_GetByProject.json index f25a535e2e72..2f7bd7befa60 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_GetByProject.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_GetByProject.json @@ -1,37 +1,39 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "devBoxDefinitionName": "WebDevBox", "projectName": "ContosoProject", - "devBoxDefinitionName": "WebDevBox" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/devboxdefinitions/WebDevBox", "name": "WebDevBox", "type": "Microsoft.DevCenter/projects/devboxdefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/devboxdefinitions/WebDevBox", + "location": "centralus", "properties": { + "hibernateSupport": "Enabled", "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" }, + "provisioningState": "Succeeded", "sku": { "name": "Preview" - }, - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded" + } }, - "location": "centralus", "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "DevBoxDefinitions_GetByProject", + "title": "DevBoxDefinitions_GetByProject" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByDevCenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByDevCenter.json index 9686d747401a..a3648f953b35 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByDevCenter.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByDevCenter.json @@ -1,41 +1,43 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "devBoxDefinitionName": "WebDevBox", "devCenterName": "Contoso", - "devBoxDefinitionName": "WebDevBox" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/WebDevBox", "name": "WebDevBox", "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/WebDevBox", + "location": "centralus", "properties": { + "hibernateSupport": "Enabled", "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" }, + "provisioningState": "Succeeded", "sku": { "name": "Preview" - }, - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded" + } }, - "location": "centralus", "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "DevBoxDefinitions_ListByDevCenter", + "title": "DevBoxDefinitions_ListByDevCenter" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByProject.json index 053a9b28ac69..787ebb02be44 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByProject.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_ListByProject.json @@ -1,41 +1,43 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "devBoxDefinitionName": "WebDevBox", "projectName": "ContosoProject", - "devBoxDefinitionName": "WebDevBox" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/devboxdefinitions/WebDevBox", "name": "WebDevBox", "type": "Microsoft.DevCenter/projects/devboxdefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/devboxdefinitions/WebDevBox", + "location": "centralus", "properties": { + "hibernateSupport": "Enabled", "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" }, + "provisioningState": "Succeeded", "sku": { "name": "Preview" - }, - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded" + } }, - "location": "centralus", "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "DevBoxDefinitions_ListByProject", + "title": "DevBoxDefinitions_ListByProject" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Patch.json index 62bf2371b494..1be758fe693b 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Patch.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevBoxDefinitions_Patch.json @@ -1,42 +1,42 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "devBoxDefinitionName": "WebDevBox", "body": { "properties": { "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/version/2.0.0" } } - } + }, + "devBoxDefinitionName": "WebDevBox", + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/WebDevBox", "name": "WebDevBox", "type": "Microsoft.DevCenter/devcenters/devboxdefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/WebDevBox", + "location": "centralus", "properties": { + "hibernateSupport": "Enabled", "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/version/2.0.0" }, + "provisioningState": "Succeeded", "sku": { "name": "Preview" - }, - "hibernateSupport": "Enabled", - "provisioningState": "Succeeded" + } }, - "location": "centralus", "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } }, @@ -46,5 +46,7 @@ "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" } } - } + }, + "operationId": "DevBoxDefinitions_Update", + "title": "DevBoxDefinitions_Patch" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Create.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Create.json index 401525cae405..a41f0edd7717 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Create.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Create.json @@ -1,44 +1,34 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "encryptionSetName": "EncryptionWestUs", "body": { + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + }, "location": "westus", "properties": { "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", "keyEncryptionKeyIdentity": { "type": "UserAssigned", "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - } - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} - } + }, + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek" } - } + }, + "devCenterName": "Contoso", + "encryptionSetName": "EncryptionWestUs", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", "name": "EncryptionWestUs", "type": "Microsoft.DevCenter/devcenters/encryptionSets", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", - "keyEncryptionKeyIdentity": { - "type": "UserAssigned", - "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - }, - "provisioningState": "Accepted" - }, - "location": "westus", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", "identity": { "type": "UserAssigned", "userAssignedIdentities": { @@ -48,31 +38,31 @@ } } }, + "location": "westus", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "provisioningState": "Accepted" + }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", "name": "EncryptionWestUs", "type": "Microsoft.DevCenter/devcenters/encryptionSets", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", - "keyEncryptionKeyIdentity": { - "type": "UserAssigned", - "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - }, - "provisioningState": "Accepted" - }, - "location": "westus", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", "identity": { "type": "UserAssigned", "userAssignedIdentities": { @@ -82,15 +72,27 @@ } } }, + "location": "westus", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "provisioningState": "Accepted" + }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "EncryptionSets_CreateOrUpdate", + "title": "EncryptionSets_Create" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Delete.json index 9eb16c46cfd3..1b88c6fe3103 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Delete.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Delete.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", "devCenterName": "Contoso", - "encryptionSetName": "EncryptionWestUs" + "encryptionSetName": "EncryptionWestUs", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -14,5 +14,7 @@ } }, "204": {} - } + }, + "operationId": "EncryptionSets_Delete", + "title": "EncryptionSets_Delete" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Get.json index 9c54036f01e4..4a0274130f86 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Get.json @@ -1,27 +1,17 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", "devCenterName": "Contoso", - "encryptionSetName": "EncryptionWestUs" + "encryptionSetName": "EncryptionWestUs", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", "name": "EncryptionWestUs", "type": "Microsoft.DevCenter/devcenters/encryptionSets", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", - "keyEncryptionKeyIdentity": { - "type": "UserAssigned", - "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - }, - "provisioningState": "Succeeded" - }, - "location": "westus", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", "identity": { "type": "UserAssigned", "userAssignedIdentities": { @@ -31,15 +21,27 @@ } } }, + "location": "westus", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "provisioningState": "Succeeded" + }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "EncryptionSets_Get", + "title": "EncryptionSets_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_List.json index a27bd64a9582..5029cfc785db 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_List.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_List.json @@ -1,28 +1,18 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "devCenterName": "Contoso", "resourceGroupName": "rg1", - "devCenterName": "Contoso" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", "name": "EncryptionWestUs", "type": "Microsoft.DevCenter/devcenters/encryptionSets", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", - "keyEncryptionKeyIdentity": { - "type": "UserAssigned", - "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - }, - "provisioningState": "Succeeded" - }, - "location": "westus", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", "identity": { "type": "UserAssigned", "userAssignedIdentities": { @@ -32,17 +22,29 @@ } } }, + "location": "westus", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "keyEncryptionKeyUrl": "https://contosovaultwestus.vault.azure.net/keys/contosokek", + "provisioningState": "Succeeded" + }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "EncryptionSets_List", + "title": "EncryptionSets_List" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Patch.json index 54a85e5fd86d..72fd1696cdf3 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Patch.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterEncryptionSets_Patch.json @@ -1,32 +1,22 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "encryptionSetName": "EncryptionWestUs", "body": { "properties": { "devboxDisksEncryptionEnableStatus": "Enabled" } - } + }, + "devCenterName": "Contoso", + "encryptionSetName": "EncryptionWestUs", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", "name": "EncryptionWestUs", "type": "Microsoft.DevCenter/devcenters/encryptionSets", - "properties": { - "devboxDisksEncryptionEnableStatus": "Enabled", - "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokekwestus", - "keyEncryptionKeyIdentity": { - "type": "UserAssigned", - "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" - }, - "provisioningState": "Accepted" - }, - "location": "westus", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/encryptionSets/EncryptionWestUs", "identity": { "type": "UserAssigned", "userAssignedIdentities": { @@ -36,13 +26,23 @@ } } }, + "location": "westus", + "properties": { + "devboxDisksEncryptionEnableStatus": "Enabled", + "keyEncryptionKeyIdentity": { + "type": "UserAssigned", + "userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + }, + "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokekwestus", + "provisioningState": "Accepted" + }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } }, @@ -52,5 +52,7 @@ "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-10-01-preview" } } - } + }, + "operationId": "EncryptionSets_Update", + "title": "EncryptionSets_Update" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_BuildImage.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_BuildImage.json index 8bcaf51157c3..a9bb0ca22699 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_BuildImage.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_BuildImage.json @@ -1,11 +1,11 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "DevDevCenter", "catalogName": "CentralCatalog", - "imageDefinitionName": "DefaultDevImage" + "devCenterName": "DevDevCenter", + "imageDefinitionName": "DefaultDevImage", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -14,5 +14,7 @@ "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" } } - } + }, + "operationId": "DevCenterCatalogImageDefinitions_BuildImage", + "title": "DevCenterCatalogImageDefinitions_BuildImage" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_CancelImageBuild.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_CancelImageBuild.json index 5d1f060509a7..3cba0f8dc4f0 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_CancelImageBuild.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_CancelImageBuild.json @@ -1,12 +1,12 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "DevDevCenter", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", "catalogName": "CentralCatalog", + "devCenterName": "DevDevCenter", "imageDefinitionName": "DefaultDevImage", - "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -15,5 +15,7 @@ "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" } } - } + }, + "operationId": "DevCenterCatalogImageDefinitionBuild_Cancel", + "title": "DevCenterImageDefinitionBuilds_CancelByImageDefinition" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetErrorDetails.json index 4e9726bc800d..833fa5edd230 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetErrorDetails.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetErrorDetails.json @@ -1,11 +1,11 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "DevDevCenter", "catalogName": "TeamCatalog", - "imageDefinitionName": "WebDevBox" + "devCenterName": "DevDevCenter", + "imageDefinitionName": "WebDevBox", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { @@ -18,5 +18,7 @@ ] } } - } + }, + "operationId": "DevCenterCatalogImageDefinitions_GetErrorDetails", + "title": "DevCenterImageDefinitions_GetErrorDetails" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuild.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuild.json index 65e0a3f9952f..cc12e2bcb34a 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuild.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuild.json @@ -1,19 +1,19 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "DevDevCenter", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", "catalogName": "CentralCatalog", + "devCenterName": "DevDevCenter", "imageDefinitionName": "DefaultDevImage", - "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/DevDevCenter/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", "type": "Microsoft.DevCenter/centers/catalogs/imageDefinitions/builds", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/DevDevCenter/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", "properties": { "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" @@ -21,14 +21,16 @@ "status": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "DevCenterCatalogImageDefinitionBuild_Get", + "title": "DevCenterImageDefinitionBuilds_GetByImageDefinition" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuildDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuildDetails.json index 55455b010389..111663ca5c3e 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuildDetails.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_GetImageBuildDetails.json @@ -1,12 +1,12 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "DevDevCenter", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", "catalogName": "CentralCatalog", + "devCenterName": "DevDevCenter", "imageDefinitionName": "DefaultDevImage", - "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { @@ -18,56 +18,58 @@ "taskGroups": [ { "name": "Provisioning", - "status": "Succeeded", - "startTime": "2020-11-18T18:25:02.224Z", "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded", "tasks": [ { "name": "Provisioning", - "status": "Succeeded", "displayName": "Provisioning", - "startTime": "2020-11-18T18:25:02.224Z", "endTime": "2020-11-18T18:25:12.952Z", "id": "e72eb35f-f406-42ec-8b93-7d18a9f7b059", - "logUri": "" + "logUri": "", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded" } ] }, { "name": "Customizations", - "status": "Succeeded", - "startTime": "2020-11-18T18:25:02.224Z", "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded", "tasks": [ { "name": "vs2022", - "status": "Succeeded", "displayName": "Install Visual Studio 2022", - "startTime": "2020-11-18T18:25:02.224Z", "endTime": "2020-11-18T18:25:12.952Z", "id": "e72eb35f-f406-42ec-8b93-7d18a9f7b059", - "logUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7/logs/e72eb35f-f406-42ec-8b93-7d18a9f7b059" + "logUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7/logs/e72eb35f-f406-42ec-8b93-7d18a9f7b059", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded" } ] }, { "name": "Generalization", - "status": "Succeeded", - "startTime": "2020-11-18T18:25:02.224Z", "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded", "tasks": [ { "name": "Generalization", - "status": "Succeeded", "displayName": "Generalization", - "startTime": "2020-11-18T18:25:02.224Z", "endTime": "2020-11-18T18:25:12.952Z", - "logUri": "" + "logUri": "", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded" } ] } ] } } - } + }, + "operationId": "DevCenterCatalogImageDefinitionBuild_GetBuildDetails", + "title": "DevCenterCatalogImageDefinitionBuild_GetErrorDetails" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json index 5ba77ab196be..96ee27170017 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenterImageDefinitions_ListImageBuildsByImageDefinition.json @@ -1,21 +1,21 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "DevDevCenter", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", "catalogName": "CentralCatalog", + "devCenterName": "DevDevCenter", "imageDefinitionName": "DefaultDevImage", - "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/DevDevCenter/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", "type": "Microsoft.DevCenter/devcenters/catalogs/imageDefinitions/builds", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/DevDevCenter/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", "properties": { "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" @@ -23,16 +23,18 @@ "status": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "DevCenterCatalogImageDefinitionBuilds_ListByImageDefinition", + "title": "DevCenterImageDefinitionBuilds_ListByImageDefinition" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Create.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Create.json index cdf564193031..0d4d45c85ca0 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Create.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Create.json @@ -1,93 +1,95 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", "body": { - "tags": { - "CostCode": "12345" - }, "location": "centralus", "properties": { - "displayName": "ContosoDevCenter", "devBoxProvisioningSettings": { "installAzureMonitorAgentEnableStatus": "Enabled" }, + "displayName": "ContosoDevCenter", "projectCatalogSettings": { "catalogItemSyncEnableStatus": "Enabled" } + }, + "tags": { + "CostCode": "12345" } - } + }, + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "name": "Contoso", "type": "Microsoft.DevCenter/devcenters", - "tags": { - "hidden-title": "ContosoDevCenter", - "CostCode": "12345" - }, + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "location": "centralus", "properties": { - "provisioningState": "Succeeded", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "displayName": "ContosoDevCenter", - "projectCatalogSettings": { - "catalogItemSyncEnableStatus": "Enabled" - }, "devBoxProvisioningSettings": { "installAzureMonitorAgentEnableStatus": "Enabled" }, + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", "networkSettings": { "microsoftHostedNetworkEnableStatus": "Enabled" - } + }, + "projectCatalogSettings": { + "catalogItemSyncEnableStatus": "Enabled" + }, + "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345", + "hidden-title": "ContosoDevCenter" } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "name": "Contoso", "type": "Microsoft.DevCenter/devcenters", - "tags": { - "hidden-title": "ContosoDevCenter", - "CostCode": "12345" - }, + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "location": "centralus", "properties": { - "provisioningState": "Accepted", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "displayName": "ContosoDevCenter", "devBoxProvisioningSettings": { "installAzureMonitorAgentEnableStatus": "Enabled" }, + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "ContosoDevCenter", + "networkSettings": { + "microsoftHostedNetworkEnableStatus": "Enabled" + }, "projectCatalogSettings": { "catalogItemSyncEnableStatus": "Enabled" }, - "networkSettings": { - "microsoftHostedNetworkEnableStatus": "Enabled" - } + "provisioningState": "Accepted" }, "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345", + "hidden-title": "ContosoDevCenter" } } } - } + }, + "operationId": "DevCenters_CreateOrUpdate", + "title": "DevCenters_Create" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithDisabledManagedNetworks.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithDisabledManagedNetworks.json index 29635a838ac2..6ec8b4f4494a 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithDisabledManagedNetworks.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithDisabledManagedNetworks.json @@ -1,12 +1,12 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", "body": { - "tags": { - "CostCode": "12345" + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } }, "location": "centralus", "properties": { @@ -15,40 +15,56 @@ "microsoftHostedNetworkEnableStatus": "Disabled" } }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} - } + "tags": { + "CostCode": "12345" } - } + }, + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "name": "Contoso", "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } }, "location": "centralus", "properties": { - "provisioningState": "Succeeded", "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", "displayName": "ContosoDevCenter", "networkSettings": { "microsoftHostedNetworkEnableStatus": "Disabled" - } + }, + "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" + "lastModifiedByType": "User" }, + "tags": { + "CostCode": "12345" + } + } + }, + "201": { + "body": { + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "identity": { "type": "UserAssigned", "userAssignedIdentities": { @@ -57,44 +73,30 @@ "principalId": "2111b8fc-e123-485a-b408-bf1153189494" } } - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "name": "Contoso", - "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" }, "location": "centralus", "properties": { - "provisioningState": "Accepted", "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", "displayName": "ContosoDevCenter", "networkSettings": { "microsoftHostedNetworkEnableStatus": "Disabled" - } + }, + "provisioningState": "Accepted" }, "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" + "lastModifiedByType": "User" }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } + "tags": { + "CostCode": "12345" } } } - } + }, + "operationId": "DevCenters_CreateOrUpdate", + "title": "DevCenters_CreateWithDisabledManagedNetworks" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithEncryption.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithEncryption.json index 16b1ffb491f9..f4a6adafb3ed 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithEncryption.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithEncryption.json @@ -1,12 +1,12 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", "body": { - "tags": { - "CostCode": "12345" + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } }, "location": "centralus", "properties": { @@ -21,26 +21,31 @@ } } }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} - } + "tags": { + "CostCode": "12345" } - } + }, + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "name": "Contoso", "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } }, "location": "centralus", "properties": { - "provisioningState": "Succeeded", "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", "displayName": "ContosoDevCenter", "encryption": { @@ -54,16 +59,27 @@ }, "networkSettings": { "microsoftHostedNetworkEnableStatus": "Enabled" - } + }, + "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" + "lastModifiedByType": "User" }, + "tags": { + "CostCode": "12345" + } + } + }, + "201": { + "body": { + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "identity": { "type": "UserAssigned", "userAssignedIdentities": { @@ -72,20 +88,9 @@ "principalId": "2111b8fc-e123-485a-b408-bf1153189494" } } - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "name": "Contoso", - "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" }, "location": "centralus", "properties": { - "provisioningState": "Accepted", "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", "displayName": "ContosoDevCenter", "encryption": { @@ -99,26 +104,23 @@ }, "networkSettings": { "microsoftHostedNetworkEnableStatus": "Enabled" - } + }, + "provisioningState": "Accepted" }, "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" + "lastModifiedByType": "User" }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } + "tags": { + "CostCode": "12345" } } } - } + }, + "operationId": "DevCenters_CreateOrUpdate", + "title": "DevCenters_CreateWithEncryption" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithUserIdentity.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithUserIdentity.json index 690fbc7ba205..a4057b5fbdbd 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithUserIdentity.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_CreateWithUserIdentity.json @@ -1,51 +1,67 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", "body": { - "tags": { - "CostCode": "12345" - }, - "location": "centralus", - "properties": { - "displayName": "ContosoDevCenter" - }, "identity": { "type": "UserAssigned", "userAssignedIdentities": { "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} } + }, + "location": "centralus", + "properties": { + "displayName": "ContosoDevCenter" + }, + "tags": { + "CostCode": "12345" } - } + }, + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "name": "Contoso", "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } }, "location": "centralus", "properties": { - "provisioningState": "Succeeded", "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", "displayName": "ContosoDevCenter", "networkSettings": { "microsoftHostedNetworkEnableStatus": "Enabled" - } + }, + "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" + "lastModifiedByType": "User" }, + "tags": { + "CostCode": "12345" + } + } + }, + "201": { + "body": { + "name": "Contoso", + "type": "Microsoft.DevCenter/devcenters", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "identity": { "type": "UserAssigned", "userAssignedIdentities": { @@ -54,44 +70,30 @@ "principalId": "2111b8fc-e123-485a-b408-bf1153189494" } } - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "name": "Contoso", - "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" }, "location": "centralus", "properties": { - "provisioningState": "Accepted", "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", "displayName": "ContosoDevCenter", "networkSettings": { "microsoftHostedNetworkEnableStatus": "Enabled" - } + }, + "provisioningState": "Accepted" }, "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" + "lastModifiedByType": "User" }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } + "tags": { + "CostCode": "12345" } } } - } + }, + "operationId": "DevCenters_CreateOrUpdate", + "title": "DevCenters_CreateWithUserIdentity" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Delete.json index 8841cba24be2..6f8227941846 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Delete.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Delete.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "devCenterName": "Contoso", "resourceGroupName": "rg1", - "devCenterName": "Contoso" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -13,5 +13,7 @@ } }, "204": {} - } + }, + "operationId": "DevCenters_Delete", + "title": "DevCenters_Delete" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Get.json index 8e14f03907da..72428d1ac5ff 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Get.json @@ -1,41 +1,43 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "devCenterName": "Contoso", "resourceGroupName": "rg1", - "devCenterName": "Contoso" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "name": "Contoso", "type": "Microsoft.DevCenter/devcenters", - "tags": { - "hidden-title": "ContosoDevCenter", - "CostCode": "12345" - }, + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "location": "centralus", "properties": { - "provisioningState": "Succeeded", + "devBoxProvisioningSettings": { + "installAzureMonitorAgentEnableStatus": "Enabled" + }, "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", "displayName": "ContosoDevCenter", "projectCatalogSettings": { "catalogItemSyncEnableStatus": "Enabled" }, - "devBoxProvisioningSettings": { - "installAzureMonitorAgentEnableStatus": "Enabled" - } + "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345", + "hidden-title": "ContosoDevCenter" } } } - } + }, + "operationId": "DevCenters_Get", + "title": "DevCenters_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListByResourceGroup.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListByResourceGroup.json index 3a3f47d64efe..a4a8702337ae 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListByResourceGroup.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListByResourceGroup.json @@ -1,37 +1,39 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/contoso", "name": "Contoso", "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" - }, + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/contoso", "location": "centralus", "properties": { - "provisioningState": "Succeeded", "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "displayName": "ContosoDevCenter" + "displayName": "ContosoDevCenter", + "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", "createdBy": "string", "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedAt": "2020-11-11T22:00:08.896Z", "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:08.896Z" + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345" } } ] } } - } + }, + "operationId": "DevCenters_ListByResourceGroup", + "title": "DevCenters_ListByResourceGroup" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListBySubscription.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListBySubscription.json index 361e31d188d6..23df6a8425d7 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListBySubscription.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_ListBySubscription.json @@ -1,36 +1,38 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/contoso", "name": "Contoso", "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" - }, + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/contoso", "location": "centralus", "properties": { - "provisioningState": "Succeeded", "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "displayName": "ContosoDevCenter" + "displayName": "ContosoDevCenter", + "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", "createdBy": "string", "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedAt": "2020-11-11T22:00:08.896Z", "lastModifiedBy": "string", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:08.896Z" + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345" } } ] } } - } + }, + "operationId": "DevCenters_ListBySubscription", + "title": "DevCenters_ListBySubscription" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Patch.json index c652a8a8faeb..3b17f8101a00 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Patch.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/DevCenters_Patch.json @@ -1,37 +1,37 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", "body": { "tags": { "CostCode": "12345" } - } + }, + "devCenterName": "Contoso", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "name": "Contoso", "type": "Microsoft.DevCenter/devcenters", - "tags": { - "CostCode": "12345" - }, + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "location": "centralus", "properties": { - "provisioningState": "Succeeded", "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "displayName": "ContosoDevCenter" + "displayName": "ContosoDevCenter", + "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-11T22:00:08.896Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-11T22:00:08.896Z", + "lastModifiedAt": "2020-11-11T22:00:10.896Z", "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-11T22:00:10.896Z" + "lastModifiedByType": "User" + }, + "tags": { + "CostCode": "12345" } } }, @@ -41,5 +41,7 @@ "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" } } - } + }, + "operationId": "DevCenters_Update", + "title": "DevCenters_Update" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_Get.json index 52ff5406524c..e8a0bae41289 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_Get.json @@ -1,37 +1,37 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", "catalogName": "myCatalog", - "environmentDefinitionName": "myEnvironmentDefinition" + "devCenterName": "Contoso", + "environmentDefinitionName": "myEnvironmentDefinition", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", "name": "myEnvironmentDefinition", "type": "Microsoft.DevCenter/devcenters/catalogs/environmentDefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", "properties": { "description": "My sample environment definition.", "parameters": [ { - "id": "functionAppRuntime", "name": "Function App Runtime", "type": "string", + "id": "functionAppRuntime", "required": true }, { - "id": "storageAccountType", "name": "Storage Account Type", "type": "string", + "id": "storageAccountType", "required": true }, { - "id": "httpsOnly", "name": "HTTPS only", "type": "boolean", + "id": "httpsOnly", "readOnly": true, "required": true } @@ -40,14 +40,16 @@ "validationStatus": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "EnvironmentDefinitions_Get", + "title": "EnvironmentDefinitions_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetByProjectCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetByProjectCatalog.json index 996e87739005..3d41f26f99e0 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetByProjectCatalog.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetByProjectCatalog.json @@ -1,37 +1,37 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", "catalogName": "myCatalog", - "environmentDefinitionName": "myEnvironmentDefinition" + "environmentDefinitionName": "myEnvironmentDefinition", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", "name": "myEnvironmentDefinition", "type": "Microsoft.DevCenter/projects/catalogs/environmentDefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", "properties": { "description": "My sample environment definition.", "parameters": [ { - "id": "functionAppRuntime", "name": "Function App Runtime", "type": "string", + "id": "functionAppRuntime", "required": true }, { - "id": "storageAccountType", "name": "Storage Account Type", "type": "string", + "id": "storageAccountType", "required": true }, { - "id": "httpsOnly", "name": "HTTPS only", "type": "boolean", + "id": "httpsOnly", "readOnly": true, "required": true } @@ -40,14 +40,16 @@ "validationStatus": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "EnvironmentDefinitions_GetByProjectCatalog", + "title": "EnvironmentDefinitions_GetByProjectCatalog" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetErrorDetails.json index 398f87757417..cb246bca241c 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetErrorDetails.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_GetErrorDetails.json @@ -1,11 +1,11 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", "catalogName": "myCatalog", - "environmentDefinitionName": "myEnvironmentDefinition" + "devCenterName": "Contoso", + "environmentDefinitionName": "myEnvironmentDefinition", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { @@ -18,5 +18,7 @@ ] } } - } + }, + "operationId": "EnvironmentDefinitions_GetErrorDetails", + "title": "EnvironmentDefinitions_GetErrorDetails" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByCatalog.json index e555af3716f3..190ce8e2b0d8 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByCatalog.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByCatalog.json @@ -1,38 +1,38 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "catalogName": "myCatalog", "devCenterName": "Contoso", - "catalogName": "myCatalog" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", "name": "myEnvironmentDefinition", "type": "Microsoft.DevCenter/devcenters/catalogs/environmentDefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", "properties": { "description": "My sample environment definition.", "parameters": [ { - "id": "functionAppRuntime", "name": "Function App Runtime", "type": "string", + "id": "functionAppRuntime", "required": true }, { - "id": "storageAccountType", "name": "Storage Account Type", "type": "string", + "id": "storageAccountType", "required": true }, { - "id": "httpsOnly", "name": "HTTPS only", "type": "boolean", + "id": "httpsOnly", "readOnly": true, "required": true } @@ -41,16 +41,18 @@ "validationStatus": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "EnvironmentDefinitions_ListByCatalog", + "title": "EnvironmentDefinitions_ListByCatalog" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByProjectCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByProjectCatalog.json index 2f3620b2c575..335eedfd6025 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByProjectCatalog.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentDefinitions_ListByProjectCatalog.json @@ -1,38 +1,38 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "catalogName": "myCatalog", "projectName": "DevProject", - "catalogName": "myCatalog" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", "name": "myEnvironmentDefinition", "type": "Microsoft.DevCenter/projects/catalogs/environmentDefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/myCatalog/environmentDefinitions/myEnvironmentDefinition", "properties": { "description": "My sample environment definition.", "parameters": [ { - "id": "functionAppRuntime", "name": "Function App Runtime", "type": "string", + "id": "functionAppRuntime", "required": true }, { - "id": "storageAccountType", "name": "Storage Account Type", "type": "string", + "id": "storageAccountType", "required": true }, { - "id": "httpsOnly", "name": "HTTPS only", "type": "boolean", + "id": "httpsOnly", "readOnly": true, "required": true } @@ -41,16 +41,18 @@ "validationStatus": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "EnvironmentDefinitions_ListByProjectCatalog", + "title": "EnvironmentDefinitions_ListByProjectCatalog" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Delete.json index ea92d3e73c78..e18ac13bd740 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Delete.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Delete.json @@ -1,13 +1,15 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", "devCenterName": "Contoso", - "environmentTypeName": "DevTest" + "environmentTypeName": "DevTest", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": {}, "204": {} - } + }, + "operationId": "EnvironmentTypes_Delete", + "title": "EnvironmentTypes_Delete" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Get.json index 5479fc7a6964..8f23462db840 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Get.json @@ -1,33 +1,35 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", "devCenterName": "Contoso", - "environmentTypeName": "DevTest" + "environmentTypeName": "DevTest", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", "name": "DevTest", "type": "Microsoft.DevCenter/devcenters/environmenttypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", "properties": { "displayName": "Dev" }, - "tags": { - "hidden-title": "Dev", - "CostCenter": "RnD" - }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1@contoso.com", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "RnD", + "hidden-title": "Dev" } } } - } + }, + "operationId": "EnvironmentTypes_Get", + "title": "EnvironmentTypes_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_List.json index 492c17ace884..a801142e1532 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_List.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_List.json @@ -1,32 +1,34 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "devCenterName": "Contoso", "resourceGroupName": "rg1", - "devCenterName": "Contoso" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", "name": "DevTest", "type": "Microsoft.DevCenter/devcenters/environmenttypes", - "tags": { - "CostCenter": "RnD" - }, + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1@contoso.com", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" + }, + "tags": { + "CostCenter": "RnD" } } ] } } - } + }, + "operationId": "EnvironmentTypes_ListByDevCenter", + "title": "EnvironmentTypes_ListByDevCenter" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Patch.json index 8d955b70832b..9a2178e2b1b0 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Patch.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Patch.json @@ -1,10 +1,6 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "environmentTypeName": "DevTest", "body": { "properties": { "displayName": "Dev" @@ -12,30 +8,36 @@ "tags": { "Owner": "superuser" } - } + }, + "devCenterName": "Contoso", + "environmentTypeName": "DevTest", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", "name": "DevTest", "type": "Microsoft.DevCenter/devcenters/environmenttypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", "properties": { "displayName": "Dev" }, - "tags": { - "hidden-title": "Dev", - "Owner": "superuser" - }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1@contoso.com", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" + }, + "tags": { + "Owner": "superuser", + "hidden-title": "Dev" } } } - } + }, + "operationId": "EnvironmentTypes_Update", + "title": "EnvironmentTypes_Update" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Put.json index 75a0ea0ee3a2..3b0e938d10dc 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Put.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/EnvironmentTypes_Put.json @@ -1,63 +1,65 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "environmentTypeName": "DevTest", "body": { - "tags": { - "Owner": "superuser" - }, "properties": { "displayName": "Dev" + }, + "tags": { + "Owner": "superuser" } - } + }, + "devCenterName": "Contoso", + "environmentTypeName": "DevTest", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", "name": "DevTest", "type": "Microsoft.DevCenter/devcenters/environmenttypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", "properties": { "displayName": "Dev" }, - "tags": { - "hidden-title": "Dev", - "Owner": "superuser" - }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1@contoso.com", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" + }, + "tags": { + "Owner": "superuser", + "hidden-title": "Dev" } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", "name": "DevTest", "type": "Microsoft.DevCenter/devcenters/environmenttypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/DevTest", "properties": { "displayName": "Dev" }, - "tags": { - "hidden-title": "Dev", - "Owner": "superuser" - }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1@contoso.com", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" + }, + "tags": { + "Owner": "superuser", + "hidden-title": "Dev" } } } - } + }, + "operationId": "EnvironmentTypes_CreateOrUpdate", + "title": "EnvironmentTypes_CreateOrUpdate" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Create.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Create.json index 8f5c79876b7d..5158f30d4daa 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Create.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Create.json @@ -1,54 +1,56 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "galleryName": "StandardGallery", "body": { "properties": { "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/StandardGallery" } - } + }, + "devCenterName": "Contoso", + "galleryName": "StandardGallery", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/StandardGallery", "name": "StandardGallery", "type": "Microsoft.DevCenter/devcenters/galleries", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/StandardGallery", "properties": { "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/StandardGallery", "provisioningState": "Accepted" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/StandardGallery", "name": "StandardGallery", "type": "Microsoft.DevCenter/devcenters/galleries", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/StandardGallery", "properties": { "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/StandardGallery", "provisioningState": "Accepted" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "Galleries_CreateOrUpdate", + "title": "Galleries_CreateOrUpdate" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Delete.json index 63b1593b3b07..39445b2937e4 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Delete.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Delete.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", "devCenterName": "Contoso", - "galleryName": "StandardGallery" + "galleryName": "StandardGallery", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -14,5 +14,7 @@ } }, "204": {} - } + }, + "operationId": "Galleries_Delete", + "title": "Galleries_Delete" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Get.json index b365e47a4e48..a1093c885628 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_Get.json @@ -1,30 +1,32 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", "devCenterName": "Contoso", - "galleryName": "StandardGallery" + "galleryName": "StandardGallery", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/StandardGallery", "name": "StandardGallery", "type": "Microsoft.DevCenter/devcenters/galleries", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/StandardGallery", "properties": { "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/StandardGallery", "provisioningState": "Accepted" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "Galleries_Get", + "title": "Galleries_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_List.json index 003296e4743d..1d0adb8640f5 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_List.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Galleries_List.json @@ -1,50 +1,52 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "devCenterName": "Contoso", "resourceGroupName": "rg1", - "devCenterName": "Contoso" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/default", "name": "StandardGallery", "type": "Microsoft.DevCenter/devcenters/galleries", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/default", "properties": { - "provisioningState": "Succeeded", - "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/CentralGallery" + "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/CentralGallery", + "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } }, { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/ImageGallery", "name": "StandardGallery", "type": "Microsoft.DevCenter/devcenters/galleries", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/ImageGallery", "properties": { "galleryResourceId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.Compute/galleries/SharedGallery", "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "Galleries_ListByDevCenter", + "title": "Galleries_ListByDevCenter" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_BuildImage.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_BuildImage.json index 4ff6fb98590a..0a5a37bb3b4a 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_BuildImage.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_BuildImage.json @@ -1,11 +1,11 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", "catalogName": "CentralCatalog", - "imageDefinitionName": "DefaultDevImage" + "imageDefinitionName": "DefaultDevImage", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -14,5 +14,7 @@ "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" } } - } + }, + "operationId": "ProjectCatalogImageDefinitions_BuildImage", + "title": "ProjectCatalogImageDefinitions_BuildImage" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_CancelImageBuild.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_CancelImageBuild.json index 8bb90de0acd7..f5608e3151d7 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_CancelImageBuild.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_CancelImageBuild.json @@ -1,12 +1,12 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", "catalogName": "CentralCatalog", "imageDefinitionName": "DefaultDevImage", - "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -15,5 +15,7 @@ "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" } } - } + }, + "operationId": "ProjectCatalogImageDefinitionBuild_Cancel", + "title": "ImageDefinitionBuilds_CancelByImageDefinition" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByDevCenterCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByDevCenterCatalog.json index ee6af687fc03..e9481793febd 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByDevCenterCatalog.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByDevCenterCatalog.json @@ -1,19 +1,23 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "devCenterName": "ContosoDevCenter", "catalogName": "TeamCatalog", - "imageDefinitionName": "WebDevBox" + "devCenterName": "ContosoDevCenter", + "imageDefinitionName": "WebDevBox", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/ContosoDevCenter/catalogs/TeamCatalog/imagedefinitions/WebDevBox", "name": "WebDevBox", "type": "Microsoft.DevCenter/devcenters/catalogs/imagedefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/ContosoDevCenter/catalogs/TeamCatalog/imagedefinitions/WebDevBox", "properties": { + "activeImageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "autoImageBuild": "Enabled", "extends": { "imageDefinition": "it-base", "parameters": [ @@ -23,6 +27,20 @@ } ] }, + "imageReference": { + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" + }, + "imageValidationErrorDetails": { + "code": "400", + "message": "Validation failed" + }, + "imageValidationStatus": "Failed", + "latestBuild": { + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Running" + }, "tasks": [ { "name": "git-clone", @@ -34,35 +52,19 @@ ] } ], - "imageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "latestBuild": { - "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", - "status": "Running", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z" - }, - "activeImageReference": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" - }, - "imageValidationStatus": "Failed", - "validationStatus": "Succeeded", - "imageValidationErrorDetails": { - "code": "400", - "message": "Validation failed" - }, - "autoImageBuild": "Enabled" + "validationStatus": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "DevCenterCatalogImageDefinitions_GetByDevCenterCatalog", + "title": "ImageDefinitions_GetByDevCenterCatalog" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByProjectCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByProjectCatalog.json index d1ae0079ea15..2bf46e82974b 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByProjectCatalog.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetByProjectCatalog.json @@ -1,48 +1,50 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "ContosoProject", "catalogName": "TeamCatalog", - "imageDefinitionName": "WebDevBox" + "imageDefinitionName": "WebDevBox", + "projectName": "ContosoProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/catalogs/TeamCatalog/imagedefinitions/WebDevBox", "name": "WebDevBox", "type": "Microsoft.DevCenter/projects/catalogs/imagedefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/catalogs/TeamCatalog/imagedefinitions/WebDevBox", "properties": { - "imageReference": { + "activeImageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" }, - "latestBuild": { - "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", - "status": "Running", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z" - }, - "activeImageReference": { + "autoImageBuild": "Enabled", + "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" }, - "imageValidationStatus": "Failed", - "validationStatus": "Succeeded", "imageValidationErrorDetails": { "code": "400", "message": "Validation failed" }, - "autoImageBuild": "Enabled" + "imageValidationStatus": "Failed", + "latestBuild": { + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Running" + }, + "validationStatus": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "ProjectCatalogImageDefinitions_GetByProjectCatalog", + "title": "ImageDefinitions_GetByProjectCatalog" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuild.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuild.json index 5909a437b7e8..671f07e66beb 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuild.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuild.json @@ -1,19 +1,19 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", "catalogName": "CentralCatalog", "imageDefinitionName": "DefaultDevImage", - "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", "type": "Microsoft.DevCenter/projects/catalogs/imageDefinitions/builds", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", "properties": { "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" @@ -21,14 +21,16 @@ "status": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "ProjectCatalogImageDefinitionBuild_Get", + "title": "ImageDefinitionBuilds_GetByImageDefinition" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuildDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuildDetails.json index 7225f529a1ef..0ee3be19dd43 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuildDetails.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_GetImageBuildDetails.json @@ -1,12 +1,12 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", "catalogName": "CentralCatalog", "imageDefinitionName": "DefaultDevImage", - "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { @@ -18,56 +18,58 @@ "taskGroups": [ { "name": "Provisioning", - "status": "Succeeded", - "startTime": "2020-11-18T18:25:02.224Z", "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded", "tasks": [ { "name": "Provisioning", - "status": "Succeeded", "displayName": "Provisioning", - "startTime": "2020-11-18T18:25:02.224Z", "endTime": "2020-11-18T18:25:12.952Z", "id": "e72eb35f-f406-42ec-8b93-7d18a9f7b059", - "logUri": "" + "logUri": "", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded" } ] }, { "name": "Customizations", - "status": "Succeeded", - "startTime": "2020-11-18T18:25:02.224Z", "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded", "tasks": [ { "name": "vs2022", - "status": "Succeeded", "displayName": "Install Visual Studio 2022", - "startTime": "2020-11-18T18:25:02.224Z", "endTime": "2020-11-18T18:25:12.952Z", "id": "e72eb35f-f406-42ec-8b93-7d18a9f7b059", - "logUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7/logs/e72eb35f-f406-42ec-8b93-7d18a9f7b059" + "logUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7/logs/e72eb35f-f406-42ec-8b93-7d18a9f7b059", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded" } ] }, { "name": "Generalization", - "status": "Succeeded", - "startTime": "2020-11-18T18:25:02.224Z", "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded", "tasks": [ { "name": "Generalization", - "status": "Succeeded", "displayName": "Generalization", - "startTime": "2020-11-18T18:25:02.224Z", "endTime": "2020-11-18T18:25:12.952Z", - "logUri": "" + "logUri": "", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Succeeded" } ] } ] } } - } + }, + "operationId": "ProjectCatalogImageDefinitionBuild_GetBuildDetails", + "title": "ProjectCatalogImageDefinitionBuild_GetErrorDetails" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByDevCenterCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByDevCenterCatalog.json index 5c2b42f70dbe..3e502eb13950 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByDevCenterCatalog.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByDevCenterCatalog.json @@ -1,51 +1,53 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "catalogName": "TeamCatalog", "devCenterName": "ContosoDevCenter", - "catalogName": "TeamCatalog" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/ContosoDevCenter/catalogs/TeamCatalog/imagedefinitions/WebDevBox", "name": "WebDevBox", "type": "Microsoft.DevCenter/devcenters/catalogs/imagedefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/ContosoDevCenter/catalogs/TeamCatalog/imagedefinitions/WebDevBox", "properties": { - "imageReference": { + "activeImageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" }, - "latestBuild": { - "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", - "status": "Running", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z" - }, - "activeImageReference": { + "autoImageBuild": "Enabled", + "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" }, - "imageValidationStatus": "Failed", - "validationStatus": "Succeeded", "imageValidationErrorDetails": { "code": "400", "message": "Validation failed" }, - "autoImageBuild": "Enabled" + "imageValidationStatus": "Failed", + "latestBuild": { + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Running" + }, + "validationStatus": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "DevCenterCatalogImageDefinitions_ListByDevCenterCatalog", + "title": "ImageDefinitions_ListByDevCenterCatalog" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByProjectCatalog.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByProjectCatalog.json index ae5e9de1898c..8e4a40b073c8 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByProjectCatalog.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListByProjectCatalog.json @@ -1,51 +1,53 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "catalogName": "TeamCatalog", "projectName": "ContosoProject", - "catalogName": "TeamCatalog" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/catalogs/TeamCatalog/imagedefinitions/WebDevBox", "name": "WebDevBox", "type": "Microsoft.DevCenter/projects/catalogs/imagedefinitions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProject/catalogs/TeamCatalog/imagedefinitions/WebDevBox", "properties": { - "imageReference": { + "activeImageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" }, - "latestBuild": { - "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", - "status": "Running", - "startTime": "2020-11-18T18:25:02.224Z", - "endTime": "2020-11-18T18:25:12.952Z" - }, - "activeImageReference": { + "autoImageBuild": "Enabled", + "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" }, - "imageValidationStatus": "Failed", - "validationStatus": "Succeeded", "imageValidationErrorDetails": { "code": "400", "message": "Validation failed" }, - "autoImageBuild": "Enabled" + "imageValidationStatus": "Failed", + "latestBuild": { + "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", + "endTime": "2020-11-18T18:25:12.952Z", + "startTime": "2020-11-18T18:25:02.224Z", + "status": "Running" + }, + "validationStatus": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "ProjectCatalogImageDefinitions_ListByProjectCatalog", + "title": "ImageDefinitions_ListByProjectCatalog" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListImageBuildsByImageDefinition.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListImageBuildsByImageDefinition.json index 1fb814a0b8f9..f25f9c519a45 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListImageBuildsByImageDefinition.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageDefinitions_ListImageBuildsByImageDefinition.json @@ -1,21 +1,21 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", + "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", "catalogName": "CentralCatalog", "imageDefinitionName": "DefaultDevImage", - "buildName": "0a28fc61-6f87-4611-8fe2-32df44ab93b7" + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", "name": "0a28fc61-6f87-4611-8fe2-32df44ab93b7", "type": "Microsoft.DevCenter/projects/catalogs/imageDefinitions/builds", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog/imageDefinitions/DefaultDevImage/builds/0a28fc61-6f87-4611-8fe2-32df44ab93b7", "properties": { "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/versions/1.0.0" @@ -23,16 +23,18 @@ "status": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "ProjectCatalogImageDefinitionBuilds_ListByImageDefinition", + "title": "ImageDefinitionBuilds_ListByImageDefinition" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_Get.json index f672ed8069c5..b45f986441e1 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_Get.json @@ -1,34 +1,36 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", "devCenterName": "Contoso", "galleryName": "DefaultDevGallery", "imageName": "Win11", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff", "versionName": "1.0.0" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DefaultDevGallery/images/Win11/versions/1.0.0", "name": "1.0.0", "type": "Microsoft.DevCenter/devcenters/galleries/images/versions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DefaultDevGallery/images/Win11/versions/1.0.0", "properties": { - "publishedDate": "2021-12-01T12:45:16.845Z", "excludeFromLatest": false, "osDiskImageSizeInGb": 64, - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "publishedDate": "2021-12-01T12:45:16.845Z" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "ImageVersions_Get", + "title": "Versions_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_GetByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_GetByProject.json index 4939160d9027..3aadb59cbd78 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_GetByProject.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_GetByProject.json @@ -1,33 +1,35 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "myProject", "imageName": "~gallery~DefaultDevGallery~ContosoImageDefinition", + "projectName": "myProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff", "versionName": "1.0.0" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/project/myProject/images/~gallery~DefaultDevGallery~ContosoImageDefinition/versions/1.0.0", "name": "1.0.0", "type": "Microsoft.DevCenter/project/images/versions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/project/myProject/images/~gallery~DefaultDevGallery~ContosoImageDefinition/versions/1.0.0", "properties": { - "publishedDate": "2021-12-01T12:45:16.845Z", "excludeFromLatest": false, "osDiskImageSizeInGb": 64, - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "publishedDate": "2021-12-01T12:45:16.845Z" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "ImageVersions_GetByProject", + "title": "ImageVersions_GetByProject" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_List.json index 02c0e90a6446..a13e997baad5 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_List.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_List.json @@ -1,37 +1,39 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", "devCenterName": "Contoso", "galleryName": "DefaultDevGallery", - "imageName": "Win11" + "imageName": "Win11", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DefaultDevGallery/images/Win11/versions/1.0.0", "name": "1.0.0", "type": "Microsoft.DevCenter/devcenters/galleries/images/versions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DefaultDevGallery/images/Win11/versions/1.0.0", "properties": { - "publishedDate": "2021-12-01T12:45:16.845Z", "excludeFromLatest": false, "osDiskImageSizeInGb": 64, - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "publishedDate": "2021-12-01T12:45:16.845Z" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "ImageVersions_ListByImage", + "title": "ImageVersions_ListByImage" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_ListByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_ListByProject.json index 4d739143eae2..df7cf8c15405 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_ListByProject.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ImageVersions_ListByProject.json @@ -1,36 +1,38 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "imageName": "~gallery~DefaultDevGallery~ContosoImageDefinition", "projectName": "myProject", - "imageName": "~gallery~DefaultDevGallery~ContosoImageDefinition" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/project/myProject/images/~gallery~DefaultDevGallery~ContosoImageDefinition/versions/1.0.0", "name": "1.0.0", "type": "Microsoft.DevCenter/project/images/versions", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/project/myProject/images/~gallery~DefaultDevGallery~ContosoImageDefinition/versions/1.0.0", "properties": { - "publishedDate": "2021-12-01T12:45:16.845Z", "excludeFromLatest": false, "osDiskImageSizeInGb": 64, - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "publishedDate": "2021-12-01T12:45:16.845Z" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "ImageVersions_ListByProject", + "title": "ImageVersions_ListByProject" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_Get.json index 2c5de20bd1ea..917cca20e9d7 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_Get.json @@ -1,44 +1,46 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", "devCenterName": "Contoso", "galleryName": "DefaultDevGallery", - "imageName": "ContosoBaseImage" + "imageName": "ContosoBaseImage", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DefaultDevGallery/images/ContosoBaseImage", "name": "ContosoBaseImage", "type": "Microsoft.DevCenter/devcenters/galleries/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DefaultDevGallery/images/ContosoBaseImage", "properties": { "description": "Standard Windows Dev/Test image.", - "publisher": "Contoso", "offer": "Finance", - "sku": "Backend", + "provisioningState": "Succeeded", + "publisher": "Contoso", "recommendedMachineConfiguration": { "memory": { - "min": 256, - "max": 512 + "max": 512, + "min": 256 }, "vCPUs": { - "min": 4, - "max": 8 + "max": 8, + "min": 4 } }, - "provisioningState": "Succeeded" + "sku": "Backend" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "Images_Get", + "title": "Images_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_GetByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_GetByProject.json index b4d5b5265fed..dfbb8f57cc05 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_GetByProject.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_GetByProject.json @@ -1,43 +1,45 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "imageName": "~gallery~DefaultDevGallery~ContosoBaseImage", "projectName": "myProject", - "imageName": "~gallery~DefaultDevGallery~ContosoBaseImage" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/project/myProject/images/~gallery~DefaultDevGallery~ContosoBaseImage", "name": "ContosoBaseImage", "type": "Microsoft.DevCenter/project/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/project/myProject/images/~gallery~DefaultDevGallery~ContosoBaseImage", "properties": { "description": "Standard Windows Dev/Test image.", - "publisher": "Contoso", "offer": "Finance", - "sku": "Backend", + "provisioningState": "Succeeded", + "publisher": "Contoso", "recommendedMachineConfiguration": { "memory": { - "min": 256, - "max": 512 + "max": 512, + "min": 256 }, "vCPUs": { - "min": 4, - "max": 8 + "max": 8, + "min": 4 } }, - "provisioningState": "Succeeded" + "sku": "Backend" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "Images_GetByProject", + "title": "Images_GetByProject" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByDevCenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByDevCenter.json index 90b7d1ad2d52..0d38329e674a 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByDevCenter.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByDevCenter.json @@ -1,75 +1,77 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "devCenterName": "Contoso", "resourceGroupName": "rg1", - "devCenterName": "Contoso" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage", "name": "ContosoBaseImage", "type": "Microsoft.DevCenter/devcenters/galleries/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage", "properties": { "description": "Windows 10 Enterprise + OS Optimizations 1909", - "publisher": "MicrosoftWindowsDesktop", "offer": "windows-ent-cpc", - "sku": "19h2-ent-cpc-os-g2", + "provisioningState": "Succeeded", + "publisher": "MicrosoftWindowsDesktop", "recommendedMachineConfiguration": { "memory": { - "min": 128, - "max": 256 + "max": 256, + "min": 128 }, "vCPUs": { - "min": 2, - "max": 4 + "max": 4, + "min": 2 } }, - "provisioningState": "Succeeded" + "sku": "19h2-ent-cpc-os-g2" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } }, { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage2", "name": "ContosoBaseImage2", "type": "Microsoft.DevCenter/devcenters/galleries/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage2", "properties": { "description": "Standard Windows Dev/Test image.", - "publisher": "Contoso", "offer": "Finance", - "sku": "Backend", + "publisher": "Contoso", "recommendedMachineConfiguration": { "memory": { - "min": 256, - "max": 512 + "max": 512, + "min": 256 }, "vCPUs": { - "min": 4, - "max": 8 + "max": 8, + "min": 4 } - } + }, + "sku": "Backend" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "Images_ListByDevCenter", + "title": "Images_ListByDevCenter" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByGallery.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByGallery.json index bafcef7263ab..36fb5ec99a5f 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByGallery.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByGallery.json @@ -1,76 +1,78 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", "devCenterName": "Contoso", - "galleryName": "DevGallery" + "galleryName": "DevGallery", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage", "name": "ContosoBaseImage", "type": "Microsoft.DevCenter/devcenters/galleries/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage", "properties": { "description": "Windows 10 Enterprise + OS Optimizations 1909", - "publisher": "MicrosoftWindowsDesktop", "offer": "windows-ent-cpc", - "sku": "19h2-ent-cpc-os-g2", + "provisioningState": "Succeeded", + "publisher": "MicrosoftWindowsDesktop", "recommendedMachineConfiguration": { "memory": { - "min": 128, - "max": 256 + "max": 256, + "min": 128 }, "vCPUs": { - "min": 2, - "max": 4 + "max": 4, + "min": 2 } }, - "provisioningState": "Succeeded" + "sku": "19h2-ent-cpc-os-g2" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } }, { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage2", "name": "ContosoBaseImage2", "type": "Microsoft.DevCenter/devcenters/galleries/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/DevGallery/images/ContosoBaseImage2", "properties": { "description": "Standard Windows Dev/Test image.", - "publisher": "Contoso", "offer": "Finance", - "sku": "Backend", + "publisher": "Contoso", "recommendedMachineConfiguration": { "memory": { - "min": 256, - "max": 512 + "max": 512, + "min": 256 }, "vCPUs": { - "min": 4, - "max": 8 + "max": 8, + "min": 4 } - } + }, + "sku": "Backend" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "Images_ListByGallery", + "title": "Images_ListByGallery" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByProject.json index 82b6a9f1d076..de4a87bb6542 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByProject.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Images_ListByProject.json @@ -1,105 +1,107 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "projectName": "myProject", "resourceGroupName": "rg1", - "projectName": "myProject" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myProject/images/~gallery~DefaultDevGallery~ContosoBaseImage", "name": "~gallery~DefaultDevGallery~ContosoBaseImage", "type": "Microsoft.DevCenter/project/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myProject/images/~gallery~DefaultDevGallery~ContosoBaseImage", "properties": { "description": "Windows 10 Enterprise + OS Optimizations 1909", - "publisher": "MicrosoftWindowsDesktop", "offer": "windows-ent-cpc", - "sku": "19h2-ent-cpc-os-g2", + "provisioningState": "Succeeded", + "publisher": "MicrosoftWindowsDesktop", "recommendedMachineConfiguration": { "memory": { - "min": 128, - "max": 256 + "max": 256, + "min": 128 }, "vCPUs": { - "min": 2, - "max": 4 + "max": 4, + "min": 2 } }, - "provisioningState": "Succeeded" + "sku": "19h2-ent-cpc-os-g2" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } }, { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myProject/images/~catalog~DefaultCatalog~DefaultImage", "name": "~catalog~DefaultCatalog~DefaultImage", "type": "Microsoft.DevCenter/project/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myProject/images/~catalog~DefaultCatalog~DefaultImage", "properties": { "description": "Windows 10 Enterprise + OS Optimizations 1909", - "publisher": "MicrosoftWindowsDesktop", "offer": "windows-ent-cpc", - "sku": "19h2-ent-cpc-os-g2", + "provisioningState": "Succeeded", + "publisher": "MicrosoftWindowsDesktop", "recommendedMachineConfiguration": { "memory": { - "min": 128, - "max": 256 + "max": 256, + "min": 128 }, "vCPUs": { - "min": 2, - "max": 4 + "max": 4, + "min": 2 } }, - "provisioningState": "Succeeded" + "sku": "19h2-ent-cpc-os-g2" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } }, { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myProject/images/~gallery~DefaultDevGallery~ContosoImageDefinition", "name": "~gallery~DefaultDevGallery~ContosoImageDefinition", "type": "Microsoft.DevCenter/project/images", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myProject/images/~gallery~DefaultDevGallery~ContosoImageDefinition", "properties": { "description": "Standard Windows Dev/Test image.", - "publisher": "Contoso", "offer": "Finance", - "sku": "Backend", + "publisher": "Contoso", "recommendedMachineConfiguration": { "memory": { - "min": 256, - "max": 512 + "max": 512, + "min": 256 }, "vCPUs": { - "min": 4, - "max": 8 + "max": 8, + "min": 4 } - } + }, + "sku": "Backend" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "Images_ListByProject", + "title": "Images_ListByProject" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Delete.json index 771cc52687b9..e4eedb5151da 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Delete.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Delete.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "networkConnectionName": "eastusnetwork", "resourceGroupName": "rg1", - "networkConnectionName": "eastusnetwork" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -13,5 +13,7 @@ } }, "204": {} - } + }, + "operationId": "NetworkConnections_Delete", + "title": "NetworkConnections_Delete" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Get.json index 466e95a01811..ba6a58968816 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Get.json @@ -1,35 +1,37 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "networkConnectionName": "uswest3network", "resourceGroupName": "rg1", - "networkConnectionName": "uswest3network" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", "name": "uswest3network", "type": "Microsoft.DevCenter/networkconnections", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "location": "centralus", "properties": { "domainJoinType": "HybridAzureADJoin", "domainName": "mydomaincontroller.local", "domainUsername": "testuser@mydomaincontroller.local", + "healthCheckStatus": "Passed", "networkingResourceGroupName": "NetworkInterfaces", - "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", "provisioningState": "Succeeded", - "healthCheckStatus": "Passed" + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" + "lastModifiedByType": "User" + } } } - } + }, + "operationId": "NetworkConnections_Get", + "title": "NetworkConnections_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_GetHealthDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_GetHealthDetails.json index 31dd1a8b20e3..3198d4052e93 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_GetHealthDetails.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_GetHealthDetails.json @@ -1,18 +1,17 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "networkConnectionName": "eastusnetwork", "resourceGroupName": "rg1", - "networkConnectionName": "eastusnetwork" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/eastusnetwork/healthchecks/latest", "name": "latest", "type": "Microsoft.DevCenter/networkconnections/healthchecks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/eastusnetwork/healthchecks/latest", "properties": { - "startDateTime": "2021-07-03T12:43:14Z", "endDateTime": "2021-07-03T12:43:15Z", "healthChecks": [ { @@ -21,17 +20,20 @@ "startDateTime": "2021-07-03T12:43:15Z", "status": "Passed" } - ] + ], + "startDateTime": "2021-07-03T12:43:14Z" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "System", "createdByType": "Application", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "System", - "lastModifiedByType": "Application", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "Application" } } } - } + }, + "operationId": "NetworkConnections_GetHealthDetails", + "title": "NetworkConnections_GetHealthDetails" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListByResourceGroup.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListByResourceGroup.json index 8b4602946753..af1b7cb82c06 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListByResourceGroup.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListByResourceGroup.json @@ -1,37 +1,39 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", "name": "uswest3network", "type": "Microsoft.DevCenter/networkconnections", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "location": "centralus", "properties": { "domainJoinType": "HybridAzureADJoin", "domainName": "mydomaincontroller.local", "domainUsername": "testuser@mydomaincontroller.local", "networkingResourceGroupName": "NetworkInterfaces", - "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" + "lastModifiedByType": "User" + } } ] } } - } + }, + "operationId": "NetworkConnections_ListByResourceGroup", + "title": "NetworkConnections_ListByResourceGroup" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListBySubscription.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListBySubscription.json index 648a3d572648..0ea5cd3896c4 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListBySubscription.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListBySubscription.json @@ -1,36 +1,38 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", "name": "uswest3network", "type": "Microsoft.DevCenter/networkconnection", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "location": "centralus", "properties": { "domainJoinType": "HybridAzureADJoin", "domainName": "mydomaincontroller.local", "domainUsername": "testuser@mydomaincontroller.local", "networkingResourceGroupName": "NetworkInterfaces", - "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" + "lastModifiedByType": "User" + } } ] } } - } + }, + "operationId": "NetworkConnections_ListBySubscription", + "title": "NetworkConnections_ListBySubscription" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListHealthDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListHealthDetails.json index 5fa9222ac0d9..6370478706f2 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListHealthDetails.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListHealthDetails.json @@ -1,20 +1,19 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "networkConnectionName": "uswest3network", "resourceGroupName": "rg1", - "networkConnectionName": "uswest3network" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network/healthchecks/latest", "name": "latest", "type": "Microsoft.DevCenter/networkconnections/healthchecks", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network/healthchecks/latest", "properties": { - "startDateTime": "2021-07-03T12:43:14Z", "endDateTime": "2021-07-03T12:43:15Z", "healthChecks": [ { @@ -23,19 +22,22 @@ "startDateTime": "2021-07-03T12:43:15Z", "status": "Passed" } - ] + ], + "startDateTime": "2021-07-03T12:43:14Z" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "System", "createdByType": "Application", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "System", - "lastModifiedByType": "Application", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "Application" } } ] } } - } + }, + "operationId": "NetworkConnections_ListHealthDetails", + "title": "NetworkConnections_ListHealthDetails" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json index bad1591a7c66..9615f1453694 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "networkConnectionName": "uswest3network", "resourceGroupName": "rg1", - "networkConnectionName": "uswest3network" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { @@ -51,5 +51,7 @@ ] } } - } + }, + "operationId": "NetworkConnections_ListOutboundNetworkDependenciesEndpoints", + "title": "ListOutboundNetworkDependencies" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Patch.json index b3c31b725138..6adf43b1b286 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Patch.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Patch.json @@ -1,38 +1,38 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "networkConnectionName": "uswest3network", "body": { "properties": { "domainPassword": "New Password value for user" } - } + }, + "networkConnectionName": "uswest3network", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", "name": "uswest3network", "type": "Microsoft.DevCenter/networkconnections", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "location": "centralus", "properties": { "domainJoinType": "HybridAzureADJoin", "domainName": "mydomaincontroller.local", "domainUsername": "testuser@mydomaincontroller.local", "networkingResourceGroupName": "NetworkInterfaces", - "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" + "lastModifiedByType": "User" + } } }, "202": { @@ -41,5 +41,7 @@ "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" } } - } + }, + "operationId": "NetworkConnections_Update", + "title": "NetworkConnections_Update" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Put.json index 15fb39edf40a..ba402b62103e 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Put.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_Put.json @@ -1,69 +1,71 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "networkConnectionName": "uswest3network", "body": { + "location": "centralus", "properties": { "domainJoinType": "HybridAzureADJoin", "domainName": "mydomaincontroller.local", - "domainUsername": "testuser@mydomaincontroller.local", "domainPassword": "Password value for user", + "domainUsername": "testuser@mydomaincontroller.local", "networkingResourceGroupName": "NetworkInterfaces", "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default" - }, - "location": "centralus" - } + } + }, + "networkConnectionName": "uswest3network", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", "name": "uswest3network", "type": "Microsoft.DevCenter/networkconnections", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "location": "centralus", "properties": { "domainJoinType": "HybridAzureADJoin", "domainName": "mydomaincontroller.local", "domainUsername": "testuser@mydomaincontroller.local", "networkingResourceGroupName": "NetworkInterfaces", - "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" + "lastModifiedByType": "User" + } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", "name": "uswest3network", "type": "Microsoft.DevCenter/networkconnections", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network", + "location": "centralus", "properties": { "domainJoinType": "HybridAzureADJoin", "domainName": "mydomaincontroller.local", "domainUsername": "testuser@mydomaincontroller.local", "networkingResourceGroupName": "NetworkInterfaces", - "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default", - "provisioningState": "Created" + "provisioningState": "Created", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" + "lastModifiedByType": "User" + } } } - } + }, + "operationId": "NetworkConnections_CreateOrUpdate", + "title": "NetworkConnections_CreateOrUpdate" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_RunHealthChecks.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_RunHealthChecks.json index 15ec7599e854..1e5d3c64a4cc 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_RunHealthChecks.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/NetworkConnections_RunHealthChecks.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "networkConnectionName": "uswest3network", "resourceGroupName": "rg1", - "networkConnectionName": "uswest3network" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -12,5 +12,7 @@ "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" } } - } + }, + "operationId": "NetworkConnections_RunHealthChecks", + "title": "NetworkConnections_RunHealthChecks" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/OperationStatus_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/OperationStatus_Get.json index 156fe1b63530..701bc97b042f 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/OperationStatus_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/OperationStatus_Get.json @@ -1,29 +1,27 @@ { "parameters": { + "operationId": "3fa1a29d-e807-488d-81d1-f1c5456a08cd", "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", "location": "westus3", - "operationId": "3fa1a29d-e807-488d-81d1-f1c5456a08cd" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { + "endTime": "2020-12-01T15:16:55.100Z", "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4", - "status": "Succeeded", - "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "percentComplete": 100, "startTime": "2020-12-01T15:16:29.500Z", - "endTime": "2020-12-01T15:16:55.100Z", - "percentComplete": 100 + "status": "Succeeded" } }, "202": { "body": { + "endTime": "2020-12-01T15:16:55.100Z", "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4", - "status": "Succeeded", - "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "percentComplete": 99, "startTime": "2020-12-01T15:16:29.500Z", - "endTime": "2020-12-01T15:16:55.100Z", - "percentComplete": 99 + "status": "Succeeded" }, "headers": { "Azure-AsyncOperation": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview", @@ -38,5 +36,7 @@ } } } - } + }, + "operationId": "OperationStatuses_Get", + "title": "Get OperationStatus" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Operations_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Operations_Get.json index 19ae2f36c3c5..f81fb71ceb03 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Operations_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Operations_Get.json @@ -9,13 +9,15 @@ { "name": "Microsoft.DevCenter/devcenters/write", "display": { + "operation": "write", "provider": "Microsoft DevTest Center", - "resource": "Microsoft DevTest Center devcenter resource", - "operation": "write" + "resource": "Microsoft DevTest Center devcenter resource" } } ] } } - } + }, + "operationId": "Operations_List", + "title": "Operations_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Delete.json index 1dd9e32ea99e..9cb3f88ed704 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Delete.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Delete.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "poolName": "poolName", "projectName": "DevProject", - "poolName": "poolName" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -14,5 +14,7 @@ } }, "204": {} - } + }, + "operationId": "Pools_Delete", + "title": "Pools_Delete" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Get.json index 136e1bc7b094..96fba562b867 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Get.json @@ -1,45 +1,22 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "poolName": "DevPool", "projectName": "DevProject", - "poolName": "DevPool" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", "name": "DevPool", "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "Network1-westus2", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "healthStatus": "Healthy", - "devBoxCount": 1, - "provisioningState": "Succeeded", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Managed", - "managedVirtualNetworkRegions": [ - "centralus" - ], "activeHoursConfiguration": { - "keepAwakeEnableStatus": "Enabled", "autoStartEnableStatus": "Enabled", - "defaultTimeZone": "America/Los_Angeles", - "defaultStartTimeHour": 9, - "defaultEndTimeHour": 17, + "daysOfWeekLimit": 5, "defaultDaysOfWeek": [ "Monday", "Tuesday", @@ -47,19 +24,44 @@ "Thursday", "Friday" ], - "daysOfWeekLimit": 5 - } + "defaultEndTimeHour": 17, + "defaultStartTimeHour": 9, + "defaultTimeZone": "America/Los_Angeles", + "keepAwakeEnableStatus": "Enabled" + }, + "devBoxCount": 1, + "devBoxDefinitionName": "WebDevBox", + "displayName": "Developer Pool", + "healthStatus": "Healthy", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [ + "centralus" + ], + "networkConnectionName": "Network1-westus2", + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Managed" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" + "lastModifiedByType": "User" + } } } - } + }, + "operationId": "Pools_Get", + "title": "Pools_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_GetUnhealthyStatus.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_GetUnhealthyStatus.json index 96a9b6cd8ffc..c9b5e4f7c6e9 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_GetUnhealthyStatus.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_GetUnhealthyStatus.json @@ -1,31 +1,22 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "poolName": "DevPool", "projectName": "DevProject", - "poolName": "DevPool" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", "name": "DevPool", "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", "properties": { - "displayName": "Developer Pool", + "devBoxCount": 1, "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "Network1-westus2", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, + "displayName": "Developer Pool", "healthStatus": "Unhealthy", "healthStatusDetails": [ { @@ -41,24 +32,35 @@ "message": "Intune license validation has failed. The tenant does not have a valid Intune license." } ], - "devBoxCount": 1, - "provisioningState": "Succeeded", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Managed", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", "managedVirtualNetworkRegions": [ "centralus" - ] + ], + "networkConnectionName": "Network1-westus2", + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Managed" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" + "lastModifiedByType": "User" + } } } - } + }, + "operationId": "Pools_Get", + "title": "Pools_GetUnhealthyStatus" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_List.json index 28326e717dbc..633deccaabee 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_List.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_List.json @@ -1,46 +1,23 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "projectName": "DevProject", "resourceGroupName": "rg1", - "projectName": "DevProject" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", "name": "DevPool", "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "Network1-westus2", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "healthStatus": "Healthy", - "devBoxCount": 1, - "provisioningState": "Succeeded", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Managed", - "managedVirtualNetworkRegions": [ - "centralus" - ], "activeHoursConfiguration": { - "keepAwakeEnableStatus": "Enabled", "autoStartEnableStatus": "Enabled", - "defaultTimeZone": "America/Los_Angeles", - "defaultStartTimeHour": 9, - "defaultEndTimeHour": 17, + "daysOfWeekLimit": 5, "defaultDaysOfWeek": [ "Monday", "Tuesday", @@ -48,21 +25,46 @@ "Thursday", "Friday" ], - "daysOfWeekLimit": 5 - } + "defaultEndTimeHour": 17, + "defaultStartTimeHour": 9, + "defaultTimeZone": "America/Los_Angeles", + "keepAwakeEnableStatus": "Enabled" + }, + "devBoxCount": 1, + "devBoxDefinitionName": "WebDevBox", + "displayName": "Developer Pool", + "healthStatus": "Healthy", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [ + "centralus" + ], + "networkConnectionName": "Network1-westus2", + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Managed" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" + "lastModifiedByType": "User" + } } ] } } - } + }, + "operationId": "Pools_ListByProject", + "title": "Pools_ListByProject" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Patch.json index d61e7a136dd0..183e6c0017db 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Patch.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Patch.json @@ -1,54 +1,54 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "poolName": "DevPool", "body": { "properties": { "devBoxDefinitionName": "WebDevBox2" } - } + }, + "poolName": "DevPool", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", "name": "DevPool", "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", "properties": { - "displayName": "Developer Pool", + "devBoxCount": 1, "devBoxDefinitionName": "WebDevBox2", - "networkConnectionName": "Network1-westus2", + "displayName": "Developer Pool", + "healthStatus": "Healthy", "licenseType": "Windows_Client", "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [ + "centralus" + ], + "networkConnectionName": "Network1-westus2", + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 + "gracePeriodMinutes": 60, + "status": "Enabled" }, "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 + "gracePeriodMinutes": 120, + "status": "Enabled" }, - "healthStatus": "Healthy", - "devBoxCount": 1, - "provisioningState": "Succeeded", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Managed", - "managedVirtualNetworkRegions": [ - "centralus" - ] + "virtualNetworkType": "Managed" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" + "lastModifiedByType": "User" + } } }, "202": { @@ -57,5 +57,7 @@ "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" } } - } + }, + "operationId": "Pools_Update", + "title": "Pools_Update" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Put.json index bda949a22cdc..66e13e10a03f 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Put.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_Put.json @@ -1,33 +1,12 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "poolName": "DevPool", "body": { + "location": "centralus", "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "Network1-westus2", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Unmanaged", "activeHoursConfiguration": { - "keepAwakeEnableStatus": "Enabled", "autoStartEnableStatus": "Enabled", - "defaultTimeZone": "America/Los_Angeles", - "defaultStartTimeHour": 9, - "defaultEndTimeHour": 17, + "daysOfWeekLimit": 5, "defaultDaysOfWeek": [ "Monday", "Tuesday", @@ -35,44 +14,44 @@ "Thursday", "Friday" ], - "daysOfWeekLimit": 5 - } - }, - "location": "centralus" - } + "defaultEndTimeHour": 17, + "defaultStartTimeHour": 9, + "defaultTimeZone": "America/Los_Angeles", + "keepAwakeEnableStatus": "Enabled" + }, + "devBoxDefinitionName": "WebDevBox", + "displayName": "Developer Pool", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "networkConnectionName": "Network1-westus2", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Unmanaged" + } + }, + "poolName": "DevPool", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", "name": "DevPool", "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "Network1-westus2", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "healthStatus": "Healthy", - "devBoxCount": 1, - "provisioningState": "Succeeded", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Unmanaged", - "managedVirtualNetworkRegions": [], "activeHoursConfiguration": { - "keepAwakeEnableStatus": "Enabled", "autoStartEnableStatus": "Enabled", - "defaultTimeZone": "America/Los_Angeles", - "defaultStartTimeHour": 9, - "defaultEndTimeHour": 17, + "daysOfWeekLimit": 5, "defaultDaysOfWeek": [ "Monday", "Tuesday", @@ -80,50 +59,51 @@ "Thursday", "Friday" ], - "daysOfWeekLimit": 5 - } + "defaultEndTimeHour": 17, + "defaultStartTimeHour": 9, + "defaultTimeZone": "America/Los_Angeles", + "keepAwakeEnableStatus": "Enabled" + }, + "devBoxCount": 1, + "devBoxDefinitionName": "WebDevBox", + "displayName": "Developer Pool", + "healthStatus": "Healthy", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [], + "networkConnectionName": "Network1-westus2", + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Unmanaged" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" + "lastModifiedByType": "User" + } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", "name": "DevPool", "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "Network1-westus2", - "licenseType": "Windows_Client", - "localAdministrator": "Enabled", - "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 - }, - "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 - }, - "healthStatus": "Pending", - "provisioningState": "Created", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Unmanaged", - "managedVirtualNetworkRegions": [], "activeHoursConfiguration": { - "keepAwakeEnableStatus": "Enabled", "autoStartEnableStatus": "Enabled", - "defaultTimeZone": "America/Los_Angeles", - "defaultStartTimeHour": 9, - "defaultEndTimeHour": 17, + "daysOfWeekLimit": 5, "defaultDaysOfWeek": [ "Monday", "Tuesday", @@ -131,19 +111,41 @@ "Thursday", "Friday" ], - "daysOfWeekLimit": 5 - } + "defaultEndTimeHour": 17, + "defaultStartTimeHour": 9, + "defaultTimeZone": "America/Los_Angeles", + "keepAwakeEnableStatus": "Enabled" + }, + "devBoxDefinitionName": "WebDevBox", + "displayName": "Developer Pool", + "healthStatus": "Pending", + "licenseType": "Windows_Client", + "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [], + "networkConnectionName": "Network1-westus2", + "provisioningState": "Created", + "singleSignOnStatus": "Disabled", + "stopOnDisconnect": { + "gracePeriodMinutes": 60, + "status": "Enabled" + }, + "stopOnNoConnect": { + "gracePeriodMinutes": 120, + "status": "Enabled" + }, + "virtualNetworkType": "Unmanaged" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" + "lastModifiedByType": "User" + } } } - } + }, + "operationId": "Pools_CreateOrUpdate", + "title": "Pools_CreateOrUpdate" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithManagedNetwork.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithManagedNetwork.json index 4a9c0e2f5d17..e45cfa2ac005 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithManagedNetwork.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithManagedNetwork.json @@ -1,111 +1,113 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "poolName": "DevPool", "body": { + "location": "centralus", "properties": { - "displayName": "Developer Pool", "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "managedNetwork", + "displayName": "Developer Pool", "licenseType": "Windows_Client", "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [ + "centralus" + ], + "networkConnectionName": "managedNetwork", + "singleSignOnStatus": "Disabled", "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 + "gracePeriodMinutes": 60, + "status": "Enabled" }, "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 + "gracePeriodMinutes": 120, + "status": "Enabled" }, - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Managed", - "managedVirtualNetworkRegions": [ - "centralus" - ] - }, - "location": "centralus" - } + "virtualNetworkType": "Managed" + } + }, + "poolName": "DevPool", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", "name": "DevPool", "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", "properties": { - "displayName": "Developer Pool", + "devBoxCount": 1, "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "managedNetwork", + "displayName": "Developer Pool", + "healthStatus": "Healthy", "licenseType": "Windows_Client", "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [ + "centralus" + ], + "networkConnectionName": "managedNetwork", + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 + "gracePeriodMinutes": 60, + "status": "Enabled" }, "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 + "gracePeriodMinutes": 120, + "status": "Enabled" }, - "healthStatus": "Healthy", - "devBoxCount": 1, - "provisioningState": "Succeeded", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Managed", - "managedVirtualNetworkRegions": [ - "centralus" - ] + "virtualNetworkType": "Managed" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" + "lastModifiedByType": "User" + } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", "name": "DevPool", "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", "properties": { - "displayName": "Developer Pool", "devBoxDefinitionName": "WebDevBox", - "networkConnectionName": "managedNetwork", + "displayName": "Developer Pool", + "healthStatus": "Pending", "licenseType": "Windows_Client", "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [ + "centralus" + ], + "networkConnectionName": "managedNetwork", + "provisioningState": "Created", + "singleSignOnStatus": "Disabled", "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 + "gracePeriodMinutes": 60, + "status": "Enabled" }, "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 + "gracePeriodMinutes": 120, + "status": "Enabled" }, - "healthStatus": "Pending", - "provisioningState": "Created", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Managed", - "managedVirtualNetworkRegions": [ - "centralus" - ] + "virtualNetworkType": "Managed" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" + "lastModifiedByType": "User" + } } } - } + }, + "operationId": "Pools_CreateOrUpdate", + "title": "Pools_CreateOrUpdateWithManagedNetwork" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithValueDevBoxDefinition.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithValueDevBoxDefinition.json index 2d62c5a8d955..f4f266b09205 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithValueDevBoxDefinition.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_PutWithValueDevBoxDefinition.json @@ -1,15 +1,9 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "poolName": "DevPool", "body": { + "location": "centralus", "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionType": "Value", - "devBoxDefinitionName": "", "devBoxDefinition": { "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/projects/DevProject/images/exampleImage/version/1.0.0" @@ -18,33 +12,38 @@ "name": "Preview" } }, - "networkConnectionName": "Network1-westus2", + "devBoxDefinitionName": "", + "devBoxDefinitionType": "Value", + "displayName": "Developer Pool", "licenseType": "Windows_Client", "localAdministrator": "Enabled", + "networkConnectionName": "Network1-westus2", + "singleSignOnStatus": "Disabled", "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 + "gracePeriodMinutes": 60, + "status": "Enabled" }, "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 + "gracePeriodMinutes": 120, + "status": "Enabled" }, - "singleSignOnStatus": "Disabled", "virtualNetworkType": "Unmanaged" - }, - "location": "centralus" - } + } + }, + "poolName": "DevPool", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", "name": "DevPool", "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionType": "Value", - "devBoxDefinitionName": "", + "devBoxCount": 1, "devBoxDefinition": { "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/projects/DevProject/images/exampleImage/version/1.0.0" @@ -53,44 +52,43 @@ "name": "Preview" } }, - "networkConnectionName": "Network1-westus2", + "devBoxDefinitionName": "", + "devBoxDefinitionType": "Value", + "displayName": "Developer Pool", + "healthStatus": "Healthy", "licenseType": "Windows_Client", "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [], + "networkConnectionName": "Network1-westus2", + "provisioningState": "Succeeded", + "singleSignOnStatus": "Disabled", "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 + "gracePeriodMinutes": 60, + "status": "Enabled" }, "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 + "gracePeriodMinutes": 120, + "status": "Enabled" }, - "healthStatus": "Healthy", - "devBoxCount": 1, - "provisioningState": "Succeeded", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Unmanaged", - "managedVirtualNetworkRegions": [] + "virtualNetworkType": "Unmanaged" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" + "lastModifiedByType": "User" + } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", "name": "DevPool", "type": "Microsoft.DevCenter/pools", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/pools/DevPool", + "location": "centralus", "properties": { - "displayName": "Developer Pool", - "devBoxDefinitionType": "Value", - "devBoxDefinitionName": "", "devBoxDefinition": { "imageReference": { "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/projects/DevProject/images/exampleImage/version/1.0.0" @@ -99,33 +97,37 @@ "name": "Preview" } }, - "networkConnectionName": "Network1-westus2", + "devBoxDefinitionName": "", + "devBoxDefinitionType": "Value", + "displayName": "Developer Pool", + "healthStatus": "Pending", "licenseType": "Windows_Client", "localAdministrator": "Enabled", + "managedVirtualNetworkRegions": [], + "networkConnectionName": "Network1-westus2", + "provisioningState": "Created", + "singleSignOnStatus": "Disabled", "stopOnDisconnect": { - "status": "Enabled", - "gracePeriodMinutes": 60 + "gracePeriodMinutes": 60, + "status": "Enabled" }, "stopOnNoConnect": { - "status": "Enabled", - "gracePeriodMinutes": 120 + "gracePeriodMinutes": 120, + "status": "Enabled" }, - "healthStatus": "Pending", - "provisioningState": "Created", - "singleSignOnStatus": "Disabled", - "virtualNetworkType": "Unmanaged", - "managedVirtualNetworkRegions": [] + "virtualNetworkType": "Unmanaged" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" - }, - "location": "centralus" + "lastModifiedByType": "User" + } } } - } + }, + "operationId": "Pools_CreateOrUpdate", + "title": "Pools_CreateOrUpdateWithValueDevBoxDefinition" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_RunHealthChecks.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_RunHealthChecks.json index f64058614e5e..96844e41cdca 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_RunHealthChecks.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Pools_RunHealthChecks.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "poolName": "DevPool", "projectName": "DevProject", - "poolName": "DevPool" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -13,5 +13,7 @@ "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" } } - } + }, + "operationId": "Pools_RunHealthChecks", + "title": "Pools_RefreshStatus" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_Get.json index cd55d4aea115..2c350066567a 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_Get.json @@ -1,26 +1,28 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "environmentTypeName": "DevTest", "projectName": "Contoso", - "environmentTypeName": "DevTest" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/Contoso/allowedEnvironmentTypes/DevTest", "name": "DevTest", "type": "Microsoft.DevCenter/projects/allowedenvironmenttypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/Contoso/allowedEnvironmentTypes/DevTest", "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1@contoso.com", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "ProjectAllowedEnvironmentTypes_Get", + "title": "ProjectAllowedEnvironmentTypes_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_List.json index 19becc9c01da..51165032fa83 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_List.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectAllowedEnvironmentTypes_List.json @@ -1,29 +1,31 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "projectName": "Contoso", "resourceGroupName": "rg1", - "projectName": "Contoso" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/Contoso/allowedEnvironmentTypes/DevTest", "name": "DevTest", "type": "Microsoft.DevCenter/projects/allowedenvironmenttypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/Contoso/allowedEnvironmentTypes/DevTest", "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1@contoso.com", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "ProjectAllowedEnvironmentTypes_List", + "title": "ProjectAllowedEnvironmentTypes_List" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json index 9cbd571bf7e2..c4b13bb3f216 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogEnvironmentDefinitions_GetErrorDetails.json @@ -1,11 +1,11 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", "catalogName": "myCatalog", - "environmentDefinitionName": "myEnvironmentDefinition" + "environmentDefinitionName": "myEnvironmentDefinition", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { @@ -18,5 +18,7 @@ ] } } - } + }, + "operationId": "ProjectCatalogEnvironmentDefinitions_GetErrorDetails", + "title": "ProjectCatalogEnvironmentDefinitions_GetErrorDetails" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogImageDefinitions_GetErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogImageDefinitions_GetErrorDetails.json index fcd5c38ceb03..58a44e60c092 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogImageDefinitions_GetErrorDetails.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogImageDefinitions_GetErrorDetails.json @@ -1,11 +1,11 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", "catalogName": "TeamCatalog", - "imageDefinitionName": "WebDevBox" + "imageDefinitionName": "WebDevBox", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { @@ -18,5 +18,7 @@ ] } } - } + }, + "operationId": "ProjectCatalogImageDefinitions_GetErrorDetails", + "title": "ProjectCatalogImageDefinitions_GetErrorDetails" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Connect.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Connect.json index afbc9c93eb4a..6b19fd8d88e2 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Connect.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Connect.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "catalogName": "CentralCatalog", "projectName": "DevProject", - "catalogName": "CentralCatalog" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -13,5 +13,7 @@ "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" } } - } + }, + "operationId": "ProjectCatalogs_Connect", + "title": "ProjectCatalogs_Connect" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateAdo.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateAdo.json index ed75650e841a..bda7aec84978 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateAdo.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateAdo.json @@ -1,95 +1,97 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "CentralCatalog", "body": { "properties": { "adoGit": { - "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", + "path": "/templates", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso" } } - } + }, + "catalogName": "CentralCatalog", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", "name": "CentralCatalog", "type": "Microsoft.DevCenter/projects/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", "properties": { "adoGit": { - "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", + "path": "/templates", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso" }, + "connectionState": "Connected", "lastSyncStats": { "added": 0, - "updated": 0, - "unchanged": 0, "removed": 0, - "validationErrors": 0, - "synchronizationErrors": 0, "syncedCatalogItemTypes": [ "EnvironmentDefinition" - ] + ], + "synchronizationErrors": 0, + "unchanged": 0, + "updated": 0, + "validationErrors": 0 }, "provisioningState": "Accepted", - "connectionState": "Connected", "syncState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", "name": "CentralCatalog", "type": "Microsoft.DevCenter/projects/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", "properties": { "adoGit": { - "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso", + "path": "/templates", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" + "uri": "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso" }, + "connectionState": "Connected", "lastSyncStats": { "added": 0, - "updated": 0, - "unchanged": 0, "removed": 0, - "validationErrors": 0, - "synchronizationErrors": 0, "syncedCatalogItemTypes": [ "EnvironmentDefinition" - ] + ], + "synchronizationErrors": 0, + "unchanged": 0, + "updated": 0, + "validationErrors": 0 }, "provisioningState": "Accepted", - "connectionState": "Connected", "syncState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "ProjectCatalogs_CreateOrUpdate", + "title": "ProjectCatalogs_CreateOrUpdateAdo" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateGitHub.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateGitHub.json index db145688fb9f..a097465c7726 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateGitHub.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_CreateGitHub.json @@ -1,95 +1,97 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "CentralCatalog", "body": { "properties": { "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", + "path": "/templates", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" + "uri": "https://github.com/Contoso/centralrepo-fake.git" } } - } + }, + "catalogName": "CentralCatalog", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", "name": "CentralCatalog", "type": "Microsoft.DevCenter/projects/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", "properties": { + "connectionState": "Connected", "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", + "path": "/templates", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" + "uri": "https://github.com/Contoso/centralrepo-fake.git" }, "lastSyncStats": { "added": 0, - "updated": 0, - "unchanged": 0, "removed": 0, - "validationErrors": 0, - "synchronizationErrors": 0, "syncedCatalogItemTypes": [ "EnvironmentDefinition" - ] + ], + "synchronizationErrors": 0, + "unchanged": 0, + "updated": 0, + "validationErrors": 0 }, "provisioningState": "Accepted", - "connectionState": "Connected", "syncState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", "name": "CentralCatalog", "type": "Microsoft.DevCenter/projects/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", "properties": { + "connectionState": "Connected", "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", + "path": "/templates", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" + "uri": "https://github.com/Contoso/centralrepo-fake.git" }, "lastSyncStats": { "added": 0, - "updated": 0, - "unchanged": 0, "removed": 0, - "validationErrors": 0, - "synchronizationErrors": 0, "syncedCatalogItemTypes": [ "EnvironmentDefinition" - ] + ], + "synchronizationErrors": 0, + "unchanged": 0, + "updated": 0, + "validationErrors": 0 }, "provisioningState": "Accepted", - "connectionState": "Connected", "syncState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "ProjectCatalogs_CreateOrUpdate", + "title": "ProjectCatalogs_CreateOrUpdateGitHub" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Delete.json index d948cc87dffe..7274459c73b1 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Delete.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Delete.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "catalogName": "CentralCatalog", "projectName": "DevProject", - "catalogName": "CentralCatalog" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -14,5 +14,7 @@ } }, "204": {} - } + }, + "operationId": "ProjectCatalogs_Delete", + "title": "ProjectCatalogs_Delete" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Get.json index bb68a9cc4bf5..88434f6c6aa4 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Get.json @@ -1,50 +1,52 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "catalogName": "CentralCatalog", "projectName": "DevProject", - "catalogName": "CentralCatalog" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", "name": "CentralCatalog", "type": "Microsoft.DevCenter/projects/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", "properties": { + "connectionState": "Connected", "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", + "path": "/templates", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" + "uri": "https://github.com/Contoso/centralrepo-fake.git" }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", "lastSyncStats": { "added": 1, - "updated": 1, - "unchanged": 1, "removed": 1, - "validationErrors": 1, - "synchronizationErrors": 1, "syncedCatalogItemTypes": [ "EnvironmentDefinition" - ] + ], + "synchronizationErrors": 1, + "unchanged": 1, + "updated": 1, + "validationErrors": 1 }, - "lastConnectionTime": "2020-11-18T18:28:00.314Z", "lastSyncTime": "2020-11-18T18:28:00.314Z", "provisioningState": "Succeeded", - "connectionState": "Connected", "syncState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "ProjectCatalogs_Get", + "title": "ProjectCatalogs_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_GetSyncErrorDetails.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_GetSyncErrorDetails.json index bd6dedc37655..611c90119ffd 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_GetSyncErrorDetails.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_GetSyncErrorDetails.json @@ -1,22 +1,18 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "catalogName": "CentralCatalog", "projectName": "DevProject", - "catalogName": "CentralCatalog" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "operationError": { - "code": "Conflict", - "message": "The source control credentials could not be validated successfully." - }, "conflicts": [ { - "path": "/Environments/Duplicate/manifest.yaml", - "name": "DuplicateEnvironmentName" + "name": "DuplicateEnvironmentName", + "path": "/Environments/Duplicate/manifest.yaml" } ], "errors": [ @@ -29,8 +25,14 @@ } ] } - ] + ], + "operationError": { + "code": "Conflict", + "message": "The source control credentials could not be validated successfully." + } } } - } + }, + "operationId": "ProjectCatalogs_GetSyncErrorDetails", + "title": "ProjectCatalogs_GetSyncErrorDetails" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_List.json index 8b7eeb4cf503..c64775bb1a10 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_List.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_List.json @@ -1,50 +1,52 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "projectName": "DevProject", "resourceGroupName": "rg1", - "projectName": "DevProject" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/Contoso/catalogs", "name": "CentralCatalog", "type": "Microsoft.DevCenter/projects/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/Contoso/catalogs", "properties": { + "connectionState": "Connected", "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", + "path": "/templates", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/templates" + "uri": "https://github.com/Contoso/centralrepo-fake.git" }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", "lastSyncStats": { "added": 1, - "updated": 1, - "unchanged": 1, "removed": 1, - "validationErrors": 1, - "synchronizationErrors": 1 + "synchronizationErrors": 1, + "unchanged": 1, + "updated": 1, + "validationErrors": 1 }, - "lastConnectionTime": "2020-11-18T18:28:00.314Z", "lastSyncTime": "2020-11-18T18:28:00.314Z", "provisioningState": "Succeeded", - "connectionState": "Connected", "syncState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "ProjectCatalogs_List", + "title": "ProjectCatalogs_List" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Patch.json index 9f3cc04b9bda..482ec360024b 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Patch.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Patch.json @@ -1,52 +1,52 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "catalogName": "CentralCatalog", "body": { "properties": { "gitHub": { "path": "/environments" } } - } + }, + "catalogName": "CentralCatalog", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", "name": "CentralCatalog", "type": "Microsoft.DevCenter/projects/catalogs", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog", "properties": { + "connectionState": "Connected", "gitHub": { - "uri": "https://github.com/Contoso/centralrepo-fake.git", + "path": "/environments", "branch": "main", "secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat", - "path": "/environments" + "uri": "https://github.com/Contoso/centralrepo-fake.git" }, + "lastConnectionTime": "2020-11-18T18:28:00.314Z", "lastSyncStats": { "added": 1, - "updated": 1, - "unchanged": 1, "removed": 1, - "validationErrors": 1, - "synchronizationErrors": 1 + "synchronizationErrors": 1, + "unchanged": 1, + "updated": 1, + "validationErrors": 1 }, - "lastConnectionTime": "2020-11-18T18:28:00.314Z", "lastSyncTime": "2020-11-18T18:28:00.314Z", "provisioningState": "Succeeded", - "connectionState": "Connected", "syncState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } }, @@ -56,5 +56,7 @@ "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" } } - } + }, + "operationId": "ProjectCatalogs_Patch", + "title": "ProjectCatalogs_Patch" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Sync.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Sync.json index afbc9c93eb4a..88b352db39c1 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Sync.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectCatalogs_Sync.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "catalogName": "CentralCatalog", "projectName": "DevProject", - "catalogName": "CentralCatalog" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -13,5 +13,7 @@ "Location": "https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview" } } - } + }, + "operationId": "ProjectCatalogs_Sync", + "title": "ProjectCatalogs_Sync" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Delete.json index e41ab6e63d71..f2f28d657646 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Delete.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Delete.json @@ -1,13 +1,15 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "environmentTypeName": "DevTest", "projectName": "ContosoProj", - "environmentTypeName": "DevTest" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": {}, "204": {} - } + }, + "operationId": "ProjectEnvironmentTypes_Delete", + "title": "ProjectEnvironmentTypes_Delete" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Get.json index b8672532f320..8b3d8c1ca3f6 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Get.json @@ -1,63 +1,65 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "environmentTypeName": "DevTest", "projectName": "ContosoProj", - "environmentTypeName": "DevTest" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", "name": "DevTest", "type": "Microsoft.DevCenter/projects/environmentTypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", "properties": { - "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", - "status": "Enabled", - "provisioningState": "Succeeded", - "environmentCount": 1, "creatorRoleAssignment": { "roles": { "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" } } }, + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "environmentCount": 1, + "provisioningState": "Succeeded", + "status": "Enabled", "userRoleAssignments": { "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { "roles": { "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" } } } } }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1@contoso.com", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" }, "tags": { "CostCenter": "RnD" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - }, - "location": "centralus" + } } } - } + }, + "operationId": "ProjectEnvironmentTypes_Get", + "title": "ProjectEnvironmentTypes_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_List.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_List.json index c76560116731..b9e957dd019b 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_List.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_List.json @@ -1,66 +1,68 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "environmentTypeName": "DevTest", "projectName": "ContosoProj", - "environmentTypeName": "DevTest" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", "name": "DevTest", "type": "Microsoft.DevCenter/projects/environmentTypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", "properties": { - "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", - "status": "Enabled", - "provisioningState": "Succeeded", "creatorRoleAssignment": { "roles": { "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" } } }, + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "provisioningState": "Succeeded", + "status": "Enabled", "userRoleAssignments": { "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { "roles": { "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" } } } } }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1@contoso.com", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" }, "tags": { "CostCenter": "RnD" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - }, - "location": "centralus" + } } ] } } - } + }, + "operationId": "ProjectEnvironmentTypes_List", + "title": "ProjectEnvironmentTypes_List" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Patch.json index c3fa3ed86e08..90ddc3b6b0d4 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Patch.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Patch.json @@ -1,11 +1,13 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "ContosoProj", - "environmentTypeName": "DevTest", "body": { + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + }, "properties": { "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", @@ -17,69 +19,69 @@ } } }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} - } - }, "tags": { "CostCenter": "RnD" } - } + }, + "environmentTypeName": "DevTest", + "projectName": "ContosoProj", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", "name": "DevTest", "type": "Microsoft.DevCenter/projects/environmentTypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", "properties": { - "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", - "status": "Enabled", - "provisioningState": "Succeeded", - "environmentCount": 1, "creatorRoleAssignment": { "roles": { "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" } } }, + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "environmentCount": 1, + "provisioningState": "Succeeded", + "status": "Enabled", "userRoleAssignments": { "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { "roles": { "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" } } } } }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1@contoso.com", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" }, "tags": { "CostCenter": "RnD" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - }, - "location": "centralus" + } } } - } + }, + "operationId": "ProjectEnvironmentTypes_Update", + "title": "ProjectEnvironmentTypes_Update" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Put.json index c8c47b0b7054..a481f14a8da0 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Put.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectEnvironmentTypes_Put.json @@ -1,19 +1,22 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "ContosoProj", - "environmentTypeName": "DevTest", "body": { + "location": "centralus", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + }, "properties": { - "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", - "status": "Enabled", "creatorRoleAssignment": { "roles": { "4cbf0b6c-e750-441c-98a7-10da8387e4d6": {} } }, + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", "userRoleAssignments": { "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { "roles": { @@ -22,60 +25,75 @@ } } }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} - } - }, "tags": { "CostCenter": "RnD" } - } + }, + "environmentTypeName": "DevTest", + "projectName": "ContosoProj", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", "name": "DevTest", "type": "Microsoft.DevCenter/projects/environmentTypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", "properties": { - "displayName": "DevTest", - "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", - "status": "Enabled", - "provisioningState": "Succeeded", - "environmentCount": 0, "creatorRoleAssignment": { "roles": { "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" } } }, + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "displayName": "DevTest", + "environmentCount": 0, + "provisioningState": "Succeeded", + "status": "Enabled", "userRoleAssignments": { "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { "roles": { "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" } } } } }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1@contoso.com", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" }, "tags": { - "hidden-title": "Dev", - "CostCenter": "RnD" - }, + "CostCenter": "RnD", + "hidden-title": "Dev" + } + } + }, + "201": { + "body": { + "name": "DevTest", + "type": "Microsoft.DevCenter/projects/environmentTypes", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", "identity": { "type": "UserAssigned", "userAssignedIdentities": { @@ -85,62 +103,47 @@ } } }, - "location": "centralus" - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/ContosoProj/environmentTypes/DevTest", - "name": "DevTest", - "type": "Microsoft.DevCenter/projects/environmentTypes", + "location": "centralus", "properties": { - "displayName": "DevTest", - "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", - "status": "Enabled", - "provisioningState": "Succeeded", - "environmentCount": 0, "creatorRoleAssignment": { "roles": { "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" } } }, + "deploymentTargetId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "displayName": "DevTest", + "environmentCount": 0, + "provisioningState": "Succeeded", + "status": "Enabled", "userRoleAssignments": { "e45e3m7c-176e-416a-b466-0c5ec8298f8a": { "roles": { "4cbf0b6c-e750-441c-98a7-10da8387e4d6": { - "roleName": "Developer", - "description": "Allows Developer access to project virtual machine resources." + "description": "Allows Developer access to project virtual machine resources.", + "roleName": "Developer" } } } } }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1@contoso.com", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" }, "tags": { - "hidden-title": "Dev", - "CostCenter": "RnD" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } - }, - "location": "centralus" + "CostCenter": "RnD", + "hidden-title": "Dev" + } } } - } + }, + "operationId": "ProjectEnvironmentTypes_CreateOrUpdate", + "title": "ProjectEnvironmentTypes_CreateOrUpdate" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Delete.json index bf138e82da62..4630a68c0338 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Delete.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Delete.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1", - "resourceGroupName": "rg1", "devCenterName": "Contoso", - "projectPolicyName": "DevOnlyResources" + "projectPolicyName": "DevOnlyResources", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1" }, "responses": { "202": { @@ -14,5 +14,7 @@ } }, "204": {} - } + }, + "operationId": "ProjectPolicies_Delete", + "title": "ProjectPolicies_Delete" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Get.json index a9c0b3ce5883..1591294ae52b 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Get.json @@ -1,18 +1,19 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1", - "resourceGroupName": "rg1", "devCenterName": "Contoso", - "projectPolicyName": "DevOnlyResources" + "projectPolicyName": "DevOnlyResources", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", "name": "DevOnlyResources", "type": "Microsoft.DevCenter/devcenters/projectpolicies", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", "properties": { + "provisioningState": "Succeeded", "resourcePolicies": [ { "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" @@ -20,18 +21,19 @@ ], "scopes": [ "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" - ], - "provisioningState": "Succeeded" + ] }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "ProjectPolicies_Get", + "title": "ProjectPolicies_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_ListByDevCenter.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_ListByDevCenter.json index 01bc5b9a6c88..4a884ef86118 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_ListByDevCenter.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_ListByDevCenter.json @@ -1,19 +1,20 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1", + "devCenterName": "Contoso", "resourceGroupName": "rg1", - "devCenterName": "Contoso" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", "name": "DevOnlyResources", "type": "Microsoft.DevCenter/devcenters/projectpolicies", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", "properties": { + "provisioningState": "Succeeded", "resourcePolicies": [ { "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" @@ -21,20 +22,21 @@ ], "scopes": [ "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" - ], - "provisioningState": "Succeeded" + ] }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "ProjectPolicies_ListByDevCenter", + "title": "ProjectPolicies_ListByDevCenter" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Patch.json index 6189ac3993ae..fb272c5bf2b2 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Patch.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Patch.json @@ -1,10 +1,6 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "projectPolicyName": "DevOnlyResources", "body": { "properties": { "resourcePolicies": [ @@ -13,15 +9,20 @@ } ] } - } + }, + "devCenterName": "Contoso", + "projectPolicyName": "DevOnlyResources", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", "name": "DevOnlyResources", "type": "Microsoft.DevCenter/devcenters/projectpolicies", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", "properties": { + "provisioningState": "Succeeded", "resourcePolicies": [ { "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" @@ -29,16 +30,15 @@ ], "scopes": [ "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" - ], - "provisioningState": "Succeeded" + ] }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } }, @@ -48,5 +48,7 @@ "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-02-01" } } - } + }, + "operationId": "ProjectPolicies_Update", + "title": "ProjectPolicies_Update" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Put.json index 42c6f2c45cbb..5228bd49b6f8 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Put.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/ProjectPolicies_Put.json @@ -1,10 +1,6 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1", - "resourceGroupName": "rg1", - "devCenterName": "Contoso", - "projectPolicyName": "DevOnlyResources", "body": { "properties": { "resourcePolicies": [ @@ -16,15 +12,20 @@ "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" ] } - } + }, + "devCenterName": "Contoso", + "projectPolicyName": "DevOnlyResources", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff1" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", "name": "DevOnlyResources", "type": "Microsoft.DevCenter/devcenters/projectpolicies", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", "properties": { + "provisioningState": "Succeeded", "resourcePolicies": [ { "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" @@ -32,25 +33,25 @@ ], "scopes": [ "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" - ], - "provisioningState": "Succeeded" + ] }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", "name": "DevOnlyResources", "type": "Microsoft.DevCenter/devcenters/projectpolicies", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/projectPolicies/DevOnlyResources", "properties": { + "provisioningState": "Succeeded", "resourcePolicies": [ { "resources": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/attachednetworks/network-westus3" @@ -58,18 +59,19 @@ ], "scopes": [ "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff1/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject" - ], - "provisioningState": "Succeeded" + ] }, "systemData": { + "createdAt": "2020-11-18T18:24:24.818Z", "createdBy": "User1", "createdByType": "User", - "createdAt": "2020-11-18T18:24:24.818Z", + "lastModifiedAt": "2020-11-18T18:24:24.818Z", "lastModifiedBy": "User1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:24:24.818Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "ProjectPolicies_CreateOrUpdate", + "title": "ProjectPolicies_CreateOrUpdate" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Delete.json index f619ee5592c1..a8c24e8c9f6b 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Delete.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Delete.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "projectName": "DevProject", "resourceGroupName": "rg1", - "projectName": "DevProject" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -13,5 +13,7 @@ } }, "204": {} - } + }, + "operationId": "Projects_Delete", + "title": "Projects_Delete" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Get.json index c911b6483de9..b1f656f9c88e 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Get.json @@ -1,41 +1,43 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "projectName": "DevProject", "resourceGroupName": "rg1", - "projectName": "DevProject" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", "name": "DevProject", "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "location": "centralus", "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", "description": "This is my first project.", - "displayName": "Dev", "catalogSettings": { "catalogItemSyncTypes": [ "EnvironmentDefinition" ] - } + }, + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "Dev" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" }, - "location": "centralus", "tags": { - "hidden-title": "Dev", - "CostCenter": "R&D" + "CostCenter": "R&D", + "hidden-title": "Dev" } } } - } + }, + "operationId": "Projects_Get", + "title": "Projects_Get" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_GetInheritedSettings.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_GetInheritedSettings.json index bc7e7a4307ad..92c45eebfea6 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_GetInheritedSettings.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_GetInheritedSettings.json @@ -1,20 +1,22 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "projectName": "Contoso", "resourceGroupName": "rg1", - "projectName": "Contoso" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "projectCatalogSettings": { - "catalogItemSyncEnableStatus": "Enabled" - }, "networkSettings": { "microsoftHostedNetworkEnableStatus": "Enabled" + }, + "projectCatalogSettings": { + "catalogItemSyncEnableStatus": "Enabled" } } } - } + }, + "operationId": "Projects_GetInheritedSettings", + "title": "Projects_GetInheritedSettings" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListByResourceGroup.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListByResourceGroup.json index cb955f506b5f..d3b588146fcb 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListByResourceGroup.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListByResourceGroup.json @@ -1,32 +1,32 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myproject", "name": "myproject", "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myproject", + "location": "centralus", "properties": { + "description": "This is my first project.", "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "description": "This is my first project.", "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" }, - "location": "centralus", "tags": { "CostCenter": "R&D" } @@ -34,5 +34,7 @@ ] } } - } + }, + "operationId": "Projects_ListByResourceGroup", + "title": "Projects_ListByResourceGroup" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListBySubscription.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListBySubscription.json index a11287f17e49..711abc7af4bc 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListBySubscription.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_ListBySubscription.json @@ -1,31 +1,31 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myproject", "name": "myproject", "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/myproject", + "location": "centralus", "properties": { + "description": "This is my first project.", "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "description": "This is my first project.", "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" }, - "location": "centralus", "tags": { "CostCenter": "R&D" } @@ -33,5 +33,7 @@ ] } } - } + }, + "operationId": "Projects_ListBySubscription", + "title": "Projects_ListBySubscription" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Patch.json index 5244222ac42e..def227584bb6 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Patch.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Patch.json @@ -1,54 +1,54 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", "body": { "properties": { "description": "This is my first project.", - "displayName": "Dev", "catalogSettings": { "catalogItemSyncTypes": [ "EnvironmentDefinition" ] - } + }, + "displayName": "Dev" }, "tags": { "CostCenter": "R&D" } - } + }, + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", "name": "myproject", "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "location": "centralus", "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", "description": "This is my first project. Very exciting.", - "displayName": "Dev", "catalogSettings": { "catalogItemSyncTypes": [ "EnvironmentDefinition" ] }, + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "displayName": "Dev", "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" }, - "location": "centralus", "tags": { - "displayName": "Dev", - "CostCenter": "R&D" + "CostCenter": "R&D", + "displayName": "Dev" } } }, @@ -58,5 +58,7 @@ "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" } } - } + }, + "operationId": "Projects_Update", + "title": "Projects_Update" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Put.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Put.json index f58085911224..d721e74dc80d 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Put.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_Put.json @@ -1,72 +1,74 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", "body": { + "location": "centralus", "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "description": "This is my first project.", + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "displayName": "Dev" }, - "location": "centralus", "tags": { "CostCenter": "R&D" } - } + }, + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", "name": "DevProject", "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "location": "centralus", "properties": { + "description": "This is my first project.", "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "description": "This is my first project.", "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" }, - "location": "centralus", "tags": { - "hidden-title": "Dev", - "CostCenter": "R&D" + "CostCenter": "R&D", + "hidden-title": "Dev" } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", "name": "DevProject", "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "location": "centralus", "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "description": "This is my first project.", + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" }, - "location": "centralus", "tags": { - "hidden-title": "Dev", - "CostCenter": "R&D" + "CostCenter": "R&D", + "hidden-title": "Dev" } } } - } + }, + "operationId": "Projects_CreateOrUpdate", + "title": "Projects_CreateOrUpdate" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings.json index 75eb5a1088ad..562249dc06a2 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings.json @@ -1,66 +1,82 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", "body": { + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} + } + }, + "location": "centralus", "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "description": "This is my first project.", "customizationSettings": { "identities": [ { - "identityType": "userAssignedIdentity", - "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1", + "identityType": "userAssignedIdentity" } ] - } + }, + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso" }, - "location": "centralus", "tags": { "CostCenter": "R&D" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": {} - } } - } + }, + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", "name": "DevProject", "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494" + } + } + }, + "location": "centralus", "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", "description": "This is my first project.", - "provisioningState": "Succeeded", "customizationSettings": { "identities": [ { - "identityType": "userAssignedIdentity", - "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1", + "identityType": "userAssignedIdentity" } ] - } + }, + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" }, - "location": "centralus", "tags": { "CostCenter": "R&D" - }, + } + } + }, + "201": { + "body": { + "name": "DevProject", + "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", "identity": { "type": "UserAssigned", "userAssignedIdentities": { @@ -69,49 +85,35 @@ "principalId": "2111b8fc-e123-485a-b408-bf1153189494" } } - } - } - }, - "201": { - "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", - "name": "DevProject", - "type": "Microsoft.DevCenter/projects", + }, + "location": "centralus", "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "description": "This is my first project.", - "maxDevBoxesPerUser": 3, "customizationSettings": { "identities": [ { - "identityType": "userAssignedIdentity", - "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" + "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1", + "identityType": "userAssignedIdentity" } ] - } + }, + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "maxDevBoxesPerUser": 3 }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" }, - "location": "centralus", "tags": { "CostCenter": "R&D" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1": { - "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" - } - } } } } - } + }, + "operationId": "Projects_CreateOrUpdate", + "title": "Projects_CreateOrUpdateWithCustomizationSettings" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings_SystemIdentity.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings_SystemIdentity.json index 8b1236b4ac9c..3ffcdfda09a8 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings_SystemIdentity.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithCustomizationSettings_SystemIdentity.json @@ -1,12 +1,12 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", "body": { + "identity": { + "type": "SystemAssigned" + }, + "location": "centralus", "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "description": "This is my first project.", "customizationSettings": { "identities": [ @@ -14,90 +14,92 @@ "identityType": "systemAssignedIdentity" } ] - } + }, + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso" }, - "location": "centralus", "tags": { "CostCenter": "R&D" - }, - "identity": { - "type": "SystemAssigned" } - } + }, + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", "name": "DevProject", "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "identity": { + "type": "SystemAssigned", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494", + "tenantId": "e35621a5-f615-4a20-940e-de8a84b15abc" + }, + "location": "centralus", "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", - "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", "description": "This is my first project.", - "provisioningState": "Succeeded", "customizationSettings": { "identities": [ { "identityType": "systemAssignedIdentity" } ] - } + }, + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", + "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" }, - "location": "centralus", "tags": { "CostCenter": "R&D" - }, - "identity": { - "type": "SystemAssigned", - "tenantId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", "name": "DevProject", "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "identity": { + "type": "SystemAssigned", + "principalId": "2111b8fc-e123-485a-b408-bf1153189494", + "tenantId": "e35621a5-f615-4a20-940e-de8a84b15abc" + }, + "location": "centralus", "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "description": "This is my first project.", - "maxDevBoxesPerUser": 3, "customizationSettings": { "identities": [ { "identityType": "systemAssignedIdentity" } ] - } + }, + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", + "maxDevBoxesPerUser": 3 }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" }, - "location": "centralus", "tags": { "CostCenter": "R&D" - }, - "identity": { - "type": "SystemAssigned", - "tenantId": "e35621a5-f615-4a20-940e-de8a84b15abc", - "principalId": "2111b8fc-e123-485a-b408-bf1153189494" } } } - } + }, + "operationId": "Projects_CreateOrUpdate", + "title": "Projects_CreateOrUpdateWithCustomizationSettings_SystemIdentity" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithMaxDevBoxPerUser.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithMaxDevBoxPerUser.json index 93d70f353585..2de33791bdd8 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithMaxDevBoxPerUser.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Projects_PutWithMaxDevBoxPerUser.json @@ -1,43 +1,43 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", "body": { + "location": "centralus", "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "description": "This is my first project.", + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "maxDevBoxesPerUser": 3 }, - "location": "centralus", "tags": { "CostCenter": "R&D" } - } + }, + "projectName": "DevProject", + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", "name": "DevProject", "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "location": "centralus", "properties": { + "description": "This is my first project.", "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "devCenterUri": "https://4c7c8922-78e9-4928-aa6f-75ba59355371-contoso.centralus.devcenter.azure.com", - "description": "This is my first project.", "maxDevBoxesPerUser": 3, "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" }, - "location": "centralus", "tags": { "CostCenter": "R&D" } @@ -45,28 +45,30 @@ }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", "name": "DevProject", "type": "Microsoft.DevCenter/projects", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject", + "location": "centralus", "properties": { - "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "description": "This is my first project.", + "devCenterId": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso", "maxDevBoxesPerUser": 3, "provisioningState": "Succeeded" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" }, - "location": "centralus", "tags": { "CostCenter": "R&D" } } } - } + }, + "operationId": "Projects_CreateOrUpdate", + "title": "Projects_CreateOrUpdateWithLimitsPerDev" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_CreateDailyShutdownPoolSchedule.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_CreateDailyShutdownPoolSchedule.json index f58ce6be118d..c0b2e831e8d7 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_CreateDailyShutdownPoolSchedule.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_CreateDailyShutdownPoolSchedule.json @@ -1,67 +1,69 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "DevProject", - "poolName": "DevPool", - "scheduleName": "autoShutdown", "body": { "properties": { - "state": "Enabled", "type": "StopDevBox", - "timeZone": "America/Los_Angeles", "frequency": "Daily", - "time": "17:30" + "state": "Enabled", + "time": "17:30", + "timeZone": "America/Los_Angeles" } - } + }, + "poolName": "DevPool", + "projectName": "DevProject", + "resourceGroupName": "rg1", + "scheduleName": "autoShutdown", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", "name": "autoShutdown", "type": "Microsoft.DevCenter/pools/schedules", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", "properties": { - "state": "Enabled", "type": "StopDevBox", - "timeZone": "America/Los_Angeles", "frequency": "Daily", + "provisioningState": "Succeeded", + "state": "Enabled", "time": "17:30", - "provisioningState": "Succeeded" + "timeZone": "America/Los_Angeles" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } }, "201": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", "name": "autoShutdown", "type": "Microsoft.DevCenter/pools/schedules", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", "properties": { - "state": "Enabled", "type": "StopDevBox", - "timeZone": "America/Los_Angeles", "frequency": "Daily", + "provisioningState": "Accepted", + "state": "Enabled", "time": "17:30", - "provisioningState": "Accepted" + "timeZone": "America/Los_Angeles" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "Schedules_CreateOrUpdate", + "title": "Schedules_CreateDailyShutdownPoolSchedule" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Delete.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Delete.json index e7f59ab85d21..8cf1b499016a 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Delete.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Delete.json @@ -1,11 +1,11 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "TestProject", "poolName": "DevPool", - "scheduleName": "autoShutdown" + "projectName": "TestProject", + "resourceGroupName": "rg1", + "scheduleName": "autoShutdown", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "202": { @@ -15,5 +15,7 @@ } }, "204": {} - } + }, + "operationId": "Schedules_Delete", + "title": "Schedules_Delete" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Get.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Get.json index e484a703963b..e388b4f08a06 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Get.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Get.json @@ -1,35 +1,37 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "TestProject", "poolName": "DevPool", - "scheduleName": "autoShutdown" + "projectName": "TestProject", + "resourceGroupName": "rg1", + "scheduleName": "autoShutdown", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", "name": "autoShutdown", "type": "Microsoft.DevCenter/pools/schedules", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", "properties": { - "state": "Enabled", "type": "StopDevBox", - "timeZone": "America/Los_Angeles", "frequency": "Daily", + "provisioningState": "Succeeded", + "state": "Enabled", "time": "17:30", - "provisioningState": "Succeeded" + "timeZone": "America/Los_Angeles" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } } - } + }, + "operationId": "Schedules_Get", + "title": "Schedules_GetByPool" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_ListByPool.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_ListByPool.json index 4cab442fd1eb..361f59bccdbb 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_ListByPool.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_ListByPool.json @@ -1,38 +1,40 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", + "poolName": "DevPool", "projectName": "TestProject", - "poolName": "DevPool" + "resourceGroupName": "rg1", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", "name": "autoShutdown", "type": "Microsoft.DevCenter/pools/schedules", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", "properties": { - "state": "Enabled", "type": "StopDevBox", - "timeZone": "America/Los_Angeles", "frequency": "Daily", + "provisioningState": "Succeeded", + "state": "Enabled", "time": "17:30", - "provisioningState": "Succeeded" + "timeZone": "America/Los_Angeles" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } ] } } - } + }, + "operationId": "Schedules_ListByPool", + "title": "Schedules_ListByPool" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Patch.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Patch.json index d0cbac447133..fcbcda38a842 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Patch.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Schedules_Patch.json @@ -1,38 +1,38 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "resourceGroupName": "rg1", - "projectName": "TestProject", - "poolName": "DevPool", - "scheduleName": "autoShutdown", "body": { "properties": { "time": "18:00" } - } + }, + "poolName": "DevPool", + "projectName": "TestProject", + "resourceGroupName": "rg1", + "scheduleName": "autoShutdown", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", "name": "autoShutdown", "type": "Microsoft.DevCenter/pools/schedules", + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/TestProject/pools/DevPool/schedules/autoShutdown", "properties": { - "state": "Enabled", "type": "StopDevBox", - "timeZone": "America/Los_Angeles", "frequency": "Daily", + "provisioningState": "Succeeded", + "state": "Enabled", "time": "17:30", - "provisioningState": "Succeeded" + "timeZone": "America/Los_Angeles" }, "systemData": { + "createdAt": "2020-11-18T18:00:36.993Z", "createdBy": "user1", "createdByType": "User", - "createdAt": "2020-11-18T18:00:36.993Z", + "lastModifiedAt": "2020-11-18T18:30:36.993Z", "lastModifiedBy": "user1", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-11-18T18:30:36.993Z" + "lastModifiedByType": "User" } } }, @@ -42,5 +42,7 @@ "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2025-07-01-preview" } } - } + }, + "operationId": "Schedules_Update", + "title": "Schedules_Update" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListByProject.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListByProject.json index 845cb7616113..c3ab2ae2347d 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListByProject.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListByProject.json @@ -1,32 +1,34 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", + "projectName": "myProject", "resourceGroupName": "rg1", - "projectName": "myProject" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "resourceType": "projects/pools", "name": "Large", - "tier": "Premium", "locations": [ "CentralUS" - ] + ], + "resourceType": "projects/pools", + "tier": "Premium" }, { - "resourceType": "projects/pools", "name": "Medium", - "tier": "Standard", "locations": [ "CentralUS" - ] + ], + "resourceType": "projects/pools", + "tier": "Standard" } ] } } - } + }, + "operationId": "Skus_ListByProject", + "title": "Skus_ListByProject" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListBySubscription.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListBySubscription.json index d43bab2e0d02..51b07f2d1e94 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListBySubscription.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Skus_ListBySubscription.json @@ -1,30 +1,32 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff" + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { "body": { "value": [ { - "resourceType": "projects/pools", "name": "Large", - "tier": "Premium", "locations": [ "CentralUS" - ] + ], + "resourceType": "projects/pools", + "tier": "Premium" }, { - "resourceType": "projects/pools", "name": "Medium", - "tier": "Standard", "locations": [ "CentralUS" - ] + ], + "resourceType": "projects/pools", + "tier": "Standard" } ] } } - } + }, + "operationId": "Skus_ListBySubscription", + "title": "Skus_ListBySubscription" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Usages_ListByLocation.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Usages_ListByLocation.json index fddfb1ed2043..4b7de2e306b0 100644 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Usages_ListByLocation.json +++ b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/examples/Usages_ListByLocation.json @@ -1,8 +1,8 @@ { "parameters": { "api-version": "2025-07-01-preview", - "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58ffff", - "location": "westus" + "location": "westus", + "subscriptionId": "0ac520ee-14c0-480f-b6c9-0a90c58fffff" }, "responses": { "200": { @@ -10,25 +10,27 @@ "nextLink": null, "value": [ { - "currentValue": 2, - "limit": 8, - "unit": "Count", "name": { "value": "devcenters" }, - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/Microsoft.DevCenter/locations/westus/quotas/devcenters" + "currentValue": 2, + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/Microsoft.DevCenter/locations/westus/quotas/devcenters", + "limit": 8, + "unit": "Count" }, { - "currentValue": 5, - "limit": 30, - "unit": "Count", "name": { "value": "projects" }, - "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/Microsoft.DevCenter/locations/westus/quotas/projects" + "currentValue": 5, + "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/Microsoft.DevCenter/locations/westus/quotas/projects", + "limit": 30, + "unit": "Count" } ] } } - } + }, + "operationId": "Usages_ListByLocation", + "title": "listUsages" } diff --git a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/vdi.json b/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/vdi.json deleted file mode 100644 index f3ecc803e030..000000000000 --- a/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2025-07-01-preview/vdi.json +++ /dev/null @@ -1,2091 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2025-07-01-preview", - "title": "DevCenter", - "description": "DevCenter Management API" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/skus": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { - "tags": [ - "SKUs" - ], - "description": "Lists the Microsoft.DevCenter SKUs available in a subscription", - "operationId": "Skus_ListBySubscription", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/SkuListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Skus_ListBySubscription": { - "$ref": "./examples/Skus_ListBySubscription.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/ProjectNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { - "tags": [ - "Pools" - ], - "description": "Lists pools for a project", - "operationId": "Pools_ListByProject", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/PoolListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Pools_ListByProject": { - "$ref": "./examples/Pools_List.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/PoolNameParameter" - } - ], - "get": { - "tags": [ - "Pools" - ], - "description": "Gets a machine pool", - "operationId": "Pools_Get", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Pool" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Pools_Get": { - "$ref": "./examples/Pools_Get.json" - }, - "Pools_GetUnhealthyStatus": { - "$ref": "./examples/Pools_GetUnhealthyStatus.json" - } - } - }, - "put": { - "tags": [ - "Pools" - ], - "description": "Creates or updates a machine pool", - "operationId": "Pools_CreateOrUpdate", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Represents a machine pool", - "required": true, - "schema": { - "$ref": "#/definitions/Pool" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Pool" - } - }, - "201": { - "description": "Created. Operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/Pool" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Pools_CreateOrUpdate": { - "$ref": "./examples/Pools_Put.json" - }, - "Pools_CreateOrUpdateWithManagedNetwork": { - "$ref": "./examples/Pools_PutWithManagedNetwork.json" - }, - "Pools_CreateOrUpdateWithValueDevBoxDefinition": { - "$ref": "./examples/Pools_PutWithValueDevBoxDefinition.json" - } - } - }, - "patch": { - "tags": [ - "Pools" - ], - "description": "Partially updates a machine pool", - "operationId": "Pools_Update", - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Represents a machine pool", - "required": true, - "schema": { - "$ref": "#/definitions/PoolUpdate" - } - } - ], - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Pool" - } - }, - "202": { - "description": "Accepted. Operation will complete asynchronously", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Pools_Update": { - "$ref": "./examples/Pools_Patch.json" - } - } - }, - "delete": { - "tags": [ - "Pools" - ], - "description": "Deletes a machine pool", - "operationId": "Pools_Delete", - "parameters": [], - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Pools_Delete": { - "$ref": "./examples/Pools_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/runHealthChecks": { - "post": { - "tags": [ - "Pools" - ], - "description": "Triggers a refresh of the pool status.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/PoolNameParameter" - } - ], - "operationId": "Pools_RunHealthChecks", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Initiating pool status refresh.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Pools_RefreshStatus": { - "$ref": "./examples/Pools_RunHealthChecks.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/PoolNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { - "tags": [ - "Schedules" - ], - "description": "Lists schedules for a pool", - "operationId": "Schedules_ListByPool", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ScheduleListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Schedules_ListByPool": { - "$ref": "./examples/Schedules_ListByPool.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/ProjectNameParameter" - }, - { - "$ref": "#/parameters/PoolNameParameter" - }, - { - "$ref": "#/parameters/ScheduleNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { - "tags": [ - "Schedules" - ], - "description": "Gets a schedule resource.", - "operationId": "Schedules_Get", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Schedules_GetByPool": { - "$ref": "./examples/Schedules_Get.json" - } - } - }, - "put": { - "tags": [ - "Schedules" - ], - "description": "Creates or updates a Schedule.", - "operationId": "Schedules_CreateOrUpdate", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Represents a scheduled task", - "required": true, - "schema": { - "$ref": "#/definitions/Schedule" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "201": { - "description": "Created. Operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Schedules_CreateDailyShutdownPoolSchedule": { - "$ref": "./examples/Schedules_CreateDailyShutdownPoolSchedule.json" - } - } - }, - "patch": { - "tags": [ - "Schedules" - ], - "description": "Partially updates a Scheduled.", - "operationId": "Schedules_Update", - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Represents a scheduled task.", - "required": true, - "schema": { - "$ref": "#/definitions/ScheduleUpdate" - } - } - ], - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Schedule" - } - }, - "202": { - "description": "Accepted. Operation will complete asynchronously", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Schedules_Update": { - "$ref": "./examples/Schedules_Patch.json" - } - } - }, - "delete": { - "tags": [ - "Schedules" - ], - "description": "Deletes a Scheduled.", - "operationId": "Schedules_Delete", - "parameters": [], - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Schedules_Delete": { - "$ref": "./examples/Schedules_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/networkConnections": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { - "tags": [ - "Network Connections" - ], - "description": "Lists network connections in a subscription", - "operationId": "NetworkConnections_ListBySubscription", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/NetworkConnectionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_ListBySubscription": { - "$ref": "./examples/NetworkConnections_ListBySubscription.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - } - ], - "get": { - "tags": [ - "Network Connections" - ], - "description": "Lists network connections in a resource group", - "operationId": "NetworkConnections_ListByResourceGroup", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/NetworkConnectionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_ListByResourceGroup": { - "$ref": "./examples/NetworkConnections_ListByResourceGroup.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkConnectionName" - } - ], - "get": { - "tags": [ - "Network Connections" - ], - "description": "Gets a network connection resource", - "operationId": "NetworkConnections_Get", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/NetworkConnection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_Get": { - "$ref": "./examples/NetworkConnections_Get.json" - } - } - }, - "put": { - "tags": [ - "Network Connections" - ], - "description": "Creates or updates a Network Connections resource", - "operationId": "NetworkConnections_CreateOrUpdate", - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Represents network connection", - "required": true, - "schema": { - "$ref": "#/definitions/NetworkConnection" - } - } - ], - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "200": { - "description": "Accepted. Operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/NetworkConnection" - } - }, - "201": { - "description": "Created. Operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/NetworkConnection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_CreateOrUpdate": { - "$ref": "./examples/NetworkConnections_Put.json" - } - } - }, - "patch": { - "tags": [ - "Network Connections" - ], - "description": "Partially updates a Network Connection", - "operationId": "NetworkConnections_Update", - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Represents network connection", - "required": true, - "schema": { - "$ref": "#/definitions/NetworkConnectionUpdate" - } - } - ], - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/NetworkConnection" - } - }, - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_Update": { - "$ref": "./examples/NetworkConnections_Patch.json" - } - } - }, - "delete": { - "tags": [ - "Network Connections" - ], - "description": "Deletes a Network Connections resource", - "operationId": "NetworkConnections_Delete", - "parameters": [], - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Operation will complete asynchronously.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "204": { - "description": "Resource does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_Delete": { - "$ref": "./examples/NetworkConnections_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/healthChecks": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - }, - { - "$ref": "#/parameters/NetworkConnectionName" - } - ], - "get": { - "tags": [ - "Network Connections" - ], - "description": "Lists health check status details", - "operationId": "NetworkConnections_ListHealthDetails", - "parameters": [], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/HealthCheckStatusDetailsListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_ListHealthDetails": { - "$ref": "./examples/NetworkConnections_ListHealthDetails.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/healthChecks/latest": { - "get": { - "tags": [ - "Network Connections" - ], - "description": "Gets health check status details.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkConnectionName" - } - ], - "operationId": "NetworkConnections_GetHealthDetails", - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/HealthCheckStatusDetails" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_GetHealthDetails": { - "$ref": "./examples/NetworkConnections_GetHealthDetails.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/runHealthChecks": { - "post": { - "tags": [ - "Network Connection" - ], - "description": "Triggers a new health check run. The execution and health check result can be tracked via the network Connection health check details", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/NetworkConnectionName" - } - ], - "operationId": "NetworkConnections_RunHealthChecks", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "responses": { - "202": { - "description": "Accepted. Initiating health checks.", - "headers": { - "Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "NetworkConnections_RunHealthChecks": { - "$ref": "./examples/NetworkConnections_RunHealthChecks.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/outboundNetworkDependenciesEndpoints": { - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "commonDefinitions.json#/parameters/TopParameter" - }, - { - "$ref": "#/parameters/NetworkConnectionName" - } - ], - "get": { - "tags": [ - "Network Connection" - ], - "operationId": "NetworkConnections_ListOutboundNetworkDependenciesEndpoints", - "description": "Lists the endpoints that agents may call as part of Dev Box service administration. These FQDNs should be allowed for outbound access in order for the Dev Box service to function.", - "parameters": [], - "x-ms-examples": { - "ListOutboundNetworkDependencies": { - "$ref": "./examples/NetworkConnections_ListOutboundNetworkDependenciesEndpoints.json" - } - }, - "responses": { - "200": { - "description": "The operation was successful. The response contains a list of outbound network dependencies.", - "schema": { - "$ref": "#/definitions/OutboundEnvironmentEndpointCollection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "SkuListResult": { - "description": "Results of the Microsoft.DevCenter SKU list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "commonDefinitions.json#/definitions/DevCenterSku" - }, - "x-ms-identifiers": [], - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "Pool": { - "description": "A pool of Virtual Machines.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "description": "Pool properties", - "x-ms-client-flatten": true, - "$ref": "#/definitions/PoolProperties" - } - } - }, - "PoolUpdateProperties": { - "description": "Properties of a Pool. These properties can be updated after the resource has been created.", - "type": "object", - "properties": { - "devBoxDefinitionType": { - "description": "Indicates if the pool is created from an existing Dev Box Definition or if one is provided directly.", - "$ref": "#/definitions/PoolDevBoxDefinitionType" - }, - "devBoxDefinitionName": { - "description": "Name of a Dev Box definition in parent Project of this Pool. Will be ignored if devBoxDefinitionType is Value.", - "type": "string" - }, - "devBoxDefinition": { - "description": "A definition of the machines that are created from this Pool. Will be ignored if devBoxDefinitionType is Reference or not provided.", - "$ref": "#/definitions/PoolDevBoxDefinition" - }, - "networkConnectionName": { - "description": "Name of a Network Connection in parent Project of this Pool", - "type": "string" - }, - "licenseType": { - "description": "Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.", - "$ref": "#/definitions/LicenseType" - }, - "localAdministrator": { - "description": "Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.", - "$ref": "#/definitions/LocalAdminStatus" - }, - "stopOnDisconnect": { - "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", - "$ref": "#/definitions/StopOnDisconnectConfiguration" - }, - "stopOnNoConnect": { - "description": "Stop on no connect configuration settings for Dev Boxes created in this pool.", - "$ref": "#/definitions/StopOnNoConnectConfiguration" - }, - "singleSignOnStatus": { - "description": "Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on be enabled on the tenant.", - "$ref": "#/definitions/SingleSignOnStatus" - }, - "displayName": { - "type": "string", - "description": "The display name of the pool." - }, - "virtualNetworkType": { - "description": "Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network.", - "$ref": "#/definitions/VirtualNetworkType" - }, - "managedVirtualNetworkRegions": { - "type": "array", - "description": "The regions of the managed virtual network (required when managedNetworkType is Managed).", - "items": { - "type": "string" - } - }, - "activeHoursConfiguration": { - "description": "Active hours configuration settings for Dev Boxes created in this pool.", - "$ref": "#/definitions/ActiveHoursConfiguration" - }, - "devBoxTunnelEnableStatus": { - "description": "Indicates whether Dev Box Tunnel is enabled for a the pool.", - "$ref": "#/definitions/DevBoxTunnelEnableStatus" - } - } - }, - "PoolProperties": { - "type": "object", - "description": "Properties of a Pool", - "allOf": [ - { - "$ref": "#/definitions/PoolUpdateProperties" - } - ], - "properties": { - "healthStatus": { - "description": "Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes.", - "$ref": "#/definitions/HealthStatus", - "readOnly": true - }, - "healthStatusDetails": { - "description": "Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool is in a non-healthy state", - "type": "array", - "items": { - "$ref": "#/definitions/HealthStatusDetail" - }, - "x-ms-identifiers": [ - "code" - ], - "readOnly": true - }, - "devBoxCount": { - "description": "Indicates the number of provisioned Dev Boxes in this pool.", - "type": "integer", - "format": "int32", - "readOnly": true - }, - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - } - }, - "required": [ - "devBoxDefinitionName", - "networkConnectionName", - "licenseType", - "localAdministrator" - ] - }, - "PoolDevBoxDefinition": { - "description": "Represents a definition for a Developer Machine.", - "type": "object", - "properties": { - "imageReference": { - "$ref": "#/definitions/ImageReference", - "description": "Image reference information." - }, - "sku": { - "description": "The SKU for Dev Boxes created from the Pool.", - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Sku" - }, - "activeImageReference": { - "$ref": "#/definitions/ImageReference", - "description": "Image reference information for the currently active image (only populated during updates).", - "readOnly": true - } - } - }, - "HealthStatus": { - "description": "Health status indicating whether a pool is available to create Dev Boxes.", - "enum": [ - "Unknown", - "Pending", - "Healthy", - "Warning", - "Unhealthy" - ], - "type": "string", - "x-ms-enum": { - "name": "HealthStatus", - "modelAsString": true - } - }, - "HealthStatusDetail": { - "type": "object", - "description": "Pool health status detail.", - "properties": { - "code": { - "type": "string", - "description": "An identifier for the issue.", - "readOnly": true - }, - "message": { - "type": "string", - "description": "A message describing the issue, intended to be suitable for display in a user interface", - "readOnly": true - } - } - }, - "LicenseType": { - "description": "License Types", - "enum": [ - "Windows_Client" - ], - "type": "string", - "x-ms-enum": { - "name": "LicenseType", - "modelAsString": true - } - }, - "LocalAdminStatus": { - "description": "Local Administrator enable or disable status. Indicates whether owners of Dev Boxes are added as local administrators on the Dev Box.", - "type": "string", - "enum": [ - "Disabled", - "Enabled" - ], - "x-ms-enum": { - "name": "LocalAdminStatus", - "modelAsString": true - } - }, - "SingleSignOnStatus": { - "description": "SingleSignOn (SSO) enable or disable status. Indicates whether Dev Boxes in the Pool will have SSO enabled or disabled.", - "type": "string", - "enum": [ - "Disabled", - "Enabled" - ], - "x-ms-enum": { - "name": "SingleSignOnStatus", - "modelAsString": true - } - }, - "VirtualNetworkType": { - "description": "Indicates a pool uses a Virtual Network managed by Microsoft (Managed), or a customer provided Network (Unmanaged).", - "type": "string", - "enum": [ - "Managed", - "Unmanaged" - ], - "x-ms-enum": { - "name": "VirtualNetworkType", - "modelAsString": true - } - }, - "PoolDevBoxDefinitionType": { - "description": "Indicates if the pool is created from an existing Dev Box Definition or if one is provided directly.", - "type": "string", - "enum": [ - "Reference", - "Value" - ], - "x-ms-enum": { - "name": "PoolDevBoxDefinitionType", - "modelAsString": true - } - }, - "StopOnDisconnectConfiguration": { - "type": "object", - "description": "Stop on disconnect configuration settings for Dev Boxes created in this pool.", - "properties": { - "status": { - "description": "Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.", - "$ref": "#/definitions/StopOnDisconnectEnableStatus" - }, - "gracePeriodMinutes": { - "description": "The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.", - "type": "integer", - "format": "int32" - } - } - }, - "StopOnDisconnectEnableStatus": { - "description": "Stop on disconnect enable or disable status. Indicates whether stop on disconnect to is either enabled or disabled.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "StopOnDisconnectEnableStatus", - "modelAsString": true - } - }, - "StopOnNoConnectConfiguration": { - "type": "object", - "description": "Stop on no connect configuration settings for Dev Boxes created in this pool.", - "properties": { - "status": { - "description": "Enables the feature to stop a started Dev Box when it has not been connected to, once the grace period has lapsed.", - "$ref": "#/definitions/StopOnNoConnectEnableStatus" - }, - "gracePeriodMinutes": { - "description": "The specified time in minutes to wait before stopping a Dev Box if no connection is made.", - "type": "integer", - "format": "int32" - } - } - }, - "StopOnNoConnectEnableStatus": { - "description": "Stop on no connect enable or disable status.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "StopOnNoConnectEnableStatus", - "modelAsString": true - } - }, - "PoolListResult": { - "description": "Results of the machine pool list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/Pool" - }, - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "PoolUpdate": { - "description": "The pool properties for partial update. Properties not provided in the update request will not be changed.", - "type": "object", - "allOf": [ - { - "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/PoolUpdateProperties", - "description": "Properties of a pool to be updated." - } - } - }, - "ImageReference": { - "type": "object", - "description": "Image reference information", - "properties": { - "id": { - "description": "Image ID, or Image version ID. When Image ID is provided, its latest version will be used.", - "type": "string" - }, - "exactVersion": { - "type": "string", - "readOnly": true, - "description": "The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual version in use." - } - } - }, - "ImageValidationStatus": { - "description": "Image validation status", - "enum": [ - "Unknown", - "Pending", - "Succeeded", - "Failed", - "TimedOut" - ], - "type": "string", - "x-ms-enum": { - "name": "ImageValidationStatus", - "modelAsString": true - } - }, - "ImageValidationErrorDetails": { - "type": "object", - "description": "Image validation error details", - "properties": { - "code": { - "type": "string", - "description": "An identifier for the error." - }, - "message": { - "type": "string", - "description": "A message describing the error." - } - } - }, - "CatalogResourceValidationStatus": { - "description": "Catalog resource validation status", - "enum": [ - "Unknown", - "Pending", - "Succeeded", - "Failed" - ], - "type": "string", - "x-ms-enum": { - "name": "CatalogResourceValidationStatus", - "modelAsString": true - } - }, - "CatalogResourceValidationErrorDetails": { - "type": "object", - "description": "List of validator error details. Populated when changes are made to the resource or its dependent resources that impact the validity of the Catalog resource.", - "properties": { - "errors": { - "description": "Errors associated with resources synchronized from the catalog.", - "type": "array", - "items": { - "$ref": "#/definitions/CatalogErrorDetails" - }, - "x-ms-identifiers": [], - "readOnly": true - } - } - }, - "CatalogErrorDetails": { - "type": "object", - "description": "Catalog error details", - "properties": { - "code": { - "type": "string", - "description": "An identifier for the error." - }, - "message": { - "type": "string", - "description": "A message describing the error." - } - } - }, - "DevBoxTunnelEnableStatus": { - "description": "Indicates whether Dev Box Tunnel is enabled.", - "enum": [ - "Disabled", - "Enabled" - ], - "type": "string", - "x-ms-enum": { - "name": "DevBoxTunnelEnableStatus", - "modelAsString": true - } - }, - "NetworkConnection": { - "type": "object", - "description": "Network related settings", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "description": "Properties of a Network Connection", - "x-ms-client-flatten": true, - "$ref": "#/definitions/NetworkProperties" - } - } - }, - "NetworkConnectionUpdate": { - "description": "The network connection properties for partial update. Properties not provided in the update request will not be changed.", - "type": "object", - "allOf": [ - { - "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/NetworkConnectionUpdateProperties", - "description": "Properties of a network connection resource to be updated." - } - } - }, - "NetworkConnectionUpdateProperties": { - "description": "Properties of network connection. These properties can be updated after the resource has been created.", - "type": "object", - "properties": { - "subnetId": { - "description": "The subnet to attach Virtual Machines to", - "type": "string" - }, - "domainName": { - "description": "Active Directory domain name", - "type": "string" - }, - "organizationUnit": { - "description": "Active Directory domain Organization Unit (OU)", - "type": "string" - }, - "domainUsername": { - "description": "The username of an Active Directory account (user or service account) that has permissions to create computer objects in Active Directory. Required format: admin@contoso.com.", - "type": "string" - }, - "domainPassword": { - "description": "The password for the account used to join domain", - "type": "string", - "x-ms-secret": true - } - } - }, - "NetworkProperties": { - "description": "Network properties", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/NetworkConnectionUpdateProperties" - } - ], - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - }, - "healthCheckStatus": { - "description": "Overall health status of the network connection. Health checks are run on creation, update, and periodically to validate the network connection.", - "$ref": "#/definitions/HealthCheckStatus", - "readOnly": true - }, - "networkingResourceGroupName": { - "description": "The name for resource group where NICs will be placed.", - "type": "string", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "domainJoinType": { - "description": "AAD Join type.", - "$ref": "#/definitions/DomainJoinType", - "x-ms-mutability": [ - "read", - "create" - ] - } - }, - "required": [ - "subnetId", - "domainJoinType" - ] - }, - "NetworkConnectionListResult": { - "description": "Result of the network connection list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/NetworkConnection" - }, - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "DomainJoinType": { - "description": "Active Directory join type", - "enum": [ - "HybridAzureADJoin", - "AzureADJoin", - "None" - ], - "type": "string", - "x-ms-enum": { - "name": "DomainJoinType", - "modelAsString": true - } - }, - "HealthCheckStatus": { - "description": "Health check status values", - "enum": [ - "Unknown", - "Pending", - "Running", - "Passed", - "Warning", - "Failed", - "Informational" - ], - "type": "string", - "x-ms-enum": { - "name": "HealthCheckStatus", - "modelAsString": true - } - }, - "HealthCheckStatusDetails": { - "description": "Health Check details.", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Health check status details properties.", - "$ref": "#/definitions/HealthCheckStatusDetailsProperties" - } - } - }, - "HealthCheckStatusDetailsProperties": { - "description": "Health Check properties.", - "type": "object", - "properties": { - "startDateTime": { - "type": "string", - "description": "Start time of last execution of the health checks.", - "readOnly": true, - "format": "date-time" - }, - "endDateTime": { - "type": "string", - "description": "End time of last execution of the health checks.", - "readOnly": true, - "format": "date-time" - }, - "healthChecks": { - "description": "Details for each health check item.", - "type": "array", - "items": { - "$ref": "#/definitions/HealthCheck" - }, - "x-ms-identifiers": [], - "readOnly": true - } - } - }, - "HealthCheck": { - "description": "An individual health check item", - "type": "object", - "properties": { - "status": { - "description": "The status of the health check item.", - "$ref": "#/definitions/HealthCheckStatus", - "readOnly": true - }, - "displayName": { - "description": "The display name of this health check item.", - "type": "string", - "readOnly": true - }, - "startDateTime": { - "description": "Start time of health check item.", - "type": "string", - "readOnly": true, - "format": "date-time" - }, - "endDateTime": { - "description": "End time of the health check item.", - "type": "string", - "readOnly": true, - "format": "date-time" - }, - "errorType": { - "description": "The type of error that occurred during this health check.", - "type": "string", - "readOnly": true - }, - "recommendedAction": { - "description": "The recommended action to fix the corresponding error.", - "type": "string", - "readOnly": true - }, - "additionalDetails": { - "description": "Additional details about the health check or the recommended action.", - "type": "string", - "readOnly": true - } - } - }, - "HealthCheckStatusDetailsListResult": { - "description": "Result of the network health check list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/HealthCheckStatusDetails" - }, - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "OutboundEnvironmentEndpointCollection": { - "type": "object", - "properties": { - "value": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/OutboundEnvironmentEndpoint" - }, - "x-ms-identifiers": [ - "category" - ], - "description": "The collection of outbound network dependency endpoints returned by the listing operation." - }, - "nextLink": { - "type": "string", - "description": "The continuation token." - } - }, - "description": "Values returned by the List operation." - }, - "OutboundEnvironmentEndpoint": { - "type": "object", - "properties": { - "category": { - "type": "string", - "readOnly": true, - "description": "The type of service that the agent connects to." - }, - "endpoints": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/EndpointDependency" - }, - "x-ms-identifiers": [ - "domainName" - ], - "description": "The endpoints for this service for which the agent requires outbound access." - } - }, - "description": "A collection of related endpoints from the same service for which the agent requires outbound access." - }, - "EndpointDependency": { - "type": "object", - "properties": { - "domainName": { - "type": "string", - "readOnly": true, - "description": "The domain name of the dependency. Domain names may be fully qualified or may contain a * wildcard." - }, - "description": { - "type": "string", - "readOnly": true, - "description": "Human-readable supplemental information about the dependency and when it is applicable." - }, - "endpointDetails": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/EndpointDetail" - }, - "x-ms-identifiers": [], - "description": "The list of connection details for this endpoint." - } - }, - "description": "A domain name and connection details used to access a dependency." - }, - "EndpointDetail": { - "type": "object", - "properties": { - "port": { - "type": "integer", - "format": "int32", - "readOnly": true, - "description": "The port an endpoint is connected to." - } - }, - "description": "Details about the connection between the Batch service and the endpoint." - }, - "Schedule": { - "type": "object", - "description": "Represents a Schedule to execute a task.", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" - } - ], - "properties": { - "properties": { - "description": "Properties of a Schedule resource", - "x-ms-client-flatten": true, - "$ref": "#/definitions/ScheduleProperties" - } - } - }, - "ScheduleUpdate": { - "description": "The schedule properties for partial update. Properties not provided in the update request will not be changed.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ScheduleUpdateProperties", - "description": "Properties of a schedule resource to be updated." - } - } - }, - "ScheduleUpdateProperties": { - "description": "Updatable properties of a Schedule.", - "type": "object", - "allOf": [ - { - "$ref": "commonDefinitions.json#/definitions/TrackedResourceUpdate" - } - ], - "properties": { - "type": { - "description": "Supported type this scheduled task represents.", - "$ref": "#/definitions/ScheduledType" - }, - "frequency": { - "description": "The frequency of this scheduled task.", - "$ref": "#/definitions/ScheduledFrequency" - }, - "time": { - "description": "The target time to trigger the action. The format is HH:MM.", - "type": "string" - }, - "timeZone": { - "description": "The IANA timezone id at which the schedule should execute.", - "type": "string" - }, - "state": { - "description": "Indicates whether or not this scheduled task is enabled.", - "$ref": "#/definitions/ScheduleEnableStatus" - } - } - }, - "ScheduleProperties": { - "description": "The Schedule properties defining when and what to execute.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ScheduleUpdateProperties" - } - ], - "properties": { - "provisioningState": { - "description": "The provisioning state of the resource.", - "$ref": "commonDefinitions.json#/definitions/ProvisioningState", - "readOnly": true - } - }, - "required": [ - "type", - "frequency", - "timeZone", - "time" - ] - }, - "ScheduleListResult": { - "description": "Result of the schedule list operation.", - "type": "object", - "properties": { - "value": { - "description": "Current page of results.", - "type": "array", - "items": { - "$ref": "#/definitions/Schedule" - }, - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "ScheduledType": { - "description": "The supported types for a scheduled task.", - "enum": [ - "StopDevBox" - ], - "type": "string", - "x-ms-enum": { - "name": "ScheduledType", - "modelAsString": true - } - }, - "ScheduledFrequency": { - "description": "The frequency of task execution.", - "enum": [ - "Daily" - ], - "type": "string", - "x-ms-enum": { - "name": "ScheduledFrequency", - "modelAsString": true - } - }, - "ScheduleEnableStatus": { - "description": "Schedule enable or disable status. Indicates whether the schedule applied to is either enabled or disabled.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "ScheduleEnableStatus", - "modelAsString": true - } - }, - "ActiveHoursConfiguration": { - "type": "object", - "description": "Active hours configuration.", - "properties": { - "keepAwakeEnableStatus": { - "$ref": "#/definitions/KeepAwakeEnableStatus", - "description": "Enables or disables whether the Dev Box should be kept awake during active hours." - }, - "autoStartEnableStatus": { - "$ref": "#/definitions/AutoStartEnableStatus", - "description": "Enables or disables whether the Dev Box should be automatically started at commencement of active hours." - }, - "defaultTimeZone": { - "type": "string", - "description": "The default IANA timezone id of the active hours." - }, - "defaultStartTimeHour": { - "type": "integer", - "format": "int32", - "description": "The default start time of the active hours." - }, - "defaultEndTimeHour": { - "type": "integer", - "format": "int32", - "description": "The default end time of the active hours" - }, - "defaultDaysOfWeek": { - "type": "array", - "items": { - "$ref": "#/definitions/DaysOfWeek" - }, - "description": "The days of the week that active hours features will be enabled. This serves as a default that can be updated by each individual user." - }, - "daysOfWeekLimit": { - "type": "integer", - "format": "int32", - "description": "The maximum amount of days per week that a user can enable active hours related features." - } - } - }, - "KeepAwakeEnableStatus": { - "type": "string", - "description": "Enables or disables whether Dev Boxes should be kept awake during active hours.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "KeepAwakeEnableStatus", - "modelAsString": true - } - }, - "AutoStartEnableStatus": { - "type": "string", - "description": "Enables or disables whether Dev Boxes should be automatically started at commencement of active hours.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "AutoStartEnableStatus", - "modelAsString": true - } - }, - "DaysOfWeek": { - "type": "string", - "description": "The days of the week.", - "enum": [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Sunday" - ], - "x-ms-enum": { - "name": "DaysOfWeek", - "modelAsString": false - } - } - }, - "parameters": { - "PoolNameParameter": { - "name": "poolName", - "in": "path", - "required": true, - "type": "string", - "description": "Name of the pool.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "NetworkConnectionName": { - "name": "networkConnectionName", - "in": "path", - "required": true, - "type": "string", - "description": "Name of the Network Connection that can be applied to a Pool.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$", - "minLength": 3, - "maxLength": 63 - }, - "ScheduleNameParameter": { - "name": "scheduleName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the schedule that uniquely identifies it.", - "minLength": 1, - "maxLength": 100, - "pattern": "^[-\\w]+$", - "x-ms-parameter-location": "method" - }, - "FilterParameter": { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName').", - "type": "string", - "required": false, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/devcenter/resource-manager/readme.md b/specification/devcenter/resource-manager/readme.md index aa2a8be4cd7f..a15a6d426861 100644 --- a/specification/devcenter/resource-manager/readme.md +++ b/specification/devcenter/resource-manager/readme.md @@ -28,6 +28,87 @@ These are the global settings for devcenter. openapi-type: arm openapi-subtype: rpaas tag: package-preview-2025-07-01-preview + +directive: + - where: + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}"].patch.parameters[5].schema.properties.properties + suppress: + PatchBodyParametersSchema + + - where: + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}"].patch.parameters[5].schema.properties.properties + suppress: + PatchBodyParametersSchema + + - where: + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/healthChecks/latest"] + suppress: + - PathForNestedResource + + - where: + - $.definitions.DayOfWeek["x-ms-enum"].values[0].description + suppress: + - DescriptionMustNotBeNodeName + + - where: + - $.definitions.DayOfWeek["x-ms-enum"].values[1].description + suppress: + - DescriptionMustNotBeNodeName + + - where: + - $.definitions.DayOfWeek["x-ms-enum"].values[2].description + suppress: + - DescriptionMustNotBeNodeName + + - where: + - $.definitions.DayOfWeek["x-ms-enum"].values[3].description + suppress: + - DescriptionMustNotBeNodeName + + - where: + - $.definitions.DayOfWeek["x-ms-enum"].values[4].description + suppress: + - DescriptionMustNotBeNodeName + + - where: + - $.definitions.DayOfWeek["x-ms-enum"].values[5].description + suppress: + - DescriptionMustNotBeNodeName + + - where: + - $.definitions.DayOfWeek["x-ms-enum"].values[6].description + suppress: + - DescriptionMustNotBeNodeName + + - where: + - $.definitions.UsageUnit["x-ms-enum"].values[0].description + suppress: + - DescriptionMustNotBeNodeName + + - where: + - $.definitions.OperationStatus.properties.properties + suppress: + - AvoidAdditionalProperties + + - where: + - $.definitions.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.properties.roles + suppress: + - AvoidAdditionalProperties + + - where: + - $.definitions.OutboundEnvironmentEndpointCollection + suppress: + - RequiredPropertiesMissingInResourceModel + + - where: + - $.definitions.Schedule + suppress: + - ArmResourcePropertiesBag + + - where: + - $.definitions.SkuListResult + suppress: + - RequiredPropertiesMissingInResourceModel ``` @@ -37,13 +118,7 @@ These settings apply only when `--tag=package-preview-2025-07-01-preview` is spe ```yaml $(tag) == 'package-preview-2025-07-01-preview' input-file: - - Microsoft.DevCenter/preview/2025-07-01-preview/commonDefinitions.json - Microsoft.DevCenter/preview/2025-07-01-preview/devcenter.json - - Microsoft.DevCenter/preview/2025-07-01-preview/vdi.json -suppressions: - - code: PatchBodyParametersSchema - from: vdi.json - reason: Patch Body comes from common-types v5 Sku object. Keeping here for consistency with existing parts of API to avoid breaking customers. ``` ### Tag: package-preview-2025-04-01-preview