From 70484e5f597464ca9e8c8c3b812d1588999e1f4e Mon Sep 17 00:00:00 2001 From: hc-github-team-tf-azure <> Date: Wed, 4 Oct 2023 14:21:14 +0000 Subject: [PATCH] data: regenerating based on the latest Swagger --- .../ServiceDefinition-GenerationSettings.cs | 6 ++ .../DevCenter/ServiceDefinition.cs | 21 +++++++ .../ApiVersionDefinition-GenerationSetting.cs | 6 ++ .../v2023_04_01/ApiVersionDefinition.cs | 31 ++++++++++ .../Constant-DomainJoinType.cs | 14 +++++ .../Constant-HealthCheckStatus.cs | 26 +++++++++ .../Constant-ProvisioningState.cs | 56 +++++++++++++++++++ .../AttachedNetworkConnections/Definition.cs | 30 ++++++++++ .../Model-AttachedNetworkConnection.cs | 32 +++++++++++ ...del-AttachedNetworkConnectionProperties.cs | 33 +++++++++++ ...eration-AttachedNetworksListByDevCenter.cs | 33 +++++++++++ ...Operation-AttachedNetworksListByProject.cs | 33 +++++++++++ .../ResourceId-DevcenterId.cs | 28 ++++++++++ .../ResourceId-ProjectId.cs | 28 ++++++++++ .../Catalogs/Constant-CatalogSyncState.cs | 20 +++++++ .../Catalogs/Constant-ProvisioningState.cs | 56 +++++++++++++++++++ .../v2023_04_01/Catalogs/Definition.cs | 36 ++++++++++++ .../v2023_04_01/Catalogs/Model-Catalog.cs | 32 +++++++++++ .../Catalogs/Model-CatalogProperties.cs | 33 +++++++++++ .../Catalogs/Model-CatalogUpdate.cs | 23 ++++++++ .../Catalogs/Model-CatalogUpdateProperties.cs | 23 ++++++++ .../v2023_04_01/Catalogs/Model-GitCatalog.cs | 29 ++++++++++ .../Catalogs/Operation-CreateOrUpdate.cs | 31 ++++++++++ .../v2023_04_01/Catalogs/Operation-Delete.cs | 29 ++++++++++ .../v2023_04_01/Catalogs/Operation-Get.cs | 22 ++++++++ .../Catalogs/Operation-ListByDevCenter.cs | 33 +++++++++++ .../v2023_04_01/Catalogs/Operation-Sync.cs | 31 ++++++++++ .../v2023_04_01/Catalogs/Operation-Update.cs | 32 +++++++++++ .../Catalogs/ResourceId-CatalogId.cs | 30 ++++++++++ .../Catalogs/ResourceId-DevcenterId.cs | 28 ++++++++++ .../Constant-CheckNameAvailabilityReason.cs | 14 +++++ .../CheckNameAvailability/Definition.cs | 27 +++++++++ .../Model-CheckNameAvailabilityRequest.cs | 23 ++++++++ .../Model-CheckNameAvailabilityResponse.cs | 26 +++++++++ .../Operation-Execute.cs | 31 ++++++++++ .../ResourceId-SubscriptionId.cs | 22 ++++++++ .../Constant-HibernateSupport.cs | 14 +++++ .../Constant-ImageValidationStatus.cs | 23 ++++++++ .../Constant-ProvisioningState.cs | 56 +++++++++++++++++++ .../DevBoxDefinitions/Constant-SkuTier.cs | 20 +++++++ .../DevBoxDefinitions/Definition.cs | 41 ++++++++++++++ .../Model-DevBoxDefinition.cs | 39 +++++++++++++ .../Model-DevBoxDefinitionProperties.cs | 43 ++++++++++++++ .../Model-DevBoxDefinitionUpdate.cs | 26 +++++++++ .../Model-DevBoxDefinitionUpdateProperties.cs | 29 ++++++++++ .../DevBoxDefinitions/Model-ImageReference.cs | 23 ++++++++ .../Model-ImageValidationErrorDetails.cs | 23 ++++++++ .../DevBoxDefinitions/Model-Sku.cs | 33 +++++++++++ .../Operation-CreateOrUpdate.cs | 26 +++++++++ .../DevBoxDefinitions/Operation-Delete.cs | 29 ++++++++++ .../DevBoxDefinitions/Operation-Get.cs | 22 ++++++++ .../Operation-GetByProject.cs | 22 ++++++++ .../Operation-ListByDevCenter.cs | 26 +++++++++ .../Operation-ListByProject.cs | 26 +++++++++ .../DevBoxDefinitions/Operation-Update.cs | 32 +++++++++++ .../ResourceId-DevboxdefinitionId.cs | 30 ++++++++++ .../ResourceId-DevcenterDevboxdefinitionId.cs | 30 ++++++++++ .../ResourceId-DevcenterId.cs | 28 ++++++++++ .../DevBoxDefinitions/ResourceId-ProjectId.cs | 28 ++++++++++ .../DevCenters/Constant-ProvisioningState.cs | 56 +++++++++++++++++++ .../v2023_04_01/DevCenters/Definition.cs | 33 +++++++++++ .../v2023_04_01/DevCenters/Model-DevCenter.cs | 42 ++++++++++++++ .../DevCenters/Model-DevCenterProperties.cs | 23 ++++++++ .../DevCenters/Model-DevCenterUpdate.cs | 26 +++++++++ .../DevCenters/Operation-CreateOrUpdate.cs | 26 +++++++++ .../DevCenters/Operation-Delete.cs | 29 ++++++++++ .../v2023_04_01/DevCenters/Operation-Get.cs | 22 ++++++++ .../Operation-ListByResourceGroup.cs | 33 +++++++++++ .../Operation-ListBySubscription.cs | 33 +++++++++++ .../DevCenters/Operation-Update.cs | 32 +++++++++++ .../DevCenters/ResourceId-DevcenterId.cs | 28 ++++++++++ .../DevCenters/ResourceId-ResourceGroupId.cs | 24 ++++++++ .../DevCenters/ResourceId-SubscriptionId.cs | 22 ++++++++ .../Constant-EnvironmentTypeEnableStatus.cs | 14 +++++ .../Constant-ProvisioningState.cs | 56 +++++++++++++++++++ .../EnvironmentTypes/Definition.cs | 49 ++++++++++++++++ .../Model-AllowedEnvironmentType.cs | 32 +++++++++++ .../Model-AllowedEnvironmentTypeProperties.cs | 20 +++++++ .../EnvironmentTypes/Model-EnvironmentRole.cs | 23 ++++++++ .../EnvironmentTypes/Model-EnvironmentType.cs | 35 ++++++++++++ .../Model-EnvironmentTypeProperties.cs | 20 +++++++ .../Model-EnvironmentTypeUpdate.cs | 20 +++++++ .../Model-ProjectEnvironmentType.cs | 41 ++++++++++++++ .../Model-ProjectEnvironmentTypeProperties.cs | 32 +++++++++++ .../Model-ProjectEnvironmentTypeUpdate.cs | 26 +++++++++ ...-ProjectEnvironmentTypeUpdateProperties.cs | 29 ++++++++++ ...peUpdatePropertiesCreatorRoleAssignment.cs | 20 +++++++ .../Model-UserRoleAssignment.cs | 20 +++++++ ...peration-EnvironmentTypesCreateOrUpdate.cs | 29 ++++++++++ .../Operation-EnvironmentTypesDelete.cs | 26 +++++++++ .../Operation-EnvironmentTypesGet.cs | 22 ++++++++ ...eration-EnvironmentTypesListByDevCenter.cs | 33 +++++++++++ .../Operation-EnvironmentTypesUpdate.cs | 29 ++++++++++ ...ation-ProjectAllowedEnvironmentTypesGet.cs | 22 ++++++++ ...tion-ProjectAllowedEnvironmentTypesList.cs | 33 +++++++++++ ...n-ProjectEnvironmentTypesCreateOrUpdate.cs | 29 ++++++++++ ...Operation-ProjectEnvironmentTypesDelete.cs | 26 +++++++++ .../Operation-ProjectEnvironmentTypesGet.cs | 22 ++++++++ .../Operation-ProjectEnvironmentTypesList.cs | 33 +++++++++++ ...Operation-ProjectEnvironmentTypesUpdate.cs | 29 ++++++++++ .../ResourceId-AllowedEnvironmentTypeId.cs | 30 ++++++++++ .../ResourceId-DevcenterEnvironmentTypeId.cs | 30 ++++++++++ .../ResourceId-DevcenterId.cs | 28 ++++++++++ .../ResourceId-EnvironmentTypeId.cs | 30 ++++++++++ .../EnvironmentTypes/ResourceId-ProjectId.cs | 28 ++++++++++ .../Galleries/Constant-ProvisioningState.cs | 56 +++++++++++++++++++ .../v2023_04_01/Galleries/Definition.cs | 30 ++++++++++ .../v2023_04_01/Galleries/Model-Gallery.cs | 32 +++++++++++ .../Galleries/Model-GalleryProperties.cs | 24 ++++++++ .../Galleries/Operation-CreateOrUpdate.cs | 31 ++++++++++ .../v2023_04_01/Galleries/Operation-Delete.cs | 29 ++++++++++ .../v2023_04_01/Galleries/Operation-Get.cs | 22 ++++++++ .../Galleries/Operation-ListByDevCenter.cs | 33 +++++++++++ .../Galleries/ResourceId-DevcenterId.cs | 28 ++++++++++ .../Galleries/ResourceId-GalleryId.cs | 30 ++++++++++ .../Constant-ProvisioningState.cs | 56 +++++++++++++++++++ .../v2023_04_01/ImageVersions/Definition.cs | 28 ++++++++++ .../ImageVersions/Model-ImageVersion.cs | 32 +++++++++++ .../Model-ImageVersionProperties.cs | 33 +++++++++++ .../ImageVersions/Operation-Get.cs | 22 ++++++++ .../ImageVersions/Operation-ListByImage.cs | 26 +++++++++ .../ImageVersions/ResourceId-ImageId.cs | 32 +++++++++++ .../ImageVersions/ResourceId-VersionId.cs | 34 +++++++++++ .../Images/Constant-HibernateSupport.cs | 14 +++++ .../Images/Constant-ProvisioningState.cs | 56 +++++++++++++++++++ .../v2023_04_01/Images/Definition.cs | 32 +++++++++++ .../v2023_04_01/Images/Model-Image.cs | 32 +++++++++++ .../Images/Model-ImageProperties.cs | 38 +++++++++++++ .../Model-RecommendedMachineConfiguration.cs | 23 ++++++++ .../v2023_04_01/Images/Model-ResourceRange.cs | 23 ++++++++ .../v2023_04_01/Images/Operation-Get.cs | 22 ++++++++ .../Images/Operation-ListByDevCenter.cs | 33 +++++++++++ .../Images/Operation-ListByGallery.cs | 33 +++++++++++ .../Images/ResourceId-DevcenterId.cs | 28 ++++++++++ .../Images/ResourceId-GalleryId.cs | 30 ++++++++++ .../v2023_04_01/Images/ResourceId-ImageId.cs | 32 +++++++++++ .../NetworkConnection/Definition.cs | 29 ++++++++++ .../Model-EndpointDependency.cs | 26 +++++++++ .../NetworkConnection/Model-EndpointDetail.cs | 20 +++++++ .../Model-OutboundEnvironmentEndpoint.cs | 23 ++++++++ ...istOutboundNetworkDependenciesEndpoints.cs | 26 +++++++++ .../Operation-RunHealthChecks.cs | 32 +++++++++++ .../ResourceId-NetworkConnectionId.cs | 28 ++++++++++ .../Constant-DomainJoinType.cs | 14 +++++ .../Constant-HealthCheckStatus.cs | 26 +++++++++ .../Constant-ProvisioningState.cs | 56 +++++++++++++++++++ .../NetworkConnections/Definition.cs | 41 ++++++++++++++ .../NetworkConnections/Model-HealthCheck.cs | 40 +++++++++++++ .../Model-HealthCheckStatusDetails.cs | 32 +++++++++++ ...odel-HealthCheckStatusDetailsProperties.cs | 28 ++++++++++ .../Model-NetworkConnection.cs | 39 +++++++++++++ .../Model-NetworkConnectionUpdate.cs | 26 +++++++++ ...Model-NetworkConnectionUpdateProperties.cs | 32 +++++++++++ .../Model-NetworkProperties.cs | 46 +++++++++++++++ .../Operation-CreateOrUpdate.cs | 26 +++++++++ .../NetworkConnections/Operation-Delete.cs | 29 ++++++++++ .../NetworkConnections/Operation-Get.cs | 22 ++++++++ .../Operation-GetHealthDetails.cs | 24 ++++++++ .../Operation-ListByResourceGroup.cs | 26 +++++++++ .../Operation-ListBySubscription.cs | 26 +++++++++ .../Operation-ListHealthDetails.cs | 26 +++++++++ .../NetworkConnections/Operation-Update.cs | 32 +++++++++++ .../ResourceId-NetworkConnectionId.cs | 28 ++++++++++ .../ResourceId-ResourceGroupId.cs | 24 ++++++++ .../ResourceId-SubscriptionId.cs | 22 ++++++++ .../Pools/Constant-HealthStatus.cs | 23 ++++++++ .../v2023_04_01/Pools/Constant-LicenseType.cs | 11 ++++ .../Pools/Constant-LocalAdminStatus.cs | 14 +++++ .../Pools/Constant-ProvisioningState.cs | 56 +++++++++++++++++++ .../Constant-StopOnDisconnectEnableStatus.cs | 14 +++++ .../DevCenter/v2023_04_01/Pools/Definition.cs | 40 +++++++++++++ .../Pools/Model-HealthStatusDetail.cs | 23 ++++++++ .../DevCenter/v2023_04_01/Pools/Model-Pool.cs | 39 +++++++++++++ .../v2023_04_01/Pools/Model-PoolProperties.cs | 45 +++++++++++++++ .../v2023_04_01/Pools/Model-PoolUpdate.cs | 26 +++++++++ .../Pools/Model-PoolUpdateProperties.cs | 32 +++++++++++ .../Model-StopOnDisconnectConfiguration.cs | 23 ++++++++ .../Pools/Operation-CreateOrUpdate.cs | 26 +++++++++ .../v2023_04_01/Pools/Operation-Delete.cs | 29 ++++++++++ .../v2023_04_01/Pools/Operation-Get.cs | 22 ++++++++ .../Pools/Operation-ListByProject.cs | 26 +++++++++ .../Pools/Operation-RunHealthChecks.cs | 32 +++++++++++ .../v2023_04_01/Pools/Operation-Update.cs | 32 +++++++++++ .../v2023_04_01/Pools/ResourceId-PoolId.cs | 30 ++++++++++ .../v2023_04_01/Pools/ResourceId-ProjectId.cs | 28 ++++++++++ .../Projects/Constant-ProvisioningState.cs | 56 +++++++++++++++++++ .../v2023_04_01/Projects/Definition.cs | 34 +++++++++++ .../v2023_04_01/Projects/Model-Project.cs | 39 +++++++++++++ .../Projects/Model-ProjectProperties.cs | 32 +++++++++++ .../Projects/Model-ProjectUpdate.cs | 26 +++++++++ .../Projects/Model-ProjectUpdateProperties.cs | 26 +++++++++ .../Projects/Operation-CreateOrUpdate.cs | 26 +++++++++ .../v2023_04_01/Projects/Operation-Delete.cs | 29 ++++++++++ .../v2023_04_01/Projects/Operation-Get.cs | 22 ++++++++ .../Projects/Operation-ListByResourceGroup.cs | 33 +++++++++++ .../Projects/Operation-ListBySubscription.cs | 33 +++++++++++ .../v2023_04_01/Projects/Operation-Update.cs | 32 +++++++++++ .../Projects/ResourceId-ProjectId.cs | 28 ++++++++++ .../Projects/ResourceId-ResourceGroupId.cs | 24 ++++++++ .../Projects/ResourceId-SubscriptionId.cs | 22 ++++++++ .../v2023_04_01/SKUs/Constant-SkuTier.cs | 20 +++++++ .../DevCenter/v2023_04_01/SKUs/Definition.cs | 27 +++++++++ .../v2023_04_01/SKUs/Model-Capability.cs | 23 ++++++++ .../v2023_04_01/SKUs/Model-DevCenterSku.cs | 42 ++++++++++++++ .../SKUs/Operation-ListBySubscription.cs | 26 +++++++++ .../SKUs/ResourceId-SubscriptionId.cs | 22 ++++++++ .../Schedules/Constant-ProvisioningState.cs | 56 +++++++++++++++++++ .../Constant-ScheduleEnableStatus.cs | 14 +++++ .../Schedules/Constant-ScheduledFrequency.cs | 11 ++++ .../Schedules/Constant-ScheduledType.cs | 11 ++++ .../v2023_04_01/Schedules/Definition.cs | 36 ++++++++++++ .../v2023_04_01/Schedules/Model-Schedule.cs | 32 +++++++++++ .../Schedules/Model-ScheduleProperties.cs | 39 +++++++++++++ .../Schedules/Model-ScheduleUpdate.cs | 26 +++++++++ .../Model-ScheduleUpdateProperties.cs | 32 +++++++++++ .../Schedules/Operation-CreateOrUpdate.cs | 26 +++++++++ .../v2023_04_01/Schedules/Operation-Delete.cs | 29 ++++++++++ .../v2023_04_01/Schedules/Operation-Get.cs | 22 ++++++++ .../Schedules/Operation-ListByPool.cs | 26 +++++++++ .../v2023_04_01/Schedules/Operation-Update.cs | 32 +++++++++++ .../Schedules/ResourceId-PoolId.cs | 30 ++++++++++ .../Schedules/ResourceId-ScheduleId.cs | 32 +++++++++++ .../v2023_04_01/Usages/Constant-UsageUnit.cs | 11 ++++ .../v2023_04_01/Usages/Definition.cs | 27 +++++++++ .../v2023_04_01/Usages/Model-Usage.cs | 29 ++++++++++ .../v2023_04_01/Usages/Model-UsageName.cs | 23 ++++++++ .../Usages/Operation-ListByLocation.cs | 26 +++++++++ .../Usages/ResourceId-LocationId.cs | 26 +++++++++ .../SwaggerRevision.cs | 2 +- 229 files changed, 6635 insertions(+), 1 deletion(-) create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/ServiceDefinition-GenerationSettings.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/ServiceDefinition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ApiVersionDefinition-GenerationSetting.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ApiVersionDefinition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Constant-DomainJoinType.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Constant-HealthCheckStatus.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Constant-ProvisioningState.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Definition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Model-AttachedNetworkConnection.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Model-AttachedNetworkConnectionProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Operation-AttachedNetworksListByDevCenter.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Operation-AttachedNetworksListByProject.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/ResourceId-DevcenterId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/ResourceId-ProjectId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Constant-CatalogSyncState.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Constant-ProvisioningState.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Definition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-Catalog.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-CatalogProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-CatalogUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-CatalogUpdateProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-GitCatalog.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-CreateOrUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-Delete.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-Get.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-ListByDevCenter.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-Sync.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-Update.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/ResourceId-CatalogId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/ResourceId-DevcenterId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Constant-CheckNameAvailabilityReason.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Definition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Model-CheckNameAvailabilityRequest.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Model-CheckNameAvailabilityResponse.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Operation-Execute.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/ResourceId-SubscriptionId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Constant-HibernateSupport.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Constant-ImageValidationStatus.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Constant-ProvisioningState.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Constant-SkuTier.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Definition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-DevBoxDefinition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-DevBoxDefinitionProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-DevBoxDefinitionUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-DevBoxDefinitionUpdateProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-ImageReference.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-ImageValidationErrorDetails.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-Sku.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-CreateOrUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-Delete.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-Get.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-GetByProject.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-ListByDevCenter.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-ListByProject.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-Update.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/ResourceId-DevboxdefinitionId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/ResourceId-DevcenterDevboxdefinitionId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/ResourceId-DevcenterId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/ResourceId-ProjectId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Constant-ProvisioningState.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Definition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Model-DevCenter.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Model-DevCenterProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Model-DevCenterUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-CreateOrUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-Delete.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-Get.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-ListByResourceGroup.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-ListBySubscription.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-Update.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/ResourceId-DevcenterId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/ResourceId-ResourceGroupId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/ResourceId-SubscriptionId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Constant-EnvironmentTypeEnableStatus.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Constant-ProvisioningState.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Definition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-AllowedEnvironmentType.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-AllowedEnvironmentTypeProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-EnvironmentRole.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-EnvironmentType.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-EnvironmentTypeProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-EnvironmentTypeUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentType.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentTypeProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentTypeUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentTypeUpdateProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-UserRoleAssignment.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesCreateOrUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesDelete.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesGet.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesListByDevCenter.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectAllowedEnvironmentTypesGet.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectAllowedEnvironmentTypesList.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesCreateOrUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesDelete.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesGet.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesList.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-AllowedEnvironmentTypeId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-DevcenterEnvironmentTypeId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-DevcenterId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-EnvironmentTypeId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-ProjectId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Constant-ProvisioningState.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Definition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Model-Gallery.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Model-GalleryProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Operation-CreateOrUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Operation-Delete.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Operation-Get.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Operation-ListByDevCenter.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/ResourceId-DevcenterId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/ResourceId-GalleryId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Constant-ProvisioningState.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Definition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Model-ImageVersion.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Model-ImageVersionProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Operation-Get.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Operation-ListByImage.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/ResourceId-ImageId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/ResourceId-VersionId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Constant-HibernateSupport.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Constant-ProvisioningState.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Definition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Model-Image.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Model-ImageProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Model-RecommendedMachineConfiguration.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Model-ResourceRange.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Operation-Get.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Operation-ListByDevCenter.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Operation-ListByGallery.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/ResourceId-DevcenterId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/ResourceId-GalleryId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/ResourceId-ImageId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Definition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Model-EndpointDependency.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Model-EndpointDetail.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Model-OutboundEnvironmentEndpoint.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Operation-ListOutboundNetworkDependenciesEndpoints.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Operation-RunHealthChecks.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/ResourceId-NetworkConnectionId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Constant-DomainJoinType.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Constant-HealthCheckStatus.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Constant-ProvisioningState.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Definition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-HealthCheck.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-HealthCheckStatusDetails.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-HealthCheckStatusDetailsProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-NetworkConnection.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-NetworkConnectionUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-NetworkConnectionUpdateProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-NetworkProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-CreateOrUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-Delete.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-Get.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-GetHealthDetails.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-ListByResourceGroup.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-ListBySubscription.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-ListHealthDetails.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-Update.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/ResourceId-NetworkConnectionId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/ResourceId-ResourceGroupId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/ResourceId-SubscriptionId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-HealthStatus.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-LicenseType.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-LocalAdminStatus.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-ProvisioningState.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-StopOnDisconnectEnableStatus.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Definition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-HealthStatusDetail.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-Pool.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-PoolProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-PoolUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-PoolUpdateProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-StopOnDisconnectConfiguration.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-CreateOrUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-Delete.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-Get.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-ListByProject.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-RunHealthChecks.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-Update.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/ResourceId-PoolId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/ResourceId-ProjectId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Constant-ProvisioningState.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Definition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Model-Project.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Model-ProjectProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Model-ProjectUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Model-ProjectUpdateProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-CreateOrUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-Delete.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-Get.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-ListByResourceGroup.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-ListBySubscription.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-Update.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/ResourceId-ProjectId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/ResourceId-ResourceGroupId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/ResourceId-SubscriptionId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Constant-SkuTier.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Definition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Model-Capability.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Model-DevCenterSku.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Operation-ListBySubscription.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/ResourceId-SubscriptionId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Constant-ProvisioningState.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Constant-ScheduleEnableStatus.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Constant-ScheduledFrequency.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Constant-ScheduledType.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Definition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Model-Schedule.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Model-ScheduleProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Model-ScheduleUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Model-ScheduleUpdateProperties.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-CreateOrUpdate.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-Delete.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-Get.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-ListByPool.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-Update.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/ResourceId-PoolId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/ResourceId-ScheduleId.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Constant-UsageUnit.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Definition.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Model-Usage.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Model-UsageName.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Operation-ListByLocation.cs create mode 100644 data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/ResourceId-LocationId.cs diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/ServiceDefinition-GenerationSettings.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/ServiceDefinition-GenerationSettings.cs new file mode 100644 index 00000000000..e06ff0fa3f7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/ServiceDefinition-GenerationSettings.cs @@ -0,0 +1,6 @@ +namespace Pandora.Definitions.ResourceManager.DevCenter; + +public partial class Service +{ + public bool Generate => true; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/ServiceDefinition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/ServiceDefinition.cs new file mode 100644 index 00000000000..ee0e5d6e9da --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/ServiceDefinition.cs @@ -0,0 +1,21 @@ +using Pandora.Definitions.Interfaces; +using System.Collections.Generic; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter; + +public partial class Service : ServiceDefinition +{ + public string Name => "DevCenter"; + public string? ResourceProvider => "Microsoft.DevCenter"; + public string? TerraformPackageName => null; + + public IEnumerable TerraformResources => new List + { + + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ApiVersionDefinition-GenerationSetting.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ApiVersionDefinition-GenerationSetting.cs new file mode 100644 index 00000000000..d054be81a11 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ApiVersionDefinition-GenerationSetting.cs @@ -0,0 +1,6 @@ +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01; + +public partial class Definition +{ + public bool Generate => true; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ApiVersionDefinition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ApiVersionDefinition.cs new file mode 100644 index 00000000000..ef1f27578d2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ApiVersionDefinition.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01; + +public partial class Definition : ApiVersionDefinition +{ + public string ApiVersion => "2023-04-01"; + public bool Preview => false; + public Source Source => Source.ResourceManagerRestApiSpecs; + + public IEnumerable Resources => new List + { + new AttachedNetworkConnections.Definition(), + new Catalogs.Definition(), + new CheckNameAvailability.Definition(), + new DevBoxDefinitions.Definition(), + new DevCenters.Definition(), + new EnvironmentTypes.Definition(), + new Galleries.Definition(), + new ImageVersions.Definition(), + new Images.Definition(), + new NetworkConnection.Definition(), + new NetworkConnections.Definition(), + new Pools.Definition(), + new Projects.Definition(), + new SKUs.Definition(), + new Schedules.Definition(), + new Usages.Definition(), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Constant-DomainJoinType.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Constant-DomainJoinType.cs new file mode 100644 index 00000000000..c0f11452d31 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Constant-DomainJoinType.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.AttachedNetworkConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum DomainJoinTypeConstant +{ + [Description("AzureADJoin")] + AzureADJoin, + + [Description("HybridAzureADJoin")] + HybridAzureADJoin, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Constant-HealthCheckStatus.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Constant-HealthCheckStatus.cs new file mode 100644 index 00000000000..d4badc7984d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Constant-HealthCheckStatus.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.AttachedNetworkConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum HealthCheckStatusConstant +{ + [Description("Failed")] + Failed, + + [Description("Passed")] + Passed, + + [Description("Pending")] + Pending, + + [Description("Running")] + Running, + + [Description("Unknown")] + Unknown, + + [Description("Warning")] + Warning, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..86cd817c0f6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Constant-ProvisioningState.cs @@ -0,0 +1,56 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.AttachedNetworkConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Created")] + Created, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("MovingResources")] + MovingResources, + + [Description("NotSpecified")] + NotSpecified, + + [Description("RolloutInProgress")] + RolloutInProgress, + + [Description("Running")] + Running, + + [Description("StorageProvisioningFailed")] + StorageProvisioningFailed, + + [Description("Succeeded")] + Succeeded, + + [Description("TransientFailure")] + TransientFailure, + + [Description("Updated")] + Updated, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Definition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Definition.cs new file mode 100644 index 00000000000..030466d1c8c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Definition.cs @@ -0,0 +1,30 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.AttachedNetworkConnections; + +internal class Definition : ResourceDefinition +{ + public string Name => "AttachedNetworkConnections"; + public IEnumerable Operations => new List + { + new AttachedNetworksListByDevCenterOperation(), + new AttachedNetworksListByProjectOperation(), + }; + public IEnumerable Constants => new List + { + typeof(DomainJoinTypeConstant), + typeof(HealthCheckStatusConstant), + typeof(ProvisioningStateConstant), + }; + public IEnumerable Models => new List + { + typeof(AttachedNetworkConnectionModel), + typeof(AttachedNetworkConnectionPropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Model-AttachedNetworkConnection.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Model-AttachedNetworkConnection.cs new file mode 100644 index 00000000000..487ca929579 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Model-AttachedNetworkConnection.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.AttachedNetworkConnections; + + +internal class AttachedNetworkConnectionModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public AttachedNetworkConnectionPropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Model-AttachedNetworkConnectionProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Model-AttachedNetworkConnectionProperties.cs new file mode 100644 index 00000000000..a06e3386b85 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Model-AttachedNetworkConnectionProperties.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.AttachedNetworkConnections; + + +internal class AttachedNetworkConnectionPropertiesModel +{ + [JsonPropertyName("domainJoinType")] + public DomainJoinTypeConstant? DomainJoinType { get; set; } + + [JsonPropertyName("healthCheckStatus")] + public HealthCheckStatusConstant? HealthCheckStatus { get; set; } + + [JsonPropertyName("networkConnectionId")] + [Required] + public string NetworkConnectionId { get; set; } + + [JsonPropertyName("networkConnectionLocation")] + public string? NetworkConnectionLocation { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Operation-AttachedNetworksListByDevCenter.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Operation-AttachedNetworksListByDevCenter.cs new file mode 100644 index 00000000000..86bbbebc87d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Operation-AttachedNetworksListByDevCenter.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.AttachedNetworkConnections; + +internal class AttachedNetworksListByDevCenterOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new DevcenterId(); + + public override Type NestedItemType() => typeof(AttachedNetworkConnectionModel); + + public override Type? OptionsObject() => typeof(AttachedNetworksListByDevCenterOperation.AttachedNetworksListByDevCenterOptions); + + public override string? UriSuffix() => "/attachednetworks"; + + internal class AttachedNetworksListByDevCenterOptions + { + [QueryStringName("$top")] + [Optional] + public int Top { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Operation-AttachedNetworksListByProject.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Operation-AttachedNetworksListByProject.cs new file mode 100644 index 00000000000..aece966f0d3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Operation-AttachedNetworksListByProject.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.AttachedNetworkConnections; + +internal class AttachedNetworksListByProjectOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ProjectId(); + + public override Type NestedItemType() => typeof(AttachedNetworkConnectionModel); + + public override Type? OptionsObject() => typeof(AttachedNetworksListByProjectOperation.AttachedNetworksListByProjectOptions); + + public override string? UriSuffix() => "/attachednetworks"; + + internal class AttachedNetworksListByProjectOptions + { + [QueryStringName("$top")] + [Optional] + public int Top { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/ResourceId-DevcenterId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/ResourceId-DevcenterId.cs new file mode 100644 index 00000000000..80afeaf08f1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/ResourceId-DevcenterId.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.AttachedNetworkConnections; + +internal class DevcenterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devcenterName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticDevcenters", "devcenters"), + ResourceIDSegment.UserSpecified("devcenterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/ResourceId-ProjectId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/ResourceId-ProjectId.cs new file mode 100644 index 00000000000..47a1af39a8c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/ResourceId-ProjectId.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.AttachedNetworkConnections; + +internal class ProjectId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticProjects", "projects"), + ResourceIDSegment.UserSpecified("projectName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Constant-CatalogSyncState.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Constant-CatalogSyncState.cs new file mode 100644 index 00000000000..5209af3bcc1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Constant-CatalogSyncState.cs @@ -0,0 +1,20 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Catalogs; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum CatalogSyncStateConstant +{ + [Description("Canceled")] + Canceled, + + [Description("Failed")] + Failed, + + [Description("InProgress")] + InProgress, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..db115c541f6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Constant-ProvisioningState.cs @@ -0,0 +1,56 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Catalogs; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Created")] + Created, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("MovingResources")] + MovingResources, + + [Description("NotSpecified")] + NotSpecified, + + [Description("RolloutInProgress")] + RolloutInProgress, + + [Description("Running")] + Running, + + [Description("StorageProvisioningFailed")] + StorageProvisioningFailed, + + [Description("Succeeded")] + Succeeded, + + [Description("TransientFailure")] + TransientFailure, + + [Description("Updated")] + Updated, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Definition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Definition.cs new file mode 100644 index 00000000000..050afed79ff --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Definition.cs @@ -0,0 +1,36 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Catalogs; + +internal class Definition : ResourceDefinition +{ + public string Name => "Catalogs"; + public IEnumerable Operations => new List + { + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListByDevCenterOperation(), + new SyncOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(CatalogSyncStateConstant), + typeof(ProvisioningStateConstant), + }; + public IEnumerable Models => new List + { + typeof(CatalogModel), + typeof(CatalogPropertiesModel), + typeof(CatalogUpdateModel), + typeof(CatalogUpdatePropertiesModel), + typeof(GitCatalogModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-Catalog.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-Catalog.cs new file mode 100644 index 00000000000..105564f7ec2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-Catalog.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Catalogs; + + +internal class CatalogModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public CatalogPropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-CatalogProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-CatalogProperties.cs new file mode 100644 index 00000000000..ff6cb686765 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-CatalogProperties.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Catalogs; + + +internal class CatalogPropertiesModel +{ + [JsonPropertyName("adoGit")] + public GitCatalogModel? AdoGit { get; set; } + + [JsonPropertyName("gitHub")] + public GitCatalogModel? GitHub { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastSyncTime")] + public DateTime? LastSyncTime { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("syncState")] + public CatalogSyncStateConstant? SyncState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-CatalogUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-CatalogUpdate.cs new file mode 100644 index 00000000000..7967d7e7e0e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-CatalogUpdate.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Catalogs; + + +internal class CatalogUpdateModel +{ + [JsonPropertyName("properties")] + public CatalogUpdatePropertiesModel? Properties { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-CatalogUpdateProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-CatalogUpdateProperties.cs new file mode 100644 index 00000000000..c5bc6db150c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-CatalogUpdateProperties.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Catalogs; + + +internal class CatalogUpdatePropertiesModel +{ + [JsonPropertyName("adoGit")] + public GitCatalogModel? AdoGit { get; set; } + + [JsonPropertyName("gitHub")] + public GitCatalogModel? GitHub { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-GitCatalog.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-GitCatalog.cs new file mode 100644 index 00000000000..49f728060cb --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Model-GitCatalog.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Catalogs; + + +internal class GitCatalogModel +{ + [JsonPropertyName("branch")] + public string? Branch { get; set; } + + [JsonPropertyName("path")] + public string? Path { get; set; } + + [JsonPropertyName("secretIdentifier")] + public string? SecretIdentifier { get; set; } + + [JsonPropertyName("uri")] + public string? Uri { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..a499950a699 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-CreateOrUpdate.cs @@ -0,0 +1,31 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Catalogs; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Created, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(CatalogModel); + + public override ResourceID? ResourceId() => new CatalogId(); + + public override Type? ResponseObject() => typeof(CatalogModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-Delete.cs new file mode 100644 index 00000000000..6ebc97b0301 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-Delete.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Catalogs; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override ResourceID? ResourceId() => new CatalogId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-Get.cs new file mode 100644 index 00000000000..7e8e732b95a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-Get.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Catalogs; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new CatalogId(); + + public override Type? ResponseObject() => typeof(CatalogModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-ListByDevCenter.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-ListByDevCenter.cs new file mode 100644 index 00000000000..554487058f6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-ListByDevCenter.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Catalogs; + +internal class ListByDevCenterOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new DevcenterId(); + + public override Type NestedItemType() => typeof(CatalogModel); + + public override Type? OptionsObject() => typeof(ListByDevCenterOperation.ListByDevCenterOptions); + + public override string? UriSuffix() => "/catalogs"; + + internal class ListByDevCenterOptions + { + [QueryStringName("$top")] + [Optional] + public int Top { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-Sync.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-Sync.cs new file mode 100644 index 00000000000..e8d1f2386fb --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-Sync.cs @@ -0,0 +1,31 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Catalogs; + +internal class SyncOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new CatalogId(); + + public override string? UriSuffix() => "/sync"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-Update.cs new file mode 100644 index 00000000000..3f26a0ed5d6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/Operation-Update.cs @@ -0,0 +1,32 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Catalogs; + +internal class UpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(CatalogUpdateModel); + + public override ResourceID? ResourceId() => new CatalogId(); + + public override Type? ResponseObject() => typeof(CatalogModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/ResourceId-CatalogId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/ResourceId-CatalogId.cs new file mode 100644 index 00000000000..1d3e69be956 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/ResourceId-CatalogId.cs @@ -0,0 +1,30 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Catalogs; + +internal class CatalogId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devcenterName}/catalogs/{catalogName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticDevcenters", "devcenters"), + ResourceIDSegment.UserSpecified("devcenterName"), + ResourceIDSegment.Static("staticCatalogs", "catalogs"), + ResourceIDSegment.UserSpecified("catalogName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/ResourceId-DevcenterId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/ResourceId-DevcenterId.cs new file mode 100644 index 00000000000..dad99a98823 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Catalogs/ResourceId-DevcenterId.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Catalogs; + +internal class DevcenterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devcenterName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticDevcenters", "devcenters"), + ResourceIDSegment.UserSpecified("devcenterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Constant-CheckNameAvailabilityReason.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Constant-CheckNameAvailabilityReason.cs new file mode 100644 index 00000000000..0fbb5c0915a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Constant-CheckNameAvailabilityReason.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.CheckNameAvailability; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum CheckNameAvailabilityReasonConstant +{ + [Description("AlreadyExists")] + AlreadyExists, + + [Description("Invalid")] + Invalid, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Definition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Definition.cs new file mode 100644 index 00000000000..a4504a540f9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Definition.cs @@ -0,0 +1,27 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.CheckNameAvailability; + +internal class Definition : ResourceDefinition +{ + public string Name => "CheckNameAvailability"; + public IEnumerable Operations => new List + { + new ExecuteOperation(), + }; + public IEnumerable Constants => new List + { + typeof(CheckNameAvailabilityReasonConstant), + }; + public IEnumerable Models => new List + { + typeof(CheckNameAvailabilityRequestModel), + typeof(CheckNameAvailabilityResponseModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Model-CheckNameAvailabilityRequest.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Model-CheckNameAvailabilityRequest.cs new file mode 100644 index 00000000000..6fe631b1b82 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Model-CheckNameAvailabilityRequest.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.CheckNameAvailability; + + +internal class CheckNameAvailabilityRequestModel +{ + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Model-CheckNameAvailabilityResponse.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Model-CheckNameAvailabilityResponse.cs new file mode 100644 index 00000000000..e83e9efebcf --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Model-CheckNameAvailabilityResponse.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.CheckNameAvailability; + + +internal class CheckNameAvailabilityResponseModel +{ + [JsonPropertyName("message")] + public string? Message { get; set; } + + [JsonPropertyName("nameAvailable")] + public bool? NameAvailable { get; set; } + + [JsonPropertyName("reason")] + public CheckNameAvailabilityReasonConstant? Reason { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Operation-Execute.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Operation-Execute.cs new file mode 100644 index 00000000000..e26329c63d8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/Operation-Execute.cs @@ -0,0 +1,31 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.CheckNameAvailability; + +internal class ExecuteOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(CheckNameAvailabilityRequestModel); + + public override ResourceID? ResourceId() => new SubscriptionId(); + + public override Type? ResponseObject() => typeof(CheckNameAvailabilityResponseModel); + + public override string? UriSuffix() => "/providers/Microsoft.DevCenter/checkNameAvailability"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/ResourceId-SubscriptionId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/ResourceId-SubscriptionId.cs new file mode 100644 index 00000000000..0b3282b03c7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/CheckNameAvailability/ResourceId-SubscriptionId.cs @@ -0,0 +1,22 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.CheckNameAvailability; + +internal class SubscriptionId : ResourceID +{ + public string? CommonAlias => "Subscription"; + + public string ID => "/subscriptions/{subscriptionId}"; + + public List Segments => new List + { + ResourceIDSegment.Static("subscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Constant-HibernateSupport.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Constant-HibernateSupport.cs new file mode 100644 index 00000000000..28b57f2e261 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Constant-HibernateSupport.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum HibernateSupportConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Constant-ImageValidationStatus.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Constant-ImageValidationStatus.cs new file mode 100644 index 00000000000..330c6dd2a28 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Constant-ImageValidationStatus.cs @@ -0,0 +1,23 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ImageValidationStatusConstant +{ + [Description("Failed")] + Failed, + + [Description("Pending")] + Pending, + + [Description("Succeeded")] + Succeeded, + + [Description("TimedOut")] + TimedOut, + + [Description("Unknown")] + Unknown, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..fd30fbd3680 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Constant-ProvisioningState.cs @@ -0,0 +1,56 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Created")] + Created, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("MovingResources")] + MovingResources, + + [Description("NotSpecified")] + NotSpecified, + + [Description("RolloutInProgress")] + RolloutInProgress, + + [Description("Running")] + Running, + + [Description("StorageProvisioningFailed")] + StorageProvisioningFailed, + + [Description("Succeeded")] + Succeeded, + + [Description("TransientFailure")] + TransientFailure, + + [Description("Updated")] + Updated, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Constant-SkuTier.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Constant-SkuTier.cs new file mode 100644 index 00000000000..d1c1c9a7bb8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Constant-SkuTier.cs @@ -0,0 +1,20 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SkuTierConstant +{ + [Description("Basic")] + Basic, + + [Description("Free")] + Free, + + [Description("Premium")] + Premium, + + [Description("Standard")] + Standard, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Definition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Definition.cs new file mode 100644 index 00000000000..8655446154a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Definition.cs @@ -0,0 +1,41 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + +internal class Definition : ResourceDefinition +{ + public string Name => "DevBoxDefinitions"; + public IEnumerable Operations => new List + { + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new GetByProjectOperation(), + new ListByDevCenterOperation(), + new ListByProjectOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(HibernateSupportConstant), + typeof(ImageValidationStatusConstant), + typeof(ProvisioningStateConstant), + typeof(SkuTierConstant), + }; + public IEnumerable Models => new List + { + typeof(DevBoxDefinitionModel), + typeof(DevBoxDefinitionPropertiesModel), + typeof(DevBoxDefinitionUpdateModel), + typeof(DevBoxDefinitionUpdatePropertiesModel), + typeof(ImageReferenceModel), + typeof(ImageValidationErrorDetailsModel), + typeof(SkuModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-DevBoxDefinition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-DevBoxDefinition.cs new file mode 100644 index 00000000000..6901f3c4d67 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-DevBoxDefinition.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + + +internal class DevBoxDefinitionModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("location")] + [Required] + public CustomTypes.Location Location { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public DevBoxDefinitionPropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-DevBoxDefinitionProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-DevBoxDefinitionProperties.cs new file mode 100644 index 00000000000..150c2b8a1d3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-DevBoxDefinitionProperties.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + + +internal class DevBoxDefinitionPropertiesModel +{ + [JsonPropertyName("activeImageReference")] + public ImageReferenceModel? ActiveImageReference { get; set; } + + [JsonPropertyName("hibernateSupport")] + public HibernateSupportConstant? HibernateSupport { get; set; } + + [JsonPropertyName("imageReference")] + [Required] + public ImageReferenceModel ImageReference { get; set; } + + [JsonPropertyName("imageValidationErrorDetails")] + public ImageValidationErrorDetailsModel? ImageValidationErrorDetails { get; set; } + + [JsonPropertyName("imageValidationStatus")] + public ImageValidationStatusConstant? ImageValidationStatus { get; set; } + + [JsonPropertyName("osStorageType")] + public string? OsStorageType { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("sku")] + [Required] + public SkuModel Sku { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-DevBoxDefinitionUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-DevBoxDefinitionUpdate.cs new file mode 100644 index 00000000000..018008e111b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-DevBoxDefinitionUpdate.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + + +internal class DevBoxDefinitionUpdateModel +{ + [JsonPropertyName("location")] + public CustomTypes.Location? Location { get; set; } + + [JsonPropertyName("properties")] + public DevBoxDefinitionUpdatePropertiesModel? Properties { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-DevBoxDefinitionUpdateProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-DevBoxDefinitionUpdateProperties.cs new file mode 100644 index 00000000000..4cc6136578c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-DevBoxDefinitionUpdateProperties.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + + +internal class DevBoxDefinitionUpdatePropertiesModel +{ + [JsonPropertyName("hibernateSupport")] + public HibernateSupportConstant? HibernateSupport { get; set; } + + [JsonPropertyName("imageReference")] + public ImageReferenceModel? ImageReference { get; set; } + + [JsonPropertyName("osStorageType")] + public string? OsStorageType { get; set; } + + [JsonPropertyName("sku")] + public SkuModel? Sku { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-ImageReference.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-ImageReference.cs new file mode 100644 index 00000000000..6200ab63f22 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-ImageReference.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + + +internal class ImageReferenceModel +{ + [JsonPropertyName("exactVersion")] + public string? ExactVersion { get; set; } + + [JsonPropertyName("id")] + public string? Id { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-ImageValidationErrorDetails.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-ImageValidationErrorDetails.cs new file mode 100644 index 00000000000..7fe24819f5b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-ImageValidationErrorDetails.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + + +internal class ImageValidationErrorDetailsModel +{ + [JsonPropertyName("code")] + public string? Code { get; set; } + + [JsonPropertyName("message")] + public string? Message { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-Sku.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-Sku.cs new file mode 100644 index 00000000000..c52bb020a5b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Model-Sku.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + + +internal class SkuModel +{ + [JsonPropertyName("capacity")] + public int? Capacity { get; set; } + + [JsonPropertyName("family")] + public string? Family { get; set; } + + [JsonPropertyName("name")] + [Required] + public string Name { get; set; } + + [JsonPropertyName("size")] + public string? Size { get; set; } + + [JsonPropertyName("tier")] + public SkuTierConstant? Tier { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..4f4e82bd3d8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-CreateOrUpdate.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(DevBoxDefinitionModel); + + public override ResourceID? ResourceId() => new DevcenterDevboxdefinitionId(); + + public override Type? ResponseObject() => typeof(DevBoxDefinitionModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-Delete.cs new file mode 100644 index 00000000000..ddb8c34f661 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-Delete.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override ResourceID? ResourceId() => new DevcenterDevboxdefinitionId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-Get.cs new file mode 100644 index 00000000000..3aa4ad5f23e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-Get.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new DevcenterDevboxdefinitionId(); + + public override Type? ResponseObject() => typeof(DevBoxDefinitionModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-GetByProject.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-GetByProject.cs new file mode 100644 index 00000000000..a96fc262355 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-GetByProject.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + +internal class GetByProjectOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new DevboxdefinitionId(); + + public override Type? ResponseObject() => typeof(DevBoxDefinitionModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-ListByDevCenter.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-ListByDevCenter.cs new file mode 100644 index 00000000000..91c3474810d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-ListByDevCenter.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + +internal class ListByDevCenterOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new DevcenterId(); + + public override Type NestedItemType() => typeof(DevBoxDefinitionModel); + + public override string? UriSuffix() => "/devboxdefinitions"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-ListByProject.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-ListByProject.cs new file mode 100644 index 00000000000..96853f467bd --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-ListByProject.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + +internal class ListByProjectOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ProjectId(); + + public override Type NestedItemType() => typeof(DevBoxDefinitionModel); + + public override string? UriSuffix() => "/devboxdefinitions"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-Update.cs new file mode 100644 index 00000000000..f2e14476da5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/Operation-Update.cs @@ -0,0 +1,32 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + +internal class UpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(DevBoxDefinitionUpdateModel); + + public override ResourceID? ResourceId() => new DevcenterDevboxdefinitionId(); + + public override Type? ResponseObject() => typeof(DevBoxDefinitionModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/ResourceId-DevboxdefinitionId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/ResourceId-DevboxdefinitionId.cs new file mode 100644 index 00000000000..3007f154e21 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/ResourceId-DevboxdefinitionId.cs @@ -0,0 +1,30 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + +internal class DevboxdefinitionId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions/{devboxdefinitionName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticProjects", "projects"), + ResourceIDSegment.UserSpecified("projectName"), + ResourceIDSegment.Static("staticDevboxdefinitions", "devboxdefinitions"), + ResourceIDSegment.UserSpecified("devboxdefinitionName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/ResourceId-DevcenterDevboxdefinitionId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/ResourceId-DevcenterDevboxdefinitionId.cs new file mode 100644 index 00000000000..ccd29446cc8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/ResourceId-DevcenterDevboxdefinitionId.cs @@ -0,0 +1,30 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + +internal class DevcenterDevboxdefinitionId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devcenterName}/devboxdefinitions/{devboxdefinitionName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticDevcenters", "devcenters"), + ResourceIDSegment.UserSpecified("devcenterName"), + ResourceIDSegment.Static("staticDevboxdefinitions", "devboxdefinitions"), + ResourceIDSegment.UserSpecified("devboxdefinitionName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/ResourceId-DevcenterId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/ResourceId-DevcenterId.cs new file mode 100644 index 00000000000..d73b2d84fe2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/ResourceId-DevcenterId.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + +internal class DevcenterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devcenterName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticDevcenters", "devcenters"), + ResourceIDSegment.UserSpecified("devcenterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/ResourceId-ProjectId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/ResourceId-ProjectId.cs new file mode 100644 index 00000000000..56271cc49f3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevBoxDefinitions/ResourceId-ProjectId.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevBoxDefinitions; + +internal class ProjectId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticProjects", "projects"), + ResourceIDSegment.UserSpecified("projectName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..3ecd883128a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Constant-ProvisioningState.cs @@ -0,0 +1,56 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevCenters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Created")] + Created, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("MovingResources")] + MovingResources, + + [Description("NotSpecified")] + NotSpecified, + + [Description("RolloutInProgress")] + RolloutInProgress, + + [Description("Running")] + Running, + + [Description("StorageProvisioningFailed")] + StorageProvisioningFailed, + + [Description("Succeeded")] + Succeeded, + + [Description("TransientFailure")] + TransientFailure, + + [Description("Updated")] + Updated, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Definition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Definition.cs new file mode 100644 index 00000000000..8af16cab104 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Definition.cs @@ -0,0 +1,33 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevCenters; + +internal class Definition : ResourceDefinition +{ + public string Name => "DevCenters"; + public IEnumerable Operations => new List + { + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListByResourceGroupOperation(), + new ListBySubscriptionOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(ProvisioningStateConstant), + }; + public IEnumerable Models => new List + { + typeof(DevCenterModel), + typeof(DevCenterPropertiesModel), + typeof(DevCenterUpdateModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Model-DevCenter.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Model-DevCenter.cs new file mode 100644 index 00000000000..3635640221e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Model-DevCenter.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevCenters; + + +internal class DevCenterModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("identity")] + public CustomTypes.SystemAndUserAssignedIdentityMap? Identity { get; set; } + + [JsonPropertyName("location")] + [Required] + public CustomTypes.Location Location { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public DevCenterPropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Model-DevCenterProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Model-DevCenterProperties.cs new file mode 100644 index 00000000000..1577d98be3c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Model-DevCenterProperties.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevCenters; + + +internal class DevCenterPropertiesModel +{ + [JsonPropertyName("devCenterUri")] + public string? DevCenterUri { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Model-DevCenterUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Model-DevCenterUpdate.cs new file mode 100644 index 00000000000..cc3503052d4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Model-DevCenterUpdate.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevCenters; + + +internal class DevCenterUpdateModel +{ + [JsonPropertyName("identity")] + public CustomTypes.SystemAndUserAssignedIdentityMap? Identity { get; set; } + + [JsonPropertyName("location")] + public CustomTypes.Location? Location { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..2913ecc16b6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-CreateOrUpdate.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevCenters; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(DevCenterModel); + + public override ResourceID? ResourceId() => new DevcenterId(); + + public override Type? ResponseObject() => typeof(DevCenterModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-Delete.cs new file mode 100644 index 00000000000..c772b12f81f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-Delete.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevCenters; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override ResourceID? ResourceId() => new DevcenterId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-Get.cs new file mode 100644 index 00000000000..4ade8822801 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-Get.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevCenters; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new DevcenterId(); + + public override Type? ResponseObject() => typeof(DevCenterModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-ListByResourceGroup.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-ListByResourceGroup.cs new file mode 100644 index 00000000000..394d34994f3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-ListByResourceGroup.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevCenters; + +internal class ListByResourceGroupOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ResourceGroupId(); + + public override Type NestedItemType() => typeof(DevCenterModel); + + public override Type? OptionsObject() => typeof(ListByResourceGroupOperation.ListByResourceGroupOptions); + + public override string? UriSuffix() => "/providers/Microsoft.DevCenter/devcenters"; + + internal class ListByResourceGroupOptions + { + [QueryStringName("$top")] + [Optional] + public int Top { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-ListBySubscription.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-ListBySubscription.cs new file mode 100644 index 00000000000..0f19a598011 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-ListBySubscription.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevCenters; + +internal class ListBySubscriptionOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new SubscriptionId(); + + public override Type NestedItemType() => typeof(DevCenterModel); + + public override Type? OptionsObject() => typeof(ListBySubscriptionOperation.ListBySubscriptionOptions); + + public override string? UriSuffix() => "/providers/Microsoft.DevCenter/devcenters"; + + internal class ListBySubscriptionOptions + { + [QueryStringName("$top")] + [Optional] + public int Top { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-Update.cs new file mode 100644 index 00000000000..9e3f598cc8d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/Operation-Update.cs @@ -0,0 +1,32 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevCenters; + +internal class UpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(DevCenterUpdateModel); + + public override ResourceID? ResourceId() => new DevcenterId(); + + public override Type? ResponseObject() => typeof(DevCenterModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/ResourceId-DevcenterId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/ResourceId-DevcenterId.cs new file mode 100644 index 00000000000..87bdee32359 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/ResourceId-DevcenterId.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevCenters; + +internal class DevcenterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devcenterName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticDevcenters", "devcenters"), + ResourceIDSegment.UserSpecified("devcenterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/ResourceId-ResourceGroupId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/ResourceId-ResourceGroupId.cs new file mode 100644 index 00000000000..8181284865e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/ResourceId-ResourceGroupId.cs @@ -0,0 +1,24 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevCenters; + +internal class ResourceGroupId : ResourceID +{ + public string? CommonAlias => "ResourceGroup"; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("subscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("resourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/ResourceId-SubscriptionId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/ResourceId-SubscriptionId.cs new file mode 100644 index 00000000000..3def7586e1c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/DevCenters/ResourceId-SubscriptionId.cs @@ -0,0 +1,22 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.DevCenters; + +internal class SubscriptionId : ResourceID +{ + public string? CommonAlias => "Subscription"; + + public string ID => "/subscriptions/{subscriptionId}"; + + public List Segments => new List + { + ResourceIDSegment.Static("subscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Constant-EnvironmentTypeEnableStatus.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Constant-EnvironmentTypeEnableStatus.cs new file mode 100644 index 00000000000..e0eea9f7de1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Constant-EnvironmentTypeEnableStatus.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum EnvironmentTypeEnableStatusConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..332c71dad0b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Constant-ProvisioningState.cs @@ -0,0 +1,56 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Created")] + Created, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("MovingResources")] + MovingResources, + + [Description("NotSpecified")] + NotSpecified, + + [Description("RolloutInProgress")] + RolloutInProgress, + + [Description("Running")] + Running, + + [Description("StorageProvisioningFailed")] + StorageProvisioningFailed, + + [Description("Succeeded")] + Succeeded, + + [Description("TransientFailure")] + TransientFailure, + + [Description("Updated")] + Updated, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Definition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Definition.cs new file mode 100644 index 00000000000..20b112ca765 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Definition.cs @@ -0,0 +1,49 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class Definition : ResourceDefinition +{ + public string Name => "EnvironmentTypes"; + public IEnumerable Operations => new List + { + new EnvironmentTypesCreateOrUpdateOperation(), + new EnvironmentTypesDeleteOperation(), + new EnvironmentTypesGetOperation(), + new EnvironmentTypesListByDevCenterOperation(), + new EnvironmentTypesUpdateOperation(), + new ProjectAllowedEnvironmentTypesGetOperation(), + new ProjectAllowedEnvironmentTypesListOperation(), + new ProjectEnvironmentTypesCreateOrUpdateOperation(), + new ProjectEnvironmentTypesDeleteOperation(), + new ProjectEnvironmentTypesGetOperation(), + new ProjectEnvironmentTypesListOperation(), + new ProjectEnvironmentTypesUpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(EnvironmentTypeEnableStatusConstant), + typeof(ProvisioningStateConstant), + }; + public IEnumerable Models => new List + { + typeof(AllowedEnvironmentTypeModel), + typeof(AllowedEnvironmentTypePropertiesModel), + typeof(EnvironmentRoleModel), + typeof(EnvironmentTypeModel), + typeof(EnvironmentTypePropertiesModel), + typeof(EnvironmentTypeUpdateModel), + typeof(ProjectEnvironmentTypeModel), + typeof(ProjectEnvironmentTypePropertiesModel), + typeof(ProjectEnvironmentTypeUpdateModel), + typeof(ProjectEnvironmentTypeUpdatePropertiesModel), + typeof(ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentModel), + typeof(UserRoleAssignmentModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-AllowedEnvironmentType.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-AllowedEnvironmentType.cs new file mode 100644 index 00000000000..3457324737c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-AllowedEnvironmentType.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + + +internal class AllowedEnvironmentTypeModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public AllowedEnvironmentTypePropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-AllowedEnvironmentTypeProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-AllowedEnvironmentTypeProperties.cs new file mode 100644 index 00000000000..dc7c069a644 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-AllowedEnvironmentTypeProperties.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + + +internal class AllowedEnvironmentTypePropertiesModel +{ + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-EnvironmentRole.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-EnvironmentRole.cs new file mode 100644 index 00000000000..6f9628bbda7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-EnvironmentRole.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + + +internal class EnvironmentRoleModel +{ + [JsonPropertyName("description")] + public string? Description { get; set; } + + [JsonPropertyName("roleName")] + public string? RoleName { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-EnvironmentType.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-EnvironmentType.cs new file mode 100644 index 00000000000..c7d0976a507 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-EnvironmentType.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + + +internal class EnvironmentTypeModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public EnvironmentTypePropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-EnvironmentTypeProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-EnvironmentTypeProperties.cs new file mode 100644 index 00000000000..08987e6c2f7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-EnvironmentTypeProperties.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + + +internal class EnvironmentTypePropertiesModel +{ + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-EnvironmentTypeUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-EnvironmentTypeUpdate.cs new file mode 100644 index 00000000000..01416c3d7b9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-EnvironmentTypeUpdate.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + + +internal class EnvironmentTypeUpdateModel +{ + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentType.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentType.cs new file mode 100644 index 00000000000..870a56deb2c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentType.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + + +internal class ProjectEnvironmentTypeModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("identity")] + public CustomTypes.SystemAndUserAssignedIdentityMap? Identity { get; set; } + + [JsonPropertyName("location")] + public CustomTypes.Location? Location { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public ProjectEnvironmentTypePropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentTypeProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentTypeProperties.cs new file mode 100644 index 00000000000..72eda8d9cec --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentTypeProperties.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + + +internal class ProjectEnvironmentTypePropertiesModel +{ + [JsonPropertyName("creatorRoleAssignment")] + public ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentModel? CreatorRoleAssignment { get; set; } + + [JsonPropertyName("deploymentTargetId")] + public string? DeploymentTargetId { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("status")] + public EnvironmentTypeEnableStatusConstant? Status { get; set; } + + [JsonPropertyName("userRoleAssignments")] + public Dictionary? UserRoleAssignments { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentTypeUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentTypeUpdate.cs new file mode 100644 index 00000000000..73ac319e51c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentTypeUpdate.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + + +internal class ProjectEnvironmentTypeUpdateModel +{ + [JsonPropertyName("identity")] + public CustomTypes.SystemAndUserAssignedIdentityMap? Identity { get; set; } + + [JsonPropertyName("properties")] + public ProjectEnvironmentTypeUpdatePropertiesModel? Properties { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentTypeUpdateProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentTypeUpdateProperties.cs new file mode 100644 index 00000000000..ed005ea57b7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentTypeUpdateProperties.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + + +internal class ProjectEnvironmentTypeUpdatePropertiesModel +{ + [JsonPropertyName("creatorRoleAssignment")] + public ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentModel? CreatorRoleAssignment { get; set; } + + [JsonPropertyName("deploymentTargetId")] + public string? DeploymentTargetId { get; set; } + + [JsonPropertyName("status")] + public EnvironmentTypeEnableStatusConstant? Status { get; set; } + + [JsonPropertyName("userRoleAssignments")] + public Dictionary? UserRoleAssignments { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.cs new file mode 100644 index 00000000000..f79db5cf81d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + + +internal class ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentModel +{ + [JsonPropertyName("roles")] + public Dictionary? Roles { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-UserRoleAssignment.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-UserRoleAssignment.cs new file mode 100644 index 00000000000..cf2667b15ba --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Model-UserRoleAssignment.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + + +internal class UserRoleAssignmentModel +{ + [JsonPropertyName("roles")] + public Dictionary? Roles { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesCreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesCreateOrUpdate.cs new file mode 100644 index 00000000000..9a651b4e415 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesCreateOrUpdate.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class EnvironmentTypesCreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(EnvironmentTypeModel); + + public override ResourceID? ResourceId() => new DevcenterEnvironmentTypeId(); + + public override Type? ResponseObject() => typeof(EnvironmentTypeModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesDelete.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesDelete.cs new file mode 100644 index 00000000000..54fac03f3a6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesDelete.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class EnvironmentTypesDeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override ResourceID? ResourceId() => new DevcenterEnvironmentTypeId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesGet.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesGet.cs new file mode 100644 index 00000000000..b32ba3f809f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesGet.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class EnvironmentTypesGetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new DevcenterEnvironmentTypeId(); + + public override Type? ResponseObject() => typeof(EnvironmentTypeModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesListByDevCenter.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesListByDevCenter.cs new file mode 100644 index 00000000000..c4e505177e0 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesListByDevCenter.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class EnvironmentTypesListByDevCenterOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new DevcenterId(); + + public override Type NestedItemType() => typeof(EnvironmentTypeModel); + + public override Type? OptionsObject() => typeof(EnvironmentTypesListByDevCenterOperation.EnvironmentTypesListByDevCenterOptions); + + public override string? UriSuffix() => "/environmentTypes"; + + internal class EnvironmentTypesListByDevCenterOptions + { + [QueryStringName("$top")] + [Optional] + public int Top { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesUpdate.cs new file mode 100644 index 00000000000..e4e88d95811 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-EnvironmentTypesUpdate.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class EnvironmentTypesUpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(EnvironmentTypeUpdateModel); + + public override ResourceID? ResourceId() => new DevcenterEnvironmentTypeId(); + + public override Type? ResponseObject() => typeof(EnvironmentTypeModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectAllowedEnvironmentTypesGet.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectAllowedEnvironmentTypesGet.cs new file mode 100644 index 00000000000..cdde37b7c18 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectAllowedEnvironmentTypesGet.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class ProjectAllowedEnvironmentTypesGetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new AllowedEnvironmentTypeId(); + + public override Type? ResponseObject() => typeof(AllowedEnvironmentTypeModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectAllowedEnvironmentTypesList.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectAllowedEnvironmentTypesList.cs new file mode 100644 index 00000000000..fb428669503 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectAllowedEnvironmentTypesList.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class ProjectAllowedEnvironmentTypesListOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ProjectId(); + + public override Type NestedItemType() => typeof(AllowedEnvironmentTypeModel); + + public override Type? OptionsObject() => typeof(ProjectAllowedEnvironmentTypesListOperation.ProjectAllowedEnvironmentTypesListOptions); + + public override string? UriSuffix() => "/allowedEnvironmentTypes"; + + internal class ProjectAllowedEnvironmentTypesListOptions + { + [QueryStringName("$top")] + [Optional] + public int Top { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesCreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesCreateOrUpdate.cs new file mode 100644 index 00000000000..c684d853799 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesCreateOrUpdate.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class ProjectEnvironmentTypesCreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(ProjectEnvironmentTypeModel); + + public override ResourceID? ResourceId() => new EnvironmentTypeId(); + + public override Type? ResponseObject() => typeof(ProjectEnvironmentTypeModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesDelete.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesDelete.cs new file mode 100644 index 00000000000..adda96a2354 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesDelete.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class ProjectEnvironmentTypesDeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override ResourceID? ResourceId() => new EnvironmentTypeId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesGet.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesGet.cs new file mode 100644 index 00000000000..7316bdb5876 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesGet.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class ProjectEnvironmentTypesGetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new EnvironmentTypeId(); + + public override Type? ResponseObject() => typeof(ProjectEnvironmentTypeModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesList.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesList.cs new file mode 100644 index 00000000000..329c27d7cb2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesList.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class ProjectEnvironmentTypesListOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ProjectId(); + + public override Type NestedItemType() => typeof(ProjectEnvironmentTypeModel); + + public override Type? OptionsObject() => typeof(ProjectEnvironmentTypesListOperation.ProjectEnvironmentTypesListOptions); + + public override string? UriSuffix() => "/environmentTypes"; + + internal class ProjectEnvironmentTypesListOptions + { + [QueryStringName("$top")] + [Optional] + public int Top { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesUpdate.cs new file mode 100644 index 00000000000..d6d9c699abc --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/Operation-ProjectEnvironmentTypesUpdate.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class ProjectEnvironmentTypesUpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(ProjectEnvironmentTypeUpdateModel); + + public override ResourceID? ResourceId() => new EnvironmentTypeId(); + + public override Type? ResponseObject() => typeof(ProjectEnvironmentTypeModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-AllowedEnvironmentTypeId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-AllowedEnvironmentTypeId.cs new file mode 100644 index 00000000000..3cb2acd793e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-AllowedEnvironmentTypeId.cs @@ -0,0 +1,30 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class AllowedEnvironmentTypeId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes/{allowedEnvironmentTypeName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticProjects", "projects"), + ResourceIDSegment.UserSpecified("projectName"), + ResourceIDSegment.Static("staticAllowedEnvironmentTypes", "allowedEnvironmentTypes"), + ResourceIDSegment.UserSpecified("allowedEnvironmentTypeName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-DevcenterEnvironmentTypeId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-DevcenterEnvironmentTypeId.cs new file mode 100644 index 00000000000..cb5e3e1e63f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-DevcenterEnvironmentTypeId.cs @@ -0,0 +1,30 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class DevcenterEnvironmentTypeId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devcenterName}/environmentTypes/{environmentTypeName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticDevcenters", "devcenters"), + ResourceIDSegment.UserSpecified("devcenterName"), + ResourceIDSegment.Static("staticEnvironmentTypes", "environmentTypes"), + ResourceIDSegment.UserSpecified("environmentTypeName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-DevcenterId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-DevcenterId.cs new file mode 100644 index 00000000000..96a9d3f1afd --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-DevcenterId.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class DevcenterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devcenterName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticDevcenters", "devcenters"), + ResourceIDSegment.UserSpecified("devcenterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-EnvironmentTypeId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-EnvironmentTypeId.cs new file mode 100644 index 00000000000..b56b23fd2a6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-EnvironmentTypeId.cs @@ -0,0 +1,30 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class EnvironmentTypeId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticProjects", "projects"), + ResourceIDSegment.UserSpecified("projectName"), + ResourceIDSegment.Static("staticEnvironmentTypes", "environmentTypes"), + ResourceIDSegment.UserSpecified("environmentTypeName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-ProjectId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-ProjectId.cs new file mode 100644 index 00000000000..628d5017ea0 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/EnvironmentTypes/ResourceId-ProjectId.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.EnvironmentTypes; + +internal class ProjectId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticProjects", "projects"), + ResourceIDSegment.UserSpecified("projectName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..3e0dec86abd --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Constant-ProvisioningState.cs @@ -0,0 +1,56 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Galleries; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Created")] + Created, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("MovingResources")] + MovingResources, + + [Description("NotSpecified")] + NotSpecified, + + [Description("RolloutInProgress")] + RolloutInProgress, + + [Description("Running")] + Running, + + [Description("StorageProvisioningFailed")] + StorageProvisioningFailed, + + [Description("Succeeded")] + Succeeded, + + [Description("TransientFailure")] + TransientFailure, + + [Description("Updated")] + Updated, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Definition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Definition.cs new file mode 100644 index 00000000000..376bf9da8ba --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Definition.cs @@ -0,0 +1,30 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Galleries; + +internal class Definition : ResourceDefinition +{ + public string Name => "Galleries"; + public IEnumerable Operations => new List + { + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListByDevCenterOperation(), + }; + public IEnumerable Constants => new List + { + typeof(ProvisioningStateConstant), + }; + public IEnumerable Models => new List + { + typeof(GalleryModel), + typeof(GalleryPropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Model-Gallery.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Model-Gallery.cs new file mode 100644 index 00000000000..09c42d9702c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Model-Gallery.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Galleries; + + +internal class GalleryModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public GalleryPropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Model-GalleryProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Model-GalleryProperties.cs new file mode 100644 index 00000000000..392bcd902b1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Model-GalleryProperties.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Galleries; + + +internal class GalleryPropertiesModel +{ + [JsonPropertyName("galleryResourceId")] + [Required] + public string GalleryResourceId { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..4feb324bde7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Operation-CreateOrUpdate.cs @@ -0,0 +1,31 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Galleries; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Created, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(GalleryModel); + + public override ResourceID? ResourceId() => new GalleryId(); + + public override Type? ResponseObject() => typeof(GalleryModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Operation-Delete.cs new file mode 100644 index 00000000000..1095c6eed2b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Operation-Delete.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Galleries; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override ResourceID? ResourceId() => new GalleryId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Operation-Get.cs new file mode 100644 index 00000000000..6d95fcc04e8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Operation-Get.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Galleries; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new GalleryId(); + + public override Type? ResponseObject() => typeof(GalleryModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Operation-ListByDevCenter.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Operation-ListByDevCenter.cs new file mode 100644 index 00000000000..133296d3f06 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/Operation-ListByDevCenter.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Galleries; + +internal class ListByDevCenterOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new DevcenterId(); + + public override Type NestedItemType() => typeof(GalleryModel); + + public override Type? OptionsObject() => typeof(ListByDevCenterOperation.ListByDevCenterOptions); + + public override string? UriSuffix() => "/galleries"; + + internal class ListByDevCenterOptions + { + [QueryStringName("$top")] + [Optional] + public int Top { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/ResourceId-DevcenterId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/ResourceId-DevcenterId.cs new file mode 100644 index 00000000000..3650023888b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/ResourceId-DevcenterId.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Galleries; + +internal class DevcenterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devcenterName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticDevcenters", "devcenters"), + ResourceIDSegment.UserSpecified("devcenterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/ResourceId-GalleryId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/ResourceId-GalleryId.cs new file mode 100644 index 00000000000..07799719e67 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Galleries/ResourceId-GalleryId.cs @@ -0,0 +1,30 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Galleries; + +internal class GalleryId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devcenterName}/galleries/{galleryName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticDevcenters", "devcenters"), + ResourceIDSegment.UserSpecified("devcenterName"), + ResourceIDSegment.Static("staticGalleries", "galleries"), + ResourceIDSegment.UserSpecified("galleryName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..9d1f0f35731 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Constant-ProvisioningState.cs @@ -0,0 +1,56 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.ImageVersions; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Created")] + Created, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("MovingResources")] + MovingResources, + + [Description("NotSpecified")] + NotSpecified, + + [Description("RolloutInProgress")] + RolloutInProgress, + + [Description("Running")] + Running, + + [Description("StorageProvisioningFailed")] + StorageProvisioningFailed, + + [Description("Succeeded")] + Succeeded, + + [Description("TransientFailure")] + TransientFailure, + + [Description("Updated")] + Updated, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Definition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Definition.cs new file mode 100644 index 00000000000..c9b262c5bd2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Definition.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.ImageVersions; + +internal class Definition : ResourceDefinition +{ + public string Name => "ImageVersions"; + public IEnumerable Operations => new List + { + new GetOperation(), + new ListByImageOperation(), + }; + public IEnumerable Constants => new List + { + typeof(ProvisioningStateConstant), + }; + public IEnumerable Models => new List + { + typeof(ImageVersionModel), + typeof(ImageVersionPropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Model-ImageVersion.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Model-ImageVersion.cs new file mode 100644 index 00000000000..c2d60b2e48e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Model-ImageVersion.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.ImageVersions; + + +internal class ImageVersionModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public ImageVersionPropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Model-ImageVersionProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Model-ImageVersionProperties.cs new file mode 100644 index 00000000000..09cede64f46 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Model-ImageVersionProperties.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.ImageVersions; + + +internal class ImageVersionPropertiesModel +{ + [JsonPropertyName("excludeFromLatest")] + public bool? ExcludeFromLatest { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("osDiskImageSizeInGb")] + public int? OsDiskImageSizeInGb { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("publishedDate")] + public DateTime? PublishedDate { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Operation-Get.cs new file mode 100644 index 00000000000..937d91cf120 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Operation-Get.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.ImageVersions; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new VersionId(); + + public override Type? ResponseObject() => typeof(ImageVersionModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Operation-ListByImage.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Operation-ListByImage.cs new file mode 100644 index 00000000000..e30176aac87 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/Operation-ListByImage.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.ImageVersions; + +internal class ListByImageOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ImageId(); + + public override Type NestedItemType() => typeof(ImageVersionModel); + + public override string? UriSuffix() => "/versions"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/ResourceId-ImageId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/ResourceId-ImageId.cs new file mode 100644 index 00000000000..9f703720aea --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/ResourceId-ImageId.cs @@ -0,0 +1,32 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.ImageVersions; + +internal class ImageId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devcenterName}/galleries/{galleryName}/images/{imageName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticDevcenters", "devcenters"), + ResourceIDSegment.UserSpecified("devcenterName"), + ResourceIDSegment.Static("staticGalleries", "galleries"), + ResourceIDSegment.UserSpecified("galleryName"), + ResourceIDSegment.Static("staticImages", "images"), + ResourceIDSegment.UserSpecified("imageName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/ResourceId-VersionId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/ResourceId-VersionId.cs new file mode 100644 index 00000000000..903b0b4eb9e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/ImageVersions/ResourceId-VersionId.cs @@ -0,0 +1,34 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.ImageVersions; + +internal class VersionId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devcenterName}/galleries/{galleryName}/images/{imageName}/versions/{versionName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticDevcenters", "devcenters"), + ResourceIDSegment.UserSpecified("devcenterName"), + ResourceIDSegment.Static("staticGalleries", "galleries"), + ResourceIDSegment.UserSpecified("galleryName"), + ResourceIDSegment.Static("staticImages", "images"), + ResourceIDSegment.UserSpecified("imageName"), + ResourceIDSegment.Static("staticVersions", "versions"), + ResourceIDSegment.UserSpecified("versionName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Constant-HibernateSupport.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Constant-HibernateSupport.cs new file mode 100644 index 00000000000..4869e7b8ff4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Constant-HibernateSupport.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Images; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum HibernateSupportConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..b647cd852da --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Constant-ProvisioningState.cs @@ -0,0 +1,56 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Images; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Created")] + Created, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("MovingResources")] + MovingResources, + + [Description("NotSpecified")] + NotSpecified, + + [Description("RolloutInProgress")] + RolloutInProgress, + + [Description("Running")] + Running, + + [Description("StorageProvisioningFailed")] + StorageProvisioningFailed, + + [Description("Succeeded")] + Succeeded, + + [Description("TransientFailure")] + TransientFailure, + + [Description("Updated")] + Updated, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Definition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Definition.cs new file mode 100644 index 00000000000..e8fbfd059d1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Definition.cs @@ -0,0 +1,32 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Images; + +internal class Definition : ResourceDefinition +{ + public string Name => "Images"; + public IEnumerable Operations => new List + { + new GetOperation(), + new ListByDevCenterOperation(), + new ListByGalleryOperation(), + }; + public IEnumerable Constants => new List + { + typeof(HibernateSupportConstant), + typeof(ProvisioningStateConstant), + }; + public IEnumerable Models => new List + { + typeof(ImageModel), + typeof(ImagePropertiesModel), + typeof(RecommendedMachineConfigurationModel), + typeof(ResourceRangeModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Model-Image.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Model-Image.cs new file mode 100644 index 00000000000..e3b2ce1f314 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Model-Image.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Images; + + +internal class ImageModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public ImagePropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Model-ImageProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Model-ImageProperties.cs new file mode 100644 index 00000000000..0fe6693acda --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Model-ImageProperties.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Images; + + +internal class ImagePropertiesModel +{ + [JsonPropertyName("description")] + public string? Description { get; set; } + + [JsonPropertyName("hibernateSupport")] + public HibernateSupportConstant? HibernateSupport { get; set; } + + [JsonPropertyName("offer")] + public string? Offer { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("publisher")] + public string? Publisher { get; set; } + + [JsonPropertyName("recommendedMachineConfiguration")] + public RecommendedMachineConfigurationModel? RecommendedMachineConfiguration { get; set; } + + [JsonPropertyName("sku")] + public string? Sku { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Model-RecommendedMachineConfiguration.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Model-RecommendedMachineConfiguration.cs new file mode 100644 index 00000000000..c67c5204ae3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Model-RecommendedMachineConfiguration.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Images; + + +internal class RecommendedMachineConfigurationModel +{ + [JsonPropertyName("memory")] + public ResourceRangeModel? Memory { get; set; } + + [JsonPropertyName("vCPUs")] + public ResourceRangeModel? VCPUs { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Model-ResourceRange.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Model-ResourceRange.cs new file mode 100644 index 00000000000..aaf1632aa0b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Model-ResourceRange.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Images; + + +internal class ResourceRangeModel +{ + [JsonPropertyName("max")] + public int? Max { get; set; } + + [JsonPropertyName("min")] + public int? Min { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Operation-Get.cs new file mode 100644 index 00000000000..8fd1c81f86b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Operation-Get.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Images; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new ImageId(); + + public override Type? ResponseObject() => typeof(ImageModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Operation-ListByDevCenter.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Operation-ListByDevCenter.cs new file mode 100644 index 00000000000..7ae48e70529 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Operation-ListByDevCenter.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Images; + +internal class ListByDevCenterOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new DevcenterId(); + + public override Type NestedItemType() => typeof(ImageModel); + + public override Type? OptionsObject() => typeof(ListByDevCenterOperation.ListByDevCenterOptions); + + public override string? UriSuffix() => "/images"; + + internal class ListByDevCenterOptions + { + [QueryStringName("$top")] + [Optional] + public int Top { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Operation-ListByGallery.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Operation-ListByGallery.cs new file mode 100644 index 00000000000..79cf35080e1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/Operation-ListByGallery.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Images; + +internal class ListByGalleryOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new GalleryId(); + + public override Type NestedItemType() => typeof(ImageModel); + + public override Type? OptionsObject() => typeof(ListByGalleryOperation.ListByGalleryOptions); + + public override string? UriSuffix() => "/images"; + + internal class ListByGalleryOptions + { + [QueryStringName("$top")] + [Optional] + public int Top { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/ResourceId-DevcenterId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/ResourceId-DevcenterId.cs new file mode 100644 index 00000000000..fbf1e92a92e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/ResourceId-DevcenterId.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Images; + +internal class DevcenterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devcenterName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticDevcenters", "devcenters"), + ResourceIDSegment.UserSpecified("devcenterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/ResourceId-GalleryId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/ResourceId-GalleryId.cs new file mode 100644 index 00000000000..e79dc6a6f9a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/ResourceId-GalleryId.cs @@ -0,0 +1,30 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Images; + +internal class GalleryId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devcenterName}/galleries/{galleryName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticDevcenters", "devcenters"), + ResourceIDSegment.UserSpecified("devcenterName"), + ResourceIDSegment.Static("staticGalleries", "galleries"), + ResourceIDSegment.UserSpecified("galleryName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/ResourceId-ImageId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/ResourceId-ImageId.cs new file mode 100644 index 00000000000..91ec6bed4c4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Images/ResourceId-ImageId.cs @@ -0,0 +1,32 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Images; + +internal class ImageId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devcenterName}/galleries/{galleryName}/images/{imageName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticDevcenters", "devcenters"), + ResourceIDSegment.UserSpecified("devcenterName"), + ResourceIDSegment.Static("staticGalleries", "galleries"), + ResourceIDSegment.UserSpecified("galleryName"), + ResourceIDSegment.Static("staticImages", "images"), + ResourceIDSegment.UserSpecified("imageName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Definition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Definition.cs new file mode 100644 index 00000000000..09f513119e2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Definition.cs @@ -0,0 +1,29 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnection; + +internal class Definition : ResourceDefinition +{ + public string Name => "NetworkConnection"; + public IEnumerable Operations => new List + { + new ListOutboundNetworkDependenciesEndpointsOperation(), + new RunHealthChecksOperation(), + }; + public IEnumerable Constants => new List + { + + }; + public IEnumerable Models => new List + { + typeof(EndpointDependencyModel), + typeof(EndpointDetailModel), + typeof(OutboundEnvironmentEndpointModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Model-EndpointDependency.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Model-EndpointDependency.cs new file mode 100644 index 00000000000..f3bf73ec39e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Model-EndpointDependency.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnection; + + +internal class EndpointDependencyModel +{ + [JsonPropertyName("description")] + public string? Description { get; set; } + + [JsonPropertyName("domainName")] + public string? DomainName { get; set; } + + [JsonPropertyName("endpointDetails")] + public List? EndpointDetails { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Model-EndpointDetail.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Model-EndpointDetail.cs new file mode 100644 index 00000000000..c6eff8d5d89 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Model-EndpointDetail.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnection; + + +internal class EndpointDetailModel +{ + [JsonPropertyName("port")] + public int? Port { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Model-OutboundEnvironmentEndpoint.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Model-OutboundEnvironmentEndpoint.cs new file mode 100644 index 00000000000..eda0e160968 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Model-OutboundEnvironmentEndpoint.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnection; + + +internal class OutboundEnvironmentEndpointModel +{ + [JsonPropertyName("category")] + public string? Category { get; set; } + + [JsonPropertyName("endpoints")] + public List? Endpoints { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Operation-ListOutboundNetworkDependenciesEndpoints.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Operation-ListOutboundNetworkDependenciesEndpoints.cs new file mode 100644 index 00000000000..384f748176f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Operation-ListOutboundNetworkDependenciesEndpoints.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnection; + +internal class ListOutboundNetworkDependenciesEndpointsOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new NetworkConnectionId(); + + public override Type NestedItemType() => typeof(OutboundEnvironmentEndpointModel); + + public override string? UriSuffix() => "/outboundNetworkDependenciesEndpoints"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Operation-RunHealthChecks.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Operation-RunHealthChecks.cs new file mode 100644 index 00000000000..1a33ca18d8f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/Operation-RunHealthChecks.cs @@ -0,0 +1,32 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnection; + +internal class RunHealthChecksOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new NetworkConnectionId(); + + public override string? UriSuffix() => "/runHealthChecks"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/ResourceId-NetworkConnectionId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/ResourceId-NetworkConnectionId.cs new file mode 100644 index 00000000000..943abe0fa88 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnection/ResourceId-NetworkConnectionId.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnection; + +internal class NetworkConnectionId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticNetworkConnections", "networkConnections"), + ResourceIDSegment.UserSpecified("networkConnectionName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Constant-DomainJoinType.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Constant-DomainJoinType.cs new file mode 100644 index 00000000000..90e8165b1ca --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Constant-DomainJoinType.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum DomainJoinTypeConstant +{ + [Description("AzureADJoin")] + AzureADJoin, + + [Description("HybridAzureADJoin")] + HybridAzureADJoin, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Constant-HealthCheckStatus.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Constant-HealthCheckStatus.cs new file mode 100644 index 00000000000..cae68221bfa --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Constant-HealthCheckStatus.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum HealthCheckStatusConstant +{ + [Description("Failed")] + Failed, + + [Description("Passed")] + Passed, + + [Description("Pending")] + Pending, + + [Description("Running")] + Running, + + [Description("Unknown")] + Unknown, + + [Description("Warning")] + Warning, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..e80120a7f87 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Constant-ProvisioningState.cs @@ -0,0 +1,56 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Created")] + Created, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("MovingResources")] + MovingResources, + + [Description("NotSpecified")] + NotSpecified, + + [Description("RolloutInProgress")] + RolloutInProgress, + + [Description("Running")] + Running, + + [Description("StorageProvisioningFailed")] + StorageProvisioningFailed, + + [Description("Succeeded")] + Succeeded, + + [Description("TransientFailure")] + TransientFailure, + + [Description("Updated")] + Updated, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Definition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Definition.cs new file mode 100644 index 00000000000..1396563b16c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Definition.cs @@ -0,0 +1,41 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + +internal class Definition : ResourceDefinition +{ + public string Name => "NetworkConnections"; + public IEnumerable Operations => new List + { + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new GetHealthDetailsOperation(), + new ListByResourceGroupOperation(), + new ListBySubscriptionOperation(), + new ListHealthDetailsOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(DomainJoinTypeConstant), + typeof(HealthCheckStatusConstant), + typeof(ProvisioningStateConstant), + }; + public IEnumerable Models => new List + { + typeof(HealthCheckModel), + typeof(HealthCheckStatusDetailsModel), + typeof(HealthCheckStatusDetailsPropertiesModel), + typeof(NetworkConnectionModel), + typeof(NetworkConnectionUpdateModel), + typeof(NetworkConnectionUpdatePropertiesModel), + typeof(NetworkPropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-HealthCheck.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-HealthCheck.cs new file mode 100644 index 00000000000..806a726fd13 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-HealthCheck.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + + +internal class HealthCheckModel +{ + [JsonPropertyName("additionalDetails")] + public string? AdditionalDetails { get; set; } + + [JsonPropertyName("displayName")] + public string? DisplayName { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("endDateTime")] + public DateTime? EndDateTime { get; set; } + + [JsonPropertyName("errorType")] + public string? ErrorType { get; set; } + + [JsonPropertyName("recommendedAction")] + public string? RecommendedAction { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("startDateTime")] + public DateTime? StartDateTime { get; set; } + + [JsonPropertyName("status")] + public HealthCheckStatusConstant? Status { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-HealthCheckStatusDetails.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-HealthCheckStatusDetails.cs new file mode 100644 index 00000000000..89b02413307 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-HealthCheckStatusDetails.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + + +internal class HealthCheckStatusDetailsModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public HealthCheckStatusDetailsPropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-HealthCheckStatusDetailsProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-HealthCheckStatusDetailsProperties.cs new file mode 100644 index 00000000000..025d02cdd30 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-HealthCheckStatusDetailsProperties.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + + +internal class HealthCheckStatusDetailsPropertiesModel +{ + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("endDateTime")] + public DateTime? EndDateTime { get; set; } + + [JsonPropertyName("healthChecks")] + public List? HealthChecks { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("startDateTime")] + public DateTime? StartDateTime { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-NetworkConnection.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-NetworkConnection.cs new file mode 100644 index 00000000000..6e8880f41e9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-NetworkConnection.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + + +internal class NetworkConnectionModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("location")] + [Required] + public CustomTypes.Location Location { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public NetworkPropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-NetworkConnectionUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-NetworkConnectionUpdate.cs new file mode 100644 index 00000000000..49de3fa14c7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-NetworkConnectionUpdate.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + + +internal class NetworkConnectionUpdateModel +{ + [JsonPropertyName("location")] + public CustomTypes.Location? Location { get; set; } + + [JsonPropertyName("properties")] + public NetworkConnectionUpdatePropertiesModel? Properties { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-NetworkConnectionUpdateProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-NetworkConnectionUpdateProperties.cs new file mode 100644 index 00000000000..ae889cc495f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-NetworkConnectionUpdateProperties.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + + +internal class NetworkConnectionUpdatePropertiesModel +{ + [JsonPropertyName("domainName")] + public string? DomainName { get; set; } + + [JsonPropertyName("domainPassword")] + public string? DomainPassword { get; set; } + + [JsonPropertyName("domainUsername")] + public string? DomainUsername { get; set; } + + [JsonPropertyName("organizationUnit")] + public string? OrganizationUnit { get; set; } + + [JsonPropertyName("subnetId")] + public string? SubnetId { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-NetworkProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-NetworkProperties.cs new file mode 100644 index 00000000000..49e984549b5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Model-NetworkProperties.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + + +internal class NetworkPropertiesModel +{ + [JsonPropertyName("domainJoinType")] + [Required] + public DomainJoinTypeConstant DomainJoinType { get; set; } + + [JsonPropertyName("domainName")] + public string? DomainName { get; set; } + + [JsonPropertyName("domainPassword")] + public string? DomainPassword { get; set; } + + [JsonPropertyName("domainUsername")] + public string? DomainUsername { get; set; } + + [JsonPropertyName("healthCheckStatus")] + public HealthCheckStatusConstant? HealthCheckStatus { get; set; } + + [JsonPropertyName("networkingResourceGroupName")] + public string? NetworkingResourceGroupName { get; set; } + + [JsonPropertyName("organizationUnit")] + public string? OrganizationUnit { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("subnetId")] + [Required] + public string SubnetId { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..574a57dbb69 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-CreateOrUpdate.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(NetworkConnectionModel); + + public override ResourceID? ResourceId() => new NetworkConnectionId(); + + public override Type? ResponseObject() => typeof(NetworkConnectionModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-Delete.cs new file mode 100644 index 00000000000..8f563c71c6d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-Delete.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override ResourceID? ResourceId() => new NetworkConnectionId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-Get.cs new file mode 100644 index 00000000000..a0ba289d6fb --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-Get.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new NetworkConnectionId(); + + public override Type? ResponseObject() => typeof(NetworkConnectionModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-GetHealthDetails.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-GetHealthDetails.cs new file mode 100644 index 00000000000..5f4da679b46 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-GetHealthDetails.cs @@ -0,0 +1,24 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + +internal class GetHealthDetailsOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new NetworkConnectionId(); + + public override Type? ResponseObject() => typeof(HealthCheckStatusDetailsModel); + + public override string? UriSuffix() => "/healthChecks/latest"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-ListByResourceGroup.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-ListByResourceGroup.cs new file mode 100644 index 00000000000..263b7284af7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-ListByResourceGroup.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + +internal class ListByResourceGroupOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ResourceGroupId(); + + public override Type NestedItemType() => typeof(NetworkConnectionModel); + + public override string? UriSuffix() => "/providers/Microsoft.DevCenter/networkConnections"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-ListBySubscription.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-ListBySubscription.cs new file mode 100644 index 00000000000..ed6ff9a9bd0 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-ListBySubscription.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + +internal class ListBySubscriptionOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new SubscriptionId(); + + public override Type NestedItemType() => typeof(NetworkConnectionModel); + + public override string? UriSuffix() => "/providers/Microsoft.DevCenter/networkConnections"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-ListHealthDetails.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-ListHealthDetails.cs new file mode 100644 index 00000000000..8cc75b692c1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-ListHealthDetails.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + +internal class ListHealthDetailsOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new NetworkConnectionId(); + + public override Type NestedItemType() => typeof(HealthCheckStatusDetailsModel); + + public override string? UriSuffix() => "/healthChecks"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-Update.cs new file mode 100644 index 00000000000..df2b1b597a6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/Operation-Update.cs @@ -0,0 +1,32 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + +internal class UpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(NetworkConnectionUpdateModel); + + public override ResourceID? ResourceId() => new NetworkConnectionId(); + + public override Type? ResponseObject() => typeof(NetworkConnectionModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/ResourceId-NetworkConnectionId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/ResourceId-NetworkConnectionId.cs new file mode 100644 index 00000000000..726d240c85f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/ResourceId-NetworkConnectionId.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + +internal class NetworkConnectionId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticNetworkConnections", "networkConnections"), + ResourceIDSegment.UserSpecified("networkConnectionName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/ResourceId-ResourceGroupId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/ResourceId-ResourceGroupId.cs new file mode 100644 index 00000000000..f1d3cf6229a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/ResourceId-ResourceGroupId.cs @@ -0,0 +1,24 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + +internal class ResourceGroupId : ResourceID +{ + public string? CommonAlias => "ResourceGroup"; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("subscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("resourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/ResourceId-SubscriptionId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/ResourceId-SubscriptionId.cs new file mode 100644 index 00000000000..049691a64b1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/NetworkConnections/ResourceId-SubscriptionId.cs @@ -0,0 +1,22 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.NetworkConnections; + +internal class SubscriptionId : ResourceID +{ + public string? CommonAlias => "Subscription"; + + public string ID => "/subscriptions/{subscriptionId}"; + + public List Segments => new List + { + ResourceIDSegment.Static("subscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-HealthStatus.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-HealthStatus.cs new file mode 100644 index 00000000000..021c5006fa7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-HealthStatus.cs @@ -0,0 +1,23 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum HealthStatusConstant +{ + [Description("Healthy")] + Healthy, + + [Description("Pending")] + Pending, + + [Description("Unhealthy")] + Unhealthy, + + [Description("Unknown")] + Unknown, + + [Description("Warning")] + Warning, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-LicenseType.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-LicenseType.cs new file mode 100644 index 00000000000..76df0da059d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-LicenseType.cs @@ -0,0 +1,11 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum LicenseTypeConstant +{ + [Description("Windows_Client")] + WindowsClient, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-LocalAdminStatus.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-LocalAdminStatus.cs new file mode 100644 index 00000000000..78556885e4a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-LocalAdminStatus.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum LocalAdminStatusConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..de22e587b01 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-ProvisioningState.cs @@ -0,0 +1,56 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Created")] + Created, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("MovingResources")] + MovingResources, + + [Description("NotSpecified")] + NotSpecified, + + [Description("RolloutInProgress")] + RolloutInProgress, + + [Description("Running")] + Running, + + [Description("StorageProvisioningFailed")] + StorageProvisioningFailed, + + [Description("Succeeded")] + Succeeded, + + [Description("TransientFailure")] + TransientFailure, + + [Description("Updated")] + Updated, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-StopOnDisconnectEnableStatus.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-StopOnDisconnectEnableStatus.cs new file mode 100644 index 00000000000..3459636655b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Constant-StopOnDisconnectEnableStatus.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum StopOnDisconnectEnableStatusConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Definition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Definition.cs new file mode 100644 index 00000000000..d5ffcb7b5b2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Definition.cs @@ -0,0 +1,40 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + +internal class Definition : ResourceDefinition +{ + public string Name => "Pools"; + public IEnumerable Operations => new List + { + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListByProjectOperation(), + new RunHealthChecksOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(HealthStatusConstant), + typeof(LicenseTypeConstant), + typeof(LocalAdminStatusConstant), + typeof(ProvisioningStateConstant), + typeof(StopOnDisconnectEnableStatusConstant), + }; + public IEnumerable Models => new List + { + typeof(HealthStatusDetailModel), + typeof(PoolModel), + typeof(PoolPropertiesModel), + typeof(PoolUpdateModel), + typeof(PoolUpdatePropertiesModel), + typeof(StopOnDisconnectConfigurationModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-HealthStatusDetail.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-HealthStatusDetail.cs new file mode 100644 index 00000000000..4f4878d0b7b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-HealthStatusDetail.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + + +internal class HealthStatusDetailModel +{ + [JsonPropertyName("code")] + public string? Code { get; set; } + + [JsonPropertyName("message")] + public string? Message { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-Pool.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-Pool.cs new file mode 100644 index 00000000000..d30cb5ea204 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-Pool.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + + +internal class PoolModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("location")] + [Required] + public CustomTypes.Location Location { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public PoolPropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-PoolProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-PoolProperties.cs new file mode 100644 index 00000000000..99401e214e7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-PoolProperties.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + + +internal class PoolPropertiesModel +{ + [JsonPropertyName("devBoxDefinitionName")] + [Required] + public string DevBoxDefinitionName { get; set; } + + [JsonPropertyName("healthStatus")] + public HealthStatusConstant? HealthStatus { get; set; } + + [JsonPropertyName("healthStatusDetails")] + public List? HealthStatusDetails { get; set; } + + [JsonPropertyName("licenseType")] + [Required] + public LicenseTypeConstant LicenseType { get; set; } + + [JsonPropertyName("localAdministrator")] + [Required] + public LocalAdminStatusConstant LocalAdministrator { get; set; } + + [JsonPropertyName("networkConnectionName")] + [Required] + public string NetworkConnectionName { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("stopOnDisconnect")] + public StopOnDisconnectConfigurationModel? StopOnDisconnect { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-PoolUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-PoolUpdate.cs new file mode 100644 index 00000000000..a4dd70b6f17 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-PoolUpdate.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + + +internal class PoolUpdateModel +{ + [JsonPropertyName("location")] + public CustomTypes.Location? Location { get; set; } + + [JsonPropertyName("properties")] + public PoolUpdatePropertiesModel? Properties { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-PoolUpdateProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-PoolUpdateProperties.cs new file mode 100644 index 00000000000..80a52a5b6b6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-PoolUpdateProperties.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + + +internal class PoolUpdatePropertiesModel +{ + [JsonPropertyName("devBoxDefinitionName")] + public string? DevBoxDefinitionName { get; set; } + + [JsonPropertyName("licenseType")] + public LicenseTypeConstant? LicenseType { get; set; } + + [JsonPropertyName("localAdministrator")] + public LocalAdminStatusConstant? LocalAdministrator { get; set; } + + [JsonPropertyName("networkConnectionName")] + public string? NetworkConnectionName { get; set; } + + [JsonPropertyName("stopOnDisconnect")] + public StopOnDisconnectConfigurationModel? StopOnDisconnect { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-StopOnDisconnectConfiguration.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-StopOnDisconnectConfiguration.cs new file mode 100644 index 00000000000..0fc6f904578 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Model-StopOnDisconnectConfiguration.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + + +internal class StopOnDisconnectConfigurationModel +{ + [JsonPropertyName("gracePeriodMinutes")] + public int? GracePeriodMinutes { get; set; } + + [JsonPropertyName("status")] + public StopOnDisconnectEnableStatusConstant? Status { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..87af9388f81 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-CreateOrUpdate.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(PoolModel); + + public override ResourceID? ResourceId() => new PoolId(); + + public override Type? ResponseObject() => typeof(PoolModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-Delete.cs new file mode 100644 index 00000000000..883fb6d5765 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-Delete.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override ResourceID? ResourceId() => new PoolId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-Get.cs new file mode 100644 index 00000000000..e9f227476a4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-Get.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new PoolId(); + + public override Type? ResponseObject() => typeof(PoolModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-ListByProject.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-ListByProject.cs new file mode 100644 index 00000000000..8d8ba80c794 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-ListByProject.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + +internal class ListByProjectOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ProjectId(); + + public override Type NestedItemType() => typeof(PoolModel); + + public override string? UriSuffix() => "/pools"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-RunHealthChecks.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-RunHealthChecks.cs new file mode 100644 index 00000000000..d6f663fb26f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-RunHealthChecks.cs @@ -0,0 +1,32 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + +internal class RunHealthChecksOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new PoolId(); + + public override string? UriSuffix() => "/runHealthChecks"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-Update.cs new file mode 100644 index 00000000000..1a0629f8b82 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/Operation-Update.cs @@ -0,0 +1,32 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + +internal class UpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(PoolUpdateModel); + + public override ResourceID? ResourceId() => new PoolId(); + + public override Type? ResponseObject() => typeof(PoolModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/ResourceId-PoolId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/ResourceId-PoolId.cs new file mode 100644 index 00000000000..58e373ebfa6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/ResourceId-PoolId.cs @@ -0,0 +1,30 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + +internal class PoolId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticProjects", "projects"), + ResourceIDSegment.UserSpecified("projectName"), + ResourceIDSegment.Static("staticPools", "pools"), + ResourceIDSegment.UserSpecified("poolName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/ResourceId-ProjectId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/ResourceId-ProjectId.cs new file mode 100644 index 00000000000..2e9f47a5036 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Pools/ResourceId-ProjectId.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Pools; + +internal class ProjectId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticProjects", "projects"), + ResourceIDSegment.UserSpecified("projectName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..3e76b7fccfb --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Constant-ProvisioningState.cs @@ -0,0 +1,56 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Projects; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Created")] + Created, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("MovingResources")] + MovingResources, + + [Description("NotSpecified")] + NotSpecified, + + [Description("RolloutInProgress")] + RolloutInProgress, + + [Description("Running")] + Running, + + [Description("StorageProvisioningFailed")] + StorageProvisioningFailed, + + [Description("Succeeded")] + Succeeded, + + [Description("TransientFailure")] + TransientFailure, + + [Description("Updated")] + Updated, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Definition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Definition.cs new file mode 100644 index 00000000000..4bb966b8e79 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Definition.cs @@ -0,0 +1,34 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Projects; + +internal class Definition : ResourceDefinition +{ + public string Name => "Projects"; + public IEnumerable Operations => new List + { + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListByResourceGroupOperation(), + new ListBySubscriptionOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(ProvisioningStateConstant), + }; + public IEnumerable Models => new List + { + typeof(ProjectModel), + typeof(ProjectPropertiesModel), + typeof(ProjectUpdateModel), + typeof(ProjectUpdatePropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Model-Project.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Model-Project.cs new file mode 100644 index 00000000000..14b6482a621 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Model-Project.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Projects; + + +internal class ProjectModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("location")] + [Required] + public CustomTypes.Location Location { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public ProjectPropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Model-ProjectProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Model-ProjectProperties.cs new file mode 100644 index 00000000000..d5a6cfdc34e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Model-ProjectProperties.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Projects; + + +internal class ProjectPropertiesModel +{ + [JsonPropertyName("description")] + public string? Description { get; set; } + + [JsonPropertyName("devCenterId")] + public string? DevCenterId { get; set; } + + [JsonPropertyName("devCenterUri")] + public string? DevCenterUri { get; set; } + + [JsonPropertyName("maxDevBoxesPerUser")] + public int? MaxDevBoxesPerUser { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Model-ProjectUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Model-ProjectUpdate.cs new file mode 100644 index 00000000000..d4d61c34055 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Model-ProjectUpdate.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Projects; + + +internal class ProjectUpdateModel +{ + [JsonPropertyName("location")] + public CustomTypes.Location? Location { get; set; } + + [JsonPropertyName("properties")] + public ProjectUpdatePropertiesModel? Properties { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Model-ProjectUpdateProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Model-ProjectUpdateProperties.cs new file mode 100644 index 00000000000..1be5d6276c2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Model-ProjectUpdateProperties.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Projects; + + +internal class ProjectUpdatePropertiesModel +{ + [JsonPropertyName("description")] + public string? Description { get; set; } + + [JsonPropertyName("devCenterId")] + public string? DevCenterId { get; set; } + + [JsonPropertyName("maxDevBoxesPerUser")] + public int? MaxDevBoxesPerUser { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..71608a35001 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-CreateOrUpdate.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Projects; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(ProjectModel); + + public override ResourceID? ResourceId() => new ProjectId(); + + public override Type? ResponseObject() => typeof(ProjectModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-Delete.cs new file mode 100644 index 00000000000..f6cd8cc440c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-Delete.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Projects; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override ResourceID? ResourceId() => new ProjectId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-Get.cs new file mode 100644 index 00000000000..68931e38ec9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-Get.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Projects; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new ProjectId(); + + public override Type? ResponseObject() => typeof(ProjectModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-ListByResourceGroup.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-ListByResourceGroup.cs new file mode 100644 index 00000000000..0cb9f446c04 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-ListByResourceGroup.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Projects; + +internal class ListByResourceGroupOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ResourceGroupId(); + + public override Type NestedItemType() => typeof(ProjectModel); + + public override Type? OptionsObject() => typeof(ListByResourceGroupOperation.ListByResourceGroupOptions); + + public override string? UriSuffix() => "/providers/Microsoft.DevCenter/projects"; + + internal class ListByResourceGroupOptions + { + [QueryStringName("$top")] + [Optional] + public int Top { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-ListBySubscription.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-ListBySubscription.cs new file mode 100644 index 00000000000..48192ea6651 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-ListBySubscription.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Projects; + +internal class ListBySubscriptionOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new SubscriptionId(); + + public override Type NestedItemType() => typeof(ProjectModel); + + public override Type? OptionsObject() => typeof(ListBySubscriptionOperation.ListBySubscriptionOptions); + + public override string? UriSuffix() => "/providers/Microsoft.DevCenter/projects"; + + internal class ListBySubscriptionOptions + { + [QueryStringName("$top")] + [Optional] + public int Top { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-Update.cs new file mode 100644 index 00000000000..39dce4f459c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/Operation-Update.cs @@ -0,0 +1,32 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Projects; + +internal class UpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(ProjectUpdateModel); + + public override ResourceID? ResourceId() => new ProjectId(); + + public override Type? ResponseObject() => typeof(ProjectModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/ResourceId-ProjectId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/ResourceId-ProjectId.cs new file mode 100644 index 00000000000..50408d14a38 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/ResourceId-ProjectId.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Projects; + +internal class ProjectId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticProjects", "projects"), + ResourceIDSegment.UserSpecified("projectName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/ResourceId-ResourceGroupId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/ResourceId-ResourceGroupId.cs new file mode 100644 index 00000000000..7161bf49907 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/ResourceId-ResourceGroupId.cs @@ -0,0 +1,24 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Projects; + +internal class ResourceGroupId : ResourceID +{ + public string? CommonAlias => "ResourceGroup"; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("subscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("resourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/ResourceId-SubscriptionId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/ResourceId-SubscriptionId.cs new file mode 100644 index 00000000000..6c8df7fd78c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Projects/ResourceId-SubscriptionId.cs @@ -0,0 +1,22 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Projects; + +internal class SubscriptionId : ResourceID +{ + public string? CommonAlias => "Subscription"; + + public string ID => "/subscriptions/{subscriptionId}"; + + public List Segments => new List + { + ResourceIDSegment.Static("subscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Constant-SkuTier.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Constant-SkuTier.cs new file mode 100644 index 00000000000..4b592bd37b0 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Constant-SkuTier.cs @@ -0,0 +1,20 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.SKUs; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SkuTierConstant +{ + [Description("Basic")] + Basic, + + [Description("Free")] + Free, + + [Description("Premium")] + Premium, + + [Description("Standard")] + Standard, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Definition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Definition.cs new file mode 100644 index 00000000000..9929ee6ee73 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Definition.cs @@ -0,0 +1,27 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.SKUs; + +internal class Definition : ResourceDefinition +{ + public string Name => "SKUs"; + public IEnumerable Operations => new List + { + new ListBySubscriptionOperation(), + }; + public IEnumerable Constants => new List + { + typeof(SkuTierConstant), + }; + public IEnumerable Models => new List + { + typeof(CapabilityModel), + typeof(DevCenterSkuModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Model-Capability.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Model-Capability.cs new file mode 100644 index 00000000000..20e374c2763 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Model-Capability.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.SKUs; + + +internal class CapabilityModel +{ + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("value")] + public string? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Model-DevCenterSku.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Model-DevCenterSku.cs new file mode 100644 index 00000000000..29b5bc59b39 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Model-DevCenterSku.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.SKUs; + + +internal class DevCenterSkuModel +{ + [JsonPropertyName("capabilities")] + public List? Capabilities { get; set; } + + [JsonPropertyName("capacity")] + public int? Capacity { get; set; } + + [JsonPropertyName("family")] + public string? Family { get; set; } + + [JsonPropertyName("locations")] + public List? Locations { get; set; } + + [JsonPropertyName("name")] + [Required] + public string Name { get; set; } + + [JsonPropertyName("resourceType")] + public string? ResourceType { get; set; } + + [JsonPropertyName("size")] + public string? Size { get; set; } + + [JsonPropertyName("tier")] + public SkuTierConstant? Tier { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Operation-ListBySubscription.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Operation-ListBySubscription.cs new file mode 100644 index 00000000000..905e23eaf7d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/Operation-ListBySubscription.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.SKUs; + +internal class ListBySubscriptionOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new SubscriptionId(); + + public override Type NestedItemType() => typeof(DevCenterSkuModel); + + public override string? UriSuffix() => "/providers/Microsoft.DevCenter/skus"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/ResourceId-SubscriptionId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/ResourceId-SubscriptionId.cs new file mode 100644 index 00000000000..e4c95a56f5d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/SKUs/ResourceId-SubscriptionId.cs @@ -0,0 +1,22 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.SKUs; + +internal class SubscriptionId : ResourceID +{ + public string? CommonAlias => "Subscription"; + + public string ID => "/subscriptions/{subscriptionId}"; + + public List Segments => new List + { + ResourceIDSegment.Static("subscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..83616defcfe --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Constant-ProvisioningState.cs @@ -0,0 +1,56 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Schedules; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Created")] + Created, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("MovingResources")] + MovingResources, + + [Description("NotSpecified")] + NotSpecified, + + [Description("RolloutInProgress")] + RolloutInProgress, + + [Description("Running")] + Running, + + [Description("StorageProvisioningFailed")] + StorageProvisioningFailed, + + [Description("Succeeded")] + Succeeded, + + [Description("TransientFailure")] + TransientFailure, + + [Description("Updated")] + Updated, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Constant-ScheduleEnableStatus.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Constant-ScheduleEnableStatus.cs new file mode 100644 index 00000000000..dcc8c8ee53a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Constant-ScheduleEnableStatus.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Schedules; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ScheduleEnableStatusConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Constant-ScheduledFrequency.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Constant-ScheduledFrequency.cs new file mode 100644 index 00000000000..21f891878f2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Constant-ScheduledFrequency.cs @@ -0,0 +1,11 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Schedules; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ScheduledFrequencyConstant +{ + [Description("Daily")] + Daily, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Constant-ScheduledType.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Constant-ScheduledType.cs new file mode 100644 index 00000000000..ec1e37c2213 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Constant-ScheduledType.cs @@ -0,0 +1,11 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Schedules; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ScheduledTypeConstant +{ + [Description("StopDevBox")] + StopDevBox, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Definition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Definition.cs new file mode 100644 index 00000000000..d719ef7e574 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Definition.cs @@ -0,0 +1,36 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Schedules; + +internal class Definition : ResourceDefinition +{ + public string Name => "Schedules"; + public IEnumerable Operations => new List + { + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListByPoolOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(ProvisioningStateConstant), + typeof(ScheduleEnableStatusConstant), + typeof(ScheduledFrequencyConstant), + typeof(ScheduledTypeConstant), + }; + public IEnumerable Models => new List + { + typeof(ScheduleModel), + typeof(SchedulePropertiesModel), + typeof(ScheduleUpdateModel), + typeof(ScheduleUpdatePropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Model-Schedule.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Model-Schedule.cs new file mode 100644 index 00000000000..e905fb9ae96 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Model-Schedule.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Schedules; + + +internal class ScheduleModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public SchedulePropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Model-ScheduleProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Model-ScheduleProperties.cs new file mode 100644 index 00000000000..d3594c7c4cb --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Model-ScheduleProperties.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Schedules; + + +internal class SchedulePropertiesModel +{ + [JsonPropertyName("frequency")] + [Required] + public ScheduledFrequencyConstant Frequency { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("state")] + public ScheduleEnableStatusConstant? State { get; set; } + + [JsonPropertyName("time")] + [Required] + public string Time { get; set; } + + [JsonPropertyName("timeZone")] + [Required] + public string TimeZone { get; set; } + + [JsonPropertyName("type")] + [Required] + public ScheduledTypeConstant Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Model-ScheduleUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Model-ScheduleUpdate.cs new file mode 100644 index 00000000000..e084eb2933b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Model-ScheduleUpdate.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Schedules; + + +internal class ScheduleUpdateModel +{ + [JsonPropertyName("location")] + public CustomTypes.Location? Location { get; set; } + + [JsonPropertyName("properties")] + public ScheduleUpdatePropertiesModel? Properties { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Model-ScheduleUpdateProperties.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Model-ScheduleUpdateProperties.cs new file mode 100644 index 00000000000..081141498ab --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Model-ScheduleUpdateProperties.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Schedules; + + +internal class ScheduleUpdatePropertiesModel +{ + [JsonPropertyName("frequency")] + public ScheduledFrequencyConstant? Frequency { get; set; } + + [JsonPropertyName("state")] + public ScheduleEnableStatusConstant? State { get; set; } + + [JsonPropertyName("time")] + public string? Time { get; set; } + + [JsonPropertyName("timeZone")] + public string? TimeZone { get; set; } + + [JsonPropertyName("type")] + public ScheduledTypeConstant? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..6896465ac9b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-CreateOrUpdate.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Schedules; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(ScheduleModel); + + public override ResourceID? ResourceId() => new ScheduleId(); + + public override Type? ResponseObject() => typeof(ScheduleModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-Delete.cs new file mode 100644 index 00000000000..fdd1f8d7767 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-Delete.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Schedules; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override ResourceID? ResourceId() => new ScheduleId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-Get.cs new file mode 100644 index 00000000000..88ef039b2e9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-Get.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Schedules; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new ScheduleId(); + + public override Type? ResponseObject() => typeof(ScheduleModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-ListByPool.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-ListByPool.cs new file mode 100644 index 00000000000..27abb7a5d6b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-ListByPool.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Schedules; + +internal class ListByPoolOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new PoolId(); + + public override Type NestedItemType() => typeof(ScheduleModel); + + public override string? UriSuffix() => "/schedules"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-Update.cs new file mode 100644 index 00000000000..d97346db324 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/Operation-Update.cs @@ -0,0 +1,32 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Schedules; + +internal class UpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(ScheduleUpdateModel); + + public override ResourceID? ResourceId() => new ScheduleId(); + + public override Type? ResponseObject() => typeof(ScheduleModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/ResourceId-PoolId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/ResourceId-PoolId.cs new file mode 100644 index 00000000000..4d336dbac90 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/ResourceId-PoolId.cs @@ -0,0 +1,30 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Schedules; + +internal class PoolId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticProjects", "projects"), + ResourceIDSegment.UserSpecified("projectName"), + ResourceIDSegment.Static("staticPools", "pools"), + ResourceIDSegment.UserSpecified("poolName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/ResourceId-ScheduleId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/ResourceId-ScheduleId.cs new file mode 100644 index 00000000000..487f9527d84 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Schedules/ResourceId-ScheduleId.cs @@ -0,0 +1,32 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Schedules; + +internal class ScheduleId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticProjects", "projects"), + ResourceIDSegment.UserSpecified("projectName"), + ResourceIDSegment.Static("staticPools", "pools"), + ResourceIDSegment.UserSpecified("poolName"), + ResourceIDSegment.Static("staticSchedules", "schedules"), + ResourceIDSegment.UserSpecified("scheduleName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Constant-UsageUnit.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Constant-UsageUnit.cs new file mode 100644 index 00000000000..5877690cda6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Constant-UsageUnit.cs @@ -0,0 +1,11 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Usages; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum UsageUnitConstant +{ + [Description("Count")] + Count, +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Definition.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Definition.cs new file mode 100644 index 00000000000..fb4c8660a93 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Definition.cs @@ -0,0 +1,27 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Usages; + +internal class Definition : ResourceDefinition +{ + public string Name => "Usages"; + public IEnumerable Operations => new List + { + new ListByLocationOperation(), + }; + public IEnumerable Constants => new List + { + typeof(UsageUnitConstant), + }; + public IEnumerable Models => new List + { + typeof(UsageModel), + typeof(UsageNameModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Model-Usage.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Model-Usage.cs new file mode 100644 index 00000000000..4a49887ca0f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Model-Usage.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Usages; + + +internal class UsageModel +{ + [JsonPropertyName("currentValue")] + public int? CurrentValue { get; set; } + + [JsonPropertyName("limit")] + public int? Limit { get; set; } + + [JsonPropertyName("name")] + public UsageNameModel? Name { get; set; } + + [JsonPropertyName("unit")] + public UsageUnitConstant? Unit { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Model-UsageName.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Model-UsageName.cs new file mode 100644 index 00000000000..b7e09c548c6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Model-UsageName.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Usages; + + +internal class UsageNameModel +{ + [JsonPropertyName("localizedValue")] + public string? LocalizedValue { get; set; } + + [JsonPropertyName("value")] + public string? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Operation-ListByLocation.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Operation-ListByLocation.cs new file mode 100644 index 00000000000..ad11645f5b9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/Operation-ListByLocation.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +using System; +using System.Collections.Generic; +using System.Net; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Usages; + +internal class ListByLocationOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new LocationId(); + + public override Type NestedItemType() => typeof(UsageModel); + + public override string? UriSuffix() => "/usages"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/ResourceId-LocationId.cs b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/ResourceId-LocationId.cs new file mode 100644 index 00000000000..e0f24823411 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_01/Usages/ResourceId-LocationId.cs @@ -0,0 +1,26 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.Usages; + +internal class LocationId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{locationName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"), + ResourceIDSegment.Static("staticLocations", "locations"), + ResourceIDSegment.UserSpecified("locationName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/SwaggerRevision.cs b/data/Pandora.Definitions.ResourceManager/SwaggerRevision.cs index a58cf78e6ba..97e2e7d4cf8 100644 --- a/data/Pandora.Definitions.ResourceManager/SwaggerRevision.cs +++ b/data/Pandora.Definitions.ResourceManager/SwaggerRevision.cs @@ -5,4 +5,4 @@ namespace Pandora.Definitions.ResourceManager; // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -// Generated from Swagger revision "3eb9ec8e9c8f717c6b461c4c0f49a4662fb948fd" +// Generated from Swagger revision "99b27b136352e2f16c3f868857fa33157ace895f"